]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390: fix build on 32-bit hosts
authorMartin Liska <mliska@suse.cz>
Tue, 30 Aug 2022 08:46:26 +0000 (10:46 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 30 Aug 2022 08:46:26 +0000 (10:46 +0200)
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.

gcc/config/s390/s390.cc

index 076c97a8b225907c86904c7bc38c352d768413d3..3ae586c60eb5763da55001be5f0767398d5f745e 100644 (file)
@@ -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