From: Alexandre Oliva Date: Thu, 13 Jul 2017 12:20:28 +0000 (-0300) Subject: LVU: include dwarf2dbg.h for dwarf2_emit_insn X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fc4509cd1f81493fd05c4dd27a1ab2058cf0193;p=thirdparty%2Fbinutils-gdb.git LVU: include dwarf2dbg.h for dwarf2_emit_insn Nick Clifton pointed out that dwarf2dbg.h is not always included. It depends on the target. Since it already checks what the debug info type is, we can just call dwarf2_emit_insn: it is always linked in too. --- diff --git a/gas/read.c b/gas/read.c index 37a03a61f8d..629e1a017ad 100644 --- a/gas/read.c +++ b/gas/read.c @@ -37,6 +37,7 @@ #include "macro.h" #include "obstack.h" #include "ecoff.h" +#include "dwarf2dbg.h" #include "dw2gencfi.h" #include "wchar.h" diff --git a/gas/subsegs.c b/gas/subsegs.c index bb961425be4..76e3c6b8584 100644 --- a/gas/subsegs.c +++ b/gas/subsegs.c @@ -25,6 +25,8 @@ #include "subsegs.h" #include "obstack.h" +#include "dwarf2dbg.h" + frchainS *frchain_now; static struct obstack frchains;