This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/49871] New: -gdwarf-3 creates invalid DWARF3 with DW_AT_data_member_location attribute


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.


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