From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- packages/glibc/files/5090_all_stubs-rule-fix.patch | 39 --- packages/glibc/files/armv4t-interworking.patch | 47 ---- packages/glibc/files/fhs-linux-paths.patch | 11 - packages/glibc/files/generate-supported.mk | 11 - .../files/glibc-2.3.5-fix-weak-alias-arm-2.patch | 11 - .../files/glibc-2.3.5-fix-weak-alias-arm.patch | 15 -- .../files/glibc-2.5-local-dynamic-resolvconf.patch | 41 --- .../glibc-2.5-soft-fp-separate-strong-alias.patch | 205 -------------- .../files/glibc-2.6.1-RTLD_SINGLE_THREAD_P-1.patch | 20 -- .../glibc/files/glibc-2.6.1-powerpc-nofpu.patch | 11 - .../files/glibc-2.6.1-use-short-for-fnstsw.patch | 30 --- .../glibc/files/glibc-includes-fixed-isystem.patch | 32 --- packages/glibc/files/march-i686.patch | 38 --- packages/glibc/files/ppc-ld-nofpu-20070104.patch | 190 ------------- .../glibc/files/ppc-ports-ld-nofpu-20070114.patch | 38 --- packages/glibc/files/ppc-sfp-machine.patch | 297 --------------------- packages/glibc/files/ppc-soft-fp-20070115.patch | 182 ------------- 17 files changed, 1218 deletions(-) delete mode 100644 packages/glibc/files/5090_all_stubs-rule-fix.patch delete mode 100644 packages/glibc/files/armv4t-interworking.patch delete mode 100644 packages/glibc/files/fhs-linux-paths.patch delete mode 100644 packages/glibc/files/generate-supported.mk delete mode 100644 packages/glibc/files/glibc-2.3.5-fix-weak-alias-arm-2.patch delete mode 100644 packages/glibc/files/glibc-2.3.5-fix-weak-alias-arm.patch delete mode 100644 packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch delete mode 100644 packages/glibc/files/glibc-2.5-soft-fp-separate-strong-alias.patch delete mode 100644 packages/glibc/files/glibc-2.6.1-RTLD_SINGLE_THREAD_P-1.patch delete mode 100644 packages/glibc/files/glibc-2.6.1-powerpc-nofpu.patch delete mode 100644 packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch delete mode 100644 packages/glibc/files/glibc-includes-fixed-isystem.patch delete mode 100644 packages/glibc/files/march-i686.patch delete mode 100644 packages/glibc/files/ppc-ld-nofpu-20070104.patch delete mode 100644 packages/glibc/files/ppc-ports-ld-nofpu-20070114.patch delete mode 100644 packages/glibc/files/ppc-sfp-machine.patch delete mode 100644 packages/glibc/files/ppc-soft-fp-20070115.patch (limited to 'packages/glibc/files') diff --git a/packages/glibc/files/5090_all_stubs-rule-fix.patch b/packages/glibc/files/5090_all_stubs-rule-fix.patch deleted file mode 100644 index c445a5296e..0000000000 --- a/packages/glibc/files/5090_all_stubs-rule-fix.patch +++ /dev/null @@ -1,39 +0,0 @@ -Index: Makerules -=================================================================== -RCS file: /cvs/glibc/libc/Makerules,v -retrieving revision 1.430 -diff -u -r1.430 Makerules ---- libc/Makerules 5 Mar 2005 19:24:32 -0000 1.430 -+++ libc/Makerules 22 Apr 2005 18:31:27 -0000 -@@ -1390,15 +1390,26 @@ - $(addprefix $(objpfx),$(extra-objs)) - $(objpfx)stubs: $(objs-for-stubs) - ifneq (,$(strip $(objs-for-stubs))) -- $(OBJDUMP) -h $^ | \ -- $(AWK) '/\.gnu\.glibc-stub\./ { \ -- sub(/\.gnu\.glibc-stub\./, "", $$2); \ -- stubs[$$2] = 1; } \ -- END { for (s in stubs) print "#define __stub_" s }' > $@T -+ $(stub-obj-list) -+ cat $@L | xargs \ -+ $(OBJDUMP) -h | \ -+ $(AWK) '/\.gnu\.glibc-stub\./ { \ -+ sub(/\.gnu\.glibc-stub\./, "", $$2); \ -+ stubs[$$2] = 1; } \ -+ END { for (s in stubs) print "#define __stub_" s }' \ -+ > $@T -+ -rm -f $@L - mv -f $@T $@ - else - > $@ - endif -+ -+define stub-obj-list -+-@rm -f $@L -+-@echo "Generating stub obj list..." -+$(foreach file,$^, -+@echo >> $@L '$(file)') -+endef - - # This information is not used for making distributions any more. - # But it's used by MakeTAGS for making TAGS files and the .pot files. diff --git a/packages/glibc/files/armv4t-interworking.patch b/packages/glibc/files/armv4t-interworking.patch deleted file mode 100644 index ce91ad6530..0000000000 --- a/packages/glibc/files/armv4t-interworking.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- libc/ports/sysdeps/arm/memcpy.S~ 2006-10-31 17:07:54.000000000 +0000 -+++ libc/ports/sysdeps/arm/memcpy.S 2008-10-24 11:09:34.000000000 +0100 -@@ -130,7 +130,12 @@ - strcsb r4, [r0], #1 - strcsb ip, [r0] - -+#if defined (__ARM_ARCH_4T__) && defined(__THUMB_INTERWORK__) -+ ldmfd sp!, {r0, r4, lr} -+ bx lr -+#else - ldmfd sp!, {r0, r4, pc} -+#endif - - 9: rsb ip, ip, #4 - cmp ip, #2 ---- libc/ports/sysdeps/arm/memmove.S~ 2006-10-31 17:07:54.000000000 +0000 -+++ libc/ports/sysdeps/arm/memmove.S 2008-10-24 11:09:44.000000000 +0100 -@@ -140,7 +140,12 @@ - strneb r3, [r0, #-1]! - strcsb r4, [r0, #-1]! - strcsb ip, [r0, #-1] -+#if defined (__ARM_ARCH_4T__) && defined (__THUMB_INTERWORK__) -+ ldmfd sp!, {r0, r4, lr} -+ bx lr -+#else - ldmfd sp!, {r0, r4, pc} -+#endif - - 9: cmp ip, #2 - ldrgtb r3, [r1, #-1]! ---- libc/ports/sysdeps/unix/sysv/linux/arm/clone.S~ 2005-11-16 19:03:42.000000000 +0000 -+++ libc/ports/sysdeps/unix/sysv/linux/arm/clone.S 2008-10-24 11:11:05.000000000 +0100 -@@ -96,8 +96,14 @@ - #endif - @ pick the function arg and call address off the stack and execute - ldr r0, [sp, #4] -+#if defined(__ARM_ARCH_V4T__) && defined(__THUMB_INTERWORK__) -+ ldr ip, [sp], #8 -+ mov lr, pc -+ bx ip -+#else - mov lr, pc - ldr pc, [sp], #8 -+#endif - - @ and we are done, passing the return value through r0 - b PLTJMP(_exit) diff --git a/packages/glibc/files/fhs-linux-paths.patch b/packages/glibc/files/fhs-linux-paths.patch deleted file mode 100644 index 1f32f6d7f2..0000000000 --- a/packages/glibc/files/fhs-linux-paths.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- glibc-2.1.1/sysdeps/unix/sysv/linux/paths.h~ Thu May 27 13:16:33 1999 -+++ glibc-2.1.1/sysdeps/unix/sysv/linux/paths.h Thu May 27 13:17:55 1999 -@@ -71,7 +71,7 @@ - /* Provide trailing slash, since mostly used for building pathnames. */ - #define _PATH_DEV "/dev/" - #define _PATH_TMP "/tmp/" --#define _PATH_VARDB "/var/db/" -+#define _PATH_VARDB "/var/lib/misc/" - #define _PATH_VARRUN "/var/run/" - #define _PATH_VARTMP "/var/tmp/" - diff --git a/packages/glibc/files/generate-supported.mk b/packages/glibc/files/generate-supported.mk deleted file mode 100644 index d2a28c2dc6..0000000000 --- a/packages/glibc/files/generate-supported.mk +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/make - -include $(IN) - -all: - rm -f $(OUT) - touch $(OUT) - for locale in $(SUPPORTED-LOCALES); do \ - [ $$locale = true ] && continue; \ - echo $$locale | sed 's,/, ,' >> $(OUT); \ - done diff --git a/packages/glibc/files/glibc-2.3.5-fix-weak-alias-arm-2.patch b/packages/glibc/files/glibc-2.3.5-fix-weak-alias-arm-2.patch deleted file mode 100644 index bf2f31e479..0000000000 --- a/packages/glibc/files/glibc-2.3.5-fix-weak-alias-arm-2.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- glibc-2.3.3/ports/sysdeps/unix/sysv/linux/arm/socket.S.orig 2006-07-12 14:38:22.208228359 -0700 -+++ glibc-2.3.3/ports/sysdeps/unix/sysv/linux/arm/socket.S 2006-07-12 14:39:56.911675066 -0700 -@@ -123,5 +123,7 @@ - #endif - - PSEUDO_END (__socket) -- -+ -+#ifndef NO_WEAK_ALIAS - weak_alias (__socket, socket) -+#endif diff --git a/packages/glibc/files/glibc-2.3.5-fix-weak-alias-arm.patch b/packages/glibc/files/glibc-2.3.5-fix-weak-alias-arm.patch deleted file mode 100644 index 0097ff94d3..0000000000 --- a/packages/glibc/files/glibc-2.3.5-fix-weak-alias-arm.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- glibc-2.3.3/ports/sysdeps/unix/sysv/linux/arm/socket.S.orig 2006-07-12 13:57:05.990485563 -0700 -+++ glibc-2.3.3/ports/sysdeps/unix/sysv/linux/arm/socket.S 2006-07-12 13:58:41.197865230 -0700 -@@ -32,7 +32,11 @@ - The .S files for the other calls just #define socket and #include this. */ - - #ifndef __socket --#define __socket P(__,socket) -+# ifndef NO_WEAK_ALIAS -+# define __socket P(__,socket) -+# else -+# define __socket socket -+# endif - #endif - - #define PUSHARGS_1 str a1, [sp, $-4]! diff --git a/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch b/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch deleted file mode 100644 index e137287dd1..0000000000 --- a/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch +++ /dev/null @@ -1,41 +0,0 @@ -# All lines beginning with `# DP:' are a description of the patch. -# DP: Description: allow dynamic long-running processes to -# DP: re-read a dynamically updated resolv.conf on the fly -# DP: Dpatch author: Adam Conrad -# DP: Patch author: Thorsten Kukuk -# DP: Upstream status: Ubuntu-Specific -# DP: Date: 2006-01-13 08:14:21 UTC - -Index: resolv/res_libc.c -=================================================================== ---- resolv/res_libc.c.orig -+++ resolv/res_libc.c -@@ -22,7 +22,7 @@ - #include - #include - #include -- -+#include - - /* The following bit is copied from res_data.c (where it is #ifdef'ed - out) since res_init() should go into libc.so but the rest of that -@@ -94,8 +94,17 @@ - int - __res_maybe_init (res_state resp, int preinit) - { -- if (resp->options & RES_INIT) { -- if (__res_initstamp != resp->_u._ext.initstamp) { -+ static time_t last_mtime; -+ struct stat statbuf; -+ int ret; -+ -+ -+ if (resp->options & RES_INIT) { -+ ret = stat (_PATH_RESCONF, &statbuf); -+ if (__res_initstamp != resp->_u._ext.initstamp -+ || (ret == 0) && (last_mtime != statbuf.st_mtime)) -+ { -+ last_mtime = statbuf.st_mtime; - if (resp->nscount > 0) { - __res_iclose (resp, true); - return __res_vinit (resp, 1); diff --git a/packages/glibc/files/glibc-2.5-soft-fp-separate-strong-alias.patch b/packages/glibc/files/glibc-2.5-soft-fp-separate-strong-alias.patch deleted file mode 100644 index e41c1b7d96..0000000000 --- a/packages/glibc/files/glibc-2.5-soft-fp-separate-strong-alias.patch +++ /dev/null @@ -1,205 +0,0 @@ -Index: glibc-2.5-tls-ppc-04/soft-fp/eqdf2.c -=================================================================== ---- glibc-2.5-tls-ppc-04.orig/soft-fp/eqdf2.c -+++ glibc-2.5-tls-ppc-04/soft-fp/eqdf2.c -@@ -48,4 +48,3 @@ int __eqdf2(DFtype a, DFtype b) - return r; - } - --strong_alias(__eqdf2, __nedf2); -Index: glibc-2.5-tls-ppc-04/soft-fp/gedf2.c -=================================================================== ---- glibc-2.5-tls-ppc-04.orig/soft-fp/gedf2.c -+++ glibc-2.5-tls-ppc-04/soft-fp/gedf2.c -@@ -47,5 +47,3 @@ int __gedf2(DFtype a, DFtype b) - - return r; - } -- --strong_alias(__gedf2, __gtdf2); -Index: glibc-2.5-tls-ppc-04/soft-fp/gtdf2.c -=================================================================== ---- /dev/null -+++ glibc-2.5-tls-ppc-04/soft-fp/gtdf2.c -@@ -0,0 +1,49 @@ -+/* Software floating-point emulation. -+ Return 0 iff a == b, 1 iff a > b, -2 iff a ? b, -1 iff a < b -+ Copyright (C) 1997,1999,2006 Free Software Foundation, Inc. -+ This file is part of the GNU C Library. -+ Contributed by Richard Henderson (rth@cygnus.com) and -+ Jakub Jelinek (jj@ultra.linux.cz). -+ -+ The GNU C Library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Lesser General Public -+ License as published by the Free Software Foundation; either -+ version 2.1 of the License, or (at your option) any later version. -+ -+ In addition to the permissions in the GNU Lesser General Public -+ License, the Free Software Foundation gives you unlimited -+ permission to link the compiled version of this file into -+ combinations with other programs, and to distribute those -+ combinations without any restriction coming from the use of this -+ file. (The Lesser General Public License restrictions do apply in -+ other respects; for example, they cover modification of the file, -+ and distribution when not linked into a combine executable.) -+ -+ The GNU C Library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Lesser General Public License for more details. -+ -+ You should have received a copy of the GNU Lesser General Public -+ License along with the GNU C Library; if not, write to the Free -+ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, -+ MA 02110-1301, USA. */ -+ -+#include "soft-fp.h" -+#include "double.h" -+ -+int __gtdf2(DFtype a, DFtype b) -+{ -+ FP_DECL_EX; -+ FP_DECL_D(A); FP_DECL_D(B); -+ int r; -+ -+ FP_UNPACK_RAW_D(A, a); -+ FP_UNPACK_RAW_D(B, b); -+ FP_CMP_D(r, A, B, -2); -+ if (r == -2 && (FP_ISSIGNAN_D(A) || FP_ISSIGNAN_D(B))) -+ FP_SET_EXCEPTION(FP_EX_INVALID); -+ FP_HANDLE_EXCEPTIONS; -+ -+ return r; -+} -Index: glibc-2.5-tls-ppc-04/soft-fp/ledf2.c -=================================================================== ---- glibc-2.5-tls-ppc-04.orig/soft-fp/ledf2.c -+++ glibc-2.5-tls-ppc-04/soft-fp/ledf2.c -@@ -48,4 +48,3 @@ int __ledf2(DFtype a, DFtype b) - return r; - } - --strong_alias(__ledf2, __ltdf2); -Index: glibc-2.5-tls-ppc-04/soft-fp/ltdf2.c -=================================================================== ---- /dev/null -+++ glibc-2.5-tls-ppc-04/soft-fp/ltdf2.c -@@ -0,0 +1,49 @@ -+/* Software floating-point emulation. -+ Return 0 iff a == b, 1 iff a > b, 2 iff a ? b, -1 iff a < b -+ Copyright (C) 1997,1999,2006 Free Software Foundation, Inc. -+ This file is part of the GNU C Library. -+ Contributed by Richard Henderson (rth@cygnus.com) and -+ Jakub Jelinek (jj@ultra.linux.cz). -+ -+ The GNU C Library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Lesser General Public -+ License as published by the Free Software Foundation; either -+ version 2.1 of the License, or (at your option) any later version. -+ -+ In addition to the permissions in the GNU Lesser General Public -+ License, the Free Software Foundation gives you unlimited -+ permission to link the compiled version of this file into -+ combinations with other programs, and to distribute those -+ combinations without any restriction coming from the use of this -+ file. (The Lesser General Public License restrictions do apply in -+ other respects; for example, they cover modification of the file, -+ and distribution when not linked into a combine executable.) -+ -+ The GNU C Library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Lesser General Public License for more details. -+ -+ You should have received a copy of the GNU Lesser General Public -+ License along with the GNU C Library; if not, write to the Free -+ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, -+ MA 02110-1301, USA. */ -+ -+#include "soft-fp.h" -+#include "double.h" -+ -+int __ltdf2(DFtype a, DFtype b) -+{ -+ FP_DECL_EX; -+ FP_DECL_D(A); FP_DECL_D(B); -+ int r; -+ -+ FP_UNPACK_RAW_D(A, a); -+ FP_UNPACK_RAW_D(B, b); -+ FP_CMP_D(r, A, B, 2); -+ if (r == 2 && (FP_ISSIGNAN_D(A) || FP_ISSIGNAN_D(B))) -+ FP_SET_EXCEPTION(FP_EX_INVALID); -+ FP_HANDLE_EXCEPTIONS; -+ -+ return r; -+} -Index: glibc-2.5-tls-ppc-04/soft-fp/nedf2.c -=================================================================== ---- /dev/null -+++ glibc-2.5-tls-ppc-04/soft-fp/nedf2.c -@@ -0,0 +1,49 @@ -+/* Software floating-point emulation. -+ Return 0 iff a == b, 1 otherwise -+ Copyright (C) 1997,1999,2006 Free Software Foundation, Inc. -+ This file is part of the GNU C Library. -+ Contributed by Richard Henderson (rth@cygnus.com) and -+ Jakub Jelinek (jj@ultra.linux.cz). -+ -+ The GNU C Library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Lesser General Public -+ License as published by the Free Software Foundation; either -+ version 2.1 of the License, or (at your option) any later version. -+ -+ In addition to the permissions in the GNU Lesser General Public -+ License, the Free Software Foundation gives you unlimited -+ permission to link the compiled version of this file into -+ combinations with other programs, and to distribute those -+ combinations without any restriction coming from the use of this -+ file. (The Lesser General Public License restrictions do apply in -+ other respects; for example, they cover modification of the file, -+ and distribution when not linked into a combine executable.) -+ -+ The GNU C Library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Lesser General Public License for more details. -+ -+ You should have received a copy of the GNU Lesser General Public -+ License along with the GNU C Library; if not, write to the Free -+ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, -+ MA 02110-1301, USA. */ -+ -+#include "soft-fp.h" -+#include "double.h" -+ -+int __nedf2(DFtype a, DFtype b) -+{ -+ FP_DECL_EX; -+ FP_DECL_D(A); FP_DECL_D(B); -+ int r; -+ -+ FP_UNPACK_RAW_D(A, a); -+ FP_UNPACK_RAW_D(B, b); -+ FP_CMP_EQ_D(r, A, B); -+ if (r && (FP_ISSIGNAN_D(A) || FP_ISSIGNAN_D(B))) -+ FP_SET_EXCEPTION(FP_EX_INVALID); -+ FP_HANDLE_EXCEPTIONS; -+ -+ return r; -+} -Index: glibc-2.5-tls-ppc-04/soft-fp/Makefile -=================================================================== ---- glibc-2.5-tls-ppc-04.orig/soft-fp/Makefile -+++ glibc-2.5-tls-ppc-04/soft-fp/Makefile -@@ -27,8 +27,8 @@ gcc-single-routines := negsf2 addsf3 sub - fixunssfdi floatdisf sqrtsf2 floatunsisf floatundisf \ - fmasf4 - --gcc-double-routines := negdf2 adddf3 subdf3 muldf3 divdf3 eqdf2 \ -- ledf2 gedf2 unorddf2 fixdfsi fixunsdfsi floatsidf fixdfdi \ -+gcc-double-routines := negdf2 adddf3 subdf3 muldf3 divdf3 eqdf2 nedf2 \ -+ ledf2 ltdf2 gedf2 gtdf2 unorddf2 fixdfsi fixunsdfsi floatsidf fixdfdi \ - fixunsdfdi floatdidf extendsfdf2 truncdfsf2 sqrtdf2 floatunsidf \ - floatundidf fmadf4 - diff --git a/packages/glibc/files/glibc-2.6.1-RTLD_SINGLE_THREAD_P-1.patch b/packages/glibc/files/glibc-2.6.1-RTLD_SINGLE_THREAD_P-1.patch deleted file mode 100644 index 33d5282b90..0000000000 --- a/packages/glibc/files/glibc-2.6.1-RTLD_SINGLE_THREAD_P-1.patch +++ /dev/null @@ -1,20 +0,0 @@ -Submitted By: Joe Ciccone -Date: 07-02-2007 -Initial Package Version: 2.6 -Origin: http://sourceware.org/ml/libc-ports/2007-05/msg00051.html -Upstream Status: Unknown -Description: Defines RTLD_SINGLE_THREAD_P for arm. - -diff -Naur glibc-2.6.orig/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h glibc-2.6/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h ---- glibc-2.6.orig/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-07-02 17:39:22.000000000 -0400 -+++ glibc-2.6/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-07-02 17:39:36.000000000 -0400 -@@ -126,3 +126,9 @@ - # define NO_CANCELLATION 1 - - #endif -+ -+#ifndef __ASSEMBLER__ -+# define RTLD_SINGLE_THREAD_P \ -+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \ -+ header.multiple_threads) == 0, 1) -+#endif diff --git a/packages/glibc/files/glibc-2.6.1-powerpc-nofpu.patch b/packages/glibc/files/glibc-2.6.1-powerpc-nofpu.patch deleted file mode 100644 index 893c754628..0000000000 --- a/packages/glibc/files/glibc-2.6.1-powerpc-nofpu.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- dummy-libc/ports/sysdeps/powerpc/nofpu/Makefile 2006-11-22 09:13:11.000000000 -0600 -+++ libc25/ports/sysdeps/powerpc/nofpu/Makefile 2007-06-07 09:53:05.708240976 -0500 -@@ -6,7 +6,7 @@ - endif - - ifeq ($(subdir),math) --libm-support += fenv_const fe_nomask -+libm-support += fenv_const - CPPFLAGS += -I../soft-fp/ - # The follow CFLAGS are a work around for GCC Bugzilla Bug 29253 - # "expand_abs wrong default code for floating point" diff --git a/packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch b/packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch deleted file mode 100644 index 6979229279..0000000000 --- a/packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch +++ /dev/null @@ -1,30 +0,0 @@ -Source: http://sourceware.org/ml/libc-alpha/2008-01/msg00017.html - -I am checking this x86 assembler patch: - -http://sourceware.org/ml/binutils/2008-01/msg00148.html - -to check operand size. fnstsw stores 16bit into %ax. The upper -16bit of %eax is unchanged. The new assembler will disallow -"fnstsw %eax". Here is a patch for glibc. - - -H.J. - ---- - sysdeps/i386/fpu/ftestexcept.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c -=================================================================== ---- glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c 2008-07-19 11:00:45.000000000 -0700 -+++ glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c 2008-07-19 11:01:25.000000000 -0700 -@@ -26,7 +26,7 @@ - int - fetestexcept (int excepts) - { -- int temp; -+ short temp; - int xtemp = 0; - - /* Get current exceptions. */ diff --git a/packages/glibc/files/glibc-includes-fixed-isystem.patch b/packages/glibc/files/glibc-includes-fixed-isystem.patch deleted file mode 100644 index 06668f41ed..0000000000 --- a/packages/glibc/files/glibc-includes-fixed-isystem.patch +++ /dev/null @@ -1,32 +0,0 @@ -http://sourceware.org/ml/libc-alpha/2007-03/msg00017.html: - -GCC trunk now has multiple internal headers directories, one -containing the self-contained GCC-provided headers and one containing -the (not self-contained but including libc's or -a fixed version thereof) and the fixed headers; more such directories -may be added in future. - -When glibc uses -nostdinc, it needs to use -isystem options for all -these internal directories. This patch teaches it about the -include-fixed directory (and is harmless with old GCC versions without -that directory). - -2007-03-18 Joseph Myers - - * configure.in: Also pass -isystem option for GCC's include-fixed - directory. - * configure: Regenerate. - -Index: configure.in -=================================================================== ---- /tmp/configure.in 2008-04-05 19:20:52.176759390 +0200 -+++ glibc-2.6.1/configure.in 2008-04-05 19:21:26.663424600 +0200 -@@ -912,7 +912,7 @@ - # thing on a system that doesn't need fixincludes. (Not presently a problem.) - if test -n "$sysheaders"; then - ccheaders=`$CC -print-file-name=include` -- SYSINCLUDES="-nostdinc -isystem $ccheaders \ -+ SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $ccheaders-fixed \ - -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" - if test -n "$CXX"; then - cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` && diff --git a/packages/glibc/files/march-i686.patch b/packages/glibc/files/march-i686.patch deleted file mode 100644 index 04616032ad..0000000000 --- a/packages/glibc/files/march-i686.patch +++ /dev/null @@ -1,38 +0,0 @@ -2007-02-15 Khem Raj - - * sysdeps/unix/sysv/linux/i386/sysdep.h: Re-define __i686. - * nptl/sysdeps/pthread/pt-initfini.c: Ditto. - - - -Index: sysdeps/unix/sysv/linux/i386/sysdep.h -=================================================================== ---- sysdeps/unix/sysv/linux/i386/sysdep.h (revision 1469) -+++ sysdeps/unix/sysv/linux/i386/sysdep.h (working copy) -@@ -29,6 +29,10 @@ - #include - #include - -+#if defined __i686 && defined __ASSEMBLER__ -+#undef __i686 -+#define __i686 __i686 -+#endif - - /* For Linux we can use the system call table in the header file - /usr/include/asm/unistd.h -Index: nptl/sysdeps/pthread/pt-initfini.c -=================================================================== ---- nptl/sysdeps/pthread/pt-initfini.c (revision 1469) -+++ nptl/sysdeps/pthread/pt-initfini.c (working copy) -@@ -45,6 +45,11 @@ - /* Embed an #include to pull in the alignment and .end directives. */ - asm ("\n#include \"defs.h\""); - -+asm ("\n#if defined __i686 && defined __ASSEMBLER__"); -+asm ("\n#undef __i686"); -+asm ("\n#define __i686 __i686"); -+asm ("\n#endif"); -+ - /* The initial common code ends here. */ - asm ("\n/*@HEADER_ENDS*/"); - diff --git a/packages/glibc/files/ppc-ld-nofpu-20070104.patch b/packages/glibc/files/ppc-ld-nofpu-20070104.patch deleted file mode 100644 index d5b1d31774..0000000000 --- a/packages/glibc/files/ppc-ld-nofpu-20070104.patch +++ /dev/null @@ -1,190 +0,0 @@ -2007-01-12 Steven Munroe - Joe Kerian - - [BZ #2749] - * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: - Include . - Remove weak_alias. Use long_double_symbol macro. - (__copysignl): Use signbit() for comparison. - * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Correct parms for - SET_LDOUBLE_WORDS64. - - [BZ #2423, #2749] - * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include . - (__ceill): Remove calls to fegetround(), fesetround(). - * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise. - * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise. - * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise. - -diff -urN libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_ceill.c libc24/sysdeps/ieee754/ldbl-128ibm/s_ceill.c ---- libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_ceill.c 2006-03-16 05:46:37.000000000 -0600 -+++ libc24/sysdeps/ieee754/ldbl-128ibm/s_ceill.c 2007-01-11 10:30:12.856890432 -0600 -@@ -19,7 +19,6 @@ - 02111-1307 USA. */ - - #include --#include - #include - #include - #include -@@ -44,11 +43,9 @@ - __builtin_inf ()), 1)) - { - double orig_xh; -- int save_round = fegetround (); - - /* Long double arithmetic, including the canonicalisation below, - only works in round-to-nearest mode. */ -- fesetround (FE_TONEAREST); - - /* Convert the high double to integer. */ - orig_xh = xh; -@@ -81,8 +78,6 @@ - /* Ensure we return -0 rather than +0 when appropriate. */ - if (orig_xh < 0.0) - xh = -__builtin_fabs (xh); -- -- fesetround (save_round); - } - - return ldbl_pack (xh, xl); -diff -urN libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c libc24/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c ---- libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c 2006-01-27 18:07:25.000000000 -0600 -+++ libc24/sysdeps/ieee754/ldbl-128ibm/s_copysignl.c 2007-01-11 10:30:12.857890280 -0600 -@@ -25,6 +25,7 @@ - - #include "math.h" - #include "math_private.h" -+#include - - #ifdef __STDC__ - long double __copysignl(long double x, long double y) -@@ -33,13 +34,13 @@ - long double x,y; - #endif - { -- if (y < 0.0) -- { -- if (x >= 0.0) -- x = -x; -- } -- else if (x < 0.0) -+ if( signbit(x) != signbit(y) ) - x = -x; - return x; - } --weak_alias (__copysignl, copysignl) -+ -+#ifdef IS_IN_libm -+long_double_symbol (libm, __copysignl, copysignl); -+#else -+long_double_symbol (libc, __copysignl, copysignl); -+#endif -diff -urN libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_fabsl.c libc24/sysdeps/ieee754/ldbl-128ibm/s_fabsl.c ---- libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_fabsl.c 2006-01-27 18:07:25.000000000 -0600 -+++ libc24/sysdeps/ieee754/ldbl-128ibm/s_fabsl.c 2007-01-11 10:30:12.857890280 -0600 -@@ -37,7 +37,7 @@ - GET_LDOUBLE_WORDS64(hx,lx,x); - lx = lx ^ ( hx & 0x8000000000000000LL ); - hx = hx & 0x7fffffffffffffffLL; -- SET_LDOUBLE_WORDS64(hx,lx,x); -+ SET_LDOUBLE_WORDS64(x,hx,lx); - return x; - } - long_double_symbol (libm, __fabsl, fabsl); -diff -urN libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_floorl.c libc24/sysdeps/ieee754/ldbl-128ibm/s_floorl.c ---- libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_floorl.c 2006-03-16 05:46:37.000000000 -0600 -+++ libc24/sysdeps/ieee754/ldbl-128ibm/s_floorl.c 2007-01-11 10:30:12.858890128 -0600 -@@ -19,7 +19,6 @@ - 02111-1307 USA. */ - - #include --#include - #include - #include - #include -@@ -43,11 +42,8 @@ - && __builtin_isless (__builtin_fabs (xh), - __builtin_inf ()), 1)) - { -- int save_round = fegetround (); -- - /* Long double arithmetic, including the canonicalisation below, - only works in round-to-nearest mode. */ -- fesetround (FE_TONEAREST); - - /* Convert the high double to integer. */ - hi = ldbl_nearbyint (xh); -@@ -75,8 +71,6 @@ - xh = hi; - xl = lo; - ldbl_canonicalize (&xh, &xl); -- -- fesetround (save_round); - } - - return ldbl_pack (xh, xl); -diff -urN libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_roundl.c libc24/sysdeps/ieee754/ldbl-128ibm/s_roundl.c ---- libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_roundl.c 2006-03-16 05:46:37.000000000 -0600 -+++ libc24/sysdeps/ieee754/ldbl-128ibm/s_roundl.c 2007-01-11 10:30:12.859889976 -0600 -@@ -22,7 +22,6 @@ - when it's coded in C. */ - - #include --#include - #include - #include - #include -@@ -47,11 +46,9 @@ - __builtin_inf ()), 1)) - { - double orig_xh; -- int save_round = fegetround (); - - /* Long double arithmetic, including the canonicalisation below, - only works in round-to-nearest mode. */ -- fesetround (FE_TONEAREST); - - /* Convert the high double to integer. */ - orig_xh = xh; -@@ -88,8 +85,6 @@ - xh = hi; - xl = lo; - ldbl_canonicalize (&xh, &xl); -- -- fesetround (save_round); - } - - return ldbl_pack (xh, xl); -diff -urN libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_truncl.c libc24/sysdeps/ieee754/ldbl-128ibm/s_truncl.c ---- libc25-cvstip-20070104/sysdeps/ieee754/ldbl-128ibm/s_truncl.c 2006-03-16 05:46:37.000000000 -0600 -+++ libc24/sysdeps/ieee754/ldbl-128ibm/s_truncl.c 2007-01-11 10:30:12.860889824 -0600 -@@ -22,7 +22,6 @@ - when it's coded in C. */ - - #include --#include - #include - #include - #include -@@ -47,11 +46,9 @@ - __builtin_inf ()), 1)) - { - double orig_xh; -- int save_round = fegetround (); - - /* Long double arithmetic, including the canonicalisation below, - only works in round-to-nearest mode. */ -- fesetround (FE_TONEAREST); - - /* Convert the high double to integer. */ - orig_xh = xh; -@@ -92,8 +89,6 @@ - /* Ensure we return -0 rather than +0 when appropriate. */ - if (orig_xh < 0.0) - xh = -__builtin_fabs (xh); -- -- fesetround (save_round); - } - - return ldbl_pack (xh, xl); diff --git a/packages/glibc/files/ppc-ports-ld-nofpu-20070114.patch b/packages/glibc/files/ppc-ports-ld-nofpu-20070114.patch deleted file mode 100644 index b4d99592f6..0000000000 --- a/packages/glibc/files/ppc-ports-ld-nofpu-20070114.patch +++ /dev/null @@ -1,38 +0,0 @@ -2007-01-14 Steven Munroe - - [BZ #2749] - * sysdeps/powerpc/nofpu/fenv_libc.h: New file. - -diff -urN dummy-libc/ports-cvstip-20070104/sysdeps/powerpc/nofpu/fenv_libc.h libc25/ports/sysdeps/powerpc/nofpu/fenv_libc.h ---- dummy-libc/ports-cvstip-20070104/sysdeps/powerpc/nofpu/fenv_libc.h Wed Dec 31 18:00:00 1969 -+++ libc25/ports/sysdeps/powerpc/nofpu/fenv_libc.h Thu Jan 11 11:00:53 2007 -@@ -0,0 +1,29 @@ -+/* Internal libc stuff for floating point environment routines. -+ Copyright (C) 2007 Free Software Foundation, Inc. -+ This file is part of the GNU C Library. -+ -+ The GNU C Library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Lesser General Public -+ License as published by the Free Software Foundation; either -+ version 2.1 of the License, or (at your option) any later version. -+ -+ The GNU C Library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Lesser General Public License for more details. -+ -+ You should have received a copy of the GNU Lesser General Public -+ License along with the GNU C Library; if not, write to the Free -+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -+ 02111-1307 USA. */ -+ -+#ifndef _FENV_LIBC_H -+#define _FENV_LIBC_H 1 -+ -+/* fenv_libc.h is used in libm implementations of ldbl-128ibm. So we -+ need this version in the soft-fp to at minimum include fenv.h to -+ get the fegetround definition. */ -+ -+#include -+ -+#endif /* fenv_libc.h */ diff --git a/packages/glibc/files/ppc-sfp-machine.patch b/packages/glibc/files/ppc-sfp-machine.patch deleted file mode 100644 index 6171a03411..0000000000 --- a/packages/glibc/files/ppc-sfp-machine.patch +++ /dev/null @@ -1,297 +0,0 @@ -This patch combined with the other patches from Bugzilla #2749 allows -powerpc32 to build. The Subdirs pulls in the soft-fp directory from -libc, The Implies pulls in the ports powerpc/soft-fp directory which -includes sfp-machine.h - -The get/set/swapcontext changes overide the common implimentation in -libc to avoid using hardware FP instructions. - - - -2006-06-01 Steven Munroe - - [BZ #2749] - * sysdeps/powerpc/soft-fp/Subdirs: New file. - * sysdeps/powerpc/soft-fp/sfp-machine.h: New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: New file. - - * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S: - New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S: - New file. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S: - New file. - -diff -urN dummy-libc/ports-cvstip-20060512/sysdeps/powerpc/soft-fp/Subdirs -libc24/ports/sysdeps/powerpc/soft-fp/Subdirs ---- dummy-libc/ports-cvstip-20060512/sysdeps/powerpc/soft-fp/Subdirs Wed Dec 31 18:00:00 1969 -+++ libc24/ports/sysdeps/powerpc/soft-fp/Subdirs Wed May 31 16:58:44 2006 -@@ -0,0 +1,1 @@ -+soft-fp -diff -urN dummy-libc/ports-cvstip-20060512/sysdeps/powerpc/soft-fp/sfp-machine.h -libc24/ports/sysdeps/powerpc/soft-fp/sfp-machine.h ---- dummy-libc/ports-cvstip-20060512/sysdeps/powerpc/soft-fp/sfp-machine.h Wed Dec 31 18:00:00 1969 -+++ libc24/ports/sysdeps/powerpc/soft-fp/sfp-machine.h Wed May 31 13:57:07 2006 -@@ -0,0 +1,63 @@ -+#define _FP_W_TYPE_SIZE 32 -+#define _FP_W_TYPE unsigned long -+#define _FP_WS_TYPE signed long -+#define _FP_I_TYPE long -+ -+#define _FP_MUL_MEAT_S(R,X,Y) \ -+ _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm) -+#define _FP_MUL_MEAT_D(R,X,Y) \ -+ _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm) -+#define _FP_MUL_MEAT_Q(R,X,Y) \ -+ _FP_MUL_MEAT_4_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm) -+ -+#define _FP_DIV_MEAT_S(R,X,Y) _FP_DIV_MEAT_1_loop(S,R,X,Y) -+#define _FP_DIV_MEAT_D(R,X,Y) _FP_DIV_MEAT_2_udiv(D,R,X,Y) -+#define _FP_DIV_MEAT_Q(R,X,Y) _FP_DIV_MEAT_4_udiv(Q,R,X,Y) -+ -+#define _FP_NANFRAC_S ((_FP_QNANBIT_S << 1) - 1) -+#define _FP_NANFRAC_D ((_FP_QNANBIT_D << 1) - 1), -1 -+#define _FP_NANFRAC_Q ((_FP_QNANBIT_Q << 1) - 1), -1, -1, -1 -+#define _FP_NANSIGN_S 0 -+#define _FP_NANSIGN_D 0 -+#define _FP_NANSIGN_Q 0 -+ -+#define _FP_KEEPNANFRACP 1 -+ -+/* Someone please check this. */ -+#define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \ -+ do { \ -+ if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs) \ -+ && !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs)) \ -+ { \ -+ R##_s = Y##_s; \ -+ _FP_FRAC_COPY_##wc(R,Y); \ -+ } \ -+ else \ -+ { \ -+ R##_s = X##_s; \ -+ _FP_FRAC_COPY_##wc(R,X); \ -+ } \ -+ R##_c = FP_CLS_NAN; \ -+ } while (0) -+ -+/* Exception flags. We use the bit positions of the appropriate bits -+ in the FPSCR, which also correspond to the FE_* bits. This makes -+ everything easier ;-). */ -+#define FP_EX_INVALID (1 << (31 - 2)) -+#define FP_EX_OVERFLOW (1 << (31 - 3)) -+#define FP_EX_UNDERFLOW (1 << (31 - 4)) -+#define FP_EX_DENORM FP_EX_UNDERFLOW -+#define FP_EX_DIVZERO (1 << (31 - 5)) -+#define FP_EX_INEXACT (1 << (31 - 6)) -+ -+#define FP_HANDLE_EXCEPTIONS __simulate_exceptions (_fex) -+#define FP_ROUNDMODE __sim_round_mode -+ -+extern int __sim_exceptions; -+libc_hidden_proto (__sim_exceptions); -+extern int __sim_disabled_exceptions; -+libc_hidden_proto (__sim_disabled_exceptions); -+extern int __sim_round_mode; -+libc_hidden_proto (__sim_round_mode); -+ -+extern void __simulate_exceptions (int x) attribute_hidden; -diff -urN dummy-libc/ports-cvstip-20060512/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies -libc24/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies ---- dummy-libc/ports-cvstip-20060512/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies Wed Dec 31 18:00:00 1969 -+++ libc24/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies Wed May 31 15:46:44 2006 -@@ -0,0 +1,1 @@ -+powerpc/soft-fp -diff -urN dummy-libc/ports-cvstip-20060512/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S -libc24/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S ---- dummy-libc/ports-cvstip-20060512/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S Wed Dec 31 18:00:00 1969 -+++ libc24/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S Thu Jun 01 15:31:03 2006 -@@ -0,0 +1,59 @@ -+/* Save current context. -+ Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. -+ This file is part of the GNU C Library. -+ -+ The GNU C Library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Lesser General Public -+ License as published by the Free Software Foundation; either -+ version 2.1 of the License, or (at your option) any later version. -+ -+ The GNU C Library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Lesser General Public License for more details. -+ -+ You should have received a copy of the GNU Lesser General Public -+ License along with the GNU C Library; if not, write to the Free -+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -+ 02111-1307 USA. */ -+ -+#include -+#include -+#include -+ -+#define __ASSEMBLY__ -+#include -+#include "ucontext_i.h" -+ -+#define __CONTEXT_FUNC_NAME __getcontext -+#undef __CONTEXT_ENABLE_FPRS -+#undef __CONTEXT_ENABLE_VRS -+ -+#include "getcontext-common.S" -+ -+versioned_symbol (libc, __getcontext, getcontext, GLIBC_2_3_4) -+ -+#if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4) -+ -+/* For the nofpu case the old/new versions are the same function. */ -+strong_alias (__getcontext, __novec_getcontext) -+ -+compat_symbol (libc, __novec_getcontext, getcontext, GLIBC_2_3_3) -+ -+#endif -+ -+#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_3_3) -+ -+#define _ERRNO_H 1 -+#include -+ -+ compat_text_section -+ENTRY (__getcontext_stub) -+ li r3,ENOSYS -+ b __syscall_error@local -+END (__getcontext_stub) -+ .previous -+ -+compat_symbol (libc, __getcontext_stub, getcontext, GLIBC_2_1) -+ -+#endif -diff -urN dummy-libc/ports-cvstip-20060512/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S -libc24/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S ---- dummy-libc/ports-cvstip-20060512/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S Wed Dec 31 18:00:00 1969 -+++ libc24/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S Thu Jun 01 15:31:03 2006 -@@ -0,0 +1,59 @@ -+/* Jump to a new context. -+ Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. -+ This file is part of the GNU C Library. -+ -+ The GNU C Library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Lesser General Public -+ License as published by the Free Software Foundation; either -+ version 2.1 of the License, or (at your option) any later version. -+ -+ The GNU C Library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Lesser General Public License for more details. -+ -+ You should have received a copy of the GNU Lesser General Public -+ License along with the GNU C Library; if not, write to the Free -+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -+ 02111-1307 USA. */ -+ -+#include -+#include -+#include -+ -+#define __ASSEMBLY__ -+#include -+#include "ucontext_i.h" -+ -+#define __CONTEXT_FUNC_NAME __setcontext -+#undef __CONTEXT_ENABLE_FPRS -+#undef __CONTEXT_ENABLE_VRS -+ -+#include "setcontext-common.S" -+ -+versioned_symbol (libc, __setcontext, setcontext, GLIBC_2_3_4) -+ -+#if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4) -+ -+/* For the nofpu case the old/new versions are the same function. */ -+strong_alias (__setcontext, __novec_setcontext) -+ -+compat_symbol (libc, __novec_setcontext, setcontext, GLIBC_2_3_3) -+ -+#endif -+ -+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_3) -+ -+#define _ERRNO_H 1 -+#include -+ -+ compat_text_section -+ENTRY (__setcontext_stub) -+ li r3,ENOSYS -+ b __syscall_error@local -+END (__setcontext_stub) -+ .previous -+ -+compat_symbol (libc, __setcontext_stub, setcontext, GLIBC_2_0) -+ -+#endif -diff -urN dummy-libc/ports-cvstip-20060512/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S -libc24/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S ---- dummy-libc/ports-cvstip-20060512/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S Wed Dec 31 18:00:00 1969 -+++ libc24/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S Thu Jun 01 15:31:03 2006 -@@ -0,0 +1,59 @@ -+/* Save current context and jump to a new context. -+ Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. -+ This file is part of the GNU C Library. -+ -+ The GNU C Library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Lesser General Public -+ License as published by the Free Software Foundation; either -+ version 2.1 of the License, or (at your option) any later version. -+ -+ The GNU C Library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Lesser General Public License for more details. -+ -+ You should have received a copy of the GNU Lesser General Public -+ License along with the GNU C Library; if not, write to the Free -+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -+ 02111-1307 USA. */ -+ -+#include -+#include -+#include -+ -+#define __ASSEMBLY__ -+#include -+#include "ucontext_i.h" -+ -+#define __CONTEXT_FUNC_NAME __swapcontext -+#undef __CONTEXT_ENABLE_FPRS -+#undef __CONTEXT_ENABLE_VRS -+ -+# include "swapcontext-common.S" -+ -+versioned_symbol (libc, __swapcontext, swapcontext, GLIBC_2_3_4) -+ -+#if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4) -+ -+/* For the nofpu case the old/new versions are the same function. */ -+strong_alias (__swapcontext, __novec_swapcontext) -+ -+compat_symbol (libc, __novec_swapcontext, swapcontext, GLIBC_2_3_3) -+ -+#endif -+ -+#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_3_3) -+ -+#define _ERRNO_H 1 -+#include -+ -+ compat_text_section -+ENTRY (__swapcontext_stub) -+ li r3,ENOSYS -+ b __syscall_error@local -+END (__swapcontext_stub) -+ .previous -+ -+compat_symbol (libc, __swapcontext_stub, swapcontext, GLIBC_2_1) -+ -+#endif - diff --git a/packages/glibc/files/ppc-soft-fp-20070115.patch b/packages/glibc/files/ppc-soft-fp-20070115.patch deleted file mode 100644 index a84bc2f7cb..0000000000 --- a/packages/glibc/files/ppc-soft-fp-20070115.patch +++ /dev/null @@ -1,182 +0,0 @@ -2007-01-14 Steven Munroe - Joe Kerian - - [BZ #2749] - * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow - handling for high words. - * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact - and overflow for infinity. - (_FP_PACK_SEMIRAW): Update comment. Do not round if NaN or Inf. - - * math/basic-test.c (truncdfsf_test): New function. - [!NO_LONG_DOUBLE] (trunctfsf_test): New function. - [!NO_LONG_DOUBLE] (trunctfdf_test): New function. - Change main() to do_test. Define TEST_FUNCTION. Include test-skeleton.c. - (do_test): Run new tests. - -2007-01-15 Jakub Jelinek - - * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear - workbits in semi-raw fraction. - - -diff -urN libc25-cvstip-20070104/math/basic-test.c libc24/math/basic-test.c ---- libc25-cvstip-20070104/math/basic-test.c 2001-07-05 23:55:35.000000000 -0500 -+++ libc24/math/basic-test.c 2007-01-15 11:41:17.260963824 -0600 -@@ -1,4 +1,4 @@ --/* Copyright (C) 1999 Free Software Foundation, Inc. -+/* Copyright (C) 1999, 2007 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Andreas Jaeger , 1999. - -@@ -107,17 +107,90 @@ - TEST_FUNC (double_test, double, nan, DBL_EPSILON, HUGE_VAL) - #ifndef NO_LONG_DOUBLE - TEST_FUNC (ldouble_test, long double, nanl, LDBL_EPSILON, HUGE_VALL) -+ -+void -+trunctfsf_test(void) -+{ -+ volatile long double Inf_var, NaN_var, zero_var, one_var; -+ float x1, x2; -+ -+ zero_var = 0.0; -+ one_var = 1.0; -+ NaN_var = zero_var/zero_var; -+ Inf_var = one_var / zero_var; -+ -+ (void) &zero_var; -+ (void) &one_var; -+ (void) &NaN_var; -+ (void) &Inf_var; -+ -+ x1 = (float)NaN_var; -+ check (" float x = (float)((long double)NaN))", isnan (x1) != 0); -+ x2 = (float)Inf_var; -+ check (" float x = (float)((long double)Inf))", isinf (x2) != 0); -+} -+ -+void -+trunctfdf_test(void) -+{ -+ volatile long double Inf_var, NaN_var, zero_var, one_var; -+ double x1, x2; -+ -+ zero_var = 0.0; -+ one_var = 1.0; -+ NaN_var = zero_var/zero_var; -+ Inf_var = one_var / zero_var; -+ -+ (void) &zero_var; -+ (void) &one_var; -+ (void) &NaN_var; -+ (void) &Inf_var; -+ -+ x1 = (double)NaN_var; -+ check (" double x = (double)((long double)NaN))", isnan (x1) != 0); -+ x2 = (double)Inf_var; -+ check (" double x = (double)((long double)Inf))", isinf (x2) != 0); -+} -+ - #endif - -+void -+truncdfsf_test(void) -+{ -+ volatile double Inf_var, NaN_var, zero_var, one_var; -+ float x1, x2; -+ -+ zero_var = 0.0; -+ one_var = 1.0; -+ NaN_var = zero_var/zero_var; -+ Inf_var = one_var / zero_var; -+ -+ (void) &zero_var; -+ (void) &one_var; -+ (void) &NaN_var; -+ (void) &Inf_var; -+ -+ x1 = (float)NaN_var; -+ check (" float x = (float)((double)NaN))", isnan (x1) != 0); -+ x2 = (float)Inf_var; -+ check (" float x = (float)((double)Inf))", isinf (x2) != 0); -+} -+ - int --main (void) -+do_test (void) - { - float_test (); - double_test (); -+ truncdfsf_test(); - - #ifndef NO_LONG_DOUBLE - ldouble_test (); -+ trunctfsf_test(); -+ trunctfdf_test(); - #endif - - return errors != 0; - } -+ -+#define TEST_FUNCTION do_test () -+#include "../test-skeleton.c" -diff -urN libc25-cvstip-20070104/soft-fp/op-4.h libc24/soft-fp/op-4.h ---- libc25-cvstip-20070104/soft-fp/op-4.h 2006-04-04 03:24:47.000000000 -0500 -+++ libc24/soft-fp/op-4.h 2007-01-11 11:00:53.000000000 -0600 -@@ -564,7 +564,7 @@ - r1 = x1 - y1; \ - _c2 = r1 > x1; \ - r1 -= _c1; \ -- _c2 |= r1 > _c1; \ -+ _c2 |= _c1 && (y1 == x1); \ - r2 = x2 - y2 - _c2; \ - } while (0) - #endif -@@ -578,11 +578,11 @@ - r1 = x1 - y1; \ - _c2 = r1 > x1; \ - r1 -= _c1; \ -- _c2 |= r1 > _c1; \ -+ _c2 |= _c1 && (y1 == x1); \ - r2 = x2 - y2; \ - _c3 = r2 > x2; \ - r2 -= _c2; \ -- _c3 |= r2 > _c2; \ -+ _c3 |= _c2 && (y2 == x2); \ - r3 = x3 - y3 - _c3; \ - } while (0) - #endif -diff -urN libc25-cvstip-20070104/soft-fp/op-common.h libc24/soft-fp/op-common.h ---- libc25-cvstip-20070104/soft-fp/op-common.h 2006-04-04 03:24:47.000000000 -0500 -+++ libc24/soft-fp/op-common.h 2007-01-15 11:46:17.290882288 -0600 -@@ -1,5 +1,5 @@ - /* Software floating-point emulation. Common operations. -- Copyright (C) 1997,1998,1999,2006 Free Software Foundation, Inc. -+ Copyright (C) 1997,1998,1999,2006,2007 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Richard Henderson (rth@cygnus.com), - Jakub Jelinek (jj@ultra.linux.cz), -@@ -99,10 +99,10 @@ - else \ - { \ - X##_e = _FP_EXPMAX_##fs - 1; \ -- FP_SET_EXCEPTION(FP_EX_OVERFLOW); \ -- FP_SET_EXCEPTION(FP_EX_INEXACT); \ - _FP_FRAC_SET_##wc(X, _FP_MAXFRAC_##wc); \ - } \ -+ FP_SET_EXCEPTION(FP_EX_INEXACT); \ -+ FP_SET_EXCEPTION(FP_EX_OVERFLOW); \ - } while (0) - - /* Check for a semi-raw value being a signaling NaN and raise the -@@ -1252,6 +1252,9 @@ - _FP_FRAC_SRL_##swc(S, (_FP_WFRACBITS_##sfs \ - - _FP_WFRACBITS_##dfs)); \ - _FP_FRAC_COPY_##dwc##_##swc(D, S); \ -+ /* Semi-raw NaN must have all workbits cleared. */ \ -+ _FP_FRAC_LOW_##dwc(D) \ -+ &= ~(_FP_W_TYPE) ((1 << _FP_WORKBITS) - 1); \ - _FP_FRAC_HIGH_##dfs(D) |= _FP_QNANBIT_SH_##dfs; \ - } \ - } \ -- cgit v1.2.3