- local HOST_WIDE_INT_CONSTANT macro same as new HOST_WIDE_INT_C macro,
  so use it instead, and remove the local macro.
- re-port the genrecog.c change which was missed in early GCC-6 port.

this makes sh3 work again.
This commit is contained in:
mrg 2018-02-22 07:24:19 +00:00
parent 67c67975c6
commit da58b5e34c
3 changed files with 3 additions and 5 deletions

View File

@ -188,7 +188,7 @@ gen_exp (rtx x, enum rtx_code subroutine_type, char *used)
printf ("const_true_rtx"); printf ("const_true_rtx");
else else
{ {
printf ("GEN_INT (HOST_WIDE_INT_CONSTANT ("); printf ("GEN_INT (HOST_WIDE_INT_C (");
printf (HOST_WIDE_INT_PRINT_DEC, INTVAL (x)); printf (HOST_WIDE_INT_PRINT_DEC, INTVAL (x));
printf ("))"); printf ("))");
} }

View File

@ -4416,9 +4416,9 @@ print_host_wide_int (uint64_t val)
{ {
uint64_t min = uint64_t (1) << (HOST_BITS_PER_WIDE_INT - 1); uint64_t min = uint64_t (1) << (HOST_BITS_PER_WIDE_INT - 1);
if (val == min) if (val == min)
printf ("(" HOST_WIDE_INT_PRINT_DEC_C " - 1)", val + 1); printf ("( HOST_WIDE_INT_C (" HOST_WIDE_INT_PRINT_DEC ") - 1)", val + 1);
else else
printf (HOST_WIDE_INT_PRINT_DEC_C, val); printf (" HOST_WIDE_INT_C (" HOST_WIDE_INT_PRINT_DEC ")", val);
} }
/* Print the C expression for actual parameter PARAM. */ /* Print the C expression for actual parameter PARAM. */

View File

@ -99,11 +99,9 @@ typedef HOST_WIDE_INT __gcc_host_wide_int__;
#if INT64_T_IS_LONG #if INT64_T_IS_LONG
# define HOST_WIDE_INT_PRINT HOST_LONG_FORMAT # define HOST_WIDE_INT_PRINT HOST_LONG_FORMAT
# define HOST_WIDE_INT_PRINT_C "L" # define HOST_WIDE_INT_PRINT_C "L"
# define HOST_WIDE_INT_CONSTANT(x) x ## L
#else #else
# define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT # define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT
# define HOST_WIDE_INT_PRINT_C "LL" # define HOST_WIDE_INT_PRINT_C "LL"
# define HOST_WIDE_INT_CONSTANT(x) x ## LL
#endif #endif
#define HOST_WIDE_INT_PRINT_DEC "%" PRId64 #define HOST_WIDE_INT_PRINT_DEC "%" PRId64