re PR tree-optimization/33723 (Inefficient code with compound literals)
authorJakub Jelinek <jakub@redhat.com>
Mon, 29 Oct 2007 22:26:59 +0000 (23:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 29 Oct 2007 22:26:59 +0000 (23:26 +0100)
commit489f2598af821da1157ec21cd484fcb32a5193e9
tree2b6f28406d370623a5e985861bc9536a99083bfa
parent9f1da821e6de1d5068d8c03cd46d1b05aab799f1
re PR tree-optimization/33723 (Inefficient code with compound literals)

PR tree-optimization/33723
* c-gimplify.c (c_gimplify_expr): Optimize INIT_EXPR or
MODIFY_EXPR with non-addressable COMPOUND_LITERAL_EXPR as source.

* gcc.c-torture/execute/20071029-1.c: New test.
* gcc.dg/tree-ssa/pr33723.c: New test.

From-SVN: r129743
gcc/ChangeLog
gcc/c-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20071029-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr33723.c [new file with mode: 0644]