[Ecls-list] UFFI returning double is broken?

anri p. anri_p at mail.com
Fri Oct 4 13:06:37 UTC 2013


I've recently encountered a situation, when calling compiled C function like:

fn( double a);

from ECL causes to return garbage. It seem that it is ether an UFFI bug
or misconfiguration in the build environment. This happens on linux x86-64,
running 32 bit ECL and compiling C code with -m32 gcc flag. And integer/pointer
C code calling works fine.

So i believe that it is some issue with FP registers returning convention for x86.
Is there any way to change it in a some predictable way in both UFFI/ECL and
gcc options?

More information about the ecl-devel mailing list