* lto-wrapper.c (run_gcc): Remove linker output from
command line for LTRANS invocation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159174
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
* config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
* config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
const char *collect_gcc_options, *collect_gcc;
struct obstack env_obstack;
bool seen_dumpbase = false;
const char *collect_gcc_options, *collect_gcc;
struct obstack env_obstack;
bool seen_dumpbase = false;
char *dumpbase_suffix = NULL;
unsigned j;
char *dumpbase_suffix = NULL;
unsigned j;
dumpbase_suffix = option + 7 + j - i;
seen_dumpbase = false;
}
dumpbase_suffix = option + 7 + j - i;
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. */
if (strncmp (option, "-fwhopr", 7) != 0)
/* LTRANS does not need -fwhopr. */
if (strncmp (option, "-fwhopr", 7) != 0)