From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19509 invoked by alias); 6 Dec 2010 04:03:44 -0000 Received: (qmail 19496 invoked by uid 22791); 6 Dec 2010 04:03:43 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_50,NO_DNS_FOR_FROM,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga09.intel.com (HELO mga09.intel.com) (134.134.136.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Dec 2010 04:03:38 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 05 Dec 2010 20:03:36 -0800 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by orsmga002.jf.intel.com with ESMTP; 05 Dec 2010 20:03:36 -0800 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 161EA180874; Sun, 5 Dec 2010 20:03:36 -0800 (PST) Date: Mon, 06 Dec 2010 04:03:00 -0000 From: "H.J. Lu" To: binutils@sourceware.org Subject: PATCH: Add -flto and -flto-partition= to ld Message-ID: <20101206040335.GA25558@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00210.txt.bz2 Hi, collect-ld may be called with -flto and -flto-partition= options. This patch adds them to ld so that we can debug ld plugin by cuting/pasting the the same command line passed to collect-ld. OK to install? Thanks. H.J. ---- 2010-12-05 H.J. Lu * lexsup.c (ld_options): Add -flto and -flto-partition= for GCC LTO option compatibility. diff --git a/ld/lexsup.c b/ld/lexsup.c index 722bbf6..94fa2cd 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -283,6 +283,12 @@ static const struct ld_option ld_options[] = '\0', N_("PLUGIN"), N_("Load named plugin"), ONE_DASH }, { {"plugin-opt", required_argument, NULL, OPTION_PLUGIN_OPT}, '\0', N_("ARG"), N_("Send arg to last-loaded plugin"), ONE_DASH }, + { {"flto", optional_argument, NULL, OPTION_IGNORE}, + '\0', NULL, N_("Ignored for GCC LTO option compatibility"), + ONE_DASH }, + { {"flto-partition=", required_argument, NULL, OPTION_IGNORE}, + '\0', NULL, N_("Ignored for GCC LTO option compatibility"), + ONE_DASH }, #endif /* ENABLE_PLUGINS */ { {"Qy", no_argument, NULL, OPTION_IGNORE}, '\0', NULL, N_("Ignored for SVR4 compatibility"), ONE_DASH },