From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6683 invoked by alias); 19 Jul 2011 18:33:47 -0000 Received: (qmail 6675 invoked by uid 22791); 19 Jul 2011 18:33:46 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=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; Tue, 19 Jul 2011 18:33:33 +0000 Received: from wpaz24.hot.corp.google.com (wpaz24.hot.corp.google.com [172.24.198.88]) by smtp-out.google.com with ESMTP id p6JIXV8U000864 for ; Tue, 19 Jul 2011 11:33:31 -0700 Received: from iyn15 (iyn15.prod.google.com [10.241.52.79]) by wpaz24.hot.corp.google.com with ESMTP id p6JIWItQ018810 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 19 Jul 2011 11:33:30 -0700 Received: by iyn15 with SMTP id 15so4899173iyn.36 for ; Tue, 19 Jul 2011 11:33:29 -0700 (PDT) Received: by 10.231.203.84 with SMTP id fh20mr7043162ibb.158.1311100409585; Tue, 19 Jul 2011 11:33:29 -0700 (PDT) Received: from coign.google.com ([2620:0:1000:2301:21c:25ff:fe14:8d86]) by mx.google.com with ESMTPS id t14sm586436ibj.13.2011.07.19.11.33.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jul 2011 11:33:29 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org Cc: gcc@gcc.gnu.org Subject: Re: PATCH RFA: Build stages 2 and 3 with C++ References: Date: Tue, 19 Jul 2011 21:33:00 -0000 In-Reply-To: (Ian Lance Taylor's message of "Fri, 15 Jul 2011 23:52:46 -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=us-ascii 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/msg00349.txt.bz2 Ian Lance Taylor writes: > I would like to propose this patch as a step toward building gcc using a > C++ compiler. This 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. This means that the gcc installed and used by most people will > be built by a C++ compiler. This will ensure that gcc is fully > buildable with C++, while retaining the ability to bootstrap with only a > C compiler, not a C++ compiler. This 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 Ian Lance Taylor > > * configure.ac: Add --enable-build-poststage1-with-cxx. If set, > make C++ a boot_language. Set and substitute > POSTSTAGE1_CONFIGURE_FLAGS. > * Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): New variable. > (STAGE[+id+]_CONFIGURE_FLAGS): Add $(POSTSTAGE1_CONFIGURE_FLAGS). > * 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. Ian