Cache effective-target llvm_binutils result.
authorAndrew Stubbs <ams@codesourcery.com>
Wed, 30 Jan 2019 11:26:31 +0000 (11:26 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Wed, 30 Jan 2019 11:26:31 +0000 (11:26 +0000)
2019-01-30  Andrew Stubbs  <ams@codesourcery.com>

PR testsuite/88920

gcc/testsuite/
* lib/target-supports.exp: Cache result.

From-SVN: r268384

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index e9846c7710df40c7188d34d88260659fe29605a9..e41b4e2500c91471540441ad80a6696db5f70856 100644 (file)
@@ -1,3 +1,9 @@
+2019-01-30  Andrew Stubbs  <ams@codesourcery.com>
+
+       PR testsuite/88920
+
+       * lib/target-supports.exp: Cache result.
+
 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/89105
index 92202ffcbf01e4ca0c0affadb46d6172744ce585..a0b4b99067f9ae225bde3b6bc719e89e1ea8e0e1 100644 (file)
@@ -9263,6 +9263,7 @@ foreach N {df} {
 
 # Return 1 if this target uses an LLVM assembler and/or linker
 proc check_effective_target_llvm_binutils { } {
-    return [expr { [istarget amdgcn*-*-*]
-                  || [check_effective_target_offload_gcn] } ]
+    return [check_cached_effective_target llvm_binutils {
+             expr { [istarget amdgcn*-*-*]
+                    || [check_effective_target_offload_gcn] }}]
 }