__nldbl_fprintf and __gtdf2 on PowerPC no-fpu

Hiroki Kaminaga kaminaga@sm.sony.co.jp
Thu Dec 7 10:24:00 GMT 2006


Steven Munroe wrote:
> You need the patches attached to
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=2749 and
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=3268.
> 
> The ports patched where commited to the ports add-on but libc patches
> are not. You will need to -mlong-double-128 in you gcc and build libc
> with the ports add-on.

Thanks!

I've applied pateches in above link to gcc-4.1.1 and glibc-2.5, but
the problem still appears... Could you give it a try with your
toolchain?

$ cat ldbl.c
#include <stdio.h>
int main(void){
  long double ld1, ld2;
  if (ld1>ld2)
    fprintf(stderr, "hello, %f\n", ld1);
  return 0;
}

$ powerpc-unknown-linux-gcc -static ldbl.c


Best Regards,

(Hiroki Kaminaga)
t
--



More information about the Libc-alpha mailing list