dwarf2out.c (tree_add_const_value_attribute): For INTEGER_CST that fits into uhwi...
authorJakub Jelinek <jakub@redhat.com>
Wed, 20 Sep 2017 09:04:22 +0000 (11:04 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Sep 2017 09:04:22 +0000 (11:04 +0200)
commit88272c019414e6558db9c6c72053415fa88e0b5e
treec53ac0ff3cd0349189a19918ad706d6477eb6f3f
parentdcc34072c43b8081d337008d529d3e77e25c52bc
dwarf2out.c (tree_add_const_value_attribute): For INTEGER_CST that fits into uhwi or shwi...

* dwarf2out.c (tree_add_const_value_attribute): For INTEGER_CST
that fits into uhwi or shwi, add DW_AT_const_value regardless
of early_dwarf without going through RTL, using add_AT_unsigned
or add_AT_int.

* g++.dg/debug/dwarf2/template-params-13.C: New test.
* g++.dg/debug/dwarf2/template-params-5.C: Adjust regexps so that
it doesn't match newlines.
* g++.dg/debug/dwarf2/template-params-3.C: Likewise.
* g++.dg/debug/dwarf2/template-func-params-3.C: Likewise.
* g++.dg/debug/dwarf2/lang-cpp98.C: Likewise.
* g++.dg/debug/dwarf2/template-func-params-2.C: Likewise.
* g++.dg/debug/dwarf2/template-func-params-1.C: Likewise.
* g++.dg/debug/dwarf2/template-func-params-5.C: Likewise.
* g++.dg/debug/dwarf2/template-params-1.C: Likewise.
* g++.dg/debug/dwarf2/template-params-2.C: Likewise.
* g++.dg/debug/dwarf2/lang-cpp14.C: Likewise.
* g++.dg/debug/dwarf2/lang-cpp11.C: Likewise.

From-SVN: r253004
15 files changed:
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp11.C
gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp14.C
gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp98.C
gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-1.C
gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-2.C
gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-3.C
gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-5.C
gcc/testsuite/g++.dg/debug/dwarf2/template-params-1.C
gcc/testsuite/g++.dg/debug/dwarf2/template-params-13.C [new file with mode: 0644]
gcc/testsuite/g++.dg/debug/dwarf2/template-params-2.C
gcc/testsuite/g++.dg/debug/dwarf2/template-params-3.C
gcc/testsuite/g++.dg/debug/dwarf2/template-params-5.C