This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: Build stages 2 and 3 with C++
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Fri, 15 Jul 2011 23:56:25 -0700
- Subject: Re: PATCH RFA: Build stages 2 and 3 with C++
- References: <mcroc0u3ef5.fsf@coign.corp.google.com>
On Fri, Jul 15, 2011 at 11:52 PM, Ian Lance Taylor <iant@google.com> wrote:
> I would like to propose this patch as a step toward building gcc using a
> C++ compiler. ÂThis patch builds stage1 with the C compiler as usual,
> and defaults to building stages 2 and 3 with a C++ compiler built during
> stage 1. ÂThis means that the gcc installed and used by most people will
> be built by a C++ compiler. ÂThis will ensure that gcc is fully
> buildable with C++, while retaining the ability to bootstrap with only a
> C compiler, not a C++ compiler. ÂThis will permit us to experiment with
> optionally using C++ for some code, using a #ifdef to select the C
> implementation or the C++ implementation.
>
> I would suggest that we consider releasing 4.7 this way, as a small
> trial for building gcc with C++.
Do you build libstdc++ at stage1 also? That is what happens if you
don't have a C++ compiler to begin with.
Thanks,
Andrew Pinski