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

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


>> Please submit a patch.

> OK, I will work on one.

For the record, now that I dove in: This is going to take a lot more
time than I thought. I still have it on my plate (as the port
maintainer) however...
> 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.

Based on comments in our port config file, I thought that switch only
controlled whether the return was in "static" memory or stack memory.
(I.e. that would have been fairly simple to fix.) No such luck. To
make this work will require classification code similar to x86_64
since -fno-pcc-struct-return (and/or DEFAULT_PCC_STRUCT_RETURN==0)
implies register return of structs.
Regards,
Loren


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /