https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85252

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 17:44:31 2018
New Revision: 262093

URL: https://gcc.gnu.org/viewcvs?rev=262093&root=gcc&view=rev
Log:
        Backported from mainline
        2018-04-06  Jakub Jelinek  <ja...@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-6-branch/gcc/testsuite/gcc.dg/debug/pr85252.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/dwarf2out.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to