summaryrefslogtreecommitdiffstats
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-11-02 19:17:04 +0000
committerNick Clifton <nickc@redhat.com>2000-11-02 19:17:04 +0000
commitd75bb8cff629c43a78bb39d87f544f686b0aae2a (patch)
tree3c84cf26c9564137c03d2e0bf9a3d7414088161d /gas
parent6c17cfe4d24a7822efc4d9fa0488c573831adc03 (diff)
downloadppe42-binutils-d75bb8cff629c43a78bb39d87f544f686b0aae2a.tar.gz
ppe42-binutils-d75bb8cff629c43a78bb39d87f544f686b0aae2a.zip
SWitch over to using dwarf2_generate_asm_lineno
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog8
-rw-r--r--gas/config/tc-mn10300.c16
2 files changed, 9 insertions, 15 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 904db39954..a841ee4195 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,11 @@
+2000-11-02 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-mn10300.c (debug_line): Remove this static
+ varaible.
+ (md_assemble): Call dwarf2_generate_asm_lineno instead of
+ dwarf2_where and dwarf2_gen_line_info.
+
+
2000-11-02 Theo Honohan <th@futuretv.com>
* config/tc-arm.c (do_msr): Improve error message.
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index 5137bf41b8..c865b8561d 100644
--- a/gas/config/tc-mn10300.c
+++ b/gas/config/tc-mn10300.c
@@ -32,8 +32,6 @@ struct reg_name
int value;
};
-struct dwarf2_line_info debug_line;
-
/* Generic assembler global variables which must be defined by all
targets. */
@@ -1792,19 +1790,7 @@ keep_going:
}
if (debug_type == DEBUG_DWARF2)
- {
- bfd_vma addr;
-
- /* First update the notion of the current source line. */
- dwarf2_where (&debug_line);
-
- /* We want the offset of the start of this instruction within the
- the current frag. */
- addr = frag_now->fr_address + frag_now_fix () - real_size;
-
- /* And record the information. */
- dwarf2_gen_line_info (addr, &debug_line);
- }
+ dwarf2_generate_asm_lineno (real_size);
}
/* If while processing a fixup, a reloc really needs to be created
OpenPOWER on IntegriCloud