This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
why gengtype not a filter for GTY?
- From: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 28 Nov 2006 21:48:17 +0100
- Subject: why gengtype not a filter for GTY?
Dear All (and especially those implied in the GCC internal garbage
collector).
I read (and contributed a bit to) http://gcc.gnu.org/wiki/Memory_management
and also read http://gcc.gnu.org/onlinedocs/gccint/Type-Information.html
However, there is still a question which puzzles me a lot? Why gengtype is
not a sort of filter or generator (like yacc is) taking a (list of) files on
input and producing a file on output?
More precisely, why gengtype does not take the name of files to be parsed
for GTY(()) thru its program argument (ie argc,argv of its main - they are
explicitly marked as unused in $GCCTOP/gcc/gengtype.c)
I would believe it should make things simpler (in a lot of places) but I
cannot understand why it is not so? Why are the set of files to be parsed
for GTY()) so hard-coded in gengtype?
BTW, it is strange that gengtype* files do not mention any?author or
contributor (with an email to contact them)?
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faïencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***