How to distinguish EGCS
Jeffrey A Law
law@cygnus.com
Fri Oct 30 13:42:00 GMT 1998
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
More information about the Gcc
mailing list