re PR c/30265 (Compound literal can cause invalid gimple)
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Sat, 21 Apr 2007 21:47:35 +0000 (21:47 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 21 Apr 2007 21:47:35 +0000 (14:47 -0700)
commitc8a0a219fda4028ee80aa310588652d66a070ff5
treeb4183139462efcda6cbc5858a9ab77488e5d3493
parentc284e499898990a4d072f2b4ce7ff95571867ea2
re PR c/30265 (Compound literal can cause invalid gimple)

2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C/30265
        * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
        decl as addressable if the compound literal was marked as
        addressable.
        Mark the decl as a gimple register if it is a complex or
        vector decl and does not live in memory.
2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C/30265
        * gcc.c-torture/compile/compound-literal-2.c: New testcase.
        * gcc.c-torture/compile/compound-literal-3.c: New testcase.

From-SVN: r124024
gcc/ChangeLog
gcc/c-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/compound-literal-2.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/compound-literal-3.c [new file with mode: 0644]