From: Jason Merrill Date: Thu, 12 Apr 2001 16:00:32 +0000 (+0000) Subject: * dwarf2dbg.c (process_entries): Don't optimize redundant line notes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb81275c7dfbb0d6d88a2e24095a81d72e82913a;p=binutils-gdb.git * dwarf2dbg.c (process_entries): Don't optimize redundant line notes. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index d75371ef84d..901e73e9280 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2001-04-12 Jason Merrill + + * dwarf2dbg.c (process_entries): Don't optimize redundant line notes. + 2001-04-12 Alexandre Oliva * expr.c (operand): Pass &c to md_parse_name(). diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index f902b153962..8607e214c0a 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -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)