diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-12 05:56:27 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-12 05:56:27 +0000 |
commit | 1dff614c85d6899e5442a721e03ae0924db542f0 (patch) | |
tree | 40b384a205e08322f34b489f268f42300c96c0bb /gcc/dwarfout.c | |
parent | 037e86757698f1fef8a8b6d4054cc05de488c16f (diff) | |
download | gcc-1dff614c85d6899e5442a721e03ae0924db542f0.tar.gz |
* 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
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r-- | gcc/dwarfout.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index f5fa7c424e5..3263f107c5f 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -795,6 +795,8 @@ static void dwarfout_start_source_file PARAMS ((unsigned, const char *)); static void dwarfout_start_source_file_check PARAMS ((unsigned, const char *)); static void dwarfout_end_source_file PARAMS ((unsigned)); static void dwarfout_end_source_file_check PARAMS ((unsigned)); +static void dwarfout_begin_block PARAMS ((FILE *, unsigned, unsigned)); +static void dwarfout_end_block PARAMS ((FILE *, unsigned, unsigned)); static const char *dwarf_tag_name PARAMS ((unsigned)); static const char *dwarf_attr_name PARAMS ((unsigned)); static const char *dwarf_stack_op_name PARAMS ((unsigned)); @@ -1375,7 +1377,9 @@ struct gcc_debug_hooks dwarf_debug_hooks = dwarfout_define, dwarfout_undef, dwarfout_start_source_file_check, - dwarfout_end_source_file_check + dwarfout_end_source_file_check, + dwarfout_begin_block, + dwarfout_end_block }; /************************ general utility functions **************************/ @@ -5833,9 +5837,11 @@ dwarfout_file_scope_decl (decl, set_finalizing) /* Output a marker (i.e. a label) for the beginning of the generated code for a lexical block. */ -void -dwarfout_begin_block (blocknum) - register unsigned blocknum; +static void +dwarfout_begin_block (file, line, blocknum) + FILE *file ATTRIBUTE_UNUSED; + unsigned int line ATTRIBUTE_UNUSED; + unsigned int blocknum; { char label[MAX_ARTIFICIAL_LABEL_BYTES]; @@ -5847,9 +5853,11 @@ dwarfout_begin_block (blocknum) /* Output a marker (i.e. a label) for the end of the generated code for a lexical block. */ -void -dwarfout_end_block (blocknum) - register unsigned blocknum; +static void +dwarfout_end_block (file, line, blocknum) + FILE *file ATTRIBUTE_UNUSED; + unsigned int line ATTRIBUTE_UNUSED; + unsigned int blocknum; { char label[MAX_ARTIFICIAL_LABEL_BYTES]; |