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
This commit is contained in:
Rainer Orth 2015-01-27 09:57:57 +00:00 committed by Rainer Orth
parent f101c4b47a
commit d9c1646658
2 changed files with 8 additions and 1 deletions

View 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

View 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__"