Apppend $prop to et_prop_list only if needed
PR testsuite/67450 * lib/target-supports.exp (check_cached_effective_target): Apppend $prop to et_prop_list only if needed. From-SVN: r227492
This commit is contained in:
parent
b2aaf23577
commit
0417fe49d6
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2015-09-04 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR testsuite/67450
|
||||||
|
* lib/target-supports.exp (check_cached_effective_target):
|
||||||
|
Apppend $prop to et_prop_list only if needed.
|
||||||
|
|
||||||
2015-09-04 Marek Polacek <polacek@redhat.com>
|
2015-09-04 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
PR sanitizer/67279
|
PR sanitizer/67279
|
||||||
|
|
|
@ -125,7 +125,10 @@ proc check_cached_effective_target { prop args } {
|
||||||
verbose "check_cached_effective_target $prop: checking $target" 2
|
verbose "check_cached_effective_target $prop: checking $target" 2
|
||||||
set et_cache($prop,target) $target
|
set et_cache($prop,target) $target
|
||||||
set et_cache($prop,value) [uplevel eval $args]
|
set et_cache($prop,value) [uplevel eval $args]
|
||||||
|
if {![info exists et_prop_list]
|
||||||
|
|| [lsearch $et_prop_list $prop] < 0} {
|
||||||
lappend et_prop_list $prop
|
lappend et_prop_list $prop
|
||||||
|
}
|
||||||
verbose "check_cached_effective_target cached list is now: $et_prop_list" 2
|
verbose "check_cached_effective_target cached list is now: $et_prop_list" 2
|
||||||
}
|
}
|
||||||
set value $et_cache($prop,value)
|
set value $et_cache($prop,value)
|
||||||
|
|
Loading…
Add table
Reference in a new issue