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.
/* { 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
/* { 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
/* { 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;
/* { 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;
/* { 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