[PATCH] PR optimization/12324

Joseph S. Myers jsm@polyomino.org.uk
Sat Sep 27 16:37:00 GMT 2003


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



More information about the Gcc-patches mailing list