From 732d96b6ca8092cee2893de8aa1f66a5210b23ea Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 21 Nov 2000 12:40:14 +0000 Subject: [PATCH] * config/tc-sparc.c (md_pseudo_table): Add .file and .loc. (output_insn): Call dwarf2_emit_insn. --- gas/ChangeLog | 5 +++++ gas/config/tc-sparc.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index e4682326042..e05c824cb07 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-11-21 Jakub Jelinek + + * config/tc-sparc.c (md_pseudo_table): Add .file and .loc. + (output_insn): Call dwarf2_emit_insn. + 2000-11-17 Richard Henderson * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index 7b577b19cd9..e1338895dad 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -28,6 +28,7 @@ #ifdef OBJ_ELF #include "elf/sparc.h" +#include "dwarf2dbg.h" #endif static struct sparc_arch *lookup_arch PARAMS ((char *)); @@ -151,6 +152,8 @@ const pseudo_typeS md_pseudo_table[] = {"uaword", s_uacons, 4}, {"uaxword", s_uacons, 8}, #ifdef OBJ_ELF + {"file", dwarf2_directive_file, 0}, + {"loc", dwarf2_directive_loc, 0}, /* These are specific to sparc/svr4. */ {"2byte", s_uacons, 2}, {"4byte", s_uacons, 4}, @@ -2769,6 +2772,10 @@ output_insn (insn, the_insn) last_insn = insn; last_opcode = the_insn->opcode; + +#ifdef OBJ_ELF + dwarf2_emit_insn (4); +#endif } /* This is identical to the md_atof in m68k.c. I think this is right, -- 2.30.2