diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-19 18:11:54 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-19 18:11:54 +0000 |
commit | 25dbe4c7d68440a4caf6ad5b37d62f4b746760ca (patch) | |
tree | 0690a3599553e53757cc482d3b100c50431a782a /gcc/toplev.c | |
parent | 394aed6ae6ff5a55e5d61488410af5f1677818e0 (diff) | |
download | gcc-25dbe4c7d68440a4caf6ad5b37d62f4b746760ca.tar.gz |
PR driver/36312
PR driver/63837
* gcc.c (process_command): Don't check for input/output
filename equality if output is HOST_BIT_BUCKET.
* toplev.c (init_asm_output): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217789 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 2e480471d6b..86c4b81b3ae 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -945,7 +945,8 @@ init_asm_output (const char *name) } if (!strcmp (asm_file_name, "-")) asm_out_file = stdout; - else if (!canonical_filename_eq (asm_file_name, name)) + else if (!canonical_filename_eq (asm_file_name, name) + || !strcmp (asm_file_name, HOST_BIT_BUCKET)) asm_out_file = fopen (asm_file_name, "w"); else /* Use fatal_error (UNKOWN_LOCATION) instead of just fatal_error to |