diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-07-17 19:47:58 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-07-17 19:47:58 +0000 |
commit | 653e276c6536663cda57bda038a9df4e64adb96f (patch) | |
tree | 9abd13faa762d57f769d9f43c78300834738874b /gcc/dbxout.c | |
parent | 91a18fe0e6d96ec2cdad7d4f12ada3b4f5ed11e6 (diff) | |
download | gcc-653e276c6536663cda57bda038a9df4e64adb96f.zip gcc-653e276c6536663cda57bda038a9df4e64adb96f.tar.gz gcc-653e276c6536663cda57bda038a9df4e64adb96f.tar.bz2 |
dbxout.c (dbxout_really_begin_function): Rename to dbxout_begin_function.
* dbxout.c (dbxout_really_begin_function): Rename to
dbxout_begin_function.
(dbx_debug_hooks, xcoff_debug_hooks): Update.
(dbxout_begin_function): Remove.
(dbxout_function): Update.
(dbxout_source_line): Update prototype.
* dbxout.h (dbxout_begin_function): Remove.
* debug.c (do_nothing_debug_hooks): Update.
(debug_nothing_tree): Update.
(debug_nothing_charstar_rtx): Remove.
* debug.h (union tree_node): Declare.
(struct rtx_def): Remove.
(gcc_debug_hooks): New hooks begin_prologue, end_prologue,
begin_function. Change source_line prototype.
(debug_nothing_tree): New.
(debug_nothing_charstar_rtx): Delete.
(dwarf2out_begin_prologue): Moved from ...
* tree.h: ... here.
* dwarf2out.c (dwarf2_debug_hooks): Update.
(dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
debug info, call dwarf2out_source_line.
(dwarf2out_souce_line): Update prototype.
* dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
Change prototype, make static.
(dwarfout_source_line): Update prototype.
(dwarf_debug_hooks): Update.
* dwarfout.h (dwarfout_begin_function): Remove.
* final.c (final_start_function, final_scan_insn): Use appropriate
debug hooks, update to use notice_source_line.
(output_source_line): Rename notice_source_line. Don't call the
source_line debug hook.
* sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
make static, update prototype.
(sdbout_mark_begin_function): Rename sdbout_begin_function, update
prototype.
(sdbout_end_prologue): New.
(sdbout_source_line): Update prototype.
(sdbout_debug_hooks): Update.
(sdbout_symbol): Remove unused var.
* sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
Delete.
* varasm.c: Include debug.h.
(assemble_start_function): Use begin_function debug_hook.
* xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
update with prototype.
(xcoffout_source_line): Update prototype.
* xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
update prototype.
(xcoffout_source_line): Update prototype.
From-SVN: r44087
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 3dd3f80..e2f21ff 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -288,7 +288,7 @@ static void dbxout_init PARAMS ((const char *)); static void dbxout_finish PARAMS ((const char *)); static void dbxout_start_source_file PARAMS ((unsigned, const char *)); static void dbxout_end_source_file PARAMS ((unsigned)); -static void dbxout_source_line PARAMS ((const char *, rtx)); +static void dbxout_source_line PARAMS ((unsigned int, const char *)); #if defined(ASM_OUTPUT_SECTION_NAME) static void dbxout_function_end PARAMS ((void)); #endif @@ -310,7 +310,7 @@ static void dbxout_symbol_name PARAMS ((tree, const char *, int)); static void dbxout_prepare_symbol PARAMS ((tree)); static void dbxout_finish_symbol PARAMS ((tree)); static void dbxout_block PARAMS ((tree, int, tree)); -static void dbxout_really_begin_function PARAMS ((tree)); +static void dbxout_begin_function PARAMS ((tree)); /* The debug hooks structure. */ #if defined (DBX_DEBUGGING_INFO) @@ -328,9 +328,16 @@ struct gcc_debug_hooks dbx_debug_hooks = dbxout_end_source_file, dbxout_begin_block, dbxout_end_block, - dbxout_source_line, + dbxout_source_line, /* source_line */ + dbxout_source_line, /* begin_prologue: just output line info */ + debug_nothing_int, /* end_prologue */ debug_nothing_void, /* end_epilogue */ - debug_nothing_int /* end function */ +#ifdef DBX_FUNCTION_FIRST + dbxout_begin_function, +#else + debug_nothing_tree, /* begin_function */ +#endif + debug_nothing_int /* end_function */ }; #endif /* DBX_DEBUGGING_INFO */ @@ -346,7 +353,10 @@ struct gcc_debug_hooks xcoff_debug_hooks = xcoffout_begin_block, xcoffout_end_block, xcoffout_source_line, + xcoffout_begin_prologue, /* begin_prologue */ + debug_nothing_int, /* end_prologue */ xcoffout_end_epilogue, + debug_nothing_tree, /* begin_function */ xcoffout_end_function }; #endif /* XCOFF_DEBUGGING_INFO */ @@ -559,16 +569,14 @@ dbxout_source_file (file, filename) } } -/* Output a line number symbol entry into output stream FILE, - for source file FILENAME and line number LINENO. */ +/* Output a line number symbol entry for source file FILENAME and line + number LINENO. */ static void -dbxout_source_line (filename, note) +dbxout_source_line (lineno, filename) + unsigned int lineno; const char *filename; - rtx note; { - unsigned int lineno = NOTE_LINE_NUMBER (note); - dbxout_source_file (asmfile, filename); #ifdef ASM_OUTPUT_SOURCE_LINE @@ -2716,7 +2724,7 @@ dbxout_block (block, depth, args) but on some systems, it comes before. */ static void -dbxout_really_begin_function (decl) +dbxout_begin_function (decl) tree decl; { dbxout_symbol (decl, 0); @@ -2725,17 +2733,6 @@ dbxout_really_begin_function (decl) dbxout_symbol (DECL_RESULT (decl), 1); } -/* Called at beginning of output of function definition. */ - -void -dbxout_begin_function (decl) - tree decl ATTRIBUTE_UNUSED; -{ -#ifdef DBX_FUNCTION_FIRST - dbxout_really_begin_function (decl); -#endif -} - /* Output dbx data for a function definition. This includes a definition of the function name itself (a symbol), definitions of the parameters (locating them in the parameter list) @@ -2747,7 +2744,7 @@ dbxout_function (decl) tree decl; { #ifndef DBX_FUNCTION_FIRST - dbxout_really_begin_function (decl); + dbxout_begin_function (decl); #endif dbxout_block (DECL_INITIAL (decl), 0, DECL_ARGUMENTS (decl)); #ifdef DBX_OUTPUT_FUNCTION_END |