This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30265] Compound literal can cause invalid gimple
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Apr 2007 21:47:45 -0000
- Subject: [Bug c/30265] Compound literal can cause invalid gimple
- References: <bug-30265-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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