This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Deleting File in as_fatal
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Evandro Menezes <evandro at yahoo dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 2 Nov 2009 12:31:23 +1030
- Subject: Re: Deleting File in as_fatal
- References: <488464.16891.qm@web110611.mail.gq1.yahoo.com> <20091027230250.GA8111@bubble.grove.modra.org> <20091027230530.GB8111@bubble.grove.modra.org> <27610.89813.qm@web110611.mail.gq1.yahoo.com>
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