From: David Edelsohn Date: Fri, 19 Feb 2021 23:38:18 +0000 (-0500) Subject: testsuite: skip attr-retain-?.c on AIX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93e8054406e803202b0e97ec3917820dcd824761;p=gcc.git 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. --- 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