aboutsummaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2015-01-27 09:57:57 +0000
committerRainer Orth <ro@gcc.gnu.org>2015-01-27 09:57:57 +0000
commitd9c1646658cfa8c81c1d37b8a67fa7af59748546 (patch)
treed34d17cf740710faadc8a330578d3f96e5586a14 /libffi
parentf101c4b47a98c98238bbf31a7ee79b1b2e4cce7b (diff)
downloadgcc-d9c1646658cfa8c81c1d37b8a67fa7af59748546.zip
gcc-d9c1646658cfa8c81c1d37b8a67fa7af59748546.tar.gz
gcc-d9c1646658cfa8c81c1d37b8a67fa7af59748546.tar.bz2
Correctly check for 32-bit x86
* testsuite/lib/libffi.exp: Load target-supports.exp. (run-many-tests): Only set targetabis for ia32. From-SVN: r220158
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog5
-rw-r--r--libffi/testsuite/lib/libffi.exp4
2 files changed, 8 insertions, 1 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index c02ee22..9d1ae07 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * testsuite/lib/libffi.exp: Load target-supports.exp.
+ (run-many-tests): Only set targetabis for ia32.
+
2015-01-19 Richard Henderson <rth@redhat.com>
PR libffi/64581
diff --git a/libffi/testsuite/lib/libffi.exp b/libffi/testsuite/lib/libffi.exp
index 6f865fd..d8d6ce7 100644
--- a/libffi/testsuite/lib/libffi.exp
+++ b/libffi/testsuite/lib/libffi.exp
@@ -23,6 +23,7 @@ proc load_gcc_lib { filename } {
load_lib dg.exp
load_lib libgloss.exp
+load_gcc_lib target-supports.exp
load_gcc_lib target-libpath.exp
load_gcc_lib wrapper.exp
@@ -308,7 +309,8 @@ proc run-many-tests { testcases extra_flags } {
set targetabis { "" }
if [string match $compiler_vendor "gnu"] {
- if [istarget "i?86-*-*"] {
+ if { ([istarget "i?86-*-*"] || [istarget "x86_64-*-*"])
+ && [is-effective-target ia32] } {
set targetabis {
""
"-DABI_NUM=FFI_STDCALL -DABI_ATTR=__STDCALL__"