This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/49871] -gdwarf-3 creates invalid DWARF3 with DW_AT_data_member_location attribute
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Jul 2011 16:21:46 +0000
- Subject: [Bug debug/49871] -gdwarf-3 creates invalid DWARF3 with DW_AT_data_member_location attribute
- Auto-submitted: auto-generated
- References: <bug-49871-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49871
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-28 16:21:14 UTC ---
Author: jakub
Date: Thu Jul 28 16:21:08 2011
New Revision: 176876
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176876
Log:
PR debug/49871
* dwarf2out.c (size_of_die, value_format, output_die): Use
DW_FORM_udata instead of DW_FORM_data[48] for
dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
* gcc.dg/debug/dwarf2/pr49871.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/pr49871.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog