Cache effective-target llvm_binutils result.

2019-01-30  Andrew Stubbs  <ams@codesourcery.com>

	PR testsuite/88920

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

From-SVN: r268384
This commit is contained in:
Andrew Stubbs 2019-01-30 11:26:31 +00:00 committed by Andrew Stubbs
parent 787e2debb8
commit 8c11f2693e
2 changed files with 9 additions and 2 deletions

View 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

View 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] }}]
}