* dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
commit4d8040d8cf3d1d1a4f66419465bcfcc5b733465d
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2016 15:11:48 +0000 (21 15:11 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Oct 2016 15:11:48 +0000 (21 15:11 +0000)
tree23d9b415e858a7e4be5217e8b836ea49a685e47b
parent5405a917d74279a1c2a4c9235e718598db2e1cf0
* dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
if needed.  Re-add origin_die variable and its initialization.
cp/
* cp-objcp-common.c (cp_decl_dwarf_attribute): Handle
DW_AT_const_expr.
testsuite/
* g++.dg/debug/dwarf2/constexpr-var-1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241408 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.c
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/constexpr-var-1.C [new file with mode: 0644]