[Bug c/30265] Compound literal can cause invalid gimple
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Apr 21 21:47:00 GMT 2007
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-04-21 22:47 -------
Subject: Bug 30265
Author: pinskia
Date: Sat Apr 21 22:47:35 2007
New Revision: 124024
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124024
Log:
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.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/compound-literal-2.c
trunk/gcc/testsuite/gcc.c-torture/compile/compound-literal-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-gimplify.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30265
More information about the Gcc-bugs
mailing list