This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR optimization/12324


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]