From d4887adcdb8be0554c721037266edc4ad3f982cf Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 15 Jan 2001 22:53:58 +0000 Subject: Delete output file upon fatal errors. Treat multiple defintions of the same symbol as ordinary errors, not fatal ones --- gas/messages.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gas/messages.c') diff --git a/gas/messages.c b/gas/messages.c index 7af8de6..1abfb3a 100644 --- a/gas/messages.c +++ b/gas/messages.c @@ -414,6 +414,10 @@ as_fatal (const char *format, ...) vfprintf (stderr, format, args); (void) putc ('\n', stderr); va_end (args); + /* 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); xexit (EXIT_FAILURE); } #else -- cgit v1.1