This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ front end
- From: Geert Bosch <bosch at gnat dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: dewar at gnat dot com (Robert Dewar), ben at echotech dot ca, gcc at gcc dot gnu dot org
- Date: Tue, 25 Jun 2002 12:20:10 -0400
- Subject: Re: C++ front end
On Tuesday, June 25, 2002, at 09:40 , Richard Earnshaw wrote:
We would need to go to a four-stage build to support this (or not do a
compare on those front ends that required C++).
I don't see that. In stage 2 you build the front end for language X
using the stage1 C++ compiler. In stage 3 you build it using the stage2
C++ compiler built by itself, and the result should be identical.
Since the stage3 C++ compiler is bitwise identical to the stage2 one,
there is no need to recompile the front end for language X with it.
You only need three stages for compilers written in their own language,
since in that case you compile:
1) with a pre-existing compiler
2) with the compiler built using the pre-existing compiler
3) with the compiler built by itself
Of course, I might be misunderstanding you here...
-Geert