Bug 250861

Summary: dwarf registers rbx, rdx are switched.
Product: [Fedora] Fedora Reporter: Nurdin Premji <npremji>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: aoliva
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-03 22:16:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nurdin Premji 2007-08-03 21:55:31 UTC
Description of problem:
according to www.linux-foundation.org/spec/refspecs/elf/x86_64-SysV-psABI.pdf
the registers should be in the order rax, rbx, rcx, rdx, gcc puts them in rax,
rdx, rcx, rbx.

Version-Release number of selected component (if applicable):
http://gcc.gnu.org/viewcvs/trunk/gcc/config/i386/
as of today.

How reproducible:
always

Steps to Reproduce:
1. ordering is rax, rdx, rcx, rbx.
2.
3.
  
Actual results:
ordering is rax, rdx, rcx, rbx.

Expected results:
rax, rbx, rcx, rdx.

Additional info:

Comment 1 Nurdin Premji 2007-08-03 21:56:15 UTC
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32982

link to gcc bug.

Comment 2 Jakub Jelinek 2007-08-03 22:16:58 UTC
You should check the latest version of the ABI, not some obsolete one.
The broken dwarf register numbers have been only in psABI versions 0.20 and
0.21, fixed again in 0.90.