* sparc.c (sparc_output_scratch_registers): Mark parameter with
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Feb 2000 13:43:58 +0000 (13:43 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Feb 2000 13:43:58 +0000 (13:43 +0000)
ATTRIBUTE_UNUSED.
(sparc_va_arg, sparc_flat_output_function_prologue,
sparc_flat_output_function_epilogue): Cast value to unsigned in
comparison.
(sparc_emit_float_lib_cmp): Remove unused variable `cmp'.

* sparc.md: Add default case in switch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32078 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.md

index 67623e1..85ce325 100644 (file)
@@ -1,3 +1,14 @@
+2000-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * sparc.c (sparc_output_scratch_registers): Mark parameter with
+       ATTRIBUTE_UNUSED.
+       (sparc_va_arg, sparc_flat_output_function_prologue,
+       sparc_flat_output_function_epilogue): Cast value to unsigned in
+       comparison.
+       (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
+       
+       * sparc.md: Add default case in switch.
+
 2000-02-19  Richard Henderson  <rth@cygnus.com>
 
        * c-typeck.c (add_pending_init): Don't abort for multiple
index 891da83..ade8efe 100644 (file)
@@ -3271,7 +3271,7 @@ build_big_number (file, num, reg)
 /* Output any necessary .register pseudo-ops.  */
 void
 sparc_output_scratch_registers (file)
-     FILE *file;
+     FILE *file ATTRIBUTE_UNUSED;
 {
 #ifdef HAVE_AS_REGISTER_PSEUDO_OP
   int i;
@@ -4542,7 +4542,7 @@ sparc_va_arg (valist, type)
 
   if (TARGET_ARCH64)
     {
-      if (TYPE_ALIGN (type) >= 2 * BITS_PER_WORD)
+      if (TYPE_ALIGN (type) >= 2 * (unsigned) BITS_PER_WORD)
        align = 2 * UNITS_PER_WORD;
 
       if (AGGREGATE_TYPE_P (type))
@@ -4821,7 +4821,6 @@ sparc_emit_float_lib_cmp (x, y, comparison)
      enum rtx_code comparison;
 {
   char *qpfunc;
-  rtx cmp = const0_rtx;
   rtx slot0, slot1, result, tem, tem2;
   enum machine_mode mode;
 
@@ -6346,7 +6345,7 @@ sparc_flat_output_function_prologue (file, size)
         the gdb folk first.  */
 
       /* Is the entire register save area offsettable from %sp?  */
-      if (reg_offset < 4096 - 64 * UNITS_PER_WORD)
+      if (reg_offset < 4096 - 64 * (unsigned) UNITS_PER_WORD)
        {
          if (size <= 4096)
            {
@@ -6531,7 +6530,7 @@ sparc_flat_output_function_epilogue (file, size)
        }
 
       /* Is the entire register save area offsettable from %sp?  */
-      if (reg_offset < 4096 - 64 * UNITS_PER_WORD)
+      if (reg_offset < 4096 - 64 * (unsigned) UNITS_PER_WORD)
        {
          size1 = 0;
        }
index e84294e..1410196 100644 (file)
     case 7:
     case 8:
       return \"st\\t%1, %0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "fpmove,move,move,move,*,load,fpload,fpstore,store")
     case 7:
     case 8:
       return \"st\\t%r1, %0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "fpmove,move,move,move,*,load,fpload,fpstore,store")
     case 8:
     case 9:
       return \"st\\t%r1, %0\";
+    default:
+      abort();
     }
 }"
   [(set_attr "type" "fpmove,fpmove,move,move,move,*,load,fpload,fpstore,store")