From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25995 invoked by alias); 16 Jul 2011 07:48:51 -0000 Received: (qmail 25979 invoked by uid 22791); 16 Jul 2011 07:48:50 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC,TVD_RCVD_IP X-Spam-Check-By: sourceware.org Received: from 195-14-0-142.nuxit.net (HELO de558.ispfr.net) (195.14.0.142) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Jul 2011 07:48:36 +0000 Received: from ours.starynkevitch.net ([213.41.244.95] helo=glinka.lesours) by de558.ispfr.net with smtp (Exim 4.72) (envelope-from ) id 1Qhzbz-0007ml-Kj; Sat, 16 Jul 2011 09:48:31 +0200 Date: Sat, 16 Jul 2011 07:59:00 -0000 From: Basile Starynkevitch To: Ian Lance Taylor Cc: Andrew Pinski , gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org Subject: Re: PATCH RFA: Build stages 2 and 3 with C++ Message-Id: <20110716094829.606206533b95ec6cae114056@starynkevitch.net> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg00266.txt.bz2 On Sat, 16 Jul 2011 00:04:58 -0700 Ian Lance Taylor wrote: > Andrew Pinski writes: >=20 > > On Fri, Jul 15, 2011 at 11:52 PM, Ian Lance Taylor wr= ote: > >> I would like to propose this patch as a step toward building gcc using= a > >> C++ compiler. =A0This patch builds stage1 with the C compiler as usual, > >> and defaults to building stages 2 and 3 with a C++ compiler built duri= ng > >> stage 1. =A0 > > > > Do you build libstdc++ at stage1 also? That is what happens if you > > don't have a C++ compiler to begin with. >=20 > Yes. With this patch, we build cc1plus at stage 1, and use it to build > libstdc++ at stage 1, and use both to build stage 2. I think that we might also want to have some easy & documented way to build= the stage1 directly with g++, assuming (or when) it is already available. Regards --=20 Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***