r2476 - in glibc-package/trunk/debian: . patches patches/any
Author: aurel32
Date: 2007-07-29 14:41:26 +0000 (Sun, 29 Jul 2007)
New Revision: 2476
Added:
glibc-package/trunk/debian/patches/any/submitted-longdouble.diff
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/patches/series
Log:
* any/submitted-longdouble.diff: patch from Carlos O'Donell to fix long
double tests.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2007-07-29 14:11:29 UTC (rev 2475)
+++ glibc-package/trunk/debian/changelog 2007-07-29 14:41:26 UTC (rev 2476)
@@ -22,8 +22,10 @@
* i386/local-linuxthreads-gscope.diff: new patch to fix build on *amd64
with linuxthreads.
* kfreebsd/local-sysdeps.diff: update to revision 1989 (from glibc-bsd).
+ * any/submitted-longdouble.diff: patch from Carlos O'Donell to fix long
+ double tests.
- -- Aurelien Jarno <aurel32@debian.org> Sun, 29 Jul 2007 16:10:34 +0200
+ -- Aurelien Jarno <aurel32@debian.org> Sun, 29 Jul 2007 16:40:09 +0200
glibc (2.6-4) unstable; urgency=low
Added: glibc-package/trunk/debian/patches/any/submitted-longdouble.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/submitted-longdouble.diff (rev 0)
+++ glibc-package/trunk/debian/patches/any/submitted-longdouble.diff 2007-07-29 14:41:26 UTC (rev 2476)
@@ -0,0 +1,47 @@
+Index: math/Makefile
+===================================================================
+RCS file: /cvs/glibc/libc/math/Makefile,v
+retrieving revision 1.130
+diff -u -p -r1.130 Makefile
+--- math/Makefile 12 Jul 2007 18:10:35 -0000 1.130
++++ math/Makefile 28 Jul 2007 21:19:13 -0000
+@@ -91,13 +91,17 @@ distribute += $(filter-out $(generated),
+ tests = test-matherr test-fenv atest-exp atest-sincos atest-exp2 basic-test \
+ test-misc test-fpucw tst-definitions test-tgmath test-tgmath-ret \
+ bug-nextafter bug-nexttoward bug-tgmath1 test-tgmath-int test-tgmath2
+-# We do the `long double' tests only if this data type is available and
+-# distinct from `double'.
++# We do the `long double' tests only if this data type is available.
+ test-longdouble-yes = test-ldouble test-ildoubl
+ distribute += $(test-longdouble-yes:=.c)
+
++ifeq ($(long-double-fcts),yes)
++# If we have distinct types then enable testing.
++test-long-double-fcts = yes
++endif
++
+ ifneq (no,$(PERL))
+-libm-tests = test-float test-double $(test-longdouble-$(long-double-fcts)) \
++libm-tests = test-float test-double $(test-longdouble-$(test-long-double-fcts)) \
+ test-ifloat test-idouble
+ libm-tests.o = $(addsuffix .o,$(libm-tests))
+
+@@ -171,11 +175,15 @@ math-CPPFLAGS += -D__NO_MATH_INLINES -D_
+ ifneq ($(long-double-fcts),yes)
+ # The `double' and `long double' types are the same on this machine.
+ # We won't compile the `long double' code at all. Tell the `double' code
+-# to define aliases for the `FUNCl' names. To avoid type conflicts in
+-# defining those aliases, tell <math.h> to declare the `FUNCl' names with
+-# `double' instead of `long double'.
++# to define aliases for the `FUNCl' names.
++ifeq ($(header-long-double-fcts),yes)
++math-CPPFLAGS += -DNO_LONG_DOUBLE
++else
++# To avoid type conflicts in defining those aliases, tell <math.h> to
++# declare the `FUNCl' names with `double' instead of `long double'.
+ math-CPPFLAGS += -DNO_LONG_DOUBLE -D_Mlong_double_=double
+ endif
++endif
+
+ # The fdlibm code generates a lot of these warnings but is otherwise clean.
+ override CFLAGS += -Wno-uninitialized
Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series 2007-07-29 14:11:29 UTC (rev 2475)
+++ glibc-package/trunk/debian/patches/series 2007-07-29 14:41:26 UTC (rev 2476)
@@ -149,6 +149,7 @@
any/submitted-getcwd-sys_param_h.diff -p0
any/submitted-clock-settime.diff -p0
any/submitted-date-and-unknown-tz.diff -p0
+any/submitted-longdouble.diff -p0
any/submitted-strfry.diff -p0
any/submitted-strtok.diff -p0
any/local-disable-nscd-host-caching.diff
Reply to: