re PR c/27893 (ICE with TREE_CONSTANT VLA sizes inside functions)
authorJoseph Myers <joseph@codesourcery.com>
Fri, 25 Aug 2006 23:01:16 +0000 (00:01 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 25 Aug 2006 23:01:16 +0000 (00:01 +0100)
commit4c923c28479a212d59b96928006b6464509d918b
tree6486b3e2d432444b8f03be5770b966b4e48e6344
parent459881189a60e313cbd9e35e415b7cc794289149
re PR c/27893 (ICE with TREE_CONSTANT VLA sizes inside functions)

PR c/27893
* gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
omp_add_variable): 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: r116450
gcc/ChangeLog
gcc/c-pretty-print.c
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]