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
Hi,
> Did you apply all the patches? did you configure --enable-add-ons=ports,nptl
In the patch: gcc-41-20060515.patch in
http://sources.redhat.com/bugzilla/show_bug.cgi?id=2749
I found following:
a) $target matching
--- gcc-41-20060515.orig/gcc/configure 2006-05-15 11:14:19.000000000 -0500
+++ gcc-41-20060515/gcc/configure 2006-05-15 13:47:27.594268652 -0500
...
+# Check if TFmode long double should be used by default or not.
+# Some glibc targets used DFmode long double, but with glibc 2.4
+# and later they can use TFmode.
+case "$target" in
+ powerpc*-*-*gnu* | \
but my target was configured with --target=powerpc-unknown-linux ...
with *OUT* the string `gnu'...
Ok to change as below?
+ powerpc*-*-* | \
b) grep pattern matching
--- gcc-41-20060515.orig/gcc/configure 2006-05-15 11:14:19.000000000 -0500
+++ gcc-41-20060515/gcc/configure 2006-05-15 13:47:27.594268652 -0500
...
+ grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
+ $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
--- gcc-41-20060515.orig/gcc/configure.ac 2006-05-15 11:14:20.000000000 -0500
+++ gcc-41-20060515/gcc/configure.ac 2006-05-15 13:47:27.597400000 -0500
...
+ grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
+ $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
configure.ac grep has: `hat' `open bracket' `space' `tab' `close bracket'
but configure file did *NOT* have open and close bracket.
This lead to fail grep pattern match, and didn't define
TARGET_DEFAULT_LONG_DOUBLE_128.
I tried to regenerate configure from configure.ac with autoconf, but I also
got the misgenerated configure. My autoconf was 2.59 (in FC3). Maybe you
also have buggy autoconf?
(Hiroki Kaminaga)
t
--