Fix debug hook bug
Richard Kenner
kenner@vlsi1.ultra.nyu.edu
Sun Jul 15 09:51:00 GMT 2001
debug_hooks need to be modified whenever write_symbols is.
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.
*** Makefile.in 2001/07/12 05:56:23 1.698
--- Makefile.in 2001/07/15 15:37:51
*************** emit-rtl.o : emit-rtl.c $(CONFIG_H) $(SY
*** 1418,1422 ****
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) \
intl.h function.h output.h $(RECOG_H) except.h toplev.h $(LOOP_H) \
$(PARAMS_H) $(TM_P_H)
--- 1418,1422 ----
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 \
! 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)
*** integrate.c 2001/06/21 17:55:00 1.149
--- integrate.c 2001/07/15 15:37:54
*************** Boston, MA 02111-1307, USA. */
*** 29,32 ****
--- 29,33 ----
#include "regs.h"
#include "flags.h"
+ #include "debug.h"
#include "insn-config.h"
#include "expr.h"
*************** output_inline_function (fndecl)
*** 2867,2870 ****
--- 2868,2872 ----
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);
*************** output_inline_function (fndecl)
*** 2880,2884 ****
/* If requested, suppress debugging information. */
if (f->no_debugging_symbols)
! write_symbols = NO_DEBUG;
/* Do any preparation, such as emitting abstract debug info for the inline
--- 2882,2889 ----
/* If requested, suppress debugging information. */
if (f->no_debugging_symbols)
! {
! write_symbols = NO_DEBUG;
! debug_hooks = &do_nothing_debug_hooks;
! }
/* Do any preparation, such as emitting abstract debug info for the inline
*************** output_inline_function (fndecl)
*** 2896,2899 ****
--- 2901,2905 ----
current_function_decl = old_cfun ? old_cfun->decl : 0;
write_symbols = old_write_symbols;
+ debug_hooks = old_debug_hooks;
}
More information about the Gcc-patches
mailing list