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]

egcs CVS 19980621, warning patch part 1/7


	This is warning patch part 1/7.  Okay to install?



Sun Jun 21 16:39:30 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* mips.c (gpr_mode): Don't say `static' twice.

	* cpplib.c (cpp_handle_option): Don't pass unneeded NULL to cpp_fatal.

	* flow.c (init_regset_vector): Add prototype, make it static.

	* objc/objc-act.c (init_selector): Hide prototype and definition.

	* optabs.c (gen_cond_trap): Remove unused variable `icode'.

	* regmove.c (copy_src_to_dest): Likewise for `i'.



diff -rup orig/egcs-CVS19980621/gcc/config/mips/mips.c egcs-CVS19980621/gcc/config/mips/mips.c
--- orig/egcs-CVS19980621/gcc/config/mips/mips.c	Sun Jun 21 08:42:38 1998
+++ egcs-CVS19980621/gcc/config/mips/mips.c	Sun Jun 21 11:29:37 1998
@@ -245,7 +245,7 @@ enum mips_abicalls_type mips_abicalls;
 REAL_VALUE_TYPE dfhigh, dflow, sfhigh, sflow;
 
 /* Mode used for saving/restoring general purpose registers.  */
-static static enum machine_mode gpr_mode;
+static enum machine_mode gpr_mode;
 
 /* Array giving truth value on whether or not a given hard register
    can support a given mode.  */
diff -rup orig/egcs-CVS19980621/gcc/cpplib.c egcs-CVS19980621/gcc/cpplib.c
--- orig/egcs-CVS19980621/gcc/cpplib.c	Sun Jun 21 08:44:00 1998
+++ egcs-CVS19980621/gcc/cpplib.c	Sun Jun 21 11:31:04 1998
@@ -6643,7 +6643,7 @@ cpp_handle_option (pfile, argc, argv)
 	push_pending (pfile, "-U", argv[i] + 2);
       else if (i + 1 == argc)
 	{
-	  cpp_fatal (pfile, "Macro name missing after -U option", NULL);
+	  cpp_fatal (pfile, "Macro name missing after -U option");
 	  return argc;
 	}
       else
diff -rup orig/egcs-CVS19980621/gcc/flow.c egcs-CVS19980621/gcc/flow.c
--- orig/egcs-CVS19980621/gcc/flow.c	Sun Jun 21 08:44:11 1998
+++ egcs-CVS19980621/gcc/flow.c	Sun Jun 21 09:33:22 1998
@@ -282,6 +282,8 @@ static void add_pred_succ		PROTO ((int, 
 static int_list_ptr alloc_int_list_node PROTO ((int_list_block **));
 static int_list_ptr add_int_list_node   PROTO ((int_list_block **,
 						int_list **, int));
+static void init_regset_vector		PROTO ((regset *, int,
+						struct obstack *));
 
 /* Find basic blocks of the current function.
    F is the first insn of the function and NREGS the number of register numbers
@@ -1496,7 +1498,7 @@ allocate_for_life_analysis ()
    NELTS elements, and space is allocated from the ALLOC_OBSTACK
    obstack.  */
 
-void
+static void
 init_regset_vector (vector, nelts, alloc_obstack)
      regset *vector;
      int nelts;
diff -rup orig/egcs-CVS19980621/gcc/objc/objc-act.c egcs-CVS19980621/gcc/objc/objc-act.c
--- orig/egcs-CVS19980621/gcc/objc/objc-act.c	Sun Jun 21 08:45:24 1998
+++ egcs-CVS19980621/gcc/objc/objc-act.c	Sun Jun 21 11:41:46 1998
@@ -192,7 +192,9 @@ static tree generate_protocol_list		PROT
 static void generate_forward_declaration_to_string_table PROTO((void));
 static void build_protocol_reference		PROTO((tree));
 
+#if 0
 static tree init_selector			PROTO((int));
+#endif
 static tree build_keyword_selector		PROTO((tree));
 static tree synth_id_with_class_suffix		PROTO((char *, tree));
 
@@ -2057,6 +2059,7 @@ build_msg_pool_reference (offset)
   return expr;
 }
 
+#if 0
 static tree
 init_selector (offset)
      int offset;
@@ -2065,6 +2068,7 @@ init_selector (offset)
   TREE_TYPE (expr) = selector_type;
   return expr;
 }
+#endif
 
 static void
 build_selector_translation_table ()
diff -rup orig/egcs-CVS19980621/gcc/optabs.c egcs-CVS19980621/gcc/optabs.c
--- orig/egcs-CVS19980621/gcc/optabs.c	Sun Jun 21 08:45:00 1998
+++ egcs-CVS19980621/gcc/optabs.c	Sun Jun 21 11:35:22 1998
@@ -4436,7 +4436,6 @@ gen_cond_trap (code, op1, op2, tcode)
      rtx op1, op2, tcode;
 {
   enum machine_mode mode = GET_MODE (op1);
-  enum insn_code icode;
 
   if (mode == VOIDmode)
     return 0;
diff -rup orig/egcs-CVS19980621/gcc/regmove.c egcs-CVS19980621/gcc/regmove.c
--- orig/egcs-CVS19980621/gcc/regmove.c	Sun Jun 21 08:45:04 1998
+++ egcs-CVS19980621/gcc/regmove.c	Sun Jun 21 11:36:12 1998
@@ -550,7 +550,6 @@ copy_src_to_dest (insn, src, dest, loop_
   rtx move_insn;
   rtx *p_insn_notes;
   rtx *p_move_notes;
-  int i;
   int src_regno;
   int dest_regno;
   int bb;


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