summaryrefslogtreecommitdiff
path: root/gas/messages.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/messages.c')
-rw-r--r--gas/messages.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/messages.c b/gas/messages.c
index 7af8de69f56..1abfb3ac3b6 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