This is the mail archive of the
mailing list for the binutils project.
Re: Commit: gas: Improve DWARF2 fixed increments
- From: nick clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Wed, 20 Mar 2013 16:47:12 +0000
- Subject: Re: Commit: gas: Improve DWARF2 fixed increments
- References: <87vc8obve3 dot fsf at redhat dot com> <20130320095254 dot GN18331 at bubble dot grove dot modra dot org>
when the target uses linker relaxation). The enhancement simply omits
the line increment if the line delta is zero and omits the address
increment if the address delta is zero.
Does the comment about GDB using duplicate line info no longer apply?
/* Don't emit sequences of line symbols for the same line when the
symbols apply to assembler code. It is necessary to emit
duplicate line symbols when a compiler asks for them, because GDB
uses them to determine the end of the prologue. */
Yes-ish. For the targets that use fixed line increments the answer is
"yes". For targets that do not use fixed line increments (which is the
majority) the answer is "I do not know". I have not checked how GDB
analyses prologues for all of these targets, so I did not propagate my
optimization to the non-fixed-line code.