public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Add -flto and -flto-partition= to ld
@ 2010-12-06  4:03 H.J. Lu
  2010-12-06 23:33 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2010-12-06  4:03 UTC (permalink / raw)
  To: binutils

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  <hongjiu.lu@intel.com>
 
	* 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 },

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: Add -flto and -flto-partition= to ld
  2010-12-06  4:03 PATCH: Add -flto and -flto-partition= to ld H.J. Lu
@ 2010-12-06 23:33 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2010-12-06 23:33 UTC (permalink / raw)
  To: H.J. Lu; +Cc: binutils

On Sun, Dec 05, 2010 at 08:03:36PM -0800, H.J. Lu wrote:
> 	* lexsup.c (ld_options): Add -flto and -flto-partition= for
> 	GCC LTO option compatibility.

OK.

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-06 23:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-06  4:03 PATCH: Add -flto and -flto-partition= to ld H.J. Lu
2010-12-06 23:33 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).