diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 90edd040233f..467b16212476 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2003-05-16 Kaveh R. Ghazi + * arc.c (arc_output_function_prologue, + arc_output_function_epilogue): Fix format specifier warnings. + * arc.h (LARGE_INT): Fix signed/unsigned warnings. + * v850.c (print_operand): Fix format specifier warnings. * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index faf8c1be051a..7673f6f4ccc7 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -1263,7 +1263,7 @@ arc_output_function_prologue (file, size) /* Allocate the stack frame. */ if (size - current_frame_info.pretend_size > 0) - fprintf (file, "\tsub %s,%s,%d\n", + fprintf (file, "\tsub %s,%s," HOST_WIDE_INT_PRINT_DEC "\n", sp_str, sp_str, size - current_frame_info.pretend_size); /* Save any needed call-saved regs (and call-used if this is an @@ -1425,7 +1425,7 @@ arc_output_function_epilogue (file, size) { if (!SMALL_INT (size - restored)) abort (); - fprintf (file, "\tadd %s,%s,%d\n", + fprintf (file, "\tadd %s,%s," HOST_WIDE_INT_PRINT_DEC "\n", sp_str, sp_str, size - restored); } else diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index 62c221dd8633..9744015657fe 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -493,7 +493,7 @@ extern enum reg_class arc_regno_reg_class[FIRST_PSEUDO_REGISTER]; /* local to this file */ #define LARGE_INT(X) \ ((X) >= (-(HOST_WIDE_INT) 0x7fffffff - 1) \ - && (X) <= (unsigned HOST_WIDE_INT) 0xffffffff) + && (unsigned HOST_WIDE_INT)(X) <= (unsigned HOST_WIDE_INT) 0xffffffff) #define CONST_OK_FOR_LETTER_P(VALUE, C) \ ((C) == 'I' ? SMALL_INT (VALUE) \