summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-29 20:46:17 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-29 20:46:17 +0000
commit7dda24beb1714656149b1bb226ba85caae8c52e6 (patch)
tree7289f9c8a7b91071b960f5bb63e68209a97f1d34 /libffi
parent38cef03b6fbbd14f3f361a451d94c2f9533b8fdc (diff)
downloadlinaro-gcc-7dda24beb1714656149b1bb226ba85caae8c52e6.tar.gz
linaro-gcc-7dda24beb1714656149b1bb226ba85caae8c52e6.tar.bz2
linaro-gcc-7dda24beb1714656149b1bb226ba85caae8c52e6.zip
PR libffi/65567
* testsuite/lib/libffi.exp (libffi_feature_test): Use split to ensure lindex is applied to a list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221765 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog6
-rw-r--r--libffi/testsuite/lib/libffi.exp2
2 files changed, 7 insertions, 1 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index a690b7bbf98..09983cb5622 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -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.
diff --git a/libffi/testsuite/lib/libffi.exp b/libffi/testsuite/lib/libffi.exp
index 049b66d0d58..29b9510a35e 100644
--- a/libffi/testsuite/lib/libffi.exp
+++ b/libffi/testsuite/lib/libffi.exp
@@ -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]
}