From e1772ac0583495ca8fbc949988dd51dbfc83b8fa Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 19 Jul 2001 21:17:09 +0000 Subject: Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h. * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h. (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h. (toplev.o): Don't depend on xcoffout.h. * c-decl.c: Include debug.h (duplicate_decls): Use debug hook. * dbxout.c (dbxout_source_file, dbxout_args): Make static. (dbx_debug_hooks, xcoff_debug_hooks): Update. (dbxout_types): Remove. * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove. * debug.c (do_nothing_debug_hooks): Update. (debug_true_tree, debug_nothing_rtx): New. * debug.h (struct rtx_def): New. (struct gcc_debug_hooks): New hooks ignore_block, outlining_inline_function and label. (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init, dwarf2out_frame_finish): New. * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function): Make static, update prototype. (dwarf2_debug_hooks): Update. * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function, dwarf2out_frame_init, dwarf2out_frame_finish): Remove. * dwarfout.c (dwarf_debug_hooks): Update. * emit-rtl.c: Include debug.h. (remove_unnecessary_notes): Use debug hook. * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h. (final_scan_insn): Use debug hook. * integrate.c (output_inline_function): Use debug hook. * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static. (sdb_debug_hooks): Update. * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove. * toplev.c: Don't include xcoffout.h. (note_outlining_of_inline_function, debug_ignore_block): Remove. * toplev.h (note_outlining_of_inline_function, debug_ignore_block): Remove. * tree.h (dwarf2out_do_frame): Remove. From-SVN: r44163 --- gcc/sdbout.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gcc/sdbout.c') diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 4dc4a65..accd9ed 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -106,6 +106,8 @@ static void sdbout_begin_prologue PARAMS ((unsigned int, const char *)); static void sdbout_end_prologue PARAMS ((unsigned int)); static void sdbout_begin_function PARAMS ((tree)); static void sdbout_end_function PARAMS ((unsigned int)); +static void sdbout_toplevel_data PARAMS ((tree)); +static void sdbout_label PARAMS ((rtx)); static char *gen_fake_label PARAMS ((void)); static int plain_type PARAMS ((tree)); static int template_name_p PARAMS ((tree)); @@ -304,6 +306,7 @@ struct gcc_debug_hooks sdb_debug_hooks = sdbout_end_source_file, sdbout_begin_block, sdbout_end_block, + debug_true_tree, /* ignore_block */ sdbout_source_line, #ifdef MIPS_DEBUGGING_INFO /* Defer on MIPS systems so that parameter descriptions follow @@ -319,7 +322,9 @@ struct gcc_debug_hooks sdb_debug_hooks = sdbout_end_function, debug_nothing_tree, /* function_decl */ sdbout_global_decl, - debug_nothing_tree /* deferred_inline_function */ + debug_nothing_tree, /* deferred_inline_function */ + debug_nothing_tree, /* outlining_inline_function */ + sdbout_label }; #if 0 @@ -947,7 +952,7 @@ sdbout_symbol (decl, local) /* Output SDB information for a top-level initialized variable that has been delayed. */ -void +static void sdbout_toplevel_data (decl) tree decl; { @@ -1657,7 +1662,7 @@ sdbout_end_epilogue () /* Output sdb info for the given label. Called only if LABEL_NAME (insn) is present. */ -void +static void sdbout_label (insn) register rtx insn; { -- cgit v1.1