summaryrefslogtreecommitdiff
path: root/gas/messages.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2005-03-02 09:03:58 +0000
committerJan Beulich <jbeulich@novell.com>2005-03-02 09:03:58 +0000
commit9914c763416d7a639d254d232f77576d17923234 (patch)
tree41c7856df41a1b632c3c04734f451f77571bd808 /gas/messages.c
parenta008dd19e94a7e7aff023f0a94e256741c5b1ebe (diff)
downloadbinutils-redhat-9914c763416d7a639d254d232f77576d17923234.tar.gz
bfd/
2005-03-02 Jan Beulich <jbeulich@novell.com> * Makefile.am: Add dependency of cache.o on libiberty.h. * cache.c: Include libiberty.h. (bfd_open_file): Use unlink_if_ordinary instead of unlink. binutils/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * ar.c (remove_output): Use unlink_if_ordinary instead of unlink. * objcopy.c (copy_file): Likewise. (strip_main): Likewise. gas/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * as.c (main): Use unlink_if_ordinary instead of unlink. * messages.c (as_fatal): Likewise. ld/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink. * pe-dll.c (pe_dll_generate_implib): Likewise.
Diffstat (limited to 'gas/messages.c')
-rw-r--r--gas/messages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/messages.c b/gas/messages.c
index 866565dee2..39842e9954 100644
--- a/gas/messages.c
+++ b/gas/messages.c
@@ -412,7 +412,7 @@ as_fatal (const char *format, ...)
/* Delete the output file, if it exists. This will prevent make from
thinking that a file was created and hence does not need rebuilding. */
if (out_file_name != NULL)
- unlink (out_file_name);
+ unlink_if_ordinary (out_file_name);
xexit (EXIT_FAILURE);
}
#else