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]

Warning patches installed


I installed the following "obvious" warning fixes after successfully
bootstrapping the patch on mips-sgi-irix6.2 and sparc-sun-solaris2.7.

		--Kaveh



2000-10-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.

	* sparc.c (load_pic_register): Delete unused varaible.

	* libgcc2.c (__addvsi3): Delete unused variable.

	* libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
	__subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
	__negvdi2): Prototype.

	* ssa.c (apply_delayed_renames): Avoid undefined operation.

	* toplev.c (display_target_options): Make static to match
	prototype.  Delete empty declaration.
	
diff -rup orig/egcs-CVS20001019/gcc/config/mips/mips.h egcs-CVS20001019/gcc/config/mips/mips.h
--- orig/egcs-CVS20001019/gcc/config/mips/mips.h	Tue Sep 26 18:15:34 2000
+++ egcs-CVS20001019/gcc/config/mips/mips.h	Fri Oct 20 11:28:31 2000
@@ -1902,7 +1902,7 @@ extern enum reg_class mips_regno_to_clas
 
 extern enum reg_class mips_char_to_class[];
 
-#define REG_CLASS_FROM_LETTER(C) mips_char_to_class[ (C) ]
+#define REG_CLASS_FROM_LETTER(C) mips_char_to_class[(unsigned char)(C)]
 
 /* The letters I, J, K, L, M, N, O, and P in a register constraint
    string can be used to stand for particular ranges of immediate
diff -rup orig/egcs-CVS20001019/gcc/config/sparc/sparc.c egcs-CVS20001019/gcc/config/sparc/sparc.c
--- orig/egcs-CVS20001019/gcc/config/sparc/sparc.c	Fri Oct 13 12:08:36 2000
+++ egcs-CVS20001019/gcc/config/sparc/sparc.c	Fri Oct 20 11:28:31 2000
@@ -2836,7 +2836,6 @@ load_pic_register ()
 {
   /* Labels to get the PC in the prologue of this function.  */
   int orig_flag_pic = flag_pic;
-  rtx insn;
 
   if (! flag_pic)
     abort ();
diff -rup orig/egcs-CVS20001019/gcc/libgcc2.c egcs-CVS20001019/gcc/libgcc2.c
--- orig/egcs-CVS20001019/gcc/libgcc2.c	Thu Oct 19 13:09:07 2000
+++ egcs-CVS20001019/gcc/libgcc2.c	Fri Oct 20 11:28:32 2000
@@ -69,7 +69,7 @@ __negdi2 (DWtype u)
 SItype
 __addvsi3 (SItype a, SItype b)
 {
-  SItype w, w1;
+  SItype w;
 
   w = a + b;
 
diff -rup orig/egcs-CVS20001019/gcc/libgcc2.h egcs-CVS20001019/gcc/libgcc2.h
--- orig/egcs-CVS20001019/gcc/libgcc2.h	Fri Oct  6 10:29:10 2000
+++ egcs-CVS20001019/gcc/libgcc2.h	Fri Oct 20 11:28:32 2000
@@ -256,6 +256,17 @@ extern UWtype __udiv_w_sdiv (UWtype *, U
 extern word_type __cmpdi2 (DWtype, DWtype);
 extern word_type __ucmpdi2 (DWtype, DWtype);
 
+extern SItype __absvsi2 (SItype);
+extern DItype __absvdi2 (DItype);
+extern SItype __addvsi3 (SItype, SItype);
+extern DItype __addvdi3 (DItype, DItype);
+extern SItype __subvsi3 (SItype, SItype);
+extern DItype __subvdi3 (DItype, DItype);
+extern SItype __mulvsi3 (SItype, SItype);
+extern DItype __mulvdi3 (DItype, DItype);
+extern SItype __negvsi2 (SItype);
+extern DItype __negvdi2 (DItype);
+
 #if BITS_PER_UNIT == 8
 extern DWtype __fixdfdi (DFtype);
 extern DWtype __fixsfdi (SFtype);
diff -rup orig/egcs-CVS20001019/gcc/ssa.c egcs-CVS20001019/gcc/ssa.c
--- orig/egcs-CVS20001019/gcc/ssa.c	Sat Aug  5 15:22:36 2000
+++ egcs-CVS20001019/gcc/ssa.c	Fri Oct 20 11:28:32 2000
@@ -826,8 +826,8 @@ apply_delayed_renames (c)
       if (new_regno >= (int) ssa_definition->num_elements)
 	{
 	  int new_limit = new_regno * 5 / 4;
-	  ssa_definition = VARRAY_GROW (ssa_definition, new_limit);
-	  ssa_uses = VARRAY_GROW (ssa_uses, new_limit);
+	  VARRAY_GROW (ssa_definition, new_limit);
+	  VARRAY_GROW (ssa_uses, new_limit);
 	}
 
       VARRAY_RTX (ssa_definition, new_regno) = r->set_insn;
diff -rup orig/egcs-CVS20001019/gcc/toplev.c egcs-CVS20001019/gcc/toplev.c
--- orig/egcs-CVS20001019/gcc/toplev.c	Wed Oct 18 18:38:32 2000
+++ egcs-CVS20001019/gcc/toplev.c	Fri Oct 20 11:28:32 2000
@@ -3894,11 +3894,10 @@ display_help ()
   display_target_options ();
 }
 
-void
+static void
 display_target_options ()
 {
   int undoc,i;
-  unsigned long;
 
   if (ARRAY_SIZE (target_switches) > 1
 #ifdef TARGET_OPTIONS

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