From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5997 invoked by alias); 29 Nov 2015 20:03:23 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 5988 invoked by uid 89); 29 Nov 2015 20:03:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 29 Nov 2015 20:03:21 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id A01F7542896; Sun, 29 Nov 2015 21:03:17 +0100 (CET) Date: Sun, 29 Nov 2015 21:15:00 -0000 From: Jan Hubicka To: Tom de Vries Cc: Ilya Verbin , Jan Hubicka , "H.J. Lu" , Richard Biener , GCC Patches , Andi Kleen , Cary Coutant , Ian Lance Taylor , Kirill Yukhin Subject: Re: [RFC] Getting LTO incremental linking work Message-ID: <20151129200317.GB10284@kam.mff.cuni.cz> References: <20151125085912.GD58491@kam.mff.cuni.cz> <20151125191740.GB5371@kam.mff.cuni.cz> <20151125230758.GF20593@kam.mff.cuni.cz> <5659757A.2080700@mentor.com> <56598994.2010703@mentor.com> <5659D60E.3080406@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5659D60E.3080406@mentor.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2015-11/txt/msg03435.txt.bz2 > > 2015-11-28 Tom de Vries > > * lto-wrapper.c (run_gcc): Handle -flinker-output argument. Thanks, this looks fine to me. THe way options are handled in lto-wrapper seems like a gross hack. Hopefully we will manage to clean this up eventually. What happens when I call one of input objects -fresolution=.o? Honza > > --- > gcc/lto-wrapper.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c > index b9ac535..e4772d1 100644 > --- a/gcc/lto-wrapper.c > +++ b/gcc/lto-wrapper.c > @@ -1096,7 +1096,10 @@ run_gcc (unsigned argc, char *argv[]) > if (have_offload && !have_lto) > { > for (i = 1; i < argc; ++i) > - if (strncmp (argv[i], "-fresolution=", sizeof ("-fresolution=") - 1)) > + if (strncmp (argv[i], "-fresolution=", > + sizeof ("-fresolution=") - 1) != 0 > + && strncmp (argv[i], "-flinker-output=", > + sizeof ("-flinker-output=") - 1) != 0) > { > char *out_file; > /* Can be ".o" or ".so". */