From: Jeff Law Date: Wed, 29 Sep 2021 15:21:42 +0000 (-0400) Subject: Fix more testsuite fallout from computed goto changes X-Git-Tag: basepoints/gcc-13~4348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86304da55ff5c03d16e386f525682ff6cc1fbe62;p=thirdparty%2Fgcc.git Fix more testsuite fallout from computed goto changes gcc/testsuite * 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 9e422a98becc..945c521292ff 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*(char)x;} +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 9dc1ab892276..1428ce31ec8f 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) _loc1:; *++esp=(long)&&_loc35; _loc35:; -goto *(*esp--); +goto *(void *)(*esp--); *++esp=(long)&&_loc36; _loc36:; *++esp=(long)&&_loc37;