diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2021-09-29 11:21:42 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2021-09-29 11:21:42 -0400 |
commit | 86304da55ff5c03d16e386f525682ff6cc1fbe62 (patch) | |
tree | 59c4d9f65372af66400ff1ac1547104b43b62a77 /gcc | |
parent | 3caf7f87b1e7ed3f1c78fc23b5734276793b3c5f (diff) | |
download | gcc-86304da55ff5c03d16e386f525682ff6cc1fbe62.zip gcc-86304da55ff5c03d16e386f525682ff6cc1fbe62.tar.gz gcc-86304da55ff5c03d16e386f525682ff6cc1fbe62.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/920831-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr27863.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/920831-1.c b/gcc/testsuite/gcc.c-torture/compile/920831-1.c index 9e422a9..945c521 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 9dc1ab8..1428ce3 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; |