Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/glibc/2.9: 1070_all_glibc-fadvise64_64.patch 1073_all_glibc-ldbl-nexttowardf.patch 6610_all_glibc-r10k-workarounds.patch README.history
Date: Sat, 10 Jan 2009 09:55:48
Message-Id: E1LLaZG-0001Ic-TA@stork.gentoo.org
1 vapier 09/01/10 09:55:46
2
3 Modified: README.history
4 Added: 1070_all_glibc-fadvise64_64.patch
5 1073_all_glibc-ldbl-nexttowardf.patch
6 6610_all_glibc-r10k-workarounds.patch
7 Log:
8 snipe some changes from Debian
9
10 Revision Changes Path
11 1.8 src/patchsets/glibc/2.9/README.history
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.9/README.history?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.9/README.history?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.9/README.history?r1=1.7&r2=1.8
16
17 Index: README.history
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo/src/patchsets/glibc/2.9/README.history,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- README.history 29 Dec 2008 21:45:07 -0000 1.7
24 +++ README.history 10 Jan 2009 09:55:46 -0000 1.8
25 @@ -1,6 +1,15 @@
26 3 [pending]
27 + + 0050_all_glibc-_nss_dns_gethostbyaddr2_r-check-and-adjust-the-buffer-alignment.patch
28 + + 0051_all_glibc-2.9-add_prio-macros.patch
29 + + 0052_all_glibc-2.9-regex-BZ9697.patch
30 + + 0053_all_glibc-2.9-regex-BZ697.patch
31 + + 0080_all_glibc-2.10-dns-no-gethostbyname4.patch
32 + + 0090_all_glibc-math-tests.patch
33 + 1018_all_glibc-awk-in-C-locale.patch
34 - 1060_all_glibc-nss-deepbind.patch
35 + + 1070_all_glibc-fadvise64_64.patch
36 + + 1073_all_glibc-ldbl-nexttowardf.patch
37 + + 6610_all_glibc-r10k-workarounds.patch
38
39 2 26.12.2008
40 + 1020_all_glibc-2.9-strlen-hack.patch
41
42
43
44 1.1 src/patchsets/glibc/2.9/1070_all_glibc-fadvise64_64.patch
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.9/1070_all_glibc-fadvise64_64.patch?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.9/1070_all_glibc-fadvise64_64.patch?rev=1.1&content-type=text/plain
48
49 Index: 1070_all_glibc-fadvise64_64.patch
50 ===================================================================
51 ripped from Debian
52
53 ---
54 sysdeps/unix/sysv/linux/posix_fadvise.c | 13 +++++++++++++
55 1 file changed, 13 insertions(+)
56
57 --- a/sysdeps/unix/sysv/linux/posix_fadvise.c
58 +++ b/sysdeps/unix/sysv/linux/posix_fadvise.c
59 @@ -35,6 +35,19 @@
60 return INTERNAL_SYSCALL_ERRNO (ret, err);
61 return 0;
62 #else
63 +# ifdef __NR_fadvise64_64
64 + INTERNAL_SYSCALL_DECL (err);
65 + int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd,
66 + __LONG_LONG_PAIR ((long) (offset >> 31),
67 + (long) offset),
68 + __LONG_LONG_PAIR ((long) (len >> 31),
69 + (long) len),
70 + advise);
71 + if (INTERNAL_SYSCALL_ERROR_P (ret, err))
72 + return INTERNAL_SYSCALL_ERRNO (ret, err);
73 + return 0;
74 +# else
75 return ENOSYS;
76 +# endif
77 #endif
78 }
79
80
81
82 1.1 src/patchsets/glibc/2.9/1073_all_glibc-ldbl-nexttowardf.patch
83
84 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.9/1073_all_glibc-ldbl-nexttowardf.patch?rev=1.1&view=markup
85 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.9/1073_all_glibc-ldbl-nexttowardf.patch?rev=1.1&content-type=text/plain
86
87 Index: 1073_all_glibc-ldbl-nexttowardf.patch
88 ===================================================================
89 ripped from Debian
90
91 this change was made to generic __nexttowardf, but not the long double version
92
93 2008-05-05 Aurelien Jarno <aurelien@×××××××.net>
94
95 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include float.h.
96 (__nexttowardf): Use math_opt_barrier and
97 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
98 x to float using asm.
99
100 ---
101 sysdeps/ieee754/ldbl-128/s_nexttowardf.c | 26 ++++++++++++++++----------
102 1 file changed, 16 insertions(+), 10 deletions(-)
103
104 --- a/sysdeps/ieee754/ldbl-128/s_nexttowardf.c
105 +++ b/sysdeps/ieee754/ldbl-128/s_nexttowardf.c
106 @@ -19,7 +19,8 @@
107 #endif
108
109 #include "math.h"
110 -#include "math_private.h"
111 +#include <math_private.h>
112 +#include <float.h>
113
114 #ifdef __STDC__
115 float __nexttowardf(float x, long double y)
116 @@ -44,10 +45,12 @@
117 return x+y;
118 if((long double) x==y) return y; /* x=y, return y */
119 if(ix==0) { /* x == 0 */
120 - float x2;
121 + float u;
122 SET_FLOAT_WORD(x,(u_int32_t)((hy>>32)&0x80000000)|1);/* return +-minsub*/
123 - x2 = x*x;
124 - if(x2==x) return x2; else return x; /* raise underflow flag */
125 + u = math_opt_barrier (x);
126 + u = u * u;
127 + math_force_eval (u); /* raise underflow flag */
128 + return x;
129 }
130 if(hx>=0) { /* x > 0 */
131 if(hy<0||(ix>>23)>(iy>>48)-0x3f80
132 @@ -67,13 +70,16 @@
133 }
134 }
135 hy = hx&0x7f800000;
136 - if(hy>=0x7f800000) return x+x; /* overflow */
137 + if(hy>=0x7f800000) {
138 + x = x+x; /* overflow */
139 + if (FLT_EVAL_METHOD != 0)
140 + /* Force conversion to float. */
141 + asm ("" : "+m"(x));
142 + return x;
143 + }
144 if(hy<0x00800000) { /* underflow */
145 - float x2 = x*x;
146 - if(x2!=x) { /* raise underflow flag */
147 - SET_FLOAT_WORD(x2,hx);
148 - return x2;
149 - }
150 + float u = x*x;
151 + math_force_eval (u); /* raise underflow flag */
152 }
153 SET_FLOAT_WORD(x,hx);
154 return x;
155
156
157
158 1.1 src/patchsets/glibc/2.9/6610_all_glibc-r10k-workarounds.patch
159
160 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.9/6610_all_glibc-r10k-workarounds.patch?rev=1.1&view=markup
161 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.9/6610_all_glibc-r10k-workarounds.patch?rev=1.1&content-type=text/plain
162
163 Index: 6610_all_glibc-r10k-workarounds.patch
164 ===================================================================
165 ripped from Debian
166
167 the R10000 needs an LL/SC Workaround. If not applied all R10k before
168 rev 3.0 misbehave on atomic ops and rev 2.6 and lower (e.g. SGI IP28)
169 die after very few seconds with a deadlock due to even more erratas.
170
171 ---
172 ports/sysdeps/mips/bits/atomic.h | 12 ++++++------
173 1 file changed, 6 insertions(+), 6 deletions(-)
174
175 --- a/ports/sysdeps/mips/bits/atomic.h
176 +++ b/ports/sysdeps/mips/bits/atomic.h
177 @@ -74,7 +74,7 @@
178 "bne %0,%2,2f\n\t" \
179 "move %1,%3\n\t" \
180 "sc %1,%4\n\t" \
181 - "beqz %1,1b\n" \
182 + "beqzl %1,1b\n" \
183 acq "\n\t" \
184 ".set pop\n" \
185 "2:\n\t" \
186 @@ -98,7 +98,7 @@
187 "bne %0,%2,2f\n\t" \
188 "move %1,%3\n\t" \
189 "scd %1,%4\n\t" \
190 - "beqz %1,1b\n" \
191 + "beqzl %1,1b\n" \
192 acq "\n\t" \
193 ".set pop\n" \
194 "2:\n\t" \
195 @@ -192,7 +192,7 @@
196 "ll %0,%3\n\t" \
197 "move %1,%2\n\t" \
198 "sc %1,%3\n\t" \
199 - "beqz %1,1b\n" \
200 + "beqzl %1,1b\n" \
201 acq "\n\t" \
202 ".set pop\n" \
203 "2:\n\t" \
204 @@ -216,7 +216,7 @@
205 "lld %0,%3\n\t" \
206 "move %1,%2\n\t" \
207 "scd %1,%3\n\t" \
208 - "beqz %1,1b\n" \
209 + "beqzl %1,1b\n" \
210 acq "\n\t" \
211 ".set pop\n" \
212 "2:\n\t" \
213 @@ -251,7 +251,7 @@
214 "ll %0,%3\n\t" \
215 "addu %1,%0,%2\n\t" \
216 "sc %1,%3\n\t" \
217 - "beqz %1,1b\n" \
218 + "beqzl %1,1b\n" \
219 acq "\n\t" \
220 ".set pop\n" \
221 "2:\n\t" \
222 @@ -275,7 +275,7 @@
223 "lld %0,%3\n\t" \
224 "daddu %1,%0,%2\n\t" \
225 "scd %1,%3\n\t" \
226 - "beqz %1,1b\n" \
227 + "beqzl %1,1b\n" \
228 acq "\n\t" \
229 ".set pop\n" \
230 "2:\n\t" \