Re: How do I disable warnings across versions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2012-05-15 08:06:57 -0700, Ian Lance Taylor wrote:
> Vincent Lefevre <vincent+gcc@xxxxxxxxxx> 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.

GCC doesn't need to fix anything. ICC also defines its own macros
(but not in a consistent way), so that the user can test if they
are defined (if __ICC and/or __INTEL_COMPILER are defined, this
is ICC). The user just needs to know that.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux