public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH committed] Fix more testsuite fallout from computed goto changes
@ 2021-09-29 15:24 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2021-09-29 15:24 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 159 bytes --]

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.

Jeff

[-- Attachment #2: compgoto.patch --]
[-- Type: text/plain, Size: 1165 bytes --]

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/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 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*(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 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)
  _loc1:;
 *++esp=(long)&&_loc35;
  _loc35:;
-goto *(*esp--);
+goto *(void *)(*esp--);
 *++esp=(long)&&_loc36;
  _loc36:;
 *++esp=(long)&&_loc37;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-29 15:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-29 15:24 [PATCH committed] Fix more testsuite fallout from computed goto changes 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).