]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR debug/32914 (ICE in rtl_for_decl_init with -g option)
authorJakub Jelinek <jakub@redhat.com>
Fri, 31 Aug 2007 07:25:20 +0000 (09:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 31 Aug 2007 07:25:20 +0000 (09:25 +0200)
commitdb8b3d46a3711cdb286e994076de66aea4bd754f
tree50af4c1508e022efaa14ed092e6fe7bbe2531753
parentd41c5933ab5ba241c09bc826488530f96029c1f2
re PR debug/32914 (ICE in rtl_for_decl_init with -g option)

PR debug/32914
* dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
initializer, use build_vector_from_ctor if possible to create
VECTOR_CST out of it.  If vector initializer is not VECTOR_CST
even after this, return NULL.

* d++.dg/debug/const3.C: New test.
* d++.dg/debug/const4.C: New test.

From-SVN: r127958
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/const3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/debug/const4.C [new file with mode: 0644]