From fbd039b21b559b4c2c8caf8a5a34e003ac91a5b5 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 20 Feb 2000 13:43:58 +0000 Subject: [PATCH] sparc.c (sparc_output_scratch_registers): Mark parameter with ATTRIBUTE_UNUSED. * 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. From-SVN: r32078 --- gcc/ChangeLog | 11 +++++++++++ gcc/config/sparc/sparc.c | 9 ++++----- gcc/config/sparc/sparc.md | 6 ++++++ 3 files changed, 21 insertions(+), 5 deletions(-) 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")