struct-layout-encoding-1_generate.c: Xfail some tests for powerpc-darwin and powerpc...
authorAndrew Pinski <pinskia@gmail.com>
Sat, 7 Oct 2006 17:37:50 +0000 (10:37 -0700)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 7 Oct 2006 17:37:50 +0000 (10:37 -0700)
2006-10-07  Andrew Pinski  <pinskia@gmail.com>

        * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c:
        Xfail some tests for powerpc-darwin and powerpc-aix.

From-SVN: r117540

gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c

index d1c975382317834df03e7d629207310b19ec9998..93f5f2e65e5cd37b1762ccbfee54302a4f6410f6 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-07  Andrew Pinski  <pinskia@gmail.com>
+
+       * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c:
+       Xfail some tests for powerpc-darwin and powerpc-aix.
+
 2006-10-07  Jakub Jelinek  <jakub@redhat.com>
 
        PR c/29380
index 4b5d5c6dae72afaa27500b9504d19ee76768c9fa..fc3770b95ac6cfd6cebc200c36935af492798635 100644 (file)
@@ -222,11 +222,29 @@ switchfiles (int fields)
       fputs ("failed to create test files\n", stderr);
       exit (1);
     }
+  /* FIXME: these tests should not be xfailed on PowerPC darwin or aix
+     but they are because libobjc uses GCC's headers for trying to find
+     the struct layout but it gets it wrong.  */
+  if (filecnt == 2
+      || filecnt == 3
+      || filecnt == 4
+      || filecnt == 6
+      || filecnt == 7
+      || filecnt == 8
+      || filecnt == 11
+      || filecnt == 12
+      || filecnt == 15
+      || filecnt == 22)
+     {
+      fprintf (outfile, "\
+/* { dg-do run { xfail powerpc*-*-darwin* powerpc*-*-aix* } } */\n\
+/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n", srcdir);
+     }
   /* FIXME: these should not be xfailed but they are because
      of bugs in libobjc and the objc front-end.  25 is because
      vectors are not encoded.  The rest are because or zero sized
      arrays are encoded as pointers.  */
-  if (filecnt >= 25)
+  else if (filecnt >= 25)
     {
       fprintf (outfile, "\
 /* { dg-do run { xfail *-*-* } } */\n\