[PATCH] libffi 3.2.1 on Tru64 5.1B
Jarkko Hietaniemi
jhi@iki.fi
Thu Mar 12 01:41:00 GMT 2015
The attached patch makes libffi compile on Tru64 5.1B. Without it,
the compilation stops on this in src/alpha/osf.S:
#error "osf.S out of sync with ffi.h"
Since "make check" requires dejagnu but I don't have it, I tried
the "puts" example from http://www.atmark-techno.com/~yashi/libffi.html,
and it worked.
(It would be good to have some trivial test suite that works
without dejagnu...)
Compiled with the ancient gcc 2.9 the system has.
The patch simply removes the check of FFI_TYPE_LAST being 14 or
FFI_TYPE_POINTER. Not necessarily the most correct thing to do,
but hey.
I have also access to an IRIX 6.5 box, but there the situation
seems to be more dire. (gcc 3.3, FWIW.)
-------------- next part --------------
--- src/alpha/osf.S.dist Thu Mar 12 01:16:49 2015
+++ src/alpha/osf.S Thu Mar 12 01:16:59 2015
@@ -293,8 +293,7 @@
|| FFI_TYPE_UINT64 != 11 \
|| FFI_TYPE_SINT64 != 12 \
|| FFI_TYPE_STRUCT != 13 \
- || FFI_TYPE_POINTER != 14 \
- || FFI_TYPE_LAST != 14
+ || FFI_TYPE_POINTER != 14
#error "osf.S out of sync with ffi.h"
#endif
More information about the Libffi-discuss
mailing list