re PR libffi/65567 (ERROR: tcl error sourcing /test/gnu/gcc/gcc/libffi/testsuite/libffi.complex/complex.exp)

PR libffi/65567
	* testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
	lindex is applied to a list.

From-SVN: r221765
This commit is contained in:
John David Anglin 2015-03-29 20:46:17 +00:00
parent 43b11666cc
commit dc84325087
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-03-29 John David Anglin <danglin@gcc.gnu.org>
PR libffi/65567
* testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure
lindex is applied to a list.
2015-02-10 Andrew Pinski <apinski@cavium.com>
* src/aarch64/ffitarget.h (ffi_arg): Use unsigned long long for ILP32.

View File

@ -238,7 +238,7 @@ proc libffi_feature_test { test } {
set lines [libffi_target_compile $src "" "preprocess" ""]
file delete $src
set last [lindex $lines end]
set last [lindex [split $lines] end]
return [regexp -- "xyzzy" $last]
}