This is the mail archive of the gcc-patches@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]

patch installed for prototypes


	I installed the following prototypes nits.

		--Kaveh



Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.4842
diff -u -p -r1.4842 ChangeLog
--- ChangeLog	1999/10/29 17:34:54	1.4842
+++ ChangeLog	1999/10/29 17:50:11
@@ -1,3 +1,18 @@
+Fri Oct 29 13:49:39 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* flow.c (debug_flow_info): Add prototype.
+
+	* gcc.c (main): Likewise.
+
+	* gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
+	Likewise.
+
+	* reload1.c (failed_reload, set_reload_reg): Likewise.
+	
+	* mips-tfile.c (main): Likewise.
+	(pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
+	with ATTRIBUTE_NORETURN.
+
 Fri Oct 29 18:16:03 1999  Andrew Haley  <aph@cygnus.com>
 
        * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
Index: flow.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/flow.c,v
retrieving revision 1.177
diff -u -p -r1.177 flow.c
--- flow.c	1999/10/28 20:37:37	1.177
+++ flow.c	1999/10/29 17:50:18
@@ -349,6 +349,7 @@ static int try_pre_increment		PROTO((rtx
 #endif
 static void mark_used_regs		PROTO((regset, regset, rtx, int, rtx));
 void dump_flow_info			PROTO((FILE *));
+void debug_flow_info			PROTO((void));
 static void dump_edge_info		PROTO((FILE *, edge, int));
 
 static int_list_ptr alloc_int_list_node PROTO ((int_list_block **));
Index: gcc.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/gcc.c,v
retrieving revision 1.116
diff -u -p -r1.116 gcc.c
--- gcc.c	1999/09/25 13:11:16	1.116
+++ gcc.c	1999/10/29 17:50:23
@@ -4672,6 +4672,8 @@ fatal_error (signum)
   kill (getpid (), signum);
 }
 
+extern int main PROTO ((int, char **));
+
 int
 main (argc, argv)
      int argc;
Index: gcse.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/gcse.c,v
retrieving revision 1.63
diff -u -p -r1.63 gcse.c
--- gcse.c	1999/10/29 09:49:23	1.63
+++ gcse.c	1999/10/29 17:50:25
@@ -624,6 +624,8 @@ static int one_classic_gcse_pass      PR
 static void invalidate_nonnull_info	PROTO ((rtx, rtx, void *));
 static rtx process_insert_insn	PROTO ((struct expr *));
 static int pre_edge_insert	PROTO ((struct edge_list *, struct expr **));
+static int expr_reaches_here_p_work	PROTO ((struct occr *, struct expr *, int, int, char *));
+static int pre_expr_reaches_here_p_work	PROTO ((int, struct expr *, int, int, char *));
 
 /* Entry point for global common subexpression elimination.
    F is the first instruction in the function.  */
Index: reload1.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/reload1.c,v
retrieving revision 1.177
diff -u -p -r1.177 reload1.c
--- reload1.c	1999/10/27 19:27:41	1.177
+++ reload1.c	1999/10/29 17:50:28
@@ -454,6 +454,8 @@ static void add_auto_inc_notes PROTO((rt
 #endif
 static rtx gen_mode_int			PROTO((enum machine_mode,
 					       HOST_WIDE_INT));
+static void failed_reload		PROTO((rtx, int));
+static int set_reload_reg		PROTO((int, int));
 extern void dump_needs			PROTO((struct insn_chain *, FILE *));
 
 /* Initialize the reload pass once per compilation.  */
Index: mips-tfile.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/mips-tfile.c,v
retrieving revision 1.25
diff -u -p -r1.25 mips-tfile.c
--- mips-tfile.c	1999/09/21 22:31:29	1.25
+++ mips-tfile.c	1999/10/29 17:50:31
@@ -633,11 +633,11 @@ typedef const PTR_T CPTR_T;
    so they can't be static.  */
 
 extern void	pfatal_with_name
-				__proto((const char *));
-extern void	fancy_abort	__proto((void));
-       void	botch		__proto((const char *));
+				__proto((const char *)) ATTRIBUTE_NORETURN;
+extern void	fancy_abort	__proto((void)) ATTRIBUTE_NORETURN;
+       void	botch		__proto((const char *)) ATTRIBUTE_NORETURN;
 
-extern void	fatal		PVPROTO((const char *format, ...)) ATTRIBUTE_PRINTF_1;
+extern void	fatal		PVPROTO((const char *format, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
 extern void	error		PVPROTO((const char *format, ...)) ATTRIBUTE_PRINTF_1;
 
 #ifndef MIPS_DEBUGGING_INFO
@@ -1661,7 +1661,7 @@ STATIC void	parse_stabn	__proto((const c
 STATIC page_t  *read_seek	__proto((Size_t, off_t, const char *));
 STATIC void	copy_object	__proto((void));
 
-STATIC void	catch_signal	__proto((int));
+STATIC void	catch_signal	__proto((int)) ATTRIBUTE_NORETURN;
 STATIC page_t  *allocate_page	__proto((void));
 
 STATIC page_t  *allocate_multiple_pages
@@ -4801,10 +4801,12 @@ copy_object __proto((void))
 
 /* Ye olde main program.  */
 
+extern int main PROTO ((int, char **));
+
 int
 main (argc, argv)
      int argc;
-     char *argv[];
+     char **argv;
 {
   int iflag = 0;
   char *p = local_rindex (argv[0], '/');


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