From fd7b89524fc1615345fe5b67f02313d5d0f56641 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Fri, 16 May 2003 22:15:14 +0000 Subject: [PATCH] mcore.c (mcore_print_operand_address, [...]): Fix format specifier warnings. * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix format specifier warnings. From-SVN: r66888 --- gcc/ChangeLog | 3 +++ gcc/config/mcore/mcore.c | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 93c8bc1846b..8a594d85536 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2003-05-16 Kaveh R. Ghazi + * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix + format specifier warnings. + * ip2k.c (function_prologue, function_epilogue, print_operand): Fix format specifier warnings. * ip2k.md: Likewise. diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index 1f08663b04c..7030d9d1c3d 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -279,8 +279,8 @@ mcore_print_operand_address (stream, x) switch (GET_CODE (index)) { case CONST_INT: - fprintf (stream, "(%s,%d)", reg_names[REGNO(base)], - INTVAL (index)); + fprintf (stream, "(%s," HOST_WIDE_INT_PRINT_DEC ")", + reg_names[REGNO(base)], INTVAL (index)); break; default: @@ -331,10 +331,10 @@ mcore_print_operand (stream, x, code) fprintf (asm_out_file, "%d", exact_log2 (~INTVAL (x))); break; case 'O': - fprintf (asm_out_file, "%d", INTVAL (x)); + fprintf (asm_out_file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x)); break; case 'M': - fprintf (asm_out_file, "%d", - INTVAL (x)); + fprintf (asm_out_file, HOST_WIDE_INT_PRINT_DEC, - INTVAL (x)); break; case 'R': /* Next location along in memory or register. */ @@ -356,10 +356,10 @@ mcore_print_operand (stream, x, code) reg_names[REGNO (x) + 3]); break; case 'x': - fprintf (asm_out_file, "0x%x", INTVAL (x)); + fprintf (asm_out_file, HOST_WIDE_INT_PRINT_HEX, INTVAL (x)); break; case 'X': - fprintf (asm_out_file, "%d", 3 - INTVAL (x) / 8); + fprintf (asm_out_file, HOST_WIDE_INT_PRINT_DEC, 3 - INTVAL (x) / 8); break; default: -- 2.30.2