This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/85252] [6/7 Regression] ICE with -g for static zero-length array initialization
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Jun 2018 21:08:32 +0000
- Subject: [Bug debug/85252] [6/7 Regression] ICE with -g for static zero-length array initialization
- Auto-submitted: auto-generated
- References: <bug-85252-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85252
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 22 21:08:00 2018
New Revision: 261950
URL: https://gcc.gnu.org/viewcvs?rev=261950&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-7-branch/gcc/testsuite/gcc.dg/debug/pr85252.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/dwarf2out.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog