diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index df9f88c87a8d..4f4d1379b98c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2010-10-14 Iain Sandoe + + * objc.dg/pr45878.m: Update to include NSConstantString interface + for -fnext-runtime. + * objc.dg/pr23214.m: Use the Object1.m implementation to build m64 on + -fnext-runtime, XFAIL the m64 -fnext-runtime run. + * objc.dg/objc-foreach-4.m: Provide an NSConstantString dummy class + reference for m64 -fnext-runtime. + 2010-10-14 H.J. Lu * gcc.target/i386/vect-sizes-1.c: New. diff --git a/gcc/testsuite/objc.dg/objc-foreach-4.m b/gcc/testsuite/objc.dg/objc-foreach-4.m index 1a6c101f069e..69c8c73f6254 100644 --- a/gcc/testsuite/objc.dg/objc-foreach-4.m +++ b/gcc/testsuite/objc.dg/objc-foreach-4.m @@ -6,6 +6,12 @@ #include #include +#if defined (__NEXT_RUNTIME__) && defined (__LP64__) +/* Fudge the class reference until we implement the compiler-side + const strings. */ +extern void *_NSConstantStringClassReference; +#endif + // gcc -o foo foo.m -framework Foundation int main (int argc, char const* argv[]) { diff --git a/gcc/testsuite/objc.dg/pr23214.m b/gcc/testsuite/objc.dg/pr23214.m index 946dbebd9424..8443c946eadb 100644 --- a/gcc/testsuite/objc.dg/pr23214.m +++ b/gcc/testsuite/objc.dg/pr23214.m @@ -2,9 +2,11 @@ Protocol instances. */ /* { dg-do run } */ +/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */ +/* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */ -#include -#include +#import "../objc-obj-c++-shared/Object1.h" +#import "../objc-obj-c++-shared/Protocol1.h" @protocol A @end diff --git a/gcc/testsuite/objc.dg/pr45878.m b/gcc/testsuite/objc.dg/pr45878.m index 0c6b908feb0b..39fd6c3cd89f 100644 --- a/gcc/testsuite/objc.dg/pr45878.m +++ b/gcc/testsuite/objc.dg/pr45878.m @@ -11,12 +11,22 @@ typedef unsigned char BOOL; - (BOOL)isEqual:anObject; @end +#ifdef __NEXT_RUNTIME__ +@interface NSConstantString: Object +{ + char *c_string; + unsigned int len; +} +@end +extern void *_NSConstantStringClassReference; +#else @interface NXConstantString: Object { char *c_string; unsigned int len; } @end +#endif void function (void) {