aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 4 Jun 2003 21:18:48 +0000 (21:18 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 4 Jun 2003 21:18:48 +0000 (21:18 +0000)
* 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.

From-SVN: r67464

gcc/ChangeLog
gcc/config/arm/aout.h
gcc/config/arm/arm.c
gcc/config/arm/arm.h
gcc/config/m68k/m68k.c
gcc/config/vax/vax.c

index 0ff9fe88c6a997820cf9899bf69e9129dfc779b6..8db32a254186d1015810efa6c84e4c93ec939e0d 100644 (file)
@@ -1,3 +1,12 @@
+2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * 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  <rth@redhat.com>
 
         * cse.c (find_best_addr): Consider binary operators even if second
index 215065168f7f872a742efdfd4e8f7e5bda199003..71fa43b496424c088873f8bd84de5165c53c979c 100644 (file)
 /* 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  
index e767dab3567fc58c78262463762aee255b000b32..f28362af4800783724c00e648bdad1868810425f 100644 (file)
@@ -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);
 
index a6f0b90c55956ce671958bbec81286bcc5d47236..5af2cb86ee25f427e4a5e85ff966cd76861fea31 100644 (file)
@@ -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",                                      \
index 8f49f3cbd3d81ff0feeeb5fdd0f57be85070be78..02b09117d6e56e126d233a02088423e718ae275f 100644 (file)
@@ -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);
 
index 70c63e4821b1dde2f93d77f331f01376da0513db..66b943be5f8b151437400088d03c55b7ace55215 100644 (file)
@@ -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.  */