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]

Re: How to distinguish EGCS



  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


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