This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
libffi makes some bad (IMO :-) assumptions about what preprocessor macros will be defined and which include files will be available on MIPS. This patch makes it work on mips-netbsd, but I cannot verify it on mips-linux or mips-sgi-irix. That said, with this change, libjava hobbles along on mips-netbsd (I posted a testsuite run with it enabled earlier today). So, assuming someone can tell me this looks okay for mips-linux and mips-sgi-irix, OK for mainline? * configure.in (mips*-*-netbsd*): Treat it like mips*-*-linux*. * configure: Regenerate. * include/ffi.h.in: Test for FFI_MIPS_N32 rather than _MIPS_SIM == _ABIN32. * include/ffi_mips.h: If _MIPS_SIM is not defined, set FFI_MIPS_N32 or FFI_MIPS_O32 based on the presence of __mips_n32. Error out if __mips_n64 or __mips_o64 are defined. * src/mips/ffi.c: Only include <sgidefs.h> if __sgi__ or __linux__ are defined. Test for FFI_MIPS_N32 rather than _MIPS_SIM == _MIPS_SIM_NABI32. Test for FFI_MIPS_O32 rathern than _MIPS_SIM == _MIPS_SIM_ABI32. -- -- Jason R. Thorpe <thorpej@wasabisystems.com>
Attachment:
mipsnbsd-ffi-patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |