This is the mail archive of the binutils@sources.redhat.com 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: curious check in dwarf2_gen_line_info()


On Wed, Dec 29, 2004 at 10:50:55AM -0800, David Mosberger wrote:
> >>>>> On Wed, 29 Dec 2004 10:33:32 -0800, Geoff Keating <geoffk@geoffk.org> said:
> 
>   Geoff> The overhead of the duplicates should not be very significant
>   Geoff> (compared to the information that is required), because the
>   Geoff> compiler should already be suppressing duplicate line
>   Geoff> information except where it is needed.
> 
> Ah, there are multiple issues here: you're assuming that
> dwarf2_gen_line_info() is only called once per loc-directive, but this
> isn't true for tc-ia64.c, which calls dwarf2_gen_line_info() for each
> instruction, no matter what.
> 
> I'll check gdb to see if it gets any new failures on ia64 with the
> duplicate line info removed.

It almost certainly will.  The issue hasn't been fixed; Geoff described
the problems pretty accurately.

[For dwarf2 we should be emitting explicit prologue end markers, and
THEN the hack could go away.  But that's a whole other story.]

-- 
Daniel Jacobowitz


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