From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21371 invoked by alias); 16 Jul 2011 07:05:20 -0000 Received: (qmail 21360 invoked by uid 22791); 16 Jul 2011 07:05:19 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Jul 2011 07:05:05 +0000 Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id p6G753K9029911 for ; Sat, 16 Jul 2011 00:05:03 -0700 Received: from iwn39 (iwn39.prod.google.com [10.241.68.103]) by kpbe12.cbf.corp.google.com with ESMTP id p6G751od005471 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 16 Jul 2011 00:05:01 -0700 Received: by iwn39 with SMTP id 39so1649613iwn.3 for ; Sat, 16 Jul 2011 00:05:01 -0700 (PDT) Received: by 10.42.243.2 with SMTP id lk2mr801900icb.252.1310799901224; Sat, 16 Jul 2011 00:05:01 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id hq1sm2317728icc.2.2011.07.16.00.04.59 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Jul 2011 00:05:00 -0700 (PDT) From: Ian Lance Taylor To: Andrew Pinski Cc: gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org Subject: Re: PATCH RFA: Build stages 2 and 3 with C++ References: Date: Sat, 16 Jul 2011 07:48:00 -0000 In-Reply-To: (Andrew Pinski's message of "Fri, 15 Jul 2011 23:56:25 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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/msg00265.txt.bz2 Andrew Pinski writes: > On Fri, Jul 15, 2011 at 11:52 PM, Ian Lance Taylor wrot= e: >> I would like to propose this patch as a step toward building gcc using a >> C++ compiler. =C2=A0This patch builds stage1 with the C compiler as usua= l, >> and defaults to building stages 2 and 3 with a C++ compiler built during >> stage 1. =C2=A0This means that the gcc installed and used by most people= will >> be built by a C++ compiler. =C2=A0This will ensure that gcc is fully >> buildable with C++, while retaining the ability to bootstrap with only a >> C compiler, not a C++ compiler. =C2=A0This 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. 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. Ian