This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gdb/179: GCC and GDB disagree over LE o32 ABI when sizeof(struct) < 4



>Number:         179
>Category:       gdb
>Synopsis:       GCC and GDB disagree over LE o32 ABI when sizeof(struct) < 4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 23 13:08:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Cagney
>Release:        unknown-1.0
>Organization:
>Environment:
N/A
>Description:
GCC, for LE O32 MIPS targets generates a left shift before placing small struct (< 4) parameters in a register.  GCC doesn't do this for larger structs.

While this shift is, er logical, for the BE O32 ABI (it simplifes memory - register transfers) it isn't for the LE O32 ABI.  Especially when it is only done for very small structs.

There firstly needs to be a clear resolution as to what the LE/O32 ABI has to say about this case.  That then identifies where the bug is and hence the fix.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]