Add -flto and -flto-partition=.
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 6 Dec 2010 23:35:13 +0000 (23:35 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 6 Dec 2010 23:35:13 +0000 (23:35 +0000)
2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>

* lexsup.c (ld_options): Add -flto and -flto-partition= for
GCC LTO option compatibility.

ld/ChangeLog
ld/lexsup.c

index 16a134ad2610745e1c37b34cef9af0027b1fd57c..10836b053f0e8b6a1ee58f35b70f3516c49c6ab0 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * lexsup.c (ld_options): Add -flto and -flto-partition= for
+       GCC LTO option compatibility.
+
 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/12288
index e4356bc20032182ab72cd115eef0334491640427..acb63fb9da49e699e0176d348310578d8b6a7b53 100644 (file)
@@ -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 },