From bc244a4c37f63c80db13cc9a1ff419b617cd18d4 Mon Sep 17 00:00:00 2001
From: kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Sun, 15 Jul 2001 16:50:41 +0000
Subject: [PATCH] 	* Makefile.in (integrate.o): Add debug.h. 	*
 integrate.c (debug.h): Add. 	(output_inline_function): Save, reset, and
 restore debug_hooks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44026 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog   | 6 ++++++
 gcc/Makefile.in | 2 +-
 gcc/integrate.c | 8 +++++++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4ff9680953e7..0246e85aa20f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+	* Makefile.in (integrate.o): Add debug.h.
+	* integrate.c (debug.h): Add.
+	(output_inline_function): Save, reset, and restore debug_hooks.
+
 2001-07-15  Richard Henderson  <rth@redhat.com>
 
 	* config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index a03f77f19dc5..4fcba9bab0bd 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1417,7 +1417,7 @@ emit-rtl.o : emit-rtl.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
    $(HASHTAB_H) $(TM_P_H)
 real.o : real.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) toplev.h $(TM_P_H)
 integrate.o : integrate.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
-   $(INTEGRATE_H) insn-config.h $(EXPR_H) real.h $(REGS_H) \
+   debug.h $(INTEGRATE_H) insn-config.h $(EXPR_H) real.h $(REGS_H) \
    intl.h function.h output.h $(RECOG_H) except.h toplev.h $(LOOP_H) \
    $(PARAMS_H) $(TM_P_H)
 jump.o : jump.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) flags.h hard-reg-set.h $(REGS_H) \
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 88b8c9f1f88a..bcb65e826a3e 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;
 }
 
 
-- 
GitLab