Warning fixes:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 20 Oct 2000 23:32:10 +0000 (23:32 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 20 Oct 2000 23:32:10 +0000 (23:32 +0000)
* 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.

From-SVN: r36987

gcc/ChangeLog
gcc/config/mips/mips.h
gcc/config/sparc/sparc.c
gcc/libgcc2.c
gcc/libgcc2.h
gcc/ssa.c
gcc/toplev.c

index 3aaacb4cade0e1472f760ff52761825e809d12bc..46bfb5bf5e17e94f9ee772a13e6beb2969288de5 100644 (file)
@@ -1,3 +1,20 @@
+2000-10-20  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.
+
 2000-10-20  Tom Tromey  <tromey@cygnus.com>
 
        * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
index a7c33660d2cd913c54a2b10cfd1d4fa87cad8b39..e06e682d5faf04de8bf6f7f6b4510cf8e0a9fc6d 100644 (file)
@@ -1902,7 +1902,7 @@ extern enum reg_class mips_regno_to_class[];
 
 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
index a6364ab06161ea8941e5bb3c11b529b9992ac066..d99e7034464fb34cadb9b9c2552eb2a7c5bfa9cf 100644 (file)
@@ -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 ();
index 88f1fddd3a226a558b00361360195c7a545a2cad..4e4a65c04218fc68fc3a56c760d5e11e0d13369e 100644 (file)
@@ -69,7 +69,7 @@ __negdi2 (DWtype u)
 SItype
 __addvsi3 (SItype a, SItype b)
 {
-  SItype w, w1;
+  SItype w;
 
   w = a + b;
 
index e52867399c9bf49d273a88ff3ca39411bbd3a100..ec64046ce7e5a37d9807fec3e92ff98b8003bd10 100644 (file)
@@ -256,6 +256,17 @@ extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype);
 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);
index a32836881dc831c6933177b7c864c70788104be7..2f81e1667df91789e1479a6e9456d271eaf4ccac 100644 (file)
--- a/gcc/ssa.c
+++ b/gcc/ssa.c
@@ -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;
index 1dfa7f5cbf7060c7171102af40eea5bb0e7d0ef9..83653119a4b84e3cfd30b835cddce697abb0d0f2 100644 (file)
@@ -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