aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-07-12 18:38:33 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-07-12 18:38:33 +0000
commit61fba2674fb10a8b8b2ae6b5ec965fd1fd738395 (patch)
treed5fc9ecb5f6d4ae9d0efb9dded45b3d42401fff0
parent5dd47cb75dac4583dc38e9c1df2fde89fd459a08 (diff)
downloadgcc-61fba2674fb10a8b8b2ae6b5ec965fd1fd738395.zip
gcc-61fba2674fb10a8b8b2ae6b5ec965fd1fd738395.tar.gz
gcc-61fba2674fb10a8b8b2ae6b5ec965fd1fd738395.tar.bz2
[Darwin, testsuite] Remove 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. gcc/testsuite/ 2019-07-12 Iain Sandoe <iain@sandoe.co.uk> * gcc.dg/pr57438-2.c: Remove. From-SVN: r273457
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/pr57438-2.c23
2 files changed, 4 insertions, 23 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 73fe739..1c9db4b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2019-07-12 Iain Sandoe <iain@sandoe.co.uk>
+
+ * gcc.dg/pr57438-2.c: Remove.
+
2019-07-12 Martin Sebor <msebor@redhat.com>
* gcc.dg/Warray-bounds-43.c: New test.
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* } } } } */