Commit 3afaa6e8 by John Carr Committed by Jim Wilson

Patch from jfc to fix printf format problems.

From-SVN: r17827
parent 60e2d0ca
...@@ -4799,18 +4799,16 @@ print_operand (file, op, letter) ...@@ -4799,18 +4799,16 @@ print_operand (file, op, letter)
} }
else if ((letter == 'x') && (GET_CODE(op) == CONST_INT)) else if ((letter == 'x') && (GET_CODE(op) == CONST_INT))
fprintf (file, "0x%04x", 0xffff & (INTVAL(op))); fprintf (file, "0x%04x", 0xffff & ((int) INTVAL(op)));
#if HOST_BITS_PER_WIDE_INT <= HOST_BITS_PER_LONG
else if ((letter == 'X') && (GET_CODE(op) == CONST_INT) else if ((letter == 'X') && (GET_CODE(op) == CONST_INT))
&& HOST_BITS_PER_WIDE_INT == 32) fprintf (file, "0x%08lx", (unsigned long) INTVAL(op));
fprintf (file, "0x%08x", INTVAL(op)); #else
else if ((letter == 'X') && (GET_CODE(op) == CONST_INT))
else if ((letter == 'X') && (GET_CODE(op) == CONST_INT) fprintf (file, HOST_WIDE_INT_PRINT_HEX, INTVAL(op));
&& HOST_BITS_PER_WIDE_INT == 64) #endif
fprintf (file, "0x%016lx", INTVAL(op));
else if ((letter == 'd') && (GET_CODE(op) == CONST_INT)) else if ((letter == 'd') && (GET_CODE(op) == CONST_INT))
fprintf (file, "%d", (INTVAL(op))); fprintf (file, "%ld", ((long) INTVAL(op)));
else if (letter == 'z' else if (letter == 'z'
&& (GET_CODE (op) == CONST_INT) && (GET_CODE (op) == CONST_INT)
...@@ -6090,7 +6088,7 @@ function_prologue (file, size) ...@@ -6090,7 +6088,7 @@ function_prologue (file, size)
current_function_outgoing_args_size, current_function_outgoing_args_size,
current_frame_info.extra_size); current_frame_info.extra_size);
fprintf (file, "\t.mask\t0x%08lx,%d\n\t.fmask\t0x%08lx,%d\n", fprintf (file, "\t.mask\t0x%08lx,%ld\n\t.fmask\t0x%08lx,%ld\n",
current_frame_info.mask, current_frame_info.mask,
current_frame_info.gp_save_offset, current_frame_info.gp_save_offset,
current_frame_info.fmask, current_frame_info.fmask,
...@@ -6220,10 +6218,10 @@ function_prologue (file, size) ...@@ -6220,10 +6218,10 @@ function_prologue (file, size)
reg_names[PIC_FUNCTION_ADDR_REGNUM]); reg_names[PIC_FUNCTION_ADDR_REGNUM]);
if (tsize > 0) if (tsize > 0)
{ {
fprintf (file, "\t%s\t%s,%s,%d\n", fprintf (file, "\t%s\t%s,%s,%ld\n",
(TARGET_LONG64 ? "dsubu" : "subu"), (TARGET_LONG64 ? "dsubu" : "subu"),
sp_str, sp_str, tsize); sp_str, sp_str, tsize);
fprintf (file, "\t.cprestore %d\n", current_frame_info.args_size); fprintf (file, "\t.cprestore %ld\n", current_frame_info.args_size);
} }
if (dwarf2out_do_frame ()) if (dwarf2out_do_frame ())
......
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