Update the newlib devel branch with stuf from /trunk.
-------- diffstat follows --------
/devel/newlib/configure | 8 4 4 0
/devel/newlib/scripts/build/kernel/linux.sh | 2 1 1 0
/devel/newlib/scripts/build/cc/gcc.sh | 34 22 12 0 +
/devel/newlib/scripts/build/debug/300-gdb.sh | 52 45 7 0 +
/devel/newlib/scripts/build/libc/uClibc.sh | 6 3 3 0
/devel/newlib/scripts/build/mpfr.sh | 2 1 1 0
/devel/newlib/scripts/crosstool-NG.sh.in | 20 18 2 0 +
/devel/newlib/scripts/functions | 44 34 10 0 +
/devel/newlib/patches/glibc/2_9/500-ppc-glibc-2.9-atomic.patch | 414 0 414 0 ----------
/devel/newlib/patches/glibc/2_9/140-regex-BZ9697.patch | 111 0 111 0 ---
/devel/newlib/patches/glibc/2_9/190-queue-header-updates.patch | 89 0 89 0 --
/devel/newlib/patches/glibc/2_9/370-hppa_glibc-2.7-hppa-nptl-carlos.patch | 249 0 249 0 ------
/devel/newlib/patches/glibc/2_9/450-alpha-glibc-2.5-no-page-header.patch | 32 0 32 0 -
/devel/newlib/patches/glibc/2_9/330-2.3.3-china.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/270-ldbl-nexttowardf.patch | 68 0 68 0 --
/devel/newlib/patches/glibc/2_9/410-2.9-fnmatch.patch | 64 0 64 0 --
/devel/newlib/patches/glibc/2_9/340-new-valencian-locale.patch | 120 0 120 0 ---
/devel/newlib/patches/glibc/2_9/350-2.4-undefine-__i686.patch | 47 0 47 0 -
/devel/newlib/patches/glibc/2_9/160-i386-x86_64-revert-clone-cfi.patch | 53 0 53 0 -
/devel/newlib/patches/glibc/2_9/150-regex-BZ697.patch | 28 0 28 0 -
/devel/newlib/patches/glibc/2_9/420-dont-build-timezone.patch | 19 0 19 0 -
/devel/newlib/patches/glibc/2_9/290-no-inline-gmon.patch | 38 0 38 0 -
/devel/newlib/patches/glibc/2_9/280-section-comments.patch | 29 0 29 0 -
/devel/newlib/patches/glibc/2_9/180-math-tests.patch | 72 0 72 0 --
/devel/newlib/patches/glibc/2_9/250-resolv-dynamic.patch | 44 0 44 0 -
/devel/newlib/patches/glibc/2_9/120-_nss_dns_gethostbyaddr2_r-check-and-adjust-the-buffer-alignment.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/300-2.9-check_native-headers.patch | 22 0 22 0 -
/devel/newlib/patches/glibc/2_9/130-add_prio-macros.patch | 26 0 26 0 -
/devel/newlib/patches/glibc/2_9/310-2.3.6-fix-pr631.patch | 50 0 50 0 -
/devel/newlib/patches/glibc/2_9/510-sh-no-asm-user-header.patch | 70 0 70 0 --
/devel/newlib/patches/glibc/2_9/260-fadvise64_64.patch | 30 0 30 0 -
/devel/newlib/patches/glibc/2_9/440-alpha-glibc-2.4-xstat.patch | 249 0 249 0 ------
/devel/newlib/patches/glibc/2_9/170-2.10-dns-no-gethostbyname4.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/230-2.3.3-localedef-fix-trampoline.patch | 74 0 74 0 --
/devel/newlib/patches/glibc/2_9/480-alpha-glibc-2.8-cache-shape.patch | 18 0 18 0 -
/devel/newlib/patches/glibc/2_9/360-2.8-nscd-one-fork.patch | 45 0 45 0 -
/devel/newlib/patches/glibc/2_9/210-2.9-strlen-hack.patch | 109 0 109 0 ---
/devel/newlib/patches/glibc/2_9/320-2.9-assume-pipe2.patch | 59 0 59 0 -
/devel/newlib/patches/glibc/2_9/100-ssp-compat.patch | 193 0 193 0 -----
/devel/newlib/patches/glibc/2_9/110-respect-env-CPPFLAGS.patch | 30 0 30 0 -
/devel/newlib/patches/glibc/2_9/220-manual-no-perl.patch | 29 0 29 0 -
/devel/newlib/patches/glibc/2_9/390-2.3.3_pre20040117-pt_pax.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/460-alpha-glibc-2.5-no-asm-elf-header.patch | 38 0 38 0 -
/devel/newlib/patches/glibc/2_9/400-tests-sandbox-libdl-paths.patch | 198 0 198 0 -----
/devel/newlib/patches/glibc/2_9/520-sh-no-asm-elf-header.patch | 27 0 27 0 -
/devel/newlib/patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch | 23 0 23 0 -
/devel/newlib/patches/glibc/2_9/200-awk-in-C-locale.patch | 23 0 23 0 -
/devel/newlib/patches/glibc/2_9/430-2.7-cross-compile-nptl.patch | 57 0 57 0 -
/devel/newlib/patches/glibc/2_9/380-2.3.6-dl_execstack-PaX-support.patch | 71 0 71 0 --
/devel/newlib/patches/glibc/2_9/490-ptr-mangling.patch | 114 0 114 0 ---
/devel/newlib/patches/glibc/2_9/470-alpha-glibc-2.8-creat.patch | 19 0 19 0 -
/devel/newlib/patches/glibc/ports-2_9/100-arm_linux_tls.patch | 14 0 14 0 -
/devel/newlib/patches/uClibc/0.9.30.1/140-gnu89-inline.patch | 2 1 1 0
/devel/newlib/docs/known-issues.txt | 16 15 1 0 +
/devel/newlib/docs/overview.txt | 2 1 1 0
/devel/newlib/samples/armeb-unknown-linux-uclibc/uClibc-0.9.30.config | 243 0 243 0 ------
/devel/newlib/samples/armeb-unknown-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/sh4-unknown-linux-gnu/crosstool.config | 35 18 17 0 +
/devel/newlib/samples/x86_64-unknown-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/arm-unknown-elf/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/armeb-unknown-eabi/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/arm-unknown-linux-gnueabi/crosstool.config | 113 73 40 0 +--
/devel/newlib/samples/ia64-unknown-linux-gnu/crosstool.config | 91 61 30 0 +-
/devel/newlib/samples/x86_64-unknown-linux-uclibc/uClibc-0.9.30.config | 245 0 245 0 ------
/devel/newlib/samples/x86_64-unknown-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/armeb-unknown-linux-gnueabi/crosstool.config | 105 69 36 0 +--
/devel/newlib/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 96 63 33 0 +-
/devel/newlib/samples/i686-nptl-linux-gnu/crosstool.config | 78 48 30 0 +-
/devel/newlib/samples/arm-unknown-linux-gnu/crosstool.config | 105 69 36 0 +--
/devel/newlib/samples/powerpc-unknown-linux-gnu/crosstool.config | 103 67 36 0 +-
/devel/newlib/samples/mips-unknown-linux-uclibc/uClibc-0.9.30.config | 254 0 254 0 ------
/devel/newlib/samples/mips-unknown-linux-uclibc/crosstool.config | 77 54 23 0 +-
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/uClibc-0.9.30.config | 253 0 253 0 ------
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/arm-iphone-linux-gnueabi/crosstool.config | 84 57 27 0 +-
/devel/newlib/samples/armeb-unknown-linux-gnu/crosstool.config | 105 69 36 0 +--
/devel/newlib/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/i586-geode-linux-uclibc/uClibc-0.9.30.config | 263 0 263 0 ------
/devel/newlib/samples/i586-geode-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/arm-unknown-linux-uclibc/uClibc-0.9.30.config | 253 0 253 0 ------
/devel/newlib/samples/arm-unknown-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/powerpc-unknown-linux-uclibc/uClibc-0.9.30.config | 248 0 248 0 ------
/devel/newlib/samples/powerpc-unknown-linux-uclibc/crosstool.config | 77 54 23 0 +-
/devel/newlib/samples/mips-unknown-elf/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/powerpc-405-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 26 13 13 0
/devel/newlib/samples/arm-unknown-eabi/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/mipsel-unknown-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/powerpc64-unknown-linux-gnu/crosstool.config | 75 49 26 0 +-
/devel/newlib/samples/alphaev56-unknown-linux-gnu/crosstool.config | 94 63 31 0 +-
/devel/newlib/samples/powerpc-860-linux-gnu/crosstool.config | 102 67 35 0 +-
/devel/newlib/config/kernel/linux.in | 87 46 41 0 +-
/devel/newlib/config/cc/gcc.in | 35 30 5 0 +
/devel/newlib/config/debug/gdb.in | 2 1 1 0
94 files changed, 1851 insertions(+), 5813 deletions(-)
1 Index: uClibc-0.9.30.1/libm/ldouble_wrappers.c
2 ===================================================================
3 --- uClibc-0.9.30.1/libm/ldouble_wrappers.c (revision 25552)
4 +++ uClibc-0.9.30.1/libm/ldouble_wrappers.c (working copy)
9 +#if defined __NO_LONG_DOUBLE_MATH
10 +# define int_WRAPPER_C99(func) /* not needed */
12 +# define int_WRAPPER_C99(func) \
13 +int func##l(long double x) \
15 + return func((double) x); \
17 +libm_hidden_def(func##l)
20 /* Implement the following, as defined by SuSv3 */
22 @@ -543,46 +553,28 @@ long double truncl (long double x)
26 -#ifdef __DO_C99_MATH__
27 +#if defined __DO_C99_MATH__
30 -int __fpclassifyl (long double x)
32 - return __fpclassify ( (double) x );
34 -libm_hidden_def(__fpclassifyl)
35 +int_WRAPPER_C99(__fpclassify)
39 -int __finitel (long double x)
41 - return __finite ( (double)x );
43 -libm_hidden_def(__finitel)
44 +int_WRAPPER_C99(__finite)
48 -int __signbitl (long double x)
50 - return __signbitl ( (double)x );
52 -libm_hidden_def(__signbitl)
53 +int_WRAPPER_C99(__signbit)
57 -int __isnanl (long double x)
59 - return __isnan ( (double)x );
61 -libm_hidden_def(__isnanl)
62 +int_WRAPPER_C99(__isnan)
66 -int __isinfl (long double x)
68 - return __isinf ( (double)x );
70 -libm_hidden_def(__isinfl)
71 +int_WRAPPER_C99(__isinf)
75 +#endif /* DO_C99_MATH */
77 +#undef int_WRAPPER_C99
78 Index: uClibc-0.9.30.1/libm/nan.c
79 ===================================================================
80 --- uClibc-0.9.30.1/libm/nan.c (revision 25552)
81 +++ uClibc-0.9.30.1/libm/nan.c (working copy)
82 @@ -45,7 +45,7 @@ float nanf (const char *tagp)
86 -#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
87 +#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ && !defined __NO_LONG_DOUBLE_MATH
88 libm_hidden_proto(nanl)
89 long double nanl (const char *tagp)
91 Index: uClibc-0.9.30.1/include/math.h
92 ===================================================================
93 --- uClibc-0.9.30.1/include/math.h (revision 25552)
94 +++ uClibc-0.9.30.1/include/math.h (working copy)
95 @@ -118,7 +118,7 @@ __BEGIN_DECLS
96 # undef __MATH_PRECNAME
98 # if (__STDC__ - 0 || __GNUC__ - 0) \
99 - && (defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ || defined __LDBL_COMPAT)
100 + && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
101 # ifdef __LDBL_COMPAT
104 @@ -230,7 +230,7 @@ enum
107 /* Return number of classification appropriate for X. */
108 -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__
109 +# ifdef __NO_LONG_DOUBLE_MATH
110 # define fpclassify(x) \
111 (sizeof (x) == sizeof (float) ? __fpclassifyf (x) : __fpclassify (x))
113 @@ -242,7 +242,7 @@ enum
116 /* Return nonzero value if sign of X is negative. */
117 -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__
118 +# ifdef __NO_LONG_DOUBLE_MATH
119 # define signbit(x) \
120 (sizeof (x) == sizeof (float) ? __signbitf (x) : __signbit (x))
122 @@ -254,7 +254,7 @@ enum
125 /* Return nonzero value if X is not +-Inf or NaN. */
126 -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__
127 +# ifdef __NO_LONG_DOUBLE_MATH
128 # define isfinite(x) \
129 (sizeof (x) == sizeof (float) ? __finitef (x) : __finite (x))
131 @@ -270,7 +270,7 @@ enum
133 /* Return nonzero value if X is a NaN. We could use `fpclassify' but
134 we already have this functions `__isnan' and it is faster. */
135 -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__
136 +# ifdef __NO_LONG_DOUBLE_MATH
138 (sizeof (x) == sizeof (float) ? __isnanf (x) : __isnan (x))
140 @@ -282,7 +282,7 @@ enum
143 /* Return nonzero value is X is positive or negative infinity. */
144 -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__
145 +# ifdef __NO_LONG_DOUBLE_MATH
147 (sizeof (x) == sizeof (float) ? __isinff (x) : __isinf (x))
149 Index: uClibc-0.9.30.1/include/tgmath.h
150 ===================================================================
151 --- uClibc-0.9.30.1/include/tgmath.h (revision 25552)
152 +++ uClibc-0.9.30.1/include/tgmath.h (working copy)
155 #if __GNUC_PREREQ(2, 7)
157 -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__
158 +# ifdef __NO_LONG_DOUBLE_MATH
159 # define __tgml(fct) fct
161 # define __tgml(fct) fct ## l
162 Index: uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/wordsize.h
163 ===================================================================
164 --- uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/wordsize.h (revision 25552)
165 +++ uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/wordsize.h (working copy)
167 # define __WORDSIZE 32
170 -#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ && !defined __LONG_DOUBLE_MATH_OPTIONAL
171 +#if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL
173 /* Signal the glibc ABI didn't used to have a `long double'.
174 The changes all the `long double' function variants to be redirects
175 to the double functions. */
176 # define __LONG_DOUBLE_MATH_OPTIONAL 1
177 # ifndef __LONG_DOUBLE_128__
178 -# undef __UCLIBC_HAS_LONG_DOUBLE_MATH__
179 +# define __NO_LONG_DOUBLE_MATH 1
182 Index: uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/mathdef.h
183 ===================================================================
184 --- uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/mathdef.h (revision 25552)
185 +++ uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/mathdef.h (working copy)
186 @@ -65,11 +65,13 @@ typedef double double_t;
190 -#ifdef __UCLIBC_HAS_LONG_DOUBLE_MATH__
191 +#ifndef __NO_LONG_DOUBLE_MATH
192 #include <bits/wordsize.h>
193 /* Signal that we do not really have a `long double'. The disables the
194 declaration of all the `long double' function variants. */
195 # if __WORDSIZE == 32
196 -# undef __UCLIBC_HAS_LONG_DOUBLE_MATH__
197 +# define __NO_LONG_DOUBLE_MATH 1
198 +# elif !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
199 +# define __NO_LONG_DOUBLE_MATH 1
200 # endif /* __WORDSIZE == 32 */
201 -#endif /* __UCLIBC_HAS_LONG_DOUBLE_MATH__ */
202 +#endif /* __NO_LONG_DOUBLE_MATH */
203 Index: uClibc-0.9.30.1/libc/sysdeps/linux/arm/bits/mathdef.h
204 ===================================================================
205 --- uClibc-0.9.30.1/libc/sysdeps/linux/arm/bits/mathdef.h (revision 25552)
206 +++ uClibc-0.9.30.1/libc/sysdeps/linux/arm/bits/mathdef.h (working copy)
207 @@ -34,3 +34,11 @@ typedef double double_t; /* `double' exp
208 # define FP_ILOGBNAN (2147483647)
212 +#ifndef __NO_LONG_DOUBLE_MATH
213 +/* Signal that we do not really have a `long double'. This disables the
214 + declaration of all the `long double' function variants. */
215 +/* XXX The FPA does support this but the patterns in GCC are currently
217 +# define __NO_LONG_DOUBLE_MATH 1
219 Index: uClibc-0.9.30.1/libc/sysdeps/linux/m68k/bits/mathdef.h
220 ===================================================================
221 --- uClibc-0.9.30.1/libc/sysdeps/linux/m68k/bits/mathdef.h (revision 25552)
222 +++ uClibc-0.9.30.1/libc/sysdeps/linux/m68k/bits/mathdef.h (working copy)
223 @@ -36,3 +36,7 @@ typedef long double double_t; /* `double
224 # define FP_ILOGBNAN (2147483647)
228 +#if !defined __NO_LONG_DOUBLE_MATH && !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
229 +# define __NO_LONG_DOUBLE_MATH 1
231 Index: uClibc-0.9.30.1/libc/sysdeps/linux/alpha/bits/wordsize.h
232 ===================================================================
233 --- uClibc-0.9.30.1/libc/sysdeps/linux/alpha/bits/wordsize.h (revision 25552)
234 +++ uClibc-0.9.30.1/libc/sysdeps/linux/alpha/bits/wordsize.h (working copy)
237 #define __WORDSIZE 64
239 -#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ && !defined __LONG_DOUBLE_MATH_OPTIONAL
240 +#if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL
242 /* Signal that we didn't used to have a `long double'. The changes all
243 the `long double' function variants to be redirects to the double
245 # define __LONG_DOUBLE_MATH_OPTIONAL 1
246 # ifndef __LONG_DOUBLE_128__
247 -# undef __UCLIBC_HAS_LONG_DOUBLE_MATH__
248 +# define __NO_LONG_DOUBLE_MATH 1
251 Index: uClibc-0.9.30.1/libc/sysdeps/linux/alpha/bits/mathdef.h
252 ===================================================================
253 --- uClibc-0.9.30.1/libc/sysdeps/linux/alpha/bits/mathdef.h (revision 25552)
254 +++ uClibc-0.9.30.1/libc/sysdeps/linux/alpha/bits/mathdef.h (working copy)
255 @@ -78,3 +78,7 @@ typedef double double_t;
257 # endif /* GNUC before 3.4 */
258 #endif /* COMPLEX_H */
260 +#if !defined __NO_LONG_DOUBLE_MATH && !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
261 +# define __NO_LONG_DOUBLE_MATH 1
263 Index: uClibc-0.9.30.1/libc/sysdeps/linux/common/bits/mathdef.h
264 ===================================================================
265 --- uClibc-0.9.30.1/libc/sysdeps/linux/common/bits/mathdef.h (revision 25552)
266 +++ uClibc-0.9.30.1/libc/sysdeps/linux/common/bits/mathdef.h (working copy)
267 @@ -35,3 +35,9 @@ typedef double double_t; /* `double' exp
268 # define FP_ILOGBNAN 2147483647
272 +#ifndef __NO_LONG_DOUBLE_MATH
273 +/* Signal that we do not really have a `long double'. The disables the
274 + declaration of all the `long double' function variants. */
275 +# define __NO_LONG_DOUBLE_MATH 1
277 Index: uClibc-0.9.30.1/libc/sysdeps/linux/i386/bits/mathdef.h
278 ===================================================================
279 --- uClibc-0.9.30.1/libc/sysdeps/linux/i386/bits/mathdef.h (revision 25552)
280 +++ uClibc-0.9.30.1/libc/sysdeps/linux/i386/bits/mathdef.h (working copy)
281 @@ -44,3 +44,7 @@ typedef long double double_t; /* `double
282 # define FP_ILOGBNAN (-2147483647 - 1)
286 +#if !defined __NO_LONG_DOUBLE_MATH && !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
287 +# define __NO_LONG_DOUBLE_MATH 1
289 Index: uClibc-0.9.30.1/libc/sysdeps/linux/nios2/bits/mathdef.h
290 ===================================================================
291 --- uClibc-0.9.30.1/libc/sysdeps/linux/nios2/bits/mathdef.h (revision 25552)
292 +++ uClibc-0.9.30.1/libc/sysdeps/linux/nios2/bits/mathdef.h (working copy)
293 @@ -34,3 +34,11 @@ typedef double double_t; /* `double' exp
294 # define FP_ILOGBNAN (2147483647)
298 +#ifndef __NO_LONG_DOUBLE_MATH
299 +/* Signal that we do not really have a `long double'. This disables the
300 + declaration of all the `long double' function variants. */
301 +/* XXX The FPA does support this but the patterns in GCC are currently
303 +# define __NO_LONG_DOUBLE_MATH 1
305 Index: uClibc-0.9.30.1/libc/sysdeps/linux/x86_64/bits/mathdef.h
306 ===================================================================
307 --- uClibc-0.9.30.1/libc/sysdeps/linux/x86_64/bits/mathdef.h (revision 25552)
308 +++ uClibc-0.9.30.1/libc/sysdeps/linux/x86_64/bits/mathdef.h (working copy)
309 @@ -46,3 +46,7 @@ typedef long double double_t; /* `double
310 # define FP_ILOGBNAN (-2147483647 - 1)
314 +#if !defined __NO_LONG_DOUBLE_MATH && !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
315 +# define __NO_LONG_DOUBLE_MATH 1
317 Index: uClibc-0.9.30.1/libc/sysdeps/linux/xtensa/bits/mathdef.h
318 ===================================================================
319 --- uClibc-0.9.30.1/libc/sysdeps/linux/xtensa/bits/mathdef.h (revision 25552)
320 +++ uClibc-0.9.30.1/libc/sysdeps/linux/xtensa/bits/mathdef.h (working copy)
321 @@ -36,8 +36,8 @@ typedef double double_t; /* `double' exp
325 -#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
326 +#ifndef __NO_LONG_DOUBLE_MATH
327 /* Signal that we do not really have a `long double'. The disables the
328 declaration of all the `long double' function variants. */
329 -# undef __UCLIBC_HAS_LONG_DOUBLE_MATH__
330 +# define __NO_LONG_DOUBLE_MATH 1
332 Index: uClibc-0.9.30.1/libc/sysdeps/linux/ia64/bits/mathdef.h
333 ===================================================================
334 --- uClibc-0.9.30.1/libc/sysdeps/linux/ia64/bits/mathdef.h (revision 25552)
335 +++ uClibc-0.9.30.1/libc/sysdeps/linux/ia64/bits/mathdef.h (working copy)
336 @@ -35,3 +35,7 @@ typedef double double_t; /* `double' exp
337 # define FP_ILOGBNAN 2147483647
341 +#if !defined __NO_LONG_DOUBLE_MATH && !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
342 +# define __NO_LONG_DOUBLE_MATH 1
344 Index: uClibc-0.9.30.1/libc/sysdeps/linux/mips/bits/mathdef.h
345 ===================================================================
346 --- uClibc-0.9.30.1/libc/sysdeps/linux/mips/bits/mathdef.h (revision 25552)
347 +++ uClibc-0.9.30.1/libc/sysdeps/linux/mips/bits/mathdef.h (working copy)
348 @@ -39,8 +39,10 @@ typedef double double_t; /* `double' exp
352 -#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ && _MIPS_SIM == _ABIO32
353 +#if ! defined __NO_LONG_DOUBLE_MATH && _MIPS_SIM == _ABIO32
354 /* Signal that we do not really have a `long double'. This disables the
355 declaration of all the `long double' function variants. */
356 -# error defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ and _MIPS_SIM == _ABIO32
357 +# define __NO_LONG_DOUBLE_MATH 1
358 +#elif !defined __NO_LONG_DOUBLE_MATH && !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
359 +# define __NO_LONG_DOUBLE_MATH 1
361 Index: uClibc-0.9.30.1/libc/sysdeps/linux/nios/bits/mathdef.h
362 ===================================================================
363 --- uClibc-0.9.30.1/libc/sysdeps/linux/nios/bits/mathdef.h (revision 25552)
364 +++ uClibc-0.9.30.1/libc/sysdeps/linux/nios/bits/mathdef.h (working copy)
365 @@ -34,3 +34,11 @@ typedef double double_t; /* `double' exp
366 # define FP_ILOGBNAN (2147483647)
370 +#ifndef __NO_LONG_DOUBLE_MATH
371 +/* Signal that we do not really have a `long double'. This disables the
372 + declaration of all the `long double' function variants. */
373 +/* XXX The FPA does support this but the patterns in GCC are currently
375 +# define __NO_LONG_DOUBLE_MATH 1
377 Index: uClibc-0.9.30.1/libc/sysdeps/linux/sparc/bits/wordsize.h
378 ===================================================================
379 --- uClibc-0.9.30.1/libc/sysdeps/linux/sparc/bits/wordsize.h (revision 25552)
380 +++ uClibc-0.9.30.1/libc/sysdeps/linux/sparc/bits/wordsize.h (working copy)
382 # define __WORDSIZE 32
385 -#if 0 /* uClibc: done in mathdefs.h: defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ && !defined __LONG_DOUBLE_MATH_OPTIONAL*/
386 +#if 0 /* uClibc: done in mathdefs.h: !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL*/
388 # if __WORDSIZE == 32
389 /* Signal that in 32bit ABI we didn't used to have a `long double'.
391 to the double functions. */
392 # define __LONG_DOUBLE_MATH_OPTIONAL 1
393 # ifndef __LONG_DOUBLE_128__
394 -# undef __UCLIBC_HAS_LONG_DOUBLE_MATH__
395 +# define __NO_LONG_DOUBLE_MATH 1
399 Index: uClibc-0.9.30.1/libc/sysdeps/linux/sparc/bits/mathdef.h
400 ===================================================================
401 --- uClibc-0.9.30.1/libc/sysdeps/linux/sparc/bits/mathdef.h (revision 25552)
402 +++ uClibc-0.9.30.1/libc/sysdeps/linux/sparc/bits/mathdef.h (working copy)
403 @@ -57,13 +57,15 @@ typedef double double_t;
407 -#ifdef __UCLIBC_HAS_LONG_DOUBLE_MATH__
408 +#ifndef __NO_LONG_DOUBLE_MATH
410 # if __WORDSIZE == 32
411 /* Signal that in 32bit ABI we do not really have a `long double'.
412 The disables the declaration of all the `long double' function
414 -# undef __UCLIBC_HAS_LONG_DOUBLE_MATH__
415 +# define __NO_LONG_DOUBLE_MATH 1
416 +# elif !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
417 +# define __NO_LONG_DOUBLE_MATH 1
421 Index: uClibc-0.9.30.1/libc/sysdeps/linux/sparc/bits/mathinline.h
422 ===================================================================
423 --- uClibc-0.9.30.1/libc/sysdeps/linux/sparc/bits/mathinline.h (revision 25552)
424 +++ uClibc-0.9.30.1/libc/sysdeps/linux/sparc/bits/mathinline.h (working copy)
427 # if __WORDSIZE == 32
429 -# ifdef __UCLIBC_HAS_LONG_DOUBLE_MATH__
430 +# ifndef __NO_LONG_DOUBLE_MATH
432 # define __unordered_cmp(x, y) \
434 @@ -157,7 +157,7 @@ __NTH (__signbit (double __x))
435 return __u.__i[0] < 0;
438 -# ifdef __UCLIBC_HAS_LONG_DOUBLE_MATH__
439 +# ifndef __NO_LONG_DOUBLE_MATH
441 __NTH (__signbitl (long double __x))
443 @@ -219,7 +219,7 @@ __NTH (sqrtl (long double __x))
444 _Qp_sqrt (&__r, &__x);
447 -# elif defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
448 +# elif !defined __NO_LONG_DOUBLE_MATH
449 __MATH_INLINE long double
450 sqrtl (long double __x) __THROW
452 @@ -257,7 +257,7 @@ __ieee754_sqrtl (long double __x)
453 _Qp_sqrt(&__r, &__x);
456 -# elif defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
457 +# elif !defined __NO_LONG_DOUBLE_MATH
458 __MATH_INLINE long double
459 __ieee754_sqrtl (long double __x)
461 Index: uClibc-0.9.30.1/libc/sysdeps/linux/sh/bits/mathdef.h
462 ===================================================================
463 --- uClibc-0.9.30.1/libc/sysdeps/linux/sh/bits/mathdef.h (revision 25552)
464 +++ uClibc-0.9.30.1/libc/sysdeps/linux/sh/bits/mathdef.h (working copy)
465 @@ -61,3 +61,9 @@ typedef double double_t;
466 # define FP_ILOGBNAN 0x7fffffff
470 +#ifndef __NO_LONG_DOUBLE_MATH
471 +/* Signal that we do not really have a `long double'. The disables the
472 + declaration of all the `long double' function variants. */
473 +# define __NO_LONG_DOUBLE_MATH 1