How do I disable warnings across versions?

Ian Lance Taylor iant@google.com
Tue May 15 15:07:00 GMT 2012


Vincent Lefevre <vincent+gcc@vinc17.org> writes:

> Hmm, yes, these macros are actually used by MPFR. Note that these
> macros are also by Intel's compiler ICC, which tries to emulate
> some GCC features, but doesn't behave exactly like GCC. :( This
> is a problem for portable code.

Unfortunately there is nothing GCC can do to fix that problem.  If we
introduce __GNUC_THIS_IS_THE_REAL_GCC__ then other compilers will define
that as well.

> I wonder why GCC has two different prefixes: __GNUC for the versions
> and __GCC for some other macros.

Historical.

Ian



More information about the Gcc-help mailing list