public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4192] Fix s390 test to have pointer type for computed goto
@ 2021-10-05 15:16 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2021-10-05 15:16 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f9e6f20f280daf74763cf3fe21f3c211d3d04620
commit r12-4192-gf9e6f20f280daf74763cf3fe21f3c211d3d04620
Author: Jeff Law <jeffreyalaw@gmail.com>
Date: Tue Oct 5 11:15:02 2021 -0400
Fix s390 test to have pointer type for computed goto
gcc/testsuite
* gcc.target/s390/pr80725.c: Ensure computed goto is used on
a pointer type.
Diff:
---
gcc/testsuite/gcc.target/s390/pr80725.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/s390/pr80725.c b/gcc/testsuite/gcc.target/s390/pr80725.c
index 4a402c41422..d556e6ba7ca 100644
--- a/gcc/testsuite/gcc.target/s390/pr80725.c
+++ b/gcc/testsuite/gcc.target/s390/pr80725.c
@@ -18,7 +18,7 @@ foo (int x, int y)
while (a < x)
{
if (y)
- goto *d;
+ goto *(void *)d;
g = b | b + g;
bar (g);
c = (char) (long) foo;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-05 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 15:16 [gcc r12-4192] Fix s390 test to have pointer type for computed goto Jeff Law
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).