Commit fd7b8952 by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent a733b15e
2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
format specifier warnings.
* ip2k.c (function_prologue, function_epilogue, print_operand): * ip2k.c (function_prologue, function_epilogue, print_operand):
Fix format specifier warnings. Fix format specifier warnings.
* ip2k.md: Likewise. * ip2k.md: Likewise.
......
...@@ -279,8 +279,8 @@ mcore_print_operand_address (stream, x) ...@@ -279,8 +279,8 @@ mcore_print_operand_address (stream, x)
switch (GET_CODE (index)) switch (GET_CODE (index))
{ {
case CONST_INT: case CONST_INT:
fprintf (stream, "(%s,%d)", reg_names[REGNO(base)], fprintf (stream, "(%s," HOST_WIDE_INT_PRINT_DEC ")",
INTVAL (index)); reg_names[REGNO(base)], INTVAL (index));
break; break;
default: default:
...@@ -331,10 +331,10 @@ mcore_print_operand (stream, x, code) ...@@ -331,10 +331,10 @@ mcore_print_operand (stream, x, code)
fprintf (asm_out_file, "%d", exact_log2 (~INTVAL (x))); fprintf (asm_out_file, "%d", exact_log2 (~INTVAL (x)));
break; break;
case 'O': case 'O':
fprintf (asm_out_file, "%d", INTVAL (x)); fprintf (asm_out_file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x));
break; break;
case 'M': case 'M':
fprintf (asm_out_file, "%d", - INTVAL (x)); fprintf (asm_out_file, HOST_WIDE_INT_PRINT_DEC, - INTVAL (x));
break; break;
case 'R': case 'R':
/* Next location along in memory or register. */ /* Next location along in memory or register. */
...@@ -356,10 +356,10 @@ mcore_print_operand (stream, x, code) ...@@ -356,10 +356,10 @@ mcore_print_operand (stream, x, code)
reg_names[REGNO (x) + 3]); reg_names[REGNO (x) + 3]);
break; break;
case 'x': case 'x':
fprintf (asm_out_file, "0x%x", INTVAL (x)); fprintf (asm_out_file, HOST_WIDE_INT_PRINT_HEX, INTVAL (x));
break; break;
case 'X': 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; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment