Two problems with gimplify_init_constructor

Richard Henderson rth@redhat.com
Thu Aug 12 20:57:00 GMT 2004


On Thu, Aug 12, 2004 at 04:57:01PM -0400, Richard Kenner wrote:
> I really worry about pessimizing code.  It should at least be kept for
> objects that are real constants (e.g., never assigned) and can be
> safely kept for scalars.

No, it cannot.  Any scalar that gets dumped to the stack will very
likely be shared with some other memory.  Objects that are real
constants should either be promoted to static memory, or constant
propagated.


r~



More information about the Gcc mailing list