re PR debug/49871 (-gdwarf-3 creates invalid DWARF3 with DW_AT_data_member_location...
authorJakub Jelinek <jakub@redhat.com>
Thu, 28 Jul 2011 16:21:08 +0000 (18:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 28 Jul 2011 16:21:08 +0000 (18:21 +0200)
commit64153cceb266ecd5794c158db93e92025b457d5d
tree7379b4d011cad1ddaa2ade0d8f107bdba79e0fc2
parent844bf05b0d607c110483c0a01462c21a63b28c87
re PR debug/49871 (-gdwarf-3 creates invalid DWARF3 with DW_AT_data_member_location attribute)

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.

From-SVN: r176876
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/pr49871.c [new file with mode: 0644]