[Bug middle-end/59011] [4.7 Regression] ICE in make_decl_rtl, at varasm.c:1147

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 7 16:11:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59011

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed May  7 16:10:35 2014
New Revision: 210179

URL: http://gcc.gnu.org/viewcvs?rev=210179&root=gcc&view=rev
Log:
    Backported from mainline
    2013-12-03  Jakub Jelinek  <jakub@redhat.com>

    PR middle-end/59011
    * gimplify.c (nonlocal_vla_vars): New variable.
    (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
    nonlocal_vla_vars chain.
    (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
    if outer_bind has DECL_INITIAL (current_function_decl) block.

    * gcc.dg/pr59011.c: New test.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr59011.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/gimplify.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list