re PR objc/35165 (Massive failures of objc on i686-apple-darwin9)
2010-03-31 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> PR testsuite/35165 * obj-c++.dg/try-catch-9.mm: Don't XFAIL m32 NeXT runtime. * obj-c++.dg/try-catch-2.mm: Ditto. * obj-c++.dg/lookup-2.mm: Ditto. * obj-c++.dg/encode-8.m: Ditto. * obj-c++.dg/cxx-ivars-2.mm: Ditto. * obj-c++.dg/cxx-ivars-3.mm: Skip for GNU, XFail for m64 NeXT. * obj-c++.dg/const-str-10.mm: Skip for GNU, match .quad for m64 NeXT. * obj-c++.dg/const-str-11.mm: Ditto. * obj-c++.dg/const-str-9.mm: Ditto. * obj-c++.dg/bitfield-3.mm: Skip for GNU runtime. * obj-c++.dg/bitfield-2.mm: XFAIL run for m64 NeXT runtime. * obj-c++.dg/except-1.mm: Ditto. * obj-c++.dg/const-str-7.mm: Ditto. * obj-c++.dg/cxx-ivars-1.mm: Ditto. * obj-c++.dg/const-str-3.mm: Ditto. * obj-c++.dg/const-str-7.mm: Ditto. * obj-c++.dg/stubify-2.mm: Change dump file name. From-SVN: r157873
This commit is contained in:
parent
2981f2063f
commit
03af6e448f
17 changed files with 47 additions and 15 deletions
|
@ -1,5 +1,24 @@
|
|||
2010-03-31 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
|
||||
|
||||
PR testsuite/35165
|
||||
* obj-c++.dg/try-catch-9.mm: Don't XFAIL m32 NeXT runtime.
|
||||
* obj-c++.dg/try-catch-2.mm: Ditto.
|
||||
* obj-c++.dg/lookup-2.mm: Ditto.
|
||||
* obj-c++.dg/encode-8.m: Ditto.
|
||||
* obj-c++.dg/cxx-ivars-2.mm: Ditto.
|
||||
* obj-c++.dg/cxx-ivars-3.mm: Skip for GNU, XFail for m64 NeXT.
|
||||
* obj-c++.dg/const-str-10.mm: Skip for GNU, match .quad for m64 NeXT.
|
||||
* obj-c++.dg/const-str-11.mm: Ditto.
|
||||
* obj-c++.dg/const-str-9.mm: Ditto.
|
||||
* obj-c++.dg/bitfield-3.mm: Skip for GNU runtime.
|
||||
* obj-c++.dg/bitfield-2.mm: XFAIL run for m64 NeXT runtime.
|
||||
* obj-c++.dg/except-1.mm: Ditto.
|
||||
* obj-c++.dg/const-str-7.mm: Ditto.
|
||||
* obj-c++.dg/cxx-ivars-1.mm: Ditto.
|
||||
* obj-c++.dg/const-str-3.mm: Ditto.
|
||||
* obj-c++.dg/const-str-7.mm: Ditto.
|
||||
* obj-c++.dg/stubify-2.mm: Change dump file name.
|
||||
|
||||
PR objc++/23613
|
||||
* gcc/testsuite/objc-obj-c++-shared/next-mapping.h (CLASSPTRFIELD):
|
||||
New macro.
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
being "promoted" to ints). */
|
||||
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
|
||||
#include "../objc-obj-c++-shared/Object1.h"
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
/* Check if bitfield ivars are correctly @encode'd when
|
||||
the NeXT runtime is used. */
|
||||
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
|
||||
/* { dg-options "-fsigned-char" } */
|
||||
/* { dg-do run { target *-*-darwin* } } */
|
||||
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
|
||||
/* { dg-options "-fsigned-char" } */
|
||||
|
||||
typedef struct objc_object { struct objc_class *class_pointer; } *id;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
constant string classes get derived. */
|
||||
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
|
||||
|
||||
/* { dg-do compile { target *-*-darwin* } } */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
|
||||
|
||||
#include "../objc-obj-c++-shared/Object1.h"
|
||||
|
@ -29,4 +29,5 @@ extern struct objc_class _NSConstantStringClassReference;
|
|||
const NSConstantString *appKey = @"MyApp";
|
||||
|
||||
/* { dg-final { scan-assembler ".section __OBJC, __cstring_object" } } */
|
||||
/* { dg-final { scan-assembler ".long\t__NSConstantStringClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" } } */
|
||||
/* { dg-final { scan-assembler ".long\t__NSConstantStringClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" { target { *-*-darwin* && { ! lp64 } } } } } */
|
||||
/* { dg-final { scan-assembler ".quad\t__NSConstantStringClassReference\n\t.quad\t.*\n\t.long\t5\n\t.space 4\n\t.data" { target { *-*-darwin* && { lp64 } } } } } */
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
constant string classes get derived. */
|
||||
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
|
||||
|
||||
/* { dg-do compile { target *-*-darwin* } } */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
|
||||
/* { dg-options "-fconstant-string-class=XStr" } */
|
||||
|
||||
|
@ -29,4 +29,5 @@ extern Class _XStrClassReference;
|
|||
const XStr *appKey = @"MyApp";
|
||||
|
||||
/* { dg-final { scan-assembler ".section __OBJC, __cstring_object" } } */
|
||||
/* { dg-final { scan-assembler ".long\t__XStrClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" } } */
|
||||
/* { dg-final { scan-assembler ".long\t__XStrClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" { target { *-*-darwin* && { ! lp64 } } } } } */
|
||||
/* { dg-final { scan-assembler ".quad\t__XStrClassReference\n\t.quad\t.*\n\t.long\t5\n\t.space 4\n\t.data" { target { *-*-darwin* && { lp64 } } } } } */
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
/* { dg-options "-fconstant-string-class=Foo" } */
|
||||
/* { dg-do run { target *-*-darwin* } } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
|
||||
#import "../objc-obj-c++-shared/Object1.h"
|
||||
#import "../objc-obj-c++-shared/next-mapping.h"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
/* { dg-options "-fconstant-string-class=Foo" } */
|
||||
/* { dg-do run } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
|
||||
#include "../objc-obj-c++-shared/Object1.h"
|
||||
#include "../objc-obj-c++-shared/next-mapping.h"
|
||||
|
|
|
@ -21,4 +21,5 @@ extern struct objc_class _NSConstantStringClassReference;
|
|||
const NSConstantString *appKey = @"MyApp";
|
||||
|
||||
/* { dg-final { scan-assembler ".section __OBJC, __cstring_object" } } */
|
||||
/* { dg-final { scan-assembler ".long\t__NSConstantStringClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" } } */
|
||||
/* { dg-final { scan-assembler ".long\t__NSConstantStringClassReference\n\t.long\t.*\n\t.long\t5\n\t.data" { target { *-*-darwin* && { ! lp64 } } }} } */
|
||||
/* { dg-final { scan-assembler ".quad\t__NSConstantStringClassReference\n\t.quad\t.*\n\t.long\t5\n\t.space 4\n\t.data" { target { *-*-darwin* && { lp64 } } } } } */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Check if ivars may be accessed via the C++ dot notation.
|
||||
|
||||
// { dg-do run }
|
||||
// { dg-options "-fno-objc-call-cxx-cdtors" }
|
||||
// { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } }
|
||||
|
||||
#include "../objc-obj-c++-shared/Object1.h"
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
// Check if the '- .cxx_construct' and '-.cxx_destruct' methods get called
|
||||
// and if they perform their desired function.
|
||||
|
||||
// { dg-do run { xfail { "*-*-*" } } } PR27247/PR23681
|
||||
// { dg-xfail-run-if "PR27247/PR23681" { *-*-* } { "-fgnu-runtime" } { "" } }
|
||||
// { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } }
|
||||
// { dg-options "-fobjc-call-cxx-cdtors" }
|
||||
|
||||
#include "../objc-obj-c++-shared/Object1.h"
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
// Check if ObjC classes with non-POD C++ ivars are specially marked in the metadata.
|
||||
|
||||
// { dg-do run { target *-*-darwin* } }
|
||||
// { dg-options "-fobjc-call-cxx-cdtors" }
|
||||
// { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } }
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-options "-fobjc-call-cxx-cdtors" }
|
||||
// { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } }
|
||||
|
||||
#include "../objc-obj-c++-shared/Object1.h"
|
||||
#include "../objc-obj-c++-shared/next-mapping.h"
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
'BOOL *' (which should be encoded as '^c') and 'char *' (which
|
||||
should be encoded as '*'). */
|
||||
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
|
||||
/* { dg-do run { xfail { "*-*-*" } } } PR27249 */
|
||||
/* { dg-xfail-run-if "PR27249" { *-*-* } { "-fgnu-runtime" } { "" } } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
|
||||
/* This tests that exceptions work. It used to fail because
|
||||
objc_msgSend was marked with DECL_NOTHROW.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-xfail-if "PR23614" { "*-*-*" } { "*" } { "" } } */
|
||||
/* { dg-xfail-if "PR23614" { "*-*-*" } { "*" } { "-fnext-runtime" } } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
#include "../objc-obj-c++-shared/Object1.h"
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -28,4 +28,4 @@ extern int bogonic (int, int, int) ;
|
|||
|
||||
/* Any symbol_ref of an un-stubified objc_msgSend is an error; look
|
||||
for "objc_msgSend" in quotes, without the $stub suffix. */
|
||||
/* { dg-final { scan-file-not stubify-2.mm.08.jump "symbol_ref.*\"objc_msgSend\"" } } */
|
||||
/* { dg-final { scan-file-not stubify-2.mm.147r.jump "symbol_ref.*\"objc_msgSend\"" } } */
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
/* Developed by Ziemowit Laski <zlaski@apple.com>. */
|
||||
|
||||
/* { dg-do run } */
|
||||
/* { dg-xfail-if "PR23616" { "*-*-*" } { "*" } { "" } } */
|
||||
/* { dg-xfail-if "PR23616" { "*-*-*" } { "*" } { "-fnext-runtime" } } */
|
||||
/* { dg-xfail-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } }
|
||||
/* { dg-options "-fobjc-exceptions" } */
|
||||
|
||||
#include "../objc-obj-c++-shared/Object1.h"
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
/* Developed by Ziemowit Laski <zlaski@apple.com>. */
|
||||
|
||||
/* { dg-do run } */
|
||||
/* { dg-xfail-if "PR23616" { *-*-* } { "*" } { "" } } */
|
||||
/* { dg-xfail-if "PR23616" { *-*-* } { "*" } { "-fnext-runtime" } } */
|
||||
/* { dg-xfail-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } }
|
||||
/* { dg-prune-output ".*internal compiler error.*" } */
|
||||
/* { dg-options "-fobjc-exceptions -O2" } */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue