aboutsummaryrefslogtreecommitdiff
path: root/gcc/xcoffout.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-07-15 08:34:46 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-07-15 08:34:46 +0000
commite2a12aca42db7657d00b43ef76606e208159273d (patch)
tree3f39c7aa98569361a789583a5906c27e2596de19 /gcc/xcoffout.c
parentbe7b80f42726389bd25888ede4f13d276bb12ef0 (diff)
downloadgcc-e2a12aca42db7657d00b43ef76606e208159273d.zip
gcc-e2a12aca42db7657d00b43ef76606e208159273d.tar.gz
gcc-e2a12aca42db7657d00b43ef76606e208159273d.tar.bz2
dbxout.c (dbxout_source_line): Make static, update prototype.
* dbxout.c (dbxout_source_line): Make static, update prototype. (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks. (dbxout_init, dbxout_finish, dbxout_source_line, dbxout_begin_block, dbxout_end_block): Update for new prototypes. * dbxout.h (dbxout_source_line): Delete. * debug.c (debug_nothing_file, debug_nothing_file_int, debug_nothing_file_charstar_rtx): New. (do_nothing_debug_hooks): Update. (debug_nothing_void, debug_nothing_charstar_rtx, dwarf2out_end_epilogue): New. (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename. * debug.h (struct rtx_def): Declare. (gcc_debug_hooks): New hooks source_line, end_epilogue and end_function. (debug_nothing_void, debug_nothing_charstar_rtx, dwarf2out_end_epilogue): New. (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename. * dwarf2out.c (dwarf2out_source_line): Make static, update prototype. (dwarf2_debug_hooks): Update. (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line, dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes. * dwarf2out.h (dwarf2out_source_line): Remove. * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function): Make static, update prototype. (dwarfout_init, dwarfout_finish, dwarfout_source_line, dwarfout_begin_block, dwarfout_end_block): Update for new prototypes. (dwarf_debug_hooks): Update. * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line, dwarfout_end_function): Remove. * final.c (profile_function): Use debug hooks for ending functions and epilogues. (output_source_line, final_end_function): Update prototype, use debug hooks. (final_start_function, final_scan_insn): Update. * output.h (sdb_begin_function_line): Remove. (final_end_function): Update prototype. * sdbout.c (sdb_begin_function_line): Make static. (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue. (sdbout_source_line): New. (sdbout_end_epilogue, sdbout_end_function): Make static, update prototypes. (sdb_debug_hooks): Update. (sdbout_init, sdbout_source_line, sdbout_begin_block, sdbout_end_block): Update for new prototypes. * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove. * toplev.c (compile_file, rest_of_compilation): Update. * tree.h (dwarf2out_end_epilogue): Move to debug.h. * xcoffout.c (xcoffout_source_line, xcoffout_begin_block, xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function): Update for prototype changes. * xcoffout.h (xcoffout_source_line, xcoffout_begin_block, xcoffout_end_block, xcoffout_end_epilogue): Update prototypes. From-SVN: r44017
Diffstat (limited to 'gcc/xcoffout.c')
-rw-r--r--gcc/xcoffout.c39
1 files changed, 17 insertions, 22 deletions
diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c
index 326a692..e8dd43f 100644
--- a/gcc/xcoffout.c
+++ b/gcc/xcoffout.c
@@ -308,14 +308,13 @@ xcoffout_source_file (file, filename, inline_p)
for source file FILENAME and line number NOTE. */
void
-xcoffout_source_line (file, filename, note)
- FILE *file;
+xcoffout_source_line (filename, note)
const char *filename;
rtx note;
{
- xcoffout_source_file (file, filename, RTX_INTEGRATED_P (note));
+ xcoffout_source_file (asm_out_file, filename, RTX_INTEGRATED_P (note));
- ASM_OUTPUT_SOURCE_LINE (file, NOTE_LINE_NUMBER (note));
+ ASM_OUTPUT_SOURCE_LINE (asm_out_file, NOTE_LINE_NUMBER (note));
}
/* Output the symbols defined in block number DO_BLOCK.
@@ -368,17 +367,16 @@ xcoffout_block (block, depth, args)
if the count starts at 0 for the outermost one. */
void
-xcoffout_begin_block (file, line, n)
- FILE *file;
- int line;
- int n;
+xcoffout_begin_block (line, n)
+ unsigned int line;
+ unsigned int n;
{
tree decl = current_function_decl;
/* The IBM AIX compiler does not emit a .bb for the function level scope,
so we avoid it here also. */
if (n != 1)
- ASM_OUTPUT_LBB (file, line, n);
+ ASM_OUTPUT_LBB (asm_out_file, line, n);
do_block = n;
xcoffout_block (DECL_INITIAL (decl), 0, DECL_ARGUMENTS (decl));
@@ -387,13 +385,12 @@ xcoffout_begin_block (file, line, n)
/* Describe the end line-number of an internal block within a function. */
void
-xcoffout_end_block (file, line, n)
- FILE *file;
- int line;
- int n;
+xcoffout_end_block (line, n)
+ unsigned int line;
+ unsigned int n;
{
if (n != 1)
- ASM_OUTPUT_LBE (file, line, n);
+ ASM_OUTPUT_LBE (asm_out_file, line, n);
}
/* Called at beginning of function (before prologue).
@@ -462,19 +459,17 @@ xcoffout_begin_function (file, last_linenum)
Describe end of outermost block. */
void
-xcoffout_end_function (file, last_linenum)
- FILE *file;
- int last_linenum;
+xcoffout_end_function (last_linenum)
+ unsigned int last_linenum;
{
- ASM_OUTPUT_LFE (file, last_linenum);
+ ASM_OUTPUT_LFE (asm_out_file, last_linenum);
}
/* Output xcoff info for the absolute end of a function.
Called after the epilogue is output. */
void
-xcoffout_end_epilogue (file)
- FILE *file;
+xcoffout_end_epilogue ()
{
/* We need to pass the correct function size to .function, otherwise,
the xas assembler can't figure out the correct size for the function
@@ -484,7 +479,7 @@ xcoffout_end_epilogue (file)
const char *fname = XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0);
if (*fname == '*')
++fname;
- fprintf (file, "FE..");
- ASM_OUTPUT_LABEL (file, fname);
+ fprintf (asm_out_file, "FE..");
+ ASM_OUTPUT_LABEL (asm_out_file, fname);
}
#endif /* XCOFF_DEBUGGING_INFO */