diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-11-19 18:11:54 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-11-19 19:11:54 +0100 |
commit | 92c66d8311bb83157dbbf0008f750e12761d5296 (patch) | |
tree | 0690a3599553e53757cc482d3b100c50431a782a /gcc/gcc.c | |
parent | 0162cb3bb7832f02c355503a04c3d443035bdda4 (diff) | |
download | gcc-92c66d8311bb83157dbbf0008f750e12761d5296.zip gcc-92c66d8311bb83157dbbf0008f750e12761d5296.tar.gz gcc-92c66d8311bb83157dbbf0008f750e12761d5296.tar.bz2 |
re PR driver/36312 (should refuse to overwrite input file with output file)
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.
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r217789
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4155,7 +4155,9 @@ process_command (unsigned int decoded_options_count, CL_DRIVER, &handlers, global_dc); } - if (output_file && strcmp (output_file, "-")) + if (output_file + && strcmp (output_file, "-") != 0 + && strcmp (output_file, HOST_BIT_BUCKET) != 0) { int i; for (i = 0; i < n_infiles; i++) |