This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dealing with compilers that pretend to be GCC


> even GCC may not support 100% of the GCC extensions!  For example, you can
> find hacked GCC's out there which disable nested function support by
> default (I think Apple did this).

I'd think that such hacked versions aren't really GCC anymore.

> Even more problematic IMO than testing __GNUC__ is code that tests for
> particular versions of GCC.  There are versions of GCC which have backported
> features from more recent GCC's (eg: GNAT from Ada Core Technologies is like
> this). 

Essentially every vendor is like this.  And not only for GCC, but for the 
kernel, etc.  But most of them do things properly and stay compatible.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]