diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-02 15:17:45 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-02 15:17:45 +0000 |
commit | 473b39e749c43bbac18af0f7be22e0b2abb48e42 (patch) | |
tree | f5bedd667b23309956b2154486b16b9068eb1ef6 /gcc/lto-wrapper.c | |
parent | 00fc5e9d279e07d29741de257413ff6c0abe42a6 (diff) | |
download | gcc-473b39e749c43bbac18af0f7be22e0b2abb48e42.tar.gz |
2011-02-02 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 169522
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@169528 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r-- | gcc/lto-wrapper.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 6f106a31f45..613c7b054df 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -392,6 +392,7 @@ run_gcc (unsigned argc, char *argv[]) if (linker_output) { char *output_dir, *base, *name; + bool bit_bucket = strcmp (linker_output, HOST_BIT_BUCKET) == 0; output_dir = xstrdup (linker_output); base = output_dir; @@ -406,8 +407,11 @@ run_gcc (unsigned argc, char *argv[]) static char current_dir[] = { '.', DIR_SEPARATOR, '\0' }; output_dir = current_dir; } - *argv_ptr++ = "-dumpdir"; - *argv_ptr++ = output_dir; + if (!bit_bucket) + { + *argv_ptr++ = "-dumpdir"; + *argv_ptr++ = output_dir; + } *argv_ptr++ = "-dumpbase"; } |