]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix more testsuite fallout from computed goto changes
authorJeff Law <jeffreyalaw@gmail.com>
Wed, 29 Sep 2021 15:21:42 +0000 (11:21 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Wed, 29 Sep 2021 15:21:42 +0000 (11:21 -0400)
gcc/testsuite
* gcc.c-torture/compile/920831-1.c: Fix computed goto types.
* gcc.c-torture/compile/pr27863.c: Likewise.

gcc/testsuite/gcc.c-torture/compile/920831-1.c
gcc/testsuite/gcc.c-torture/compile/pr27863.c

index 9e422a98becce196dde4dc8f171e34bfa512a71e..945c521292ff81f74565d51670f7c83eab002179 100644 (file)
@@ -1,3 +1,3 @@
 /* { dg-require-effective-target indirect_jumps } */
 
-f(x){goto*(char)x;}
+f(x){goto*(void *)x;}
index 9dc1ab892276bde7684ff915e2d9e86a255c3ca1..1428ce31ec8fde876819c072f1d4886770fac443 100644 (file)
@@ -14,7 +14,7 @@ int main(int argc,char**argv,char **envp)
  _loc1:;
 *++esp=(long)&&_loc35;
  _loc35:;
-goto *(*esp--);
+goto *(void *)(*esp--);
 *++esp=(long)&&_loc36;
  _loc36:;
 *++esp=(long)&&_loc37;