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: Identifying the EGCS back-end



> >> In order to achieve this, the front-end uses several instances
> >> of `#ifdef EGCS'.  Right now, you have to type something like
> 
> > I'm not sure of one.  We have a way to identify when you're building
> > soemthing with egcs (version #s), but I don't know of a way to
> > identify when you're building gpc inside an egcs tree.
> 
> Why should it be any different?  It would always be compiled with the
> already-compiled xgcc, wouldn't it?

If the Pascal compiler is always built by first building the C compiler
in phase 1, and then using it to build the complete suite in phase 2,
then yes, it does seem that 

#if __GNUC__ >= 2 || __GNUC_MINOR__ >= 90
#define EGCS
#endif

would work.  If someone were building a Pascal cross-compiler and used
a different gcc version to do it, this would not work, but that scenario
isn't that likely.




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