OSDN Git Service

* dwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Dec 2009 22:07:13 +0000 (22:07 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Dec 2009 22:07:13 +0000 (22:07 +0000)
commitfdd3340f47ab6153da62534d7b392e63078bfe78
tree035d2af942a102f0f2d21ec3c9dc44b27f699373
parentbb325882e249f4fc3a0395accdcbf954842aeb37
* dwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs
use DW_OP_addr+DW_OP_stack_value instead of DW_OP_implicit_value.
(add_const_value_attribute): For CONST_STRING, SYMBOL_REFs and
LABEL_REFs use DW_OP_addr+DW_OP_stack_value DW_AT_location instead of
DW_AT_const_value.

* gcc.dg/debug/dwarf2/const-1.c: Don't expect DW_AT_const_value,
but instead DW_AT_location with DW_OP_addr+DW_OP_stack_value.  Add
-gno-strict-dwarf -fno-merge-debug-strings to dg-options.
* g++.dg/debug/dwarf2/const1.C: Likewise.
* g++.dg/debug/dwarf2/template-params-3.C: Likewise.
* g++.dg/debug/dwarf2/template-func-params-3.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155327 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/const1.C
gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-3.C
gcc/testsuite/g++.dg/debug/dwarf2/template-params-3.C
gcc/testsuite/gcc.dg/debug/dwarf2/const-1.c