From: David Edelsohn Date: Fri, 19 Feb 2021 23:38:18 +0000 (-0500) Subject: testsuite: skip attr-retain-?.c on AIX X-Git-Tag: upstream/12.2.0~9643 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93e8054406e803202b0e97ec3917820dcd824761;p=platform%2Fupstream%2Fgcc.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 669fa90..ee6e2c4 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 1cf03a7..9aead14 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 08f52fc..4c16735 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 2dbec9e..7e067f5 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 f26e25d..81accc0 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