summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc/execute/forward-1.x
blob: ac4cf7f2799be17dad83fe69ad22135d7e6bbb43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
load_lib target-supports.exp

# XFAIL: PR libobjc/36610, for targets which pass arguments via registers

if { ([istarget x86_64-*-linux*] && [check_effective_target_lp64] )
     || [istarget powerpc*-*-linux*]
     || [istarget powerpc*-*-aix*]
     || [istarget s390*-*-*-linux*]
     || [istarget sh4-*-linux*]
     || [istarget hppa*-*-linux*]
     || [istarget hppa*-*-hpux*]
     || [istarget ia64-*-linux*] } {
    set torture_execute_xfail "*-*-*"
}

# For darwin and alpha-linux it fails with -fgnu-runtime,
# passes with -fnext-runtime.

if { [istarget alpha*-*-linux*]
     || [istarget alpha*-dec-osf*]
     || ([istarget i?86-*-solaris2*] && [check_effective_target_lp64] )
     || [istarget mips-sgi-irix*]
     || [istarget sparc*-sun-solaris2*]
     || ([istarget *-*-darwin*] && [check_effective_target_lp64] ) } {
    set torture_eval_before_execute {
	global compiler_conditional_xfail_data
	set compiler_conditional_xfail_data {
	    "Target fails with -fgnu-runtime" \
		"*-*-*" \
		{ "-fgnu-runtime" } \
		{ "" }
	}
    }
}

return 0