re PR c/33238 (ICE on statement expression using variable-sized structure in tree_low...
authorJakub Jelinek <jakub@redhat.com>
Thu, 20 Sep 2007 21:19:36 +0000 (23:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 20 Sep 2007 21:19:36 +0000 (23:19 +0200)
commit786025ea79bffb3746e1964e561dae17f37dc8af
tree29a12a54176cdbb269b5985bcd5053b8b884383b
parent334a954334bb79ff5acfbbc42759524965db2026
re PR c/33238 (ICE on statement expression using variable-sized structure in tree_low_cst, at tree.c:4502)

PR c/33238
PR c/27301
* gimplify.c (gimplify_vla_decl): New function.
(gimplify_decl_expr): Move VLA decl handling to gimplify_vla_decl.
Call it.
(gimplify_target_expr): Handle variable length TARGET_EXPRs.

* gcc.c-torture/execute/20070919-1.c: New test.
* gcc.dg/pr33238.c: New test.
* gcc.dg/pr27301.c: New test.

From-SVN: r128629
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20070919-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr27301.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr33238.c [new file with mode: 0644]