SF soft-fp for i386

Ilya Enkovich enkovich.gnu@gmail.com
Thu Apr 30 09:12:00 GMT 2015


Hi,

trying to compile a simple soft-fp test on i386 I get multiple link errors:

>cat test.c
int main ()
{
  float a,b;
  return (int)a*b;
}
>gcc -msoft-float test.c -m32
/tmp/cc1Zh1Jy.o: In function `main':
test.c:(.text+0x11): undefined reference to `__fixsfsi'
test.c:(.text+0x19): undefined reference to `__floatsisf'
test.c:(.text+0x29): undefined reference to `__mulsf3'
test.c:(.text+0x31): undefined reference to `__fixsfsi'
collect2: error: ld returned 1 exit status

Is there a way to configure libgcc to have implementations for SF
soft-fp functions or it is not supported for i386?

Thanks,
Ilya



More information about the Gcc-help mailing list