libffi & powerpc

Eric Christopher echristo@apple.com
Mon May 14 19:02:00 GMT 2007


On May 14, 2007, at 11:35 AM, Mike Stump wrote:

> On May 14, 2007, at 8:46 AM, Patrick Olinet wrote:
>> Running with gdb, it looks like the problem comes from the
>> ppc_closure.S file of the libffi/src/powerpc directory, at line 32 :
>
> Maybe something like:
>
> #ifndef _SOFT_FLOAT
>> stfd %f1, 48(%r1)
> #endif
>
> but then, you might have to have something like:
>
> #define CPP_SPEC \
> "%{msoft-float: -D_SOFT_FLOAT} \
>
> (picked at random from lynx.h) in the .h file for your port.
>
> :-)  But I'm sure there would be more work to do.

FWIW the backend already does this in rs6000-c.c :)

-eric



More information about the Gcc mailing list