[Bug debug/49871] New: -gdwarf-3 creates invalid DWARF3 with DW_AT_data_member_location attribute
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 27 16:32:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49871
Summary: -gdwarf-3 creates invalid DWARF3 with
DW_AT_data_member_location attribute
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Keywords: wrong-debug
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jakub@gcc.gnu.org
As mentioned in
http://sources.redhat.com/ml/binutils/2011-07/msg00237.html
/* { dg-options "-gdwarf-3" } */
struct s { char a[1<<24]; int b; } s;
results in invalid DWARF3, as DW_AT_data_member_location attribute uses
DW_FORM_data4 for constant value, while the standard says that in this case
DW_FORM_data4 or DW_FORM_data8 aren't allowed for constants and are used for
loclistptr instead.
More information about the Gcc-bugs
mailing list