diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-27 09:57:57 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-27 09:57:57 +0000 |
commit | 124b61cd1c393dde4e9378e71c2696b1d4dff884 (patch) | |
tree | d34d17cf740710faadc8a330578d3f96e5586a14 /libffi | |
parent | fdb2733bb52f09c2751202af8a950152b58e0359 (diff) |
Correctly check for 32-bit x86
* testsuite/lib/libffi.exp: Load target-supports.exp.
(run-many-tests): Only set targetabis for ia32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220158 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ChangeLog | 5 | ||||
-rw-r--r-- | libffi/testsuite/lib/libffi.exp | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index c02ee2265742..9d1ae071c50a 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 6f865fd62866..d8d6ce7d77e8 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__" |