Richard Guenther wrote:
Plugins shouldn't keep permanent references to GCed memory. At least that would make it unnecessary to do what you suggest.
I strongly disagree with that, and I simply do not understand your position. In my perception, plugins are essentially loaded (dlopen-ed) but never unloaded (dlclose-ed; perhaps they would be dlclose-ed when every thing is done). Why should they not use any GTY stuff? What makes you think that some features of GCC (like GTY ...) are invalid inside plugins?
I find your position as extreme as saying: plugins should never call malloc or xcalloc, or should never call warning_at, or should never call XXX! Why?
So what are plugins for? Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***