This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Proposed patch to proto debug files


With this patch applied, OpenServer and Linux (both native) build
without error and with many less warnings.   I think this covers four
of the five debugging formats.

Is this OK?

RJL



Sat May 16 23:54:35 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, dwarfout2.c, sdbout.c, toplev.c, 
	final.c: Include above files.
        * Makefile.in (toplev.o): Add dependency for above four headers.
        (final.o): Likewise.
	* toplev.c, final.c: 



Index: dwarfout.h
===================================================================
RCS file: dwarfout.h
diff -N dwarfout.h
--- /dev/null	Mon Dec 31 20:00:00 1979
+++ dwarfout.h	Sat May 16 22:02:09 1998
@@ -0,0 +1,24 @@
+/* dwarfout.h - Various declarations for functions found in dwarfout.c
+   Copyright (C) 1998 Free Software Foundation, Inc.
+*/
+
+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));
+
Index: dwarf2out.h
===================================================================
RCS file: dwarf2out.h
diff -N dwarf2out.h
--- /dev/null	Mon Dec 31 20:00:00 1979
+++ dwarf2out.h	Sat May 16 22:02:09 1998
@@ -0,0 +1,21 @@
+/* dwarf2out.h - Various declarations for functions found in dwarf2out.c
+   Copyright (C) 1998 Free Software Foundation, Inc.
+*/
+
+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));
Index: dbxout.h
===================================================================
RCS file: dbxout.h
diff -N dbxout.h
--- /dev/null	Mon Dec 31 20:00:00 1979
+++ dbxout.h	Sat May 16 22:02:09 1998
@@ -0,0 +1,13 @@
+/* dbxout.h - Various declarations for functions found in dbxout.c
+   Copyright (C) 1998 Free Software Foundation, Inc.
+*/
+
+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));
Index: sdbout.h
===================================================================
RCS file: sdbout.h
diff -N sdbout.h
--- /dev/null	Mon Dec 31 20:00:00 1979
+++ sdbout.h	Sat May 16 22:02:09 1998
@@ -0,0 +1,22 @@
+/* sdbout.h - Various declarations for functions found in sdbout.c
+   Copyright (C) 1998 Free Software Foundation, Inc.
+*/
+
+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));
+
Index: dwarfout.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/dwarfout.c,v
retrieving revision 1.19
diff -u -p -r1.19 dwarfout.c
--- dwarfout.c	1998/05/06 21:06:55	1.19
+++ dwarfout.c	1998/05/17 05:02:18
@@ -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)
Index: dbxout.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/dbxout.c,v
retrieving revision 1.19
diff -u -p -r1.19 dbxout.c
--- dbxout.c	1998/05/16 18:41:41	1.19
+++ dbxout.c	1998/05/17 05:02:21
@@ -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"
Index: dwarf2out.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/dwarf2out.c,v
retrieving revision 1.53
diff -u -p -r1.53 dwarf2out.c
--- dwarf2out.c	1998/05/13 12:40:11	1.53
+++ dwarf2out.c	1998/05/17 05:02:32
@@ -40,6 +40,7 @@ the Free Software Foundation, 675 Mass A
 #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
Index: sdbout.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/sdbout.c,v
retrieving revision 1.10
diff -u -p -r1.10 sdbout.c
--- sdbout.c	1998/04/04 17:38:32	1.10
+++ sdbout.c	1998/05/17 05:02:34
@@ -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));
Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.101
diff -u -p -r1.101 Makefile.in
--- Makefile.in	1998/05/14 14:09:31	1.101
+++ Makefile.in	1998/05/17 05:02:38
@@ -1336,7 +1336,8 @@ stor-layout.o : stor-layout.c $(CONFIG_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)\" \
@@ -1441,7 +1442,7 @@ $(SCHED_PREFIX)sched.o : $(SCHED_PREFIX)
 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


Index: toplev.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/toplev.c,v
retrieving revision 1.65
diff -u -p -r1.65 toplev.c
--- toplev.c	1998/05/15 18:56:11	1.65
+++ toplev.c	1998/05/17 05:07:16
@@ -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
Index: final.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/final.c,v
retrieving revision 1.43
diff -u -p -r1.43 final.c
--- final.c	1998/05/14 13:39:04	1.43
+++ final.c	1998/05/17 05:07:24
@@ -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
@@ -81,6 +82,18 @@ Boston, MA 02111-1307, USA.  */
 
 #ifdef XCOFF_DEBUGGING_INFO
 #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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]