testsuite: skip attr-retain-?.c on AIX
authorDavid Edelsohn <dje.gcc@gmail.com>
Fri, 19 Feb 2021 23:38:18 +0000 (18:38 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Sat, 20 Feb 2021 02:46:02 +0000 (21:46 -0500)
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
gcc/testsuite/c-c++-common/attr-retain-6.c
gcc/testsuite/c-c++-common/attr-retain-7.c
gcc/testsuite/c-c++-common/attr-retain-8.c
gcc/testsuite/c-c++-common/attr-retain-9.c

index 669fa90..ee6e2c4 100644 (file)
@@ -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
index 1cf03a7..9aead14 100644 (file)
@@ -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
index 08f52fc..4c16735 100644 (file)
@@ -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;
index 2dbec9e..7e067f5 100644 (file)
@@ -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;
index f26e25d..81accc0 100644 (file)
@@ -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