diff options
author | Jason Merrill <jason@redhat.com> | 2001-04-12 16:00:32 +0000 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2001-04-12 16:00:32 +0000 |
commit | fb81275c7dfbb0d6d88a2e24095a81d72e82913a (patch) | |
tree | 6b2092488d2893bd525052ee266e6d6515105636 /gas | |
parent | c0efbca4a368289fc4a8cc9a050668d06c07a46d (diff) | |
download | gdb-fb81275c7dfbb0d6d88a2e24095a81d72e82913a.zip gdb-fb81275c7dfbb0d6d88a2e24095a81d72e82913a.tar.gz gdb-fb81275c7dfbb0d6d88a2e24095a81d72e82913a.tar.bz2 |
* dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/dwarf2dbg.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index d75371e..901e73e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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(). diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index f902b15..8607e21 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) |