From patchwork Wed Sep 29 15:24:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 45556 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 54CD23857C52 for ; Wed, 29 Sep 2021 15:25:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 54CD23857C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1632929102; bh=WORPs61Nk3/5nBNg/5YtxmorpPGMJL9YBmZtfAWNnDY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=L9WMSpIeq3/egwwlWVy+6ZPfksjoISf0r+pekWzxkGFfRthC/lkvQUFQ9rtY5/5ek 3fYD8NUEIK6Y3BU2m62HPdZp1PLH/L60siyttdeZurcpQwbTSg1GyfOT6u0KQZ25ce 6AF8xoNvMnpGo84ABV+nTuEgRvWbsdIDLrCORAtw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by sourceware.org (Postfix) with ESMTPS id A40C83857C4E for ; Wed, 29 Sep 2021 15:24:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A40C83857C4E Received: by mail-qt1-x836.google.com with SMTP id t2so2629994qtx.8 for ; Wed, 29 Sep 2021 08:24:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=WORPs61Nk3/5nBNg/5YtxmorpPGMJL9YBmZtfAWNnDY=; b=bAswqc1X1fUdmH4+x/2fEC5h8ZHXP65mjxjlXkwUOT6EGwmmYOOw6A8V+qtoyBvkGq Fx9IgbQhR9y1j8+nMJ9iUBellHrHspl+zuNpiOH4kK9UBEVzg1QnxfpFrDY7YQIB823h XtNsIb4IA4dgH7msWgJZMbhd2VcyeRZ5vgplPnnlMbSrdnA5yGOc3KuKGsIO6OlDWYN0 lnvaBU45hqN5HTBjlnR2XWG8cWcAdbrbFQb0v4kidn8rXrWoZrNHVCpiRS2lubKQ0RwX vOTMUI31n7pdWr4pG6ThfO77T1K01VC7/EWnFWWPr8EJ3JTgZ8/q23QLaemTEwG5tz60 jG0w== X-Gm-Message-State: AOAM531Ht/Yp6N0qegWJaEiiUnCPQeED2IuSdHfgUdTt8EpG4YIRP3pk OGs7q3jrFimTMaPummyWxv4upO5HvPU= X-Google-Smtp-Source: ABdhPJwvzudUivo/vC18VxiawS4WcfNAXjbwNuNO6ZYVnOO3aqHDNrT2tliddIrrOZbVfXqWVCY8cQ== X-Received: by 2002:ac8:1e98:: with SMTP id c24mr486685qtm.119.1632929071030; Wed, 29 Sep 2021 08:24:31 -0700 (PDT) Received: from [192.168.1.24] (65-130-91-168.slkc.qwest.net. [65.130.91.168]) by smtp.gmail.com with ESMTPSA id o13sm110126qtk.37.2021.09.29.08.24.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Sep 2021 08:24:30 -0700 (PDT) To: GCC Patches Subject: [PATCH committed] Fix more testsuite fallout from computed goto changes Message-ID: <45e812dc-6fd3-5e9b-d013-a378d182739e@gmail.com> Date: Wed, 29 Sep 2021 09:24:29 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jeff Law via Gcc-patches From: Jeff Law Reply-To: Jeff Law Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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 commit 86304da55ff5c03d16e386f525682ff6cc1fbe62 Author: Jeff Law 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;