This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: typed gengtype & GCC plugins for both 4.5 & 4.6 - e.g. MELT
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: Basile Starynkevitch <basile at starynkevitch dot net>
- Cc: gcc at gcc dot gnu dot org, laurynas dot biveinis at gmail dot com, jeremie dot salvucci at free dot fr
- Date: Tue, 15 Jun 2010 06:30:58 -0400
- Subject: Re: typed gengtype & GCC plugins for both 4.5 & 4.6 - e.g. MELT
- References: <20100615092612.GA8584@hector.lesours>
Quoting Basile Starynkevitch <basile@starynkevitch.net>:
A small but annoying issue is that GCC 4.5's gengtype does not accept
the variable_size annotation, and I would want to have it ignore
it. As far as I know, gengtype don't like CPP conditionals;
You can have a separate Makefile rule generate a header file without
conditionals using cpp, and then put the generated header file instead
of the original, so that gengtype will see the preprocessed header file.
Or if you still need conditional compilation in the header file that is
evaluated later, you could generate it with some other mechanism,
e.g. selecting from separate prepared files (or sets of file fragments)
during configure, or use a different preprocessor, e.g. m4.