From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 343 invoked by alias); 16 Jul 2011 06:56:43 -0000 Received: (qmail 327 invoked by uid 22791); 16 Jul 2011 06:56:41 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iw0-f175.google.com (HELO mail-iw0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Jul 2011 06:56:26 +0000 Received: by iwn4 with SMTP id 4so2001749iwn.20 for ; Fri, 15 Jul 2011 23:56:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.168.133 with SMTP id w5mr4269569icy.118.1310799385722; Fri, 15 Jul 2011 23:56:25 -0700 (PDT) Received: by 10.42.220.201 with HTTP; Fri, 15 Jul 2011 23:56:25 -0700 (PDT) In-Reply-To: References: Date: Sat, 16 Jul 2011 07:05:00 -0000 Message-ID: Subject: Re: PATCH RFA: Build stages 2 and 3 with C++ From: Andrew Pinski To: Ian Lance Taylor Cc: gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 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/msg00264.txt.bz2 On Fri, Jul 15, 2011 at 11:52 PM, Ian Lance Taylor wrote: > 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 usual, > 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 w= ith > 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