This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
target/6522: Incorrect struct offset for unaligned 64-bit fields in debug information
- From: fred at nextnewgig dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 30 Apr 2002 20:47:00 -0000
- Subject: target/6522: Incorrect struct offset for unaligned 64-bit fields in debug information
- Reply-to: fred at nextnewgig dot com
>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: