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
- From: Hiroki Kaminaga <kaminaga at sm dot sony dot co dot jp>
- To: munroesj at us dot ibm dot com
- Cc: libc-alpha at sources dot redhat dot com, kaminaga at sm dot sony dot co dot jp
- Date: Thu, 07 Dec 2006 13:41:51 +0900 (JST)
- Subject: Re: __nldbl_fprintf and __gtdf2 on PowerPC no-fpu
- References: <45771EB0.7000909@us.ibm.com>
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
--