diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67623e138b4..85ce3256919 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2000-02-20 Kaveh R. Ghazi + + * 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 * c-typeck.c (add_pending_init): Don't abort for multiple diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 891da83a12f..ade8efe65e8 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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; } diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index e84294e3e34..1410196b0b0 100644 --- a/gcc/config/sparc/sparc.md +++ b/gcc/config/sparc/sparc.md @@ -3012,6 +3012,8 @@ case 7: case 8: return \"st\\t%1, %0\"; + default: + abort(); } }" [(set_attr "type" "fpmove,move,move,move,*,load,fpload,fpstore,store") @@ -3057,6 +3059,8 @@ case 7: case 8: return \"st\\t%r1, %0\"; + default: + abort(); } }" [(set_attr "type" "fpmove,move,move,move,*,load,fpload,fpstore,store") @@ -3104,6 +3108,8 @@ case 8: case 9: return \"st\\t%r1, %0\"; + default: + abort(); } }" [(set_attr "type" "fpmove,fpmove,move,move,move,*,load,fpload,fpstore,store")