From: Iain Sandoe Date: Sun, 4 Aug 2019 13:06:11 +0000 (+0000) Subject: Darwin, testsuite, backport removal of unused test. X-Git-Tag: releases/gcc-9.2.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d97d364d66ce3f198b0ec0d8eedc9140b5945a6;p=thirdparty%2Fgcc.git Darwin, testsuite, backport removal of unused test. 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 and can be removed. 2019-08-04 Iain Sandoe Backport from mainline. 2019-07-12 Iain Sandoe * gcc.dg/pr57438-2.c: Remove. From-SVN: r274090 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 87816a952480..e9e8b8424dcd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2019-08-04 Iain Sandoe + + Backport from mainline. + 2019-07-12 Iain Sandoe + + * gcc.dg/pr57438-2.c: Remove. + 2019-08-04 Iain Sandoe Backport from mainline. diff --git a/gcc/testsuite/gcc.dg/pr57438-2.c b/gcc/testsuite/gcc.dg/pr57438-2.c deleted file mode 100644 index f3ff1dc1ed20..000000000000 --- 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* } } } } */