public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-10692] testsuite: Fix up pr64536.c for LLP64 targets [PR108151]
@ 2023-05-02 20:13 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2023-05-02 20:13 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ab03e6bdc590393a36d62cf14fe0280529c933ae
commit r11-10692-gab03e6bdc590393a36d62cf14fe0280529c933ae
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 *.
(cherry picked from commit 6e85f89a7d59a99a3395b6e153b99262a58b2f6c)
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:[~2023-05-02 20:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-02 20:13 [gcc r11-10692] 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).