Correctly check for 32-bit x86
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 27 Jan 2015 09:57:57 +0000 (09:57 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 27 Jan 2015 09:57:57 +0000 (09:57 +0000)
* testsuite/lib/libffi.exp: Load target-supports.exp.
(run-many-tests): Only set targetabis for ia32.

From-SVN: r220158

libffi/ChangeLog
libffi/testsuite/lib/libffi.exp

index c02ee2265742d48e776ba8540740156da14af9e6..9d1ae071c50aef740e13bac37cc95565ad866ce4 100644 (file)
@@ -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
index 6f865fd628666d3f7f7a7b57b3eb4eb7dc9c89e7..d8d6ce7d77e8e160607c3ed82d7c1d46a91faa43 100644 (file)
@@ -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__"