PR14918, lto always links in libgcc_s.so
authorAlan Modra <amodra@gmail.com>
Wed, 6 Aug 2014 03:59:38 +0000 (13:29 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 6 Aug 2014 04:01:47 +0000 (13:31 +0930)
PR14918
* plugin.c (plugin_opt_plugin_arg): Drop --pass-through.

ld/ChangeLog
ld/plugin.c

index eca6638e27cb0c6375f0c41c8362f48b0d8fed1a..b34d360e0e8191a5dc5f38cfb6a7b08d3e351603 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR14918
+       * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
+
 2014-08-05  Alan Modra  <amodra@gmail.com>
 
        * Makefile.in: Regenerate.
index cd6ae60c9f1965c52378709d608a33a0338be75a..f10c27303104a47e7e8d6f42cfd71d1fd9aa378d 100644 (file)
@@ -217,6 +217,17 @@ plugin_opt_plugin_arg (const char *arg)
   if (!last_plugin)
     return set_plugin_error (_("<no plugin>"));
 
+  /* Ignore -pass-through= from GCC driver.  */
+  if (*arg == '-')
+    {
+      const char *p = arg + 1;
+
+      if (*p == '-')
+       ++p;
+      if (strncmp (p, "pass-through=", 13) == 0)
+       return 0;
+    }
+
   newarg = xmalloc (sizeof *newarg);
   newarg->arg = arg;
   newarg->next = NULL;