This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: once we have cpplib...
- To: bothner at cygnus dot com (Per Bothner)
- Subject: Re: once we have cpplib...
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Wed, 22 Apr 1998 02:00:22 +0100 (BST)
- Cc: law at cygnus dot com, egcs at cygnus dot com
> > So we have gcc.c look in $(libsubdir) for cpp. If it finds it, then
> > it invokes the passes in the old way (cpp, cc1).
>
> That implies we do not want a standa-alone cpp executable.
> (Cpplib linked with a trivial main program cppmain provides basically
> the functionality of the standalone cpp.)
>
> While doing (yet) another stat is a minor cost, still it seems
> wasteful.
Well, assuming the usual case is that the gcc is invoked without -V ,
we could make a special case for this and skip the check for an existing
cpp. Or we could even check the version given against the smallest
gcc version that is known to have an integrated cpp/cc1.