This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add --report-line-number-with-parentheses to linker


On Friday 24 July 2009 19:20:42 H.J. Lu wrote:
> On Fri, Jul 24, 2009 at 4:10 PM, Ian Lance Taylor wrote:
> > "H.J. Lu" writes:
> >> Some IDE expects line number in linker messages surrounded by
> >> parentheses.
> >
> > How about having people who use that IDE simply replace the linker with
> > a shell script which invokes the real ld and runs sed on the output?
>
> It is slow and sed may not be available on that platform.

sed's speed is irrelevant compared to the linking speed.  calling it "slow" in 
this context is ridiculous.

rather than add some long winded format-specific option, why dont you make it 
a flexible argument.  --line-number-format="(#)" and the # gets replaced with 
the actual line number.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]