mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 03:14:29 +08:00
arc.c (arc_output_function_prologue, [...]): Fix format specifier warnings.
* arc.c (arc_output_function_prologue, arc_output_function_epilogue): Fix format specifier warnings. * arc.h (LARGE_INT): Fix signed/unsigned warnings. From-SVN: r66891
This commit is contained in:
parent
e0b3adcbe2
commit
15a5dddcc7
@ -1,5 +1,9 @@
|
||||
2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* 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
|
||||
|
@ -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
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user