[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: adding mips/mipsel support for libffi2



[I'm not subscribed to -gcc]

Matthias Klose wrote:
> gcc-3.4 has support for mips, but not yet for mipsel. Any volunteers
> to add this for this architecture? Looks like _MIPS_SIM isn't defined
> on this platform.

AFAIK it is, but the _ABI{O,N}{32,64} isn't always defined. Current
Upstream CVS defines _MIPS_SIM properly for all Linux ABIs.

> gcc-3.3 doesn't define _MIPS_SIM, neither on mips nor mipsel. A patch
> from you mips guys would be welcome.

Older gcc had inconsistent definitions, a workaround is to check for
_MIPS_SIM_ABI32 instead of _ABI032. This will also work on modern
gcc as long as you #include <sgidefs.h>.


Thiemo



Reply to: