[patch] ld: optimize vfinfo output slightly
Mike Frysinger
vapier@gentoo.org
Sat Mar 24 17:18:00 GMT 2012
On Saturday 24 March 2012 05:47:48 Andreas Schwab wrote:
> Mike Frysinger <vapier@gentoo.org> writes:
> > + size_t len = fmt - str;
> > +
> > + if (fwrite (str, 1, len, fp) != len)
> > + abort ();
>
> Write errors should either be handled or ignored, but aborting is not
> the right thing (it's not an internal error).
so just do something like the following ?
if (fwrite (str, 1, len, fp) != len)
{
/* Ignore. */
}
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20120324/2c330566/attachment.sig>
More information about the Binutils
mailing list