This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold patch rfa] print "error: " in front of error messages
- From: Ian Lance Taylor <iant at google dot com>
- To: Chris Demetriou <cgd at google dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 04 Feb 2009 22:17:21 -0800
- Subject: Re: [gold patch rfa] print "error: " in front of error messages
- References: <2e7be40c0902042135y5726f170ofabc2d4bd15c4961@mail.gmail.com>
Chris Demetriou <cgd@google.com> writes:
> I've been trying to fish gold error messages out of logs lately, and
> that's made more difficult by the fact that they're not consistently
> marked.
>
> the attached patch adds "error: " in front of the formatted message
> for 'error' and 'fatal' errors. (Warnings have "warning: " already.)
My original intent was that anything that gold prints, which does not
say "warning", is an error. It's true that gold_info() doesn't say
"warning", but that is only used for specific options where the output
should be clear. I think this behaviour is consistent with GNU ld,
not that we have to be consistent.
Can you give an example of the kind of output you are getting that is
hard to work with?
Ian