Deleting File in as_fatal
Alan Modra
amodra@bigpond.net.au
Mon Nov 2 02:01:00 GMT 2009
On Thu, Oct 29, 2009 at 08:01:02AM -0700, Evandro Menezes wrote:
> So, shouldn't it include the couple of lines from the version of as_fatal () when USE_STDARG is defined?
Indeed. Applied.
* messages.c (as_fatal): Apply 2001-01-15 change and followup
to second copy of function.
Index: gas/messages.c
===================================================================
RCS file: /cvs/src/src/gas/messages.c,v
retrieving revision 1.21
diff -u -p -r1.21 messages.c
--- gas/messages.c 30 Jul 2008 04:34:57 -0000 1.21
+++ gas/messages.c 2 Nov 2009 01:59:15 -0000
@@ -383,6 +383,8 @@ as_fatal (format, va_alist)
vfprintf (stderr, format, args);
(void) putc ('\n', stderr);
va_end (args);
+ if (out_file_name != NULL)
+ unlink_if_ordinary (out_file_name);
xexit (EXIT_FAILURE);
}
#endif /* not NO_STDARG */
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list