target/6522: Incorrect struct offset for unaligned 64-bit fields in debug information
fred@nextnewgig.com
fred@nextnewgig.com
Tue Apr 30 13:56:00 GMT 2002
>Number: 6522
>Category: target
>Synopsis: Incorrect struct offset for unaligned 64-bit fields in debug information
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 30 13:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: fred@nextnewgig.com
>Release: GNU C++ version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
>Organization:
>Environment:
Linux x86
>Description:
The debug symbol information is incorrect for unaligned 64-bit fields in a struct.
>How-To-Repeat:
Compile with "gcc -o t64 -gdwarf-2 t64.cpp", run gdb on this program and notice that the difference between the address of Global_struct.bbb and Global_struct.aa is 8 when it should be 4. Displaying Global_struct or Local_struct at the end of this program will result in the incorrect value for field bbb being displayed.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list