From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21872 invoked by alias); 20 Jul 2011 00:46:33 -0000 Received: (qmail 21851 invoked by uid 22791); 20 Jul 2011 00:46:32 -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-qw0-f47.google.com (HELO mail-qw0-f47.google.com) (209.85.216.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jul 2011 00:46:18 +0000 Received: by qwh5 with SMTP id 5so2668593qwh.20 for ; Tue, 19 Jul 2011 17:46:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.27.198 with SMTP id j6mr6530589qcc.10.1311122777284; Tue, 19 Jul 2011 17:46:17 -0700 (PDT) Received: by 10.229.190.16 with HTTP; Tue, 19 Jul 2011 17:46:17 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Jul 2011 01:15: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/msg00368.txt.bz2 On Tue, Jul 19, 2011 at 5:26 PM, H.J. Lu wrote: > On Tue, Jul 19, 2011 at 11:33 AM, Ian Lance Taylor wrot= e: >> 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 w= ill >>> 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 wi= th >>> 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. =A0= If 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_F= LAGS). >>> =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 It also caused: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49786 --=20 H.J.