From patchwork Tue Dec 18 15:58:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aldy Hernandez X-Patchwork-Id: 207150 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id A16432C007D for ; Wed, 19 Dec 2012 02:58:57 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1356451137; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=pPIr2UBOakif+WOXcQT/oGMn+0Y=; b=umo8AsG94HUNY+E 8Ih/R3mZ79O8/kPQlYy0QzEMyAZ788jJ/7Ygd2oZhDiJ+H06PfsGFwNbUPmyOZLg AMBjJUf7uqNgZY5CB2moq2LfviYaVJZJSBuCVUDDGuWLE6PQeBIpDq/CXqU8txFI GYy/qjr4afAi7Lj43Q11/vlCQUz4= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=tgdk+tbV2vhDO4MZUEw63/fJUhZJ4+fWLsohCLuRWPO6vCnTg/BhIvfDlobxTb XuAnhYSBnoS9UK8r8slUtdT44RSurGQyRzCibeHbKqLmk7700PnotcCySSrS5N5u oJ3csnGJ9Z2xshOXSW6BFuqrIvat/y07o3KwYNw6rBi1M=; Received: (qmail 13337 invoked by alias); 18 Dec 2012 15:58:46 -0000 Received: (qmail 13322 invoked by uid 22791); 18 Dec 2012 15:58:45 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Dec 2012 15:58:05 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBIFw45s024041 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Dec 2012 10:58:04 -0500 Received: from houston.quesejoda.com (vpn-10-149.rdu.redhat.com [10.11.10.149]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qBIFw3gw021974; Tue, 18 Dec 2012 10:58:03 -0500 Message-ID: <50D0928B.5020900@redhat.com> Date: Tue, 18 Dec 2012 09:58:03 -0600 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Richard Biener CC: gcc-patches , tejohnson@gcc.gnu.org Subject: Re: PR other/54324: allow bootstrapping with older compilers References: <50C8111E.9020103@redhat.com> In-Reply-To: Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org On 12/12/12 03:33, Richard Biener wrote: > On Tue, 11 Dec 2012, Aldy Hernandez wrote: >> 4. Type checking as part of a `for' initializer segfaults on g++ 3.2: >> >> for (type = TYPE_MAIN_VARIANT (blah); ....) >> >> The only reasonable thing I could think of, was disabling the tree >> checking code for older compilers. > blocker anyway. For 4. I think we should simply document that > you need to build with --disable-stage1-checking (it's one case that > hints at we don't want to support 3.2 - does 3.3 work here? With > our SLE9 gcc 3.3 hammer branch based compiler I get even some more > ICEs). Hi Richard. Attached is a patch documenting --disable-stage1-checking for older GCC's with a suggested discouragement. OK for trunk? commit da7964f82e42499dde24e7029b4454637ae68e85 Author: Aldy Hernandez Date: Tue Dec 18 09:55:39 2012 -0600 PR other/54324 * doc/install.texi (Tools/packages necessary for building GCC): Suggest --disable-stage1-checking for older GCC's. diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index e534216..8273a87 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -254,6 +254,11 @@ To build all languages in a cross-compiler or other configuration where GCC binary (version 3.4 or later) because source code for language frontends other than C might use GCC extensions. +Note that to bootstrap GCC with versions of GCC earlier than 3.4, you +may need to use @option{--disable-stage1-checking}, though +bootstrapping the compiler with such earlier compilers is strongly +discouraged. + @item GNAT In order to build the Ada compiler (GNAT) you must already have GNAT