This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR optimization/12324
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- Date: Sat, 27 Sep 2003 16:58:14 +0100 (BST)
- Subject: Re: [PATCH] PR optimization/12324
- References: <20030927135507.GG23075@kam.mff.cuni.cz>
On Sat, 27 Sep 2003, Jan Hubicka wrote:
> the problem is that we deffer compound literals until after finalizing
> compilation unit (like we currently do for declarations without initializer).
> I don't see any reason for doing so. Would be this OK?
The point is that when the extension (gnu89 mode only, used by Linux
kernel) where compound literals can be used as static initializers (as if
they were the brace-enclosed list rather than an anonymous variable) is
used, the compound literal shouldn't itself be emitted - only the
initialized variable. Does this patch preserve that property?
--
Joseph S. Myers
jsm@polyomino.org.uk