aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mn10300.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-05-14 20:01:12 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-05-14 20:01:12 +0000
commit076dc439b84ce8260c97076036200f3501bff946 (patch)
tree94013adbcae3d9d02ba9768eb5f47bad462d19e3 /gas/config/tc-mn10300.c
parent234fa6d16b6340b4051d8bcac143702fcb508f47 (diff)
downloadgdb-076dc439b84ce8260c97076036200f3501bff946.zip
gdb-076dc439b84ce8260c97076036200f3501bff946.tar.gz
gdb-076dc439b84ce8260c97076036200f3501bff946.tar.bz2
* config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
before a relaxable insns.
Diffstat (limited to 'gas/config/tc-mn10300.c')
-rw-r--r--gas/config/tc-mn10300.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index 8bda064..ab6781a 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