From d13e8fcc3342c4ff1c868d60b7ea591792c7d425 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 13 Jun 2001 16:46:05 +0000 Subject: [PATCH] Stop sh-coff port from trying to call dwarf2 debug functions --- gas/ChangeLog | 4 ++++ gas/config/tc-sh.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index ea92175da5..e4a4bf9282 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 2001-06-13 Nick Clifton + * config/tc-sh.c (md_pseudo_table): Only intercept the .file and + .loc pseudos if the dfwarf2 functions are available. + (md_assemble): Only call dwarf2_emit_insn if it is available. + * expr.c: Fix typo in comment. 2001-06-12 Nick Clifton diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 0bc1d5c505..5e7b23a4b9 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -97,8 +97,10 @@ const pseudo_typeS md_pseudo_table[] = {"2byte", s_uacons, 2}, {"4byte", s_uacons, 4}, {"8byte", s_uacons, 8}, +#ifdef BFD_ASSEMBLER {"file", dwarf2_directive_file, 0 }, {"loc", dwarf2_directive_loc, 0 }, +#endif {0, 0, 0} }; @@ -1945,7 +1947,9 @@ md_assemble (str) } } +#ifdef BFD_ASSEMBLER dwarf2_emit_insn (size); +#endif } /* This routine is called each time a label definition is seen. It -- 2.11.0