diff options
author | Martin Liska <mliska@suse.cz> | 2022-08-30 10:46:26 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-08-30 10:46:26 +0200 |
commit | 34ad7155fe2a4a5d0b1815c79ce8b2af4c772c9e (patch) | |
tree | 7b52862c577ef6017e5ef7cac81910fb4b202f2d /gcc/config | |
parent | f71abacfed170852ab25485e5c52f8d5aad7c2a0 (diff) | |
download | gcc-34ad7155fe2a4a5d0b1815c79ce8b2af4c772c9e.zip gcc-34ad7155fe2a4a5d0b1815c79ce8b2af4c772c9e.tar.gz gcc-34ad7155fe2a4a5d0b1815c79ce8b2af4c772c9e.tar.bz2 |
s390: fix build on 32-bit hosts
Fixes build on i686:
gcc/config/s390/s390.cc: In function 'bool s390_rtx_costs(rtx, machine_mode, int, int, int*, bool)':
gcc/config/s390/s390.cc:3728:63: error: cannot convert 'long int*' to 'long long int*'
gcc/ChangeLog:
* config/s390/s390.cc (s390_rtx_costs): Use proper type as
argument.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/s390/s390.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc index 076c97a..3ae586c 100644 --- a/gcc/config/s390/s390.cc +++ b/gcc/config/s390/s390.cc @@ -3724,7 +3724,7 @@ s390_rtx_costs (rtx x, machine_mode mode, int outer_code, case MEM: { rtx address = XEXP (dest, 0); rtx tmp; - long tmp2; + HOST_WIDE_INT tmp2; if (s390_loadrelative_operand_p (address, &tmp, &tmp2)) *total = COSTS_N_INSNS (1); else |