OSDN Git Service

PR debug/43237
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Mar 2010 07:02:37 +0000 (07:02 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Mar 2010 07:02:37 +0000 (07:02 +0000)
commit73b2bc9e0c9509bb7b5d7c46b9c60d4fafa5e5d0
treeafb0e26639839ea21093a386287bf92eb2634e8d
parent77df5c7bba1803368907103ca0680f4713e9fab5
PR debug/43237
* dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
fallthrough to default handling, just with want_address 0 instead of 2.
For single element lists, add_AT_loc directly, otherwise create an
artificial variable DIE and stick location list to it.

* gcc.dg/debug/dwarf2/pr43237.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157190 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/pr43237.c [new file with mode: 0644]