public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2264] s390: fix build on 32-bit hosts
@ 2022-08-30  8:47 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-08-30  8:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:34ad7155fe2a4a5d0b1815c79ce8b2af4c772c9e

commit r13-2264-g34ad7155fe2a4a5d0b1815c79ce8b2af4c772c9e
Author: Martin Liska <mliska@suse.cz>
Date:   Tue Aug 30 10:46:26 2022 +0200

    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.

Diff:
---
 gcc/config/s390/s390.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc
index 076c97a8b22..3ae586c60eb 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-30  8:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30  8:47 [gcc r13-2264] s390: fix build on 32-bit hosts Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).