public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-6263] testsuite: Fix up gcc.target/s390/pr96127.c test for modern C [PR96127]
@ 2023-12-07 8:45 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2023-12-07 8:45 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0d79636b8d2c7f0da16fbf5f786993783a4389ff
commit r14-6263-g0d79636b8d2c7f0da16fbf5f786993783a4389ff
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu Dec 7 09:45:13 2023 +0100
testsuite: Fix up gcc.target/s390/pr96127.c test for modern C [PR96127]
I've noticed this test regressed on s390x-linux with the addition of the
switch to modern C patchset. Haven't tried to reproduce the ICE, but as it
was a backend ICE and FE after warning used to add such casts before (now
errors), I think this ought to keep the testcase testing what was intended
before.
2023-12-07 Jakub Jelinek <jakub@redhat.com>
PR target/96127
* gcc.target/s390/pr96127.c (c1): Add casts to long int *.
Diff:
---
gcc/testsuite/gcc.target/s390/pr96127.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/s390/pr96127.c b/gcc/testsuite/gcc.target/s390/pr96127.c
index 213ed147175..dd78643e452 100644
--- a/gcc/testsuite/gcc.target/s390/pr96127.c
+++ b/gcc/testsuite/gcc.target/s390/pr96127.c
@@ -7,7 +7,7 @@ void
c1 (int oz, int dk, int ub)
{
int *hd = 0;
- long int *th = &dk;
+ long int *th = (long int *) &dk;
while (ub < 1)
{
@@ -17,7 +17,7 @@ c1 (int oz, int dk, int ub)
while (oz < 2)
{
- long int *lq = &oz;
+ long int *lq = (long int *) &oz;
(*hd < (*lq = *th)) < oz;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-07 8:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-07 8:45 [gcc r14-6263] testsuite: Fix up gcc.target/s390/pr96127.c test for modern C [PR96127] 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).