aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/Makefile.in13
-rw-r--r--gcc/dbxout.c1
-rw-r--r--gcc/dbxout.h29
-rw-r--r--gcc/dwarf2out.c1
-rw-r--r--gcc/dwarf2out.h37
-rw-r--r--gcc/dwarfout.c1
-rw-r--r--gcc/dwarfout.h40
-rw-r--r--gcc/final.c13
-rw-r--r--gcc/sdbout.c4
-rw-r--r--gcc/sdbout.h38
-rw-r--r--gcc/toplev.c16
12 files changed, 195 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c4dca038bf7..1f1c58af081 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,14 @@
+Mon May 18 09:02:09 1998 Robert Lipe <robertl@dgii.com>
+
+ * dwarfout.h, dwarf2out.h, dbxout.h, sdbout.h: New files.
+ Prototypes for externally used functions in respective C files.
+ * dwarfout.c, dbxout.c, dwarf2out.c, sdbout.c, toplev,c,
+ final.c: Include above files.
+ * Makefile.in (toplev.o): Add dependency for above four headers.
+ (final.o): Likewise.
+ (dwarfout.o, dbxout.o, dwarf2out.o, sdbout.o): Depend on four
+ respective header files.
+
Mon May 18 01:23:33 1998 Jeffrey A Law (law@cygnus.com)
* Makefile.in (TARGET_TOOLPREFIX): No longer define.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index fc580666773..9422fac7e4d 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1385,7 +1385,8 @@ stor-layout.o : stor-layout.c $(CONFIG_H) system.h $(TREE_H) flags.h \
fold-const.o : fold-const.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h
toplev.o : toplev.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) \
flags.h input.h insn-attr.h xcoffout.h defaults.h output.h \
- insn-codes.h insn-config.h recog.h Makefile toplev.h \
+ insn-codes.h insn-config.h recog.h Makefile toplev.h dwarfout.h \
+ dwarf2out.h sdbout.h dbxout.h \
$(lang_options_files)
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(MAYBE_USE_COLLECT2) \
-DTARGET_NAME=\"$(target_alias)\" \
@@ -1420,15 +1421,15 @@ explow.o : explow.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
optabs.o : optabs.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
insn-flags.h insn-config.h insn-codes.h expr.h $(RECOG_H) reload.h
dbxout.o : dbxout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h regs.h \
- insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h
+ insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h dbxout.h
sdbout.o : sdbout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h except.h \
function.h expr.h output.h hard-reg-set.h regs.h defaults.h real.h \
- insn-config.h obstack.h xcoffout.h c-pragma.h
+ insn-config.h obstack.h xcoffout.h c-pragma.h sdbout.h
dwarfout.o : dwarfout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf.h \
- flags.h insn-config.h reload.h output.h defaults.h toplev.h
+ flags.h insn-config.h reload.h output.h defaults.h toplev.h dwarfout.h
dwarf2out.o : dwarf2out.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf2.h \
flags.h insn-config.h insn-codes.h reload.h output.h defaults.h \
- hard-reg-set.h regs.h expr.h toplev.h
+ hard-reg-set.h regs.h expr.h toplev.h dwarf2out.h
xcoffout.o : xcoffout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) xcoffout.h \
flags.h
emit-rtl.o : emit-rtl.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
@@ -1490,7 +1491,7 @@ $(SCHED_PREFIX)sched.o : $(SCHED_PREFIX)sched.c $(CONFIG_H) system.h $(RTL_H) \
final.o : final.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h regs.h \
$(RECOG_H) conditions.h insn-config.h insn-attr.h except.h real.h output.h \
hard-reg-set.h insn-flags.h insn-codes.h gstab.h xcoffout.h defaults.h \
- toplev.h reload.h
+ toplev.h reload.h dwarfout.h dwarf2out.h sdbout.h dbxout.h
recog.o : recog.c $(CONFIG_H) system.h $(RTL_H) \
regs.h $(RECOG_H) hard-reg-set.h flags.h insn-config.h insn-attr.h \
insn-flags.h insn-codes.h real.h
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 513f9000556..97435806d48 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -78,6 +78,7 @@ Boston, MA 02111-1307, USA. */
#include "reload.h"
#include "defaults.h"
#include "output.h" /* ASM_OUTPUT_SOURCE_LINE may refer to sdb functions. */
+#include "dbxout.h"
#ifdef XCOFF_DEBUGGING_INFO
#include "xcoffout.h"
diff --git a/gcc/dbxout.h b/gcc/dbxout.h
new file mode 100644
index 00000000000..45329270f61
--- /dev/null
+++ b/gcc/dbxout.h
@@ -0,0 +1,29 @@
+/* dbxout.h - Various declarations for functions found in dbxout.c
+ Copyright (C) 1998 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+extern void dbxout_init PROTO ((FILE *, char *, tree));
+extern void dbxout_finish PROTO ((FILE *, char *));
+
+extern void dbxout_start_new_source_file PROTO ((char *));
+extern void dbxout_resume_previous_source_file PROTO ((void));
+
+extern void dbxout_symbol PROTO ((tree, int));
+extern void dbxout_function PROTO ((tree));
+extern void dbxout_source_line PROTO ((FILE *, char*, int));
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 12ad09a79e1..0e5db82060b 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -40,6 +40,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "expr.h"
#include "except.h"
#include "dwarf2.h"
+#include "dwarf2out.h"
#include "toplev.h"
/* We cannot use <assert.h> in GCC source, since that would include
diff --git a/gcc/dwarf2out.h b/gcc/dwarf2out.h
new file mode 100644
index 00000000000..b94fb2198a7
--- /dev/null
+++ b/gcc/dwarf2out.h
@@ -0,0 +1,37 @@
+/* dwarf2out.h - Various declarations for functions found in dwarf2out.c
+ Copyright (C) 1998 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+extern void dwarf2out_init PROTO ((FILE *asm_out_file,
+ char *main_input_filename));
+extern void dwarf2out_finish PROTO ((void));
+
+extern void dwarf2out_define PROTO ((unsigned, char *));
+extern void dwarf2out_undef PROTO ((unsigned, char *));
+extern void dwarf2out_start_source_file PROTO ((char *));
+extern void dwarf2out_end_source_file PROTO ((void));
+
+extern void dwarf2out_begin_block PROTO ((unsigned));
+extern void dwarf2out_end_block PROTO ((unsigned));
+extern void dwarf2out_label PROTO ((rtx));
+extern void dwarf2out_decl PROTO ((tree));
+extern void dwarf2out_line PROTO ((char *, unsigned));
+extern void dwarf2out_frame_init PROTO ((void));
+extern void dwarf2out_frame_debug PROTO ((rtx));
+extern void dwarf2out_frame_finish PROTO ((void));
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index 566e6d290a3..73621f78006 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */
#include "reload.h"
#include "output.h"
#include "defaults.h"
+#include "dwarfout.h"
#include "toplev.h"
#if defined(DWARF_TIMESTAMPS)
diff --git a/gcc/dwarfout.h b/gcc/dwarfout.h
new file mode 100644
index 00000000000..b4bb9b9fc16
--- /dev/null
+++ b/gcc/dwarfout.h
@@ -0,0 +1,40 @@
+/* dwarfout.h - Various declarations for functions found in dwarfout.c
+ Copyright (C) 1998 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+extern void dwarfout_init PROTO ((FILE *asm_out_file,
+ char *main_input_filename));
+extern void dwarfout_finish PROTO ((void));
+
+extern void dwarfout_define PROTO ((unsigned, char *));
+extern void dwarfout_undef PROTO ((unsigned, char *));
+extern void dwarfout_file_scope_decl PROTO ((tree , int));
+extern void dwarfout_start_new_source_file PROTO ((char *));
+extern void dwarfout_resume_previous_source_file PROTO((unsigned));
+
+extern void dwarfout_begin_function PROTO ((void));
+extern void dwarfout_end_function PROTO ((void));
+extern void dwarfout_begin_epilogue PROTO ((void));
+extern void dwarfout_end_epilogue PROTO ((void));
+extern void dwarfout_begin_block PROTO ((unsigned));
+extern void dwarfout_end_block PROTO ((unsigned));
+
+extern void dwarfout_label PROTO ((rtx));
+extern void dwarfout_line PROTO ((char *, unsigned));
+
diff --git a/gcc/final.c b/gcc/final.c
index 89436e4fb58..013dca75574 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -72,6 +72,7 @@ Boston, MA 02111-1307, USA. */
/* Get N_SLINE and N_SOL from stab.h if we can expect the file to exist. */
#if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
+#include "dbxout.h"
#if defined (USG) || defined (NO_STAB_H)
#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */
#else
@@ -83,6 +84,18 @@ Boston, MA 02111-1307, USA. */
#include "xcoffout.h"
#endif
+#ifdef DWARF_DEBUGGING_INFO
+#include "dwarfout.h"
+#endif
+
+#if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO)
+#include "dwarf2out.h"
+#endif
+
+#ifdef SDB_DEBUGGING_INFO
+#include "sdbout.h"
+#endif
+
/* .stabd code for line number. */
#ifndef N_SLINE
#define N_SLINE 0x44
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 7aeb29edafd..20a71f39f78 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -100,9 +100,7 @@ extern FILE *asm_out_file;
extern tree current_function_decl;
-void sdbout_init ();
-void sdbout_symbol ();
-void sdbout_types();
+#include "sdbout.h"
static char *gen_fake_label PROTO((void));
static int plain_type PROTO((tree));
diff --git a/gcc/sdbout.h b/gcc/sdbout.h
new file mode 100644
index 00000000000..3ddaa92cddd
--- /dev/null
+++ b/gcc/sdbout.h
@@ -0,0 +1,38 @@
+/* sdbout.h - Various declarations for functions found in sdbout.c
+ Copyright (C) 1998 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+extern void sdbout_init PROTO ((FILE *, char*, tree));
+
+extern void sdbout_begin_function PROTO ((int));
+extern void sdbout_end_function PROTO ((int));
+
+extern void sdbout_begin_block PROTO ((FILE *, int, int));
+extern void sdbout_end_block PROTO ((FILE *, int, int));
+
+extern void sdbout_label PROTO ((rtx));
+extern void sdbout_symbol PROTO ((tree, int));
+extern void sdbout_toplevel_data PROTO ((tree));
+extern void sdbout_types PROTO ((tree));
+
+extern void sdbout_end_epilogue PROTO ((void));
+
+extern void sdbout_start_new_source_file PROTO ((char *));
+extern void sdbout_resume_previous_source_file PROTO ((void));
+
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 30f408bb69f..2542d1a23f2 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -57,6 +57,22 @@ Boston, MA 02111-1307, USA. */
#include "except.h"
#include "toplev.h"
+#ifdef DWARF_DEBUGGING_INFO
+#include "dwarfout.h"
+#endif
+
+#if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO)
+#include "dwarf2out.h"
+#endif
+
+#ifdef DBX_DEBUGGING_INFO
+#include "dbxout.h"
+#endif
+
+#ifdef SDB_DEBUGGING_INFO
+#include "sdbout.h"
+#endif
+
#ifdef XCOFF_DEBUGGING_INFO
#include "xcoffout.h"
#endif