[trunk PATCH]: XFAIL remaining objc++ failures

Kaveh R. GHAZI ghazi@caip.rutgers.edu
Tue Feb 12 08:49:00 GMT 2008


This is the mainline version of the patch I just posted for the branches.
A small difference in some of the tests with "file included from"
diagnostic messages was necessary as noted below.  (I'm not quite sure why
the change was necessary, got it working through trial-and-error).
Othewise it's the same patch.

< +/* { dg-bogus "included from <built-in>" "PR23610" { xfail lp64 } 0 } */
< +/* { dg-bogus "padding struct to align" "PR23610" { xfail lp64 } 0 } */
---
> +/* { dg-excess-errors "In file included from" { target lp64 } } */
> +/* { dg-bogus "padding struct to align" "PR23610" { xfail lp64 } 1 } */


There are several more objc++ testsuite failures on mainline than the
branches.  They are regressions.  I have not XFAILed those, and don't plan
to unless we're going to make a release without fixing them.  I can do
that as the time approaches.  For now, I've left them in noisy.

Tested on i686-unknown-linux-gnu and x86_64-unknown-linux-gnu with trunk
via "make check-obj-c++".

Okay for mainline?

		Thanks,
		--Kaveh


2008-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* obj-c++.dg/bitfield-1.mm: Expect failures.
	* obj-c++.dg/bitfield-4.mm: Likewise.
	* obj-c++.dg/cxx-ivars-2.mm: Likewise.
	* obj-c++.dg/encode-8.mm: Likewise.
	* obj-c++.dg/isa-field-1.mm: Likewise.
	* obj-c++.dg/layout-1.mm: Likewise.
	* obj-c++.dg/lookup-2.mm: Likewise.
	* obj-c++.dg/try-catch-2.mm: Likewise.
	* obj-c++.dg/try-catch-9.mm: Likewise.

diff -rup orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/bitfield-1.mm egcc-SVN20080211/gcc/testsuite/obj-c++.dg/bitfield-1.mm
--- orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/bitfield-1.mm	2008-01-03 23:36:04.000000000 +0100
+++ egcc-SVN20080211/gcc/testsuite/obj-c++.dg/bitfield-1.mm	2008-02-12 06:47:28.000000000 +0100
@@ -111,3 +111,13 @@ int main(void)

   return 0;
 }
+
+/* { dg-excess-errors "In file included from" { target lp64 } } */
+/* { dg-bogus "padding struct to align" "PR23610" { xfail lp64 } 1 } */
+
+/* { dg-bogus "padding struct size" "PR23610" { xfail lp64 } 40 } */
+/* { dg-bogus "padding struct size" "PR23610" { xfail lp64 } 43 } */
+/* { dg-bogus "padding struct size" "PR23610" { xfail lp64 } 57 } */
+/* { dg-bogus "padding struct size" "PR23610" { xfail lp64 } 60 } */
+/* { dg-bogus "padding struct size" "PR23610" { xfail lp64 } 75 } */
+/* { dg-bogus "padding struct size" "PR23610" { xfail lp64 } 76 } */
diff -rup orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/bitfield-4.mm egcc-SVN20080211/gcc/testsuite/obj-c++.dg/bitfield-4.mm
--- orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/bitfield-4.mm	2008-01-03 23:36:04.000000000 +0100
+++ egcc-SVN20080211/gcc/testsuite/obj-c++.dg/bitfield-4.mm	2008-02-12 06:47:37.000000000 +0100
@@ -48,3 +48,9 @@ int main(void)

   return 0;
 }
+
+/* { dg-excess-errors "In file included from" { target lp64 } } */
+/* { dg-bogus "padding struct to align" "PR23610" { xfail lp64 } 1 } */
+
+/* { dg-bogus "padding struct size" "PR23610" { xfail lp64 } 28 } */
+/* { dg-bogus "padding struct size" "PR23610" { xfail lp64 } 34 } */
diff -rup orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm egcc-SVN20080211/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm
--- orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm	2008-01-03 23:36:04.000000000 +0100
+++ egcc-SVN20080211/gcc/testsuite/obj-c++.dg/cxx-ivars-2.mm	2008-02-12 04:59:25.000000000 +0100
@@ -1,7 +1,7 @@
 // Check if the '- .cxx_construct' and '-.cxx_destruct' methods get called
 // and if they perform their desired function.

-// { dg-do run }
+// { dg-do run { xfail { "*-*-*" } } } PR27247/PR23681
 // { dg-options "-fobjc-call-cxx-cdtors" }

 #include <objc/Object.h>
diff -rup orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/encode-8.mm egcc-SVN20080211/gcc/testsuite/obj-c++.dg/encode-8.mm
--- orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/encode-8.mm	2008-01-03 23:36:04.000000000 +0100
+++ egcc-SVN20080211/gcc/testsuite/obj-c++.dg/encode-8.mm	2008-02-12 04:59:25.000000000 +0100
@@ -3,7 +3,7 @@
    should be encoded as '*').  */
 /* Contributed by Ziemowit Laski <zlaski@apple.com>.  */
 /* { dg-options "-lobjc" } */
-/* { dg-do run } */
+/* { dg-do run { xfail { "*-*-*" } } } PR27249 */

 #include <string.h>
 #include <stdlib.h>
diff -rup orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/isa-field-1.mm egcc-SVN20080211/gcc/testsuite/obj-c++.dg/isa-field-1.mm
--- orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/isa-field-1.mm	2008-01-03 23:36:03.000000000 +0100
+++ egcc-SVN20080211/gcc/testsuite/obj-c++.dg/isa-field-1.mm	2008-02-12 04:59:25.000000000 +0100
@@ -1,5 +1,6 @@
 /* Ensure there are no bizarre difficulties with accessing the 'isa' field of objects.  */
 /* { dg-do compile } */
+/* { dg-xfail-if "PR23613" { "*-*-*" } { "*" } { "" } } */

 #include <objc/Object.h>

diff -rup orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/layout-1.mm egcc-SVN20080211/gcc/testsuite/obj-c++.dg/layout-1.mm
--- orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/layout-1.mm	2008-01-03 23:36:04.000000000 +0100
+++ egcc-SVN20080211/gcc/testsuite/obj-c++.dg/layout-1.mm	2008-02-12 06:47:43.000000000 +0100
@@ -13,3 +13,5 @@
 - (id) foo;
 @end

+/* { dg-excess-errors "In file included from" { target lp64 } } */
+/* { dg-bogus "padding struct to align" "PR23610" { xfail lp64 } 1 } */
diff -rup orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/lookup-2.mm egcc-SVN20080211/gcc/testsuite/obj-c++.dg/lookup-2.mm
--- orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/lookup-2.mm	2008-01-03 23:36:04.000000000 +0100
+++ egcc-SVN20080211/gcc/testsuite/obj-c++.dg/lookup-2.mm	2008-02-12 04:59:25.000000000 +0100
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-xfail-if "PR23614" { "*-*-*" } { "*" } { "" } } */

 #include <objc/Object.h>
 #include <stdlib.h>
diff -rup orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/try-catch-2.mm egcc-SVN20080211/gcc/testsuite/obj-c++.dg/try-catch-2.mm
--- orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/try-catch-2.mm	2008-01-03 23:36:04.000000000 +0100
+++ egcc-SVN20080211/gcc/testsuite/obj-c++.dg/try-catch-2.mm	2008-02-12 04:59:25.000000000 +0100
@@ -3,6 +3,7 @@
 /* Developed by Ziemowit Laski <zlaski@apple.com>.  */

 /* { dg-options "-fobjc-exceptions" } */
+/* { dg-xfail-if "PR23616" { "*-*-*" } { "*" } { "" } } */
 /* { dg-do run } */

 #include <objc/Object.h>
diff -rup orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/try-catch-9.mm egcc-SVN20080211/gcc/testsuite/obj-c++.dg/try-catch-9.mm
--- orig/egcc-SVN20080211/gcc/testsuite/obj-c++.dg/try-catch-9.mm	2008-01-03 23:36:03.000000000 +0100
+++ egcc-SVN20080211/gcc/testsuite/obj-c++.dg/try-catch-9.mm	2008-02-12 04:59:25.000000000 +0100
@@ -3,6 +3,7 @@
 /* Developed by Ziemowit Laski <zlaski@apple.com>.  */

 /* { dg-options "-fobjc-exceptions -O2" } */
+/* { dg-xfail-if "PR23616" { "*-*-*" } { "*" } { "" } } */
 /* { dg-do run } */

 #include <objc/Object.h>



More information about the Gcc-patches mailing list