From patchwork Fri Jul 12 18:41:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 1131507 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-505031-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sandoe.co.uk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="usRcb8bX"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45lhby6DqGz9sDQ for ; Sat, 13 Jul 2019 04:42:05 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; q=dns; s=default; b=pM3tWVGi3wE0STWqSjjL UpBi/zHoGf0M+It0NN0Nbp04QOOsHg3SgSwucdMOoUKczZcYslJqgIm1Ag19rOGc 5b4mLXQdPOnYotd8s+rmqpqtINBCZlwlX9HN+UJ5Lid32rnYG2k6Xs1+hx9lkmsj Lp7RetIdUoVWbQzjEiwBfVs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; s=default; bh=8qSC/amkDR68KiLd6Jg1RYHMCw A=; b=usRcb8bXnxXo1zTmy7pfw9M3YfnbC6qiXs8V8J+0015oQQMHRBZxHduOD8 ENdMXK5ZhryLIyu0Zk229ti9gsP8j8Y8y/0Tq7h825kuq/izkM7x4uQ/93XHi5lg BpITDT2xdM12QyoWwOat9c/db19gRcMxOBaRDojQ5nNk375C8= Received: (qmail 122637 invoked by alias); 12 Jul 2019 18:41:58 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 122628 invoked by uid 89); 12 Jul 2019 18:41:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_COUK, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:ESMTPA X-HELO: smtp2.wavenetuk.net Received: from smtp.wavenetuk.net (HELO smtp2.wavenetuk.net) (195.26.37.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 12 Jul 2019 18:41:57 +0000 Received: from euterpe-sie.home (host81-138-1-83.in-addr.btopenworld.com [81.138.1.83]) by smtp2.wavenetuk.net (Postfix) with ESMTPA id 6107E600222; Fri, 12 Jul 2019 19:41:54 +0100 (BST) From: Iain Sandoe Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [Darwin, testsuite, committed] Remove unused test. Message-Id: <82F7910B-6E2F-42CA-8E9D-C54FB2E0214F@sandoe.co.uk> Date: Fri, 12 Jul 2019 19:41:38 +0100 Cc: Mike Stump To: GCC Patches During GCC-9, the codegen for unreachable switch case statements changed such that the (undefined) behaviour of reaching such statements is directed to one of the existing switch cases. This means that the testcase which deals with the old behaviour can no longer work (and there is nothing to test with it). The [Darwin-specific] test is now redundant fails for all Darwin but can be removed. applied to mainline, thanks Iain gcc/testsuite/ 2019-07-12 Iain Sandoe * gcc.dg/pr57438-2.c: Remove. diff --git a/gcc/testsuite/gcc.dg/pr57438-2.c b/gcc/testsuite/gcc.dg/pr57438-2.c deleted file mode 100644 index f3ff1dc..0000000 --- a/gcc/testsuite/gcc.dg/pr57438-2.c +++ /dev/null @@ -1,23 +0,0 @@ -/* { dg-do compile { target *-*-darwin* } } */ -/* { dg-options "--param case-values-threshold=3 -O2" } */ -/* { dg-additional-options "-funwind-tables" { target powerpc*-*-darwin* } } - -/* This is testing that a trailing local label is followed by a - nop where required. */ - -int foo (int x) -{ - switch (x) - { - case 0: - return 10; - case 3: - return -1; - case 5: - return 29; - default: - __builtin_unreachable(); - } -} - -/* { dg-final { scan-assembler "nop\\nLFE.*" { target { *-*-darwin* } } } } */