backport: forward-1.x: XFAIL for -fgnu-runtime on x86_64-*-darwin*...

Backport from mainline:
	2009-12-17  Uros Bizjak  <ubizjak@gmail.com>

	* objc/execute/forward-1.x: XFAIL for -fgnu-runtime on
	x86_64-*-darwin*, powerpc*-*-darwin* and alpha*-*-linux* targets.

From-SVN: r156425
This commit is contained in:
Uros Bizjak 2010-02-01 14:10:09 +01:00 committed by Uros Bizjak
parent 2d783c9e39
commit 8c20092e5f
2 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2010-02-01 Uros Bizjak <ubizjak@gmail.com>
Backport from mainline:
2009-12-17 Uros Bizjak <ubizjak@gmail.com>
* objc/execute/forward-1.x: XFAIL for -fgnu-runtime on
x86_64-*-darwin*, powerpc*-*-darwin* and alpha*-*-linux* targets.
2010-01-31 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/42898

View File

@ -1,8 +1,6 @@
load_lib target-supports.exp
# XFAIL: PR libobjc/36610, for targets which pass arguments via registers
# For powerpc-darwin it fails with -fgnu-runtime, passes with -fnext-runtime,
# but that would be too ugly to handle; let it fail there.
if { ([istarget x86_64-*-linux*] && [check_effective_target_lp64] )
|| [istarget powerpc*-*-linux*]
@ -15,4 +13,21 @@ if { ([istarget x86_64-*-linux*] && [check_effective_target_lp64] )
set torture_execute_xfail "*-*-*"
}
# For darwin and alpha-linux it fails with -fgnu-runtime,
# passes with -fnext-runtime.
if { ([istarget x86_64-*-darwin*] && [check_effective_target_lp64] )
|| [istarget powerpc*-*-darwin*]
|| [istarget alpha*-*-linux*] } {
set torture_eval_before_execute {
global compiler_conditional_xfail_data
set compiler_conditional_xfail_data {
"Target fails with -fgnu-runtime" \
"*-*-*" \
{ "-fgnu-runtime" } \
{ "" }
}
}
}
return 0