This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]