From 1dff614c85d6899e5442a721e03ae0924db542f0 Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 12 Jul 2001 05:56:27 +0000 Subject: * Makefile.in (final.o): Depend on debug.h. * dbxout.c (dbxout_begin_block, dbxout_end_block): New. (dbx_debug_hooks): Add new hooks. (xcoff_debug_hooks): New. * debug.c (debug_nothing_file_int_int): New. (do_nothing_debug_hooks): Update. * debug.h (gcc_debug_hooks): New hooks begin_block and end_block. (debug_nothing_file_int_int): New. * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make static, update prototype. (dwarf2_debug_hooks): Update. * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove. * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make static, update prototype. (dwarf_debug_hooks): Update. * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove. * final.c: Include debug.h. (final_scan_insn): Use debug hooks when beginning and ending blocks. * sdbout.c (sdbout_begin_block, sdbout_end_block): Make static, update prototype. (sdb_debug_hooks): Update. * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove. * toplev.c: Distinguish between xcoff and dbx. * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_): Call all debug hooks, not just dwarf ones. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43959 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/sdbout.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'gcc/sdbout.c') diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 47d34c17a84..aecdcf7826f 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -95,6 +95,8 @@ extern tree current_function_decl; static void sdbout_init PARAMS ((FILE *, const char *)); static void sdbout_start_source_file PARAMS ((unsigned, const char *)); static void sdbout_end_source_file PARAMS ((unsigned)); +static void sdbout_begin_block PARAMS ((FILE *, unsigned, unsigned)); +static void sdbout_end_block PARAMS ((FILE *, unsigned, unsigned)); static char *gen_fake_label PARAMS ((void)); static int plain_type PARAMS ((tree)); static int template_name_p PARAMS ((tree)); @@ -299,7 +301,9 @@ struct gcc_debug_hooks sdb_debug_hooks = debug_nothing_int_charstar, debug_nothing_int_charstar, sdbout_start_source_file, - sdbout_end_source_file + sdbout_end_source_file, + sdbout_begin_block, + sdbout_end_block }; #if 0 @@ -1466,11 +1470,11 @@ sdbout_reg_parms (parms) The blocks match the BLOCKs in DECL_INITIAL (current_function_decl), if the count starts at 0 for the outermost one. */ -void +static void sdbout_begin_block (file, line, n) FILE *file ATTRIBUTE_UNUSED; - int line; - int n; + unsigned int line; + unsigned int n; { tree decl = current_function_decl; MAKE_LINE_SAFE (line); @@ -1507,8 +1511,8 @@ sdbout_begin_block (file, line, n) void sdbout_end_block (file, line, n) FILE *file ATTRIBUTE_UNUSED; - int line; - int n ATTRIBUTE_UNUSED; + unsigned int line; + unsigned int n ATTRIBUTE_UNUSED; { MAKE_LINE_SAFE (line); -- cgit v1.2.1