diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-15 16:50:41 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-15 16:50:41 +0000 |
commit | bc244a4c37f63c80db13cc9a1ff419b617cd18d4 (patch) | |
tree | e485f176d4023eda35351327c1ff8b699943d130 /gcc/integrate.c | |
parent | d1324b4b8e85aafadf058482c874e3956745e86b (diff) | |
download | gcc-bc244a4c37f63c80db13cc9a1ff419b617cd18d4.tar.gz |
* 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
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index 88b8c9f1f88..bcb65e826a3 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; } |