From patchwork Wed Nov 20 12:30:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 292751 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9E3392C00BE for ; Wed, 20 Nov 2013 23:31:10 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=rMQlaeNN85li7i5Xh Dth3/BA9IQX0tpPux+0k2j2TPOHa09CXT/OzJZJ9qeCMT0HISDUj2eisykzlpHAf qWoKkyo4u0cFA8utmo+iXfMCgX4jnZkmG9trIALwAAWXAU26OWojPVa+GNOWs67l oKmd2ipBLjZsp9QoJJMij67JDk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=default; bh=TkmgMJIonCPs39fW2/hHskk 78GM=; b=lag+6+ND84VXVn4+HuL5iAfkVk26REuI1KPIxpYNTlRaCFrrKlKHdnN thhK0t478fTpmlrcJIYKO/41OR22kATSa2W2hfhdImBw4bOpgsNZ5cGnacYkud7j SVmMYfWCttzO8dB5PWBW+j63UafRJzMK2nr5rAg2Jo6mYhR5hcts= Received: (qmail 13972 invoked by alias); 20 Nov 2013 12:30:59 -0000 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 Received: (qmail 13956 invoked by uid 89); 20 Nov 2013 12:30:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL, BAYES_50, RDNS_NONE autolearn=no version=3.3.2 X-HELO: nikam.ms.mff.cuni.cz Received: from Unknown (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 20 Nov 2013 12:30:58 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id C98B9542F38; Wed, 20 Nov 2013 13:30:33 +0100 (CET) Date: Wed, 20 Nov 2013 13:30:33 +0100 From: Jan Hubicka To: Jan Hubicka Cc: Andreas Schwab , gcc-patches@gcc.gnu.org Subject: Re: Enale -fno-fat-lto-objects by default Message-ID: <20131120123033.GB10503@kam.mff.cuni.cz> References: <20131118180458.GH11338@kam.mff.cuni.cz> <20131120121256.GA12236@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131120121256.GA12236@kam.mff.cuni.cz> User-Agent: Mutt/1.5.20 (2009-06-14) Hi, actually the flag is being passed to the frontends instead of being consumed by the driver that makes life easier. I am testing the attached patch and will commit it as obvious if it passes (to unbreak the testing). Index: opts.c =================================================================== --- opts.c (revision 205108) +++ opts.c (working copy) @@ -809,10 +809,13 @@ finish_options (struct gcc_options *opts #else error_at (loc, "LTO support has not been enabled in this configuration"); #endif - if (!opts->x_flag_fat_lto_objects && !HAVE_LTO_PLUGIN) + if (!opts->x_flag_fat_lto_objects + && (!HAVE_LTO_PLUGIN + || (opts_set->x_flag_use_linker_plugin + && !opts->x_flag_use_linker_plugin))) { if (opts_set->x_flag_fat_lto_objects) - error_at (loc, "-fno-fat-lto-objects are supported only with linker plugin."); + error_at (loc, "-fno-fat-lto-objects are supported only with linker plugin"); opts->x_flag_fat_lto_objects = 1; } }