This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to distinguish EGCS
- To: rch at troi dot baustatik dot rwth-aachen dot de
- Subject: Re: How to distinguish EGCS
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 30 Oct 1998 14:38:01 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <13881.38744.364911.4291@troi.baustatik.rwth-aachen.de>you write:
>
> When porting a code from gcc 2.7.2 to egcs I need to distinguish the
> version of the compiler to use the appropriate code. I was searching
> for a predefined macro just like __GNUG__ to insert #ifdef #else
> #endif.
>
> QUESTION:
>
> Can anyone tell me how to dump the predefined macros? And
> whether there is a special macro identifying the current compiler
> version?
Look at the major/minor version number macros.
egcs will have different version #s than gcc2.
jeff