Commit 1522167d by Richard Guenther Committed by Richard Biener

lto-wrapper.c (run_gcc): Remove linker output from command line for LTRANS invocation.

2010-05-08  Richard Guenther  <rguenther@suse.de>

	* lto-wrapper.c (run_gcc): Remove linker output from
	command line for LTRANS invocation.

From-SVN: r159174
parent c082f9f3
2010-05-08 Richard Guenther <rguenther@suse.de>
* lto-wrapper.c (run_gcc): Remove linker output from
command line for LTRANS invocation.
2010-05-07 Steven Bosscher <steven@gcc.gnu.org> 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
* config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
......
...@@ -369,6 +369,7 @@ run_gcc (unsigned argc, char *argv[]) ...@@ -369,6 +369,7 @@ run_gcc (unsigned argc, char *argv[])
const char *collect_gcc_options, *collect_gcc; const char *collect_gcc_options, *collect_gcc;
struct obstack env_obstack; struct obstack env_obstack;
bool seen_dumpbase = false; bool seen_dumpbase = false;
bool seen_o = false;
char *dumpbase_suffix = NULL; char *dumpbase_suffix = NULL;
unsigned j; unsigned j;
...@@ -422,6 +423,18 @@ run_gcc (unsigned argc, char *argv[]) ...@@ -422,6 +423,18 @@ run_gcc (unsigned argc, char *argv[])
dumpbase_suffix = option + 7 + j - i; dumpbase_suffix = option + 7 + j - i;
seen_dumpbase = false; seen_dumpbase = false;
} }
if (seen_o)
{
seen_o = false;
continue;
}
/* If we see -o, skip it and its argument. */
if (strncmp (option, "-o", 2) == 0)
{
seen_o = true;
continue;
}
/* LTRANS does not need -fwhopr. */ /* LTRANS does not need -fwhopr. */
if (strncmp (option, "-fwhopr", 7) != 0) if (strncmp (option, "-fwhopr", 7) != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment