From patchwork Mon Oct 11 10:17:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 67405 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 50441B70A5 for ; Mon, 11 Oct 2010 21:17:57 +1100 (EST) Received: (qmail 20510 invoked by alias); 11 Oct 2010 10:17:55 -0000 Received: (qmail 20500 invoked by uid 22791); 11 Oct 2010 10:17:54 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from one.firstfloor.org (HELO one.firstfloor.org) (213.235.205.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Oct 2010 10:17:48 +0000 Received: from basil.firstfloor.org (p5B3C9709.dip0.t-ipconnect.de [91.60.151.9]) by one.firstfloor.org (Postfix) with ESMTP id 4F035200015; Mon, 11 Oct 2010 12:17:45 +0200 (CEST) Received: by basil.firstfloor.org (Postfix, from userid 1000) id 823C1DF4D3; Mon, 11 Oct 2010 12:17:44 +0200 (CEST) From: Andi Kleen To: gcc-patches@gcc.gnu.org Cc: hubicka@ucw.cz, Andi Kleen Subject: [PATCH 2/3] Add bootstrap-lto-slim build config Date: Mon, 11 Oct 2010 12:17:42 +0200 Message-Id: <1286792263-9244-2-git-send-email-andi@firstfloor.org> In-Reply-To: <1286792263-9244-1-git-send-email-andi@firstfloor.org> References: <1286792263-9244-1-git-send-email-andi@firstfloor.org> 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 From: Andi Kleen / 2010-10-03 Andi Kleen * config/bootstrap-lto-slim.mk: Add. gcc/ 2010-10-03 Andi Kleen * doc/install.texi (bootstrap-lto-slim): Document. --- config/bootstrap-lto-slim.mk | 8 ++++++++ gcc/doc/install.texi | 3 +++ 2 files changed, 11 insertions(+), 0 deletions(-) create mode 100644 config/bootstrap-lto-slim.mk diff --git a/config/bootstrap-lto-slim.mk b/config/bootstrap-lto-slim.mk new file mode 100644 index 0000000..af08db4 --- /dev/null +++ b/config/bootstrap-lto-slim.mk @@ -0,0 +1,8 @@ +# This option enables LTO slim for stage2 and stage3. It requires lto to +# be enabled for stage1 with --enable-stage1-languages. + +STAGE2_CFLAGS += -fwhopr=jobserver -fuse-linker-plugin -frandom-seed=1 -flto-slim +STAGE3_CFLAGS += -fwhopr=jobserver -fuse-linker-plugin -frandom-seed=1 -flto-slim + +# Ada fails to build with LTO, turn it off for now. +BOOT_ADAFLAGS += -fno-lto diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index ce6b5cf..0ef8e60 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -2197,6 +2197,9 @@ Enables Link-Time Optimization for host tools during bootstrapping. @samp{BUILD_CONFIG=bootstrap-lto} is equivalent to adding @option{-flto} to @samp{BOOT_CFLAGS}. +@item @samp{bootstrap-lto-slim} +Analogous to @code{bootstrap-lto}. + @item @samp{bootstrap-debug} Verifies that the compiler generates the same executable code, whether or not it is asked to emit debug information. To this end, this