]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR debug/85252 (ICE with -g for static zero-length array initialization)
authorJakub Jelinek <jakub@redhat.com>
Mon, 25 Jun 2018 17:44:31 +0000 (19:44 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 25 Jun 2018 17:44:31 +0000 (19:44 +0200)
commite1740d0ea4d47a0bb9fa57d5189c81e0d5fd0420
treeeb34b5637fa6f24fcbe399e0d14a138130335350
parent9c963e17286d8db193471b4b20e0de9ce45d5f8e
backport: re PR debug/85252 (ICE with -g for static zero-length array initialization)

Backported from mainline
2018-04-06  Jakub Jelinek  <jakub@redhat.com>

PR debug/85252
* dwarf2out.c (rtl_for_decl_init): For STRING_CST initializer only
build CONST_STRING if TYPE_MAX_VALUE is non-NULL and is INTEGER_CST.

* gcc.dg/debug/pr85252.c: New test.

From-SVN: r262093
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/pr85252.c [new file with mode: 0644]