[committed] Fix more testsuite fallout from computed goto changes

Message ID 45e812dc-6fd3-5e9b-d013-a378d182739e@gmail.com
State Committed
Commit 86304da55ff5c03d16e386f525682ff6cc1fbe62
Series [committed] Fix more testsuite fallout from computed goto changes |

Commit Message

Jeff Law Sept. 29, 2021, 3:24 p.m. UTC
  Not sure why these weren't caught in Andrew's testing or subsequent 
fixes, but they're falling across the board in the tester.

Committed to the trunk.

commit 86304da55ff5c03d16e386f525682ff6cc1fbe62
Author: Jeff Law <jeffreyalaw@gmail.com>
Date:   Wed Sep 29 11:21:42 2021 -0400

    Fix more testsuite fallout from computed goto changes
            * gcc.c-torture/compile/920831-1.c: Fix computed goto types.
            * gcc.c-torture/compile/pr27863.c: Likewise.


diff --git a/gcc/testsuite/gcc.c-torture/compile/920831-1.c b/gcc/testsuite/gcc.c-torture/compile/920831-1.c
index 9e422a98bec..945c521292f 100644
--- a/gcc/testsuite/gcc.c-torture/compile/920831-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/920831-1.c
@@ -1,3 +1,3 @@ 
 /* { dg-require-effective-target indirect_jumps } */
+f(x){goto*(void *)x;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr27863.c b/gcc/testsuite/gcc.c-torture/compile/pr27863.c
index 9dc1ab89227..1428ce31ec8 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr27863.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr27863.c
@@ -14,7 +14,7 @@  int main(int argc,char**argv,char **envp)
-goto *(*esp--);
+goto *(void *)(*esp--);