Saving extension semantic values from collection

Richard Kenner
Mon Mar 20 05:48:00 GMT 2000

    I just commited the appended patch; it prevents the integers used to
    save the warn flags from being garbage-collected.

	* (SAVE_WARN_FLAGS): Use size_int.

This is a pretty major kludge!  There is no guarantee that such integers will
be known permanent!  Yes, we do cache them, but that's part of the
*implementation* of size_int, not its *specification*.  Indeed I was toying
with the idea of a change that interfaces with garbage collection and removed
from the cache trees for integers that aren't otherwise used.  That would be
a very safe and reasonable change, but would break your fix.

The right approach, and one that I think we may have to do for other reasons
anyway, is to make the trees in the parse stack visible to GGC.

Can you please revert this patch and do that instead?

More information about the Gcc-patches mailing list