public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4783] testsuite: Fix up pr64536.c for LLP64 targets [PR108151]
@ 2022-12-19 14:06 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2022-12-19 14:06 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6e85f89a7d59a99a3395b6e153b99262a58b2f6c

commit r13-4783-g6e85f89a7d59a99a3395b6e153b99262a58b2f6c
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon Dec 19 15:05:16 2022 +0100

    testsuite: Fix up pr64536.c for LLP64 targets [PR108151]
    
    Apparently llp64 had 2 further warnings, fixed thusly.
    
    2022-12-19  Jakub Jelinek  <jakub@redhat.com>
    
            PR testsuite/108151
            * gcc.dg/pr64536.c (bar): Cast long to __INTPTR_TYPE__
            before casting to long *.

Diff:
---
 gcc/testsuite/gcc.dg/pr64536.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/pr64536.c b/gcc/testsuite/gcc.dg/pr64536.c
index bca2d4f0efe..18afa9d0232 100644
--- a/gcc/testsuite/gcc.dg/pr64536.c
+++ b/gcc/testsuite/gcc.dg/pr64536.c
@@ -40,7 +40,7 @@ bar (int x)
 	      h->q = *f;
 	    }
 	  else
-	    i = (long *) (h->q = *f);
+	    i = (long *) (__INTPTR_TYPE__) (h->q = *f);
 	  *c++ = (__INTPTR_TYPE__) f;
 	  e += 6;
 	}
@@ -54,7 +54,7 @@ bar (int x)
 	      h->q = *f;
 	    }
 	  else
-	    i = (long *) (h->q = *f);
+	    i = (long *) (__INTPTR_TYPE__) (h->q = *f);
 	  *c++ = (__INTPTR_TYPE__) f;
 	  e += 6;
 	}

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

only message in thread, other threads:[~2022-12-19 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 14:06 [gcc r13-4783] testsuite: Fix up pr64536.c for LLP64 targets [PR108151] Jakub Jelinek

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).