public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jeff Law <law@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-3965] Fix more testsuite fallout from computed goto changes
Date: Wed, 29 Sep 2021 15:23:00 +0000 (GMT)	[thread overview]
Message-ID: <20210929152300.4A652385801E@sourceware.org> (raw)

https://gcc.gnu.org/g:86304da55ff5c03d16e386f525682ff6cc1fbe62

commit r12-3965-g86304da55ff5c03d16e386f525682ff6cc1fbe62
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:
---
 gcc/testsuite/gcc.c-torture/compile/920831-1.c | 2 +-
 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 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;


                 reply	other threads:[~2021-09-29 15:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210929152300.4A652385801E@sourceware.org \
    --to=law@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).