This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: libffi for i386-*-freebsd*
- From: Loren James Rittle <rittle at latour dot labs dot mot dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 17 Sep 2009 15:55:45 -0500 (CDT)
- Subject: PATCH: libffi for i386-*-freebsd*
- Reply-to: rittle at labs dot mot dot com
I wondered why saw this:
FAIL: libffi.call/return_sc.c -O2 -O2 execution test
FAIL: libffi.call/return_sc.c -O3 -O3 execution test
FAIL: libffi.call/return_sc.c -Os -Os execution test
FAIL: libffi.call/return_sc.c -O2 -fomit-frame-pointer -O2 -fomit-frame-pointer execution test
on i386-unknown-freebsd7.2 with gcc mainline. Fixed with this (as
commited to mainline after testing against -r151782):
2009-09-17 Loren J. Rittle <ljrittle@acm.org>
PR testsuite/32843 (strikes again)
* src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
enable proper extension on char and short.
Index: libffi/src/x86/ffi.c
===================================================================
--- libffi/src/x86/ffi.c (revision 151782)
+++ libffi/src/x86/ffi.c (working copy)
@@ -155,7 +155,7 @@
#ifdef X86
case FFI_TYPE_STRUCT:
#endif
-#if defined(X86) || defined (X86_WIN32) || defined(X86_DARWIN) || defined(X86_WIN64)
+#if defined(X86) || defined (X86_WIN32) || defined(X86_FREEBSD) || defined(X86_DARWIN) || defined(X86_WIN64)
case FFI_TYPE_UINT8:
case FFI_TYPE_UINT16:
case FFI_TYPE_SINT8: