This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Don't require -DIN_GCC while compiling plugins
On Tue, May 26, 2009 at 12:09, Rafael Espindola <espindola@google.com> wrote:
>> It's better to have gcc-plugin.h include config.h and system.h or
>> document that the three files should be included in the order:
>> config.h, system.h ggc-plugin.h.
>
> Why? That is a much more complicated user interface for just one use
> of "bool". It is nice to have gcc-plugin.h very light.
Sure. In that case, let's make gcc-plugin.h include config.h and
system.h. Both define fundamental symbols and types that may be
useful in the future. Having to drop 'bool' for 'int' is an example
of that.
> I documented gcc-header being the first gcc header.
>
> OK?
OK with gcc-plugin.h including config.h and system.h.
Thanks. Diego.