1 diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
2 index 015dd1049fb..df80ad9117e 100644
3 --- a/gcc/config/xtensa/xtensa.c
4 +++ b/gcc/config/xtensa/xtensa.c
5 @@ -1780,7 +1780,8 @@ xtensa_emit_call (int callop, rtx *operands)
6 rtx tgt = operands[callop];
8 if (GET_CODE (tgt) == CONST_INT)
9 - sprintf (result, "call%d\t0x%lx", WINDOW_SIZE, INTVAL (tgt));
10 + sprintf (result, "call%d\t" HOST_WIDE_INT_PRINT_HEX,
11 + WINDOW_SIZE, INTVAL (tgt));
12 else if (register_operand (tgt, VOIDmode))
13 sprintf (result, "callx%d\t%%%d", WINDOW_SIZE, callop);
15 @@ -2351,14 +2352,14 @@ print_operand (FILE *file, rtx x, int letter)
18 if (GET_CODE (x) == CONST_INT)
19 - fprintf (file, "%ld", (32 - INTVAL (x)) & 0x1f);
20 + fprintf (file, HOST_WIDE_INT_PRINT_DEC, (32 - INTVAL (x)) & 0x1f);
22 output_operand_lossage ("invalid %%L value");
26 if (GET_CODE (x) == CONST_INT)
27 - fprintf (file, "%ld", INTVAL (x) & 0x1f);
28 + fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x) & 0x1f);
30 output_operand_lossage ("invalid %%R value");
32 @@ -2372,7 +2373,7 @@ print_operand (FILE *file, rtx x, int letter)
35 if (GET_CODE (x) == CONST_INT)
36 - fprintf (file, "%ld", INTVAL (x));
37 + fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x));
39 output_operand_lossage ("invalid %%d value");
41 @@ -2437,7 +2438,7 @@ print_operand (FILE *file, rtx x, int letter)
42 else if (GET_CODE (x) == MEM)
43 output_address (GET_MODE (x), XEXP (x, 0));
44 else if (GET_CODE (x) == CONST_INT)
45 - fprintf (file, "%ld", INTVAL (x));
46 + fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x));
48 output_addr_const (file, x);