ath9k_htc: Update to upstream's commit d19607454d656cb14d8c16dfbf161eebb542e8fe dated...
[linux-libre-firmware.git] / ath9k_htc / local / patches / gcc-6.3.0_fixup.patch
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];
7  
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);
14    else
15 @@ -2351,14 +2352,14 @@ print_operand (FILE *file, rtx x, int letter)
16  
17      case 'L':
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);
21        else
22         output_operand_lossage ("invalid %%L value");
23        break;
24  
25      case 'R':
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);
29        else
30         output_operand_lossage ("invalid %%R value");
31        break;
32 @@ -2372,7 +2373,7 @@ print_operand (FILE *file, rtx x, int letter)
33  
34      case 'd':
35        if (GET_CODE (x) == CONST_INT)
36 -       fprintf (file, "%ld", INTVAL (x));
37 +       fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x));
38        else
39         output_operand_lossage ("invalid %%d value");
40        break;
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));
47        else
48         output_addr_const (file, x);
49      }