aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-06-04 21:18:48 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-06-04 21:18:48 +0000
commitc53dddc2322f42332c78dec0a2eeedec6f5f6b0c (patch)
treed9dda02bdd845fbe2d66ddea44b76f0cbd845d8c /gcc
parent7b9c108f639ad6d2488912704c893c8b4040e26c (diff)
downloadgcc-c53dddc2322f42332c78dec0a2eeedec6f5f6b0c.zip
gcc-c53dddc2322f42332c78dec0a2eeedec6f5f6b0c.tar.gz
gcc-c53dddc2322f42332c78dec0a2eeedec6f5f6b0c.tar.bz2
aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
* 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config/arm/aout.h2
-rw-r--r--gcc/config/arm/arm.c2
-rw-r--r--gcc/config/arm/arm.h6
-rw-r--r--gcc/config/m68k/m68k.c3
-rw-r--r--gcc/config/vax/vax.c4
6 files changed, 17 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0ff9fe8..8db32a2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/arm/aout.h b/gcc/config/arm/aout.h
index 2150651..71fa43b 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 e767dab..f28362a 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 a6f0b90c..5af2cb8 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 8f49f3c..02b0911 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 70c63e4..66b943b 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. */