From patchwork Mon Dec 10 13:53:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Klose X-Patchwork-Id: 204880 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 975452C00D6 for ; Tue, 11 Dec 2012 00:53:53 +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=1355752433; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=J7zN1ZJkfmFef+1mdhs/fL+caI8=; b=Vj4PnfsoVtpiSER IQlYpoo2HrEKBhGm9L8zZeDjg2jO0WToI82IBK94hLUAt26z3MkAFlLZDXlN/HfB kDtg4KJOmbBlYyhzMWFRErxuc+5gsYGmxreaEZxv1GeHNpbKHgs+n+F/6SC1VU+J Xb2EOzSL6b80qr16D/GiJMXRe5dI= 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:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=xE4OXhsK++eXXFXlva7+FAUDm3ehseH1pUqIOM00VLvcL8fuIgqXb5oFXX55kO eiAOncxisB77VhdnfZhZIIPb/4dKt9+qqydwOZ7YtboJD03SR7gB4vM8G8VFh1Hv Lcj0CmJr91qMiZfFPgqT9chtFrROwl0aoQqvwWgQ6gPds=; Received: (qmail 24316 invoked by alias); 10 Dec 2012 13:53:42 -0000 Received: (qmail 24295 invoked by uid 22791); 10 Dec 2012 13:53:39 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_DNSWL_LOW, TW_CX, TW_DC X-Spam-Check-By: sourceware.org Received: from youngberry.canonical.com (HELO youngberry.canonical.com) (91.189.89.112) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Dec 2012 13:53:35 +0000 Received: from dslb-088-073-119-085.pools.arcor-ip.net ([88.73.119.85] helo=[192.168.42.216]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Ti3nZ-00062l-HH for gcc-patches@gcc.gnu.org; Mon, 10 Dec 2012 13:53:33 +0000 Message-ID: <50C5E95A.9070708@ubuntu.com> Date: Mon, 10 Dec 2012 14:53:30 +0100 From: Matthias Klose User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: Re: [patch] don't build multilib libraries during bootstrap, and disable some libstdc++ features References: <50C5D288.8010000@ubuntu.com> In-Reply-To: <50C5D288.8010000@ubuntu.com> 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 Am 10.12.2012 13:16, schrieb Matthias Klose: > During bootstrap some things are built which are not required for the bootstrap: > > - multilib libraries > - libstdc++ debug library, when configured with --enable-libstdcxx-debug > - libstdc++ precompiled header files > > The attached patch disables building these during the bootstrap stages. The > additional dependencies on all-target-libgcc are necessary for multilib'd > builds, or else the configury bails out finding the wrong libgcc. I can't see a > way to add these dependencies for the multilib enabled build only. Here is a reduced version which keeps building the multilibs, maybe better suited for stage3. Matthias Index: Makefile.tpl =================================================================== --- Makefile.tpl (Revision 194357) +++ Makefile.tpl (Arbeitskopie) @@ -1060,7 +1060,9 @@ --target=[+target_alias+] $${srcdiroption} [+ IF prev +]\ --with-build-libsubdir=$(HOST_SUBDIR) [+ ENDIF prev +]\ $(STAGE[+id+]_CONFIGURE_FLAGS)[+ IF extra_configure_flags +] \ - [+extra_configure_flags+][+ ENDIF extra_configure_flags +] + [+extra_configure_flags+][+ ENDIF extra_configure_flags +] \ + [+ IF bootstrap_configure_flags +][+bootstrap_configure_flags+] \ + [+ ENDIF bootstrap_configure_flags +] @endif [+prefix+][+module+]-bootstrap [+ ENDFOR bootstrap_stage +] [+ ENDIF bootstrap +] Index: Makefile.def =================================================================== --- Makefile.def (Revision 194357) +++ Makefile.def (Arbeitskopie) @@ -117,7 +117,8 @@ target_modules = { module= libstdc++-v3; bootstrap=true; lib_path=src/.libs; - raw_cxx=true; }; + raw_cxx=true; + bootstrap_configure_flags='--disable-libstdcxx-debug --disable-libstdcxx-pch'; }; target_modules = { module= libmudflap; lib_path=.libs; }; target_modules = { module= libsanitizer; lib_path=.libs; }; target_modules = { module= libssp; lib_path=.libs; };