From: ghazi Date: Wed, 4 Jun 2003 21:18:48 +0000 (+0000) Subject: * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning. X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=4d1bb299480f7c961ee9562846cb394e10d7c13e * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning. * arm.c (arm_output_function_prologue): Fix format specifiers. * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise. * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of HOST_WIDE_INT_PRINT_DEC. * vax.c (vax_output_function_prologue): Fix format specifiers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67464 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ff9fe88c6a..8db32a25418 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2003-06-04 Kaveh R. Ghazi + + * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning. + * arm.c (arm_output_function_prologue): Fix format specifiers. + * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise. + * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of + HOST_WIDE_INT_PRINT_DEC. + * vax.c (vax_output_function_prologue): Fix format specifiers. + 2003-06-04 Richard Henderson * cse.c (find_best_addr): Consider binary operators even if second diff --git a/gcc/config/arm/aout.h b/gcc/config/arm/aout.h index 215065168f7..71fa43b4964 100644 --- a/gcc/config/arm/aout.h +++ b/gcc/config/arm/aout.h @@ -240,7 +240,7 @@ /* Output a gap. In fact we fill it with nulls. */ #undef ASM_OUTPUT_SKIP #define ASM_OUTPUT_SKIP(STREAM, NBYTES) \ - fprintf (STREAM, "\t.space\t%d\n", (int)NBYTES) + fprintf (STREAM, "\t.space\t%d\n", (int)(NBYTES)) /* Align output to a power of two. Horrible /bin/as. */ #ifndef ASM_OUTPUT_ALIGN diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index e767dab3567..f28362af480 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -8422,7 +8422,7 @@ arm_output_function_prologue (f, frame_size) if (IS_NESTED (func_type)) asm_fprintf (f, "\t%@ Nested: function declared inside another function.\n"); - asm_fprintf (f, "\t%@ args = %d, pretend = %d, frame = %d\n", + asm_fprintf (f, "\t%@ args = %d, pretend = %d, frame = %wd\n", current_function_args_size, current_function_pretend_args_size, frame_size); diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index a6f0b90c559..5af2cb86ee2 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -2391,7 +2391,7 @@ extern int making_const_table; offset = INTVAL (index); \ if (is_minus) \ offset = -offset; \ - asm_fprintf (STREAM, "[%r, #%d]", \ + asm_fprintf (STREAM, "[%r, #%wd]", \ REGNO (base), offset); \ break; \ \ @@ -2442,7 +2442,7 @@ extern int making_const_table; { \ asm_fprintf (STREAM, "[%r, ", REGNO (XEXP (X, 0))); \ if (GET_CODE (XEXP (XEXP (X, 1), 1)) == CONST_INT) \ - asm_fprintf (STREAM, "#%d]!", \ + asm_fprintf (STREAM, "#%wd]!", \ INTVAL (XEXP (XEXP (X, 1), 1))); \ else \ asm_fprintf (STREAM, "%r]!", \ @@ -2452,7 +2452,7 @@ extern int making_const_table; { \ asm_fprintf (STREAM, "[%r], ", REGNO (XEXP (X, 0))); \ if (GET_CODE (XEXP (XEXP (X, 1), 1)) == CONST_INT) \ - asm_fprintf (STREAM, "#%d", \ + asm_fprintf (STREAM, "#%wd", \ INTVAL (XEXP (XEXP (X, 1), 1))); \ else \ asm_fprintf (STREAM, "%r", \ diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 8f49f3cbd3d..02b09117d6e 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -3681,8 +3681,7 @@ m68k_output_mi_thunk (file, thunk, delta, vcall_offset, function) else if (delta < 0 && delta >= -8) asm_fprintf (file, "\tsubq.l %I%d,4(%Rsp)\n", (int) -delta); else - asm_fprintf (file, "\tadd.l %I" HOST_WIDE_INT_PRINT_DEC ",4(%Rsp)\n", - delta); + asm_fprintf (file, "\tadd.l %I%wd,4(%Rsp)\n", delta); xops[0] = DECL_RTL (function); diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 70c63e4821b..66b943be5f8 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -121,9 +121,9 @@ vax_output_function_prologue (file, size) size -= STARTING_FRAME_OFFSET; if (size >= 64) - asm_fprintf (file, "\tmovab %d(%Rsp),%Rsp\n", -size); + asm_fprintf (file, "\tmovab %wd(%Rsp),%Rsp\n", -size); else if (size) - asm_fprintf (file, "\tsubl2 $%d,%Rsp\n", size); + asm_fprintf (file, "\tsubl2 $%wd,%Rsp\n", size); } /* This is like nonimmediate_operand with a restriction on the type of MEM. */