This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How do I disable warnings across versions?
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