Work-around libffi's FP ABI detection.
authorLandon Fuller <landonf@bikemonkey.org>
Sat, 18 Sep 2010 22:32:08 +0000 (15:32 -0700)
committerLandon Fuller <landonf@bikemonkey.org>
Sat, 18 Sep 2010 22:32:08 +0000 (15:32 -0700)
commit69043d02936bb0579ac59b4ee1ed8dec38c38db7
tree25dac421241b44a3bec5ecceda716828b36d7833
parenta82e6c354ea805114642a6e440abd0832cb1d23f
Work-around libffi's FP ABI detection.

On iOS, we must use the AAPCS floating point return value calling
conventions. libffi's ARM implementation will only use these conventions
if __SOFTFP__ is defined, which is not the case when GCC's
-mfloat-abi defaults to 'softfp' instead of 'soft'. To work around this
we manually define __SOFTFP__ for Apple platforms in the ARM-specific
sysv.S.

See also:
  http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/iPhoneOSABIReference/Introduction/Introduction.html
  http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042d/IHI0042D_aapcs.pdf
src/arm/sysv.S