This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Identifying the EGCS back-end
- To: oliva at dcc dot unicamp dot br (Alexandre Oliva)
- Subject: Re: Identifying the EGCS back-end
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Thu, 5 Nov 98 15:57:36 PST
- Cc: law at cygnus dot com, peter at gerwinski dot de, egcs at cygnus dot com
> >> 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.