From 135d50f10fe27b77c879038d7adff5724ece1988 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 15 Jul 2001 16:50:41 +0000 Subject: Makefile.in (integrate.o): Add debug.h. * Makefile.in (integrate.o): Add debug.h. * integrate.c (debug.h): Add. (output_inline_function): Save, reset, and restore debug_hooks. From-SVN: r44026 --- gcc/integrate.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/integrate.c') diff --git a/gcc/integrate.c b/gcc/integrate.c index 88b8c9f..bcb65e8 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -28,6 +28,7 @@ Boston, MA 02111-1307, USA. */ #include "tm_p.h" #include "regs.h" #include "flags.h" +#include "debug.h" #include "insn-config.h" #include "expr.h" #include "output.h" @@ -2866,6 +2867,7 @@ output_inline_function (fndecl) { struct function *old_cfun = cfun; enum debug_info_type old_write_symbols = write_symbols; + struct debug_hooks *old_debug_hooks = debug_hooks; struct function *f = DECL_SAVED_INSNS (fndecl); cfun = f; @@ -2879,7 +2881,10 @@ output_inline_function (fndecl) /* If requested, suppress debugging information. */ if (f->no_debugging_symbols) - write_symbols = NO_DEBUG; + { + write_symbols = NO_DEBUG; + debug_hooks = &do_nothing_debug_hooks; + } /* Do any preparation, such as emitting abstract debug info for the inline before it gets mangled by optimization. */ @@ -2895,6 +2900,7 @@ output_inline_function (fndecl) cfun = old_cfun; current_function_decl = old_cfun ? old_cfun->decl : 0; write_symbols = old_write_symbols; + debug_hooks = old_debug_hooks; } -- cgit v1.1