The attached patch fixes PR64855 by not setting targetabis on
darwin in testsuite/lib/libffi.exp as suggested by Iain Sandoe.
Confirmed on x86_64-apple-darwin14 to eliminate the libffi regressions
at -m32/-m64. Okay for gcc trunk?
         Jack
2015-01-29  Jack Howarth  <howarth.at....@gmail.com>

        PR libffi/64855
        * testsuite/lib/libffi.exp: Don't set targetabis on darwin.


Index: libffi/testsuite/lib/libffi.exp
===================================================================
--- libffi/testsuite/lib/libffi.exp     (revision 220263)
+++ libffi/testsuite/lib/libffi.exp     (working copy)
@@ -310,7 +310,7 @@ proc run-many-tests { testcases extra_fl
     set targetabis { "" }
     if [string match $compiler_vendor "gnu"] {
         if { ([istarget "i?86-*-*"] || [istarget "x86_64-*-*"])
-            && [is-effective-target ia32] } {
+            && [is-effective-target ia32] && ![istarget "*-*-darwin*"] } {
             set targetabis {
                 ""
                 "-DABI_NUM=FFI_STDCALL -DABI_ATTR=__STDCALL__"

Reply via email to