This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: __nldbl_fprintf and __gtdf2 on PowerPC no-fpu
Hiroki Kaminaga wrote:
>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
>
>
works for me.
Did you apply all the patches? did you configure --enable-add-ons=ports,nptl