From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24238 invoked by alias); 20 Jul 2011 00:26:28 -0000 Received: (qmail 24187 invoked by uid 22791); 20 Jul 2011 00:26:24 -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-qy0-f182.google.com (HELO mail-qy0-f182.google.com) (209.85.216.182) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jul 2011 00:26:10 +0000 Received: by qyk38 with SMTP id 38so2836041qyk.20 for ; Tue, 19 Jul 2011 17:26:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.249.5 with SMTP id mi5mr6388929qcb.124.1311121569002; Tue, 19 Jul 2011 17:26:09 -0700 (PDT) Received: by 10.229.190.16 with HTTP; Tue, 19 Jul 2011 17:26:08 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Jul 2011 00:46:00 -0000 Message-ID: Subject: Re: PATCH RFA: Build stages 2 and 3 with C++ From: "H.J. Lu" To: Ian Lance Taylor Cc: gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org 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/msg00367.txt.bz2 On Tue, Jul 19, 2011 at 11:33 AM, Ian Lance Taylor wrote: > Ian Lance Taylor writes: > >> 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 during >> stage 1. =A0This means that the gcc installed and used by most people wi= ll >> be built by a C++ compiler. =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. =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++. >> >> This is a big step, so I am sending the patch to both gcc@ and >> gcc-patches@ for comments. >> >> Bootstrapped and ran testsuite on x86_64-unknown-linux-gnu. >> >> Ian >> >> >> 2011-07-15 =A0Ian Lance Taylor =A0 >> >> =A0 =A0 =A0 * configure.ac: Add --enable-build-poststage1-with-cxx. =A0I= f set, >> =A0 =A0 =A0 make C++ a boot_language. =A0Set and substitute >> =A0 =A0 =A0 POSTSTAGE1_CONFIGURE_FLAGS. >> =A0 =A0 =A0 * Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): New variable. >> =A0 =A0 =A0 (STAGE[+id+]_CONFIGURE_FLAGS): Add $(POSTSTAGE1_CONFIGURE_FL= AGS). >> =A0 =A0 =A0 * configure, Makefile.in: Rebuild. > > > I got agreement from two global reviewers and no objections. > > I have committed this patch. > > Please let me know about any problems. It caused: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49787 --=20 H.J.