On Tue, 2010-06-15 at 14:56 +0200, Laurynas Biveinis wrote: > I'd say, use a common ggc_alloc_cleared_meltobject_st which is made by > gengtype in 4.6+ and provide its suitable definition yourself for 4.5.
Thanks for the good advice. BTW, I only want if possible MELT to work for 4.5 & 4.6, and "work" simply means for me "ability to bootstrap itself" in the precise sense of being able to regenerate the warmelt*.c files from the warmelt*.melt files. In practice, this mostly depends upon the GGC & gengtype stuff (for instance, it does not depend upon the gimple or tree APIs). For the real useful stuff (for MELT users), that is for the ability to code easily pattern-matching on Gimple etc etc, there are already all the required features inside MELT (a MELT primitive can emit code which is conditional on the targetted version of GCC, etc etc). Besides, the social organization of GCC makes quite difficult any major, incompatible, changes on core GCC internal representations (like Gimple or Tree-s). In practice, the API on Gimple or Tree-s is quite stable (the last major evolution was the Tree -> Gimple transition of 4.4, and MELT went thru it without pains). Cheers. -- 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} ***