re PR driver/36312 (should refuse to overwrite input file with output file)
authorAnthony Brandon <anthony.brandon@gmail.com>
Wed, 5 Nov 2014 17:23:46 +0000 (17:23 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 5 Nov 2014 17:23:46 +0000 (17:23 +0000)
commit9c7a77fcc3d2895ec72639aa7a2067280a612268
treef8a561245dafdb2b46ed8280e973df9662ea69bd
parent701cade1a260d5a78662e304a7cac0aaf2d77951
re PR driver/36312 (should refuse to overwrite input file with output file)

gcc/testsuite/ChangeLog:

2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>

PR driver/36312
* gcc.misc-tests/output.exp: New test case for identical input and
output files.

include/ChangeLog:

2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>

PR driver/36312
* filenames.h: Add prototype for canonical_filename_eq.

gcc/ChangeLog:

2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>

PR driver/36312
* diagnostic-core.h: Add prototype for fatal_error.
* diagnostic.c (fatal_error): New function fatal_error.
* gcc.c (store_arg): Remove have_o_argbuf_index.
(process_command): Check if input and output files are the same.
* toplev.c (init_asm_output): Check if input and output files are
the same.

libiberty/ChangeLog:

2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>

PR driver/36312
* filename_cmp.c (canonical_filename_eq): New function to check if
file names are the same.
* functions.texi: Updated with documentation for new function.

From-SVN: r217149
12 files changed:
gcc/ChangeLog
gcc/diagnostic-core.h
gcc/diagnostic.c
gcc/gcc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.misc-tests/output.exp [new file with mode: 0644]
gcc/toplev.c
include/ChangeLog
include/filenames.h
libiberty/ChangeLog
libiberty/filename_cmp.c
libiberty/functions.texi