libffi/i386 vs. -fno-pcc-struct-return

Loren James Rittle rittle@latour.rsch.comm.mot.com
Thu Jan 29 00:22:00 GMT 2004


In article <1075332974.3241.67.camel@escape>,
Anthony Green<green@redhat.com> writes:

>> It seems like the correct fix is to add a new variant of the SVR4 ABI
>> which covers this case.  Is there a libffi maintainer willing to fix
>> it, or would you like me to submit a patch?  

> Please submit a patch.

OK, I will work on one.

>> BTW, it would seem that
>> the best fix would track the actual compiler flags in use.  Advise?

> I'm not sure I understand...

Let me try again with more detail.  As the code exists today,
-fno-pcc-struct-return is a different ABI than -fpcc-struct-return yet
the libffi code (for i386) doesn't detect the ABI of the compiler used
to compile the code.

I think it is easy to add a variant ABI which matches the FreeBSD/i386
default (this is what I will attempt).  I think it is harder to track
the flags (esp. since it appears no compile-time test detects it).

Regards,
Loren



More information about the Java mailing list