mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 04:25:10 +08:00
* dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
This commit is contained in:
parent
c0efbca4a3
commit
fb81275c7d
@ -1,3 +1,7 @@
|
||||
2001-04-12 Jason Merrill <jason_merrill@redhat.com>
|
||||
|
||||
* dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
|
||||
|
||||
2001-04-12 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* expr.c (operand): Pass &c to md_parse_name().
|
||||
|
@ -873,7 +873,11 @@ process_entries (seg, e)
|
||||
changed = 1;
|
||||
}
|
||||
|
||||
if (line != e->loc.line || changed)
|
||||
/* Don't try to optimize away redundant entries; gdb wants two
|
||||
entries for a function where the code starts on the same line as
|
||||
the {, and there's no way to identify that case here. Trust gcc
|
||||
to optimize appropriately. */
|
||||
if (1 /* line != e->loc.line || changed */)
|
||||
{
|
||||
int line_delta = e->loc.line - line;
|
||||
if (frag == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user