From 93e8054406e803202b0e97ec3917820dcd824761 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Fri, 19 Feb 2021 18:38:18 -0500 Subject: [PATCH] testsuite: skip attr-retain-?.c on AIX The attr-retain-?.c tests assume ELF file syntax / semantics. Some of the tests skip AIX because of other requirements, and some explicitly skip Darwin. This patch adds AIX to the explicit skip list. gcc/testsuite/ChangeLog: * c-c++-common/attr-retain-5.c: Skip on AIX. * c-c++-common/attr-retain-6.c: Same. * c-c++-common/attr-retain-7.c: Same. * c-c++-common/attr-retain-8.c: Same. * c-c++-common/attr-retain-9.c: Same. --- gcc/testsuite/c-c++-common/attr-retain-5.c | 2 +- gcc/testsuite/c-c++-common/attr-retain-6.c | 2 +- gcc/testsuite/c-c++-common/attr-retain-7.c | 2 +- gcc/testsuite/c-c++-common/attr-retain-8.c | 2 +- gcc/testsuite/c-c++-common/attr-retain-9.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/c-c++-common/attr-retain-5.c b/gcc/testsuite/c-c++-common/attr-retain-5.c index 669fa90f24c..ee6e2c4e054 100644 --- a/gcc/testsuite/c-c++-common/attr-retain-5.c +++ b/gcc/testsuite/c-c++-common/attr-retain-5.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */ +/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */ /* { dg-options "-Wall -O2" } */ struct dtv_slotinfo_list diff --git a/gcc/testsuite/c-c++-common/attr-retain-6.c b/gcc/testsuite/c-c++-common/attr-retain-6.c index 1cf03a7d777..9aead148ec8 100644 --- a/gcc/testsuite/c-c++-common/attr-retain-6.c +++ b/gcc/testsuite/c-c++-common/attr-retain-6.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */ +/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */ /* { dg-options "-Wall -O2" } */ struct dtv_slotinfo_list diff --git a/gcc/testsuite/c-c++-common/attr-retain-7.c b/gcc/testsuite/c-c++-common/attr-retain-7.c index 08f52fccc9f..4c1673583db 100644 --- a/gcc/testsuite/c-c++-common/attr-retain-7.c +++ b/gcc/testsuite/c-c++-common/attr-retain-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */ +/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */ /* { dg-options "-Wall -O2" } */ int __attribute__((used,retain,section(".data.foo"))) foo2 = 2; diff --git a/gcc/testsuite/c-c++-common/attr-retain-8.c b/gcc/testsuite/c-c++-common/attr-retain-8.c index 2dbec9e14f0..7e067f56274 100644 --- a/gcc/testsuite/c-c++-common/attr-retain-8.c +++ b/gcc/testsuite/c-c++-common/attr-retain-8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */ +/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */ /* { dg-options "-Wall -O2" } */ int __attribute__((section(".data.foo"))) foo1 = 1; diff --git a/gcc/testsuite/c-c++-common/attr-retain-9.c b/gcc/testsuite/c-c++-common/attr-retain-9.c index f26e25d2b77..81accc0ee91 100644 --- a/gcc/testsuite/c-c++-common/attr-retain-9.c +++ b/gcc/testsuite/c-c++-common/attr-retain-9.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "non-ELF target" { *-*-darwin* } } */ +/* { dg-skip-if "non-ELF target" { *-*-darwin* powerpc*-*-aix* } } */ /* { dg-options "-Wall -O2" } */ struct dtv_slotinfo_list -- 2.11.4.GIT