re-port the patch from https://gcc.gnu.org/bugzilla/attachment.cgi?id=15492.
- 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:
parent
67c67975c6
commit
da58b5e34c
|
@ -188,7 +188,7 @@ gen_exp (rtx x, enum rtx_code subroutine_type, char *used)
|
|||
printf ("const_true_rtx");
|
||||
else
|
||||
{
|
||||
printf ("GEN_INT (HOST_WIDE_INT_CONSTANT (");
|
||||
printf ("GEN_INT (HOST_WIDE_INT_C (");
|
||||
printf (HOST_WIDE_INT_PRINT_DEC, INTVAL (x));
|
||||
printf ("))");
|
||||
}
|
||||
|
|
|
@ -4416,9 +4416,9 @@ print_host_wide_int (uint64_t val)
|
|||
{
|
||||
uint64_t min = uint64_t (1) << (HOST_BITS_PER_WIDE_INT - 1);
|
||||
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
|
||||
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. */
|
||||
|
|
|
@ -99,11 +99,9 @@ typedef HOST_WIDE_INT __gcc_host_wide_int__;
|
|||
#if INT64_T_IS_LONG
|
||||
# define HOST_WIDE_INT_PRINT HOST_LONG_FORMAT
|
||||
# define HOST_WIDE_INT_PRINT_C "L"
|
||||
# define HOST_WIDE_INT_CONSTANT(x) x ## L
|
||||
#else
|
||||
# define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT
|
||||
# define HOST_WIDE_INT_PRINT_C "LL"
|
||||
# define HOST_WIDE_INT_CONSTANT(x) x ## LL
|
||||
#endif
|
||||
|
||||
#define HOST_WIDE_INT_PRINT_DEC "%" PRId64
|
||||
|
|
Loading…
Reference in New Issue