This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/85252] [6/7 Regression] ICE with -g for static zero-length array initialization


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]