This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: curious check in dwarf2_gen_line_info()
- From: David Mosberger <davidm at napali dot hpl dot hp dot com>
- To: Geoff Keating <geoffk at geoffk dot org>
- Cc: davidm at hpl dot hp dot com, binutils at sources dot redhat dot com,davidm at napali dot hpl dot hp dot com
- Date: Wed, 29 Dec 2004 10:50:55 -0800
- Subject: Re: curious check in dwarf2_gen_line_info()
- References: <16850.33143.199264.751617@napali.hpl.hp.com><2478F3AA-59C8-11D9-937B-000A95B1F520@geoffk.org>
- Reply-to: davidm at hpl dot hp dot com
>>>>> 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