Commit 7155ec31 by Kyrylo Tkachov Committed by Kyrylo Tkachov

[testsuite] Cache return value of check_effective_target_tiny

	* lib/target-supports.exp (check_effective_target_tiny): Cache
	predicate value.

From-SVN: r218344
parent ad03a744
2014-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* lib/target-supports.exp (check_effective_target_tiny): Cache
predicate value.
2014-12-04 Jack Howarth <howarth@bromo.med.uc.edu> 2014-12-04 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/64145 PR testsuite/64145
......
...@@ -6053,11 +6053,19 @@ proc check_effective_target_fenv_exceptions {} { ...@@ -6053,11 +6053,19 @@ proc check_effective_target_fenv_exceptions {} {
} }
proc check_effective_target_tiny {} { proc check_effective_target_tiny {} {
global et_target_tiny_saved
if [info exists et_target_tine_saved] {
verbose "check_effective_target_tiny: using cached result" 2
} else {
set et_target_tiny_saved 0
if { [istarget aarch64*-*-*] if { [istarget aarch64*-*-*]
&& [check_effective_target_aarch64_tiny] } { && [check_effective_target_aarch64_tiny] } {
return 1 set et_target_tiny_saved 1
} }
return 0 }
return $et_target_tiny_saved
} }
# Return 1 if LOGICAL_OP_NON_SHORT_CIRCUIT is set to 0 for the current target. # Return 1 if LOGICAL_OP_NON_SHORT_CIRCUIT is set to 0 for the current target.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment