From: Alexandre Oliva Date: Mon, 14 May 2001 20:01:12 +0000 (+0000) Subject: * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=076dc439b84ce8260c97076036200f3501bff946;p=binutils-gdb.git * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info before a relaxable insns. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 022709c876f..3c725a39abe 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-05-14 Alexandre Oliva + + * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info + before a relaxable insns. + 2001-05-13 Alexandre Oliva * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c index 8bda0649e2d..ab6781a5405 100644 --- a/gas/config/tc-mn10300.c +++ b/gas/config/tc-mn10300.c @@ -1517,6 +1517,13 @@ keep_going: { int type; + /* We want to anchor the line info to the previous frag (if + there isn't one, create it), so that, when the insn is + resized, we still get the right address for the beginning of + the region. */ + f = frag_more (0); + dwarf2_emit_insn (0); + /* bCC */ if (size == 2) { @@ -1770,9 +1777,9 @@ keep_going: fixP->fx_offset += offset; } } - } - dwarf2_emit_insn (size); + dwarf2_emit_insn (size); + } } /* If while processing a fixup, a reloc really needs to be created