aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2021-01-31 12:24:44 +0000
committerIain Sandoe <iain@sandoe.co.uk>2021-01-31 13:56:35 +0000
commit98342bdd2b7085c9e7e4c9fbb07c3917a0013515 (patch)
tree35ea1a493099ed0e317ed5f2a383856b6c00191a
parent5dfbad4f7c4317e4653b0307503547fb1d9b5d6f (diff)
downloadgcc-98342bdd2b7085c9e7e4c9fbb07c3917a0013515.zip
gcc-98342bdd2b7085c9e7e4c9fbb07c3917a0013515.tar.gz
gcc-98342bdd2b7085c9e7e4c9fbb07c3917a0013515.tar.bz2
testsuite, Darwin : Skip ELF-specific tests.
A number of ELF-specific tests were introduced in r11-6140, one of which fails on all Mach-O/Darwin platforms. On examination, the tests have no meaningful parallel for Mach-O which dead strips at the symbol level, and does not make use of function sections (the fact that a used and an unused symbol are placed in the same section will not affect dead stripping). Given that the tests do not demonstrate anything useful on Darwin, skip them. gcc/testsuite/ChangeLog: * c-c++-common/attr-used-5.c: Skip for Darwin. * c-c++-common/attr-used-6.c: Likewise. * c-c++-common/attr-used-7.c: Likewise. * c-c++-common/attr-used-8.c: Likewise. * c-c++-common/attr-used-9.c: Likewise.
-rw-r--r--gcc/testsuite/c-c++-common/attr-used-5.c1
-rw-r--r--gcc/testsuite/c-c++-common/attr-used-6.c1
-rw-r--r--gcc/testsuite/c-c++-common/attr-used-7.c1
-rw-r--r--gcc/testsuite/c-c++-common/attr-used-8.c1
-rw-r--r--gcc/testsuite/c-c++-common/attr-used-9.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/attr-used-5.c b/gcc/testsuite/c-c++-common/attr-used-5.c
index ba59326..5b49241 100644
--- a/gcc/testsuite/c-c++-common/attr-used-5.c
+++ b/gcc/testsuite/c-c++-common/attr-used-5.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
/* { dg-options "-Wall -O2" } */
struct dtv_slotinfo_list
diff --git a/gcc/testsuite/c-c++-common/attr-used-6.c b/gcc/testsuite/c-c++-common/attr-used-6.c
index 5d20f87..3cf288d 100644
--- a/gcc/testsuite/c-c++-common/attr-used-6.c
+++ b/gcc/testsuite/c-c++-common/attr-used-6.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
/* { dg-options "-Wall -O2" } */
struct dtv_slotinfo_list
diff --git a/gcc/testsuite/c-c++-common/attr-used-7.c b/gcc/testsuite/c-c++-common/attr-used-7.c
index 75576bc..1721a8a 100644
--- a/gcc/testsuite/c-c++-common/attr-used-7.c
+++ b/gcc/testsuite/c-c++-common/attr-used-7.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
/* { dg-options "-Wall -O2" } */
int __attribute__((used,section(".data.foo"))) foo2 = 2;
diff --git a/gcc/testsuite/c-c++-common/attr-used-8.c b/gcc/testsuite/c-c++-common/attr-used-8.c
index e4982db..20662ca 100644
--- a/gcc/testsuite/c-c++-common/attr-used-8.c
+++ b/gcc/testsuite/c-c++-common/attr-used-8.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
/* { dg-options "-Wall -O2" } */
int __attribute__((section(".data.foo"))) foo1 = 1;
diff --git a/gcc/testsuite/c-c++-common/attr-used-9.c b/gcc/testsuite/c-c++-common/attr-used-9.c
index cf3bde6..5847b05 100644
--- a/gcc/testsuite/c-c++-common/attr-used-9.c
+++ b/gcc/testsuite/c-c++-common/attr-used-9.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */
/* { dg-options "-Wall -O2" } */
struct dtv_slotinfo_list