]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/27893 (ICE with TREE_CONSTANT VLA sizes inside functions)
authorJoseph Myers <joseph@codesourcery.com>
Sat, 26 Aug 2006 00:16:07 +0000 (01:16 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 26 Aug 2006 00:16:07 +0000 (01:16 +0100)
commit4cbe2412ed4ceddd711ae55a5d45fb7cc37cbf3b
tree3248c063f32eec5671ec83ebd98c8205caa728e1
parentf5b2e571df89bfd80600aac8747bd4a803249228
re PR c/27893 (ICE with TREE_CONSTANT VLA sizes inside functions)

PR c/27893
* gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval):
Treat sizes as variable whenever not INTEGER_CST.

testsuite:
* gcc.c-torture/compile/vla-const-1.c,
gcc.c-torture/compile/vla-const-2.c: New tests.

From-SVN: r116454
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/vla-const-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/vla-const-2.c [new file with mode: 0644]