This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/179: GCC and GDB disagree over LE o32 ABI when sizeof(struct) < 4
- To: gdb-gnats at sources dot redhat dot com
- Subject: gdb/179: GCC and GDB disagree over LE o32 ABI when sizeof(struct) < 4
- From: ac131313 at cygnus dot com
- Date: 23 Jul 2001 20:00:35 -0000
- Reply-To: ac131313 at cygnus dot com
>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: