PR14918, lto always links in libgcc_s.so

PR14918
	* plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
This commit is contained in:
Alan Modra 2014-08-06 13:29:38 +09:30
parent c3e11cbe51
commit 97964ab320
2 changed files with 16 additions and 0 deletions

View 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.

View 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;