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 ping^3: gengtype: improved version for plugin support.


Duncan Sands wrote:
Hi Basile,

At last, in this patch I voluntarily added a possible misfeature (but documented both in comments and in *.texi documentation the known weakness): As you should know, gengtype requires an explicit list of files. [...]

you can just use the generated gtyp-input.list without modification like
this (adapted from my Makefile):

cd $(GCCOBJECT_DIR)/gcc && ./build/gengtype -P $(GTYPE_OUTPUT_FILE) $(GCCSOURCE_DIR) gtyp-input.list $(GTYPE_INPUT_FILE)

I am not abolutely certain that would always work (perhaps some permissions issues if the user building GCC and the user building the plugin are different).


Actually, I would believe that it could be useful to make a future patch to gcc/Makefile.in which install all the files listed in gtyp-input.list somewhere and which also generates an updated gtyp-input.list and then install it.

However, I am very uneasy with GCC Makefile.in files and I don't believe I could propose a good patch for that.

If really my gtyp-real-input.list trick is disgusting I can remove it. But this does not invalidate my work inside gengtype.c.

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} ***


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