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 Fri, Jul 24, 2009 at 6:10 PM, Mike Frysinger<vapier@gentoo.org> wrote:
> 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.

I could try something like it if it is acceptable.

-- 
H.J.


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