curious check in dwarf2_gen_line_info()

David Mosberger davidm@napali.hpl.hp.com
Wed Dec 29 18:51:00 GMT 2004


>>>>> 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.

	--david



More information about the Binutils mailing list