From 7155ec314a4d59ae658eaaa490f31b76c81e476a Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Thu, 4 Dec 2014 09:31:00 +0000 Subject: [PATCH] [testsuite] Cache return value of check_effective_target_tiny * lib/target-supports.exp (check_effective_target_tiny): Cache predicate value. From-SVN: r218344 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 16 ++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 03fd90203bf..477600cc278 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-04 Kyrylo Tkachov + + * lib/target-supports.exp (check_effective_target_tiny): Cache + predicate value. + 2014-12-04 Jack Howarth PR testsuite/64145 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index ac04d95f7c5..e960e12cd80 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -6053,11 +6053,19 @@ proc check_effective_target_fenv_exceptions {} { } proc check_effective_target_tiny {} { - if { [istarget aarch64*-*-*] - && [check_effective_target_aarch64_tiny] } { - return 1 + 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*-*-*] + && [check_effective_target_aarch64_tiny] } { + 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. -- 2.30.2