Fix x86/x86_64 expm1l inaccuracy and exceptions (bugs 13885, 13923).
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #13885]
4         [BZ #13923]
5         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6         USE_AS_EXPM1L.
7         (EXPL_FINITE): Likewise.
8         (FLDLOG): Likewise.
9         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
10         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
11         e_expl.S.
12         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13         USE_AS_EXPM1L.
14         (EXPL_FINITE): Likewise.
15         (FLDLOG): Likewise.
16         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
17         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
18         e_expl.S.
19         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
20         test of -max_value argument for long double.
21         * sysdeps/i386/fpu/libm-test-ulps: Update.
22         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23
24 2012-05-06  David S. Miller  <davem@davemloft.net>
25
26         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
27         quad soft-float symbols whose references which are compiler
28         generated.
29         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
30
31 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
32
33         [BZ #13884]
34         [BZ #13914]
35         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
36         USE_AS_EXP10L.
37         (EXPL_FINITE): Likewise.
38         (FLDLOG): Likewise.
39         (c0): Likewise.
40         (c1): Likewise.
41         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
42         Adjust comments for base varying.
43         (__expl_finite): Change alias to EXPL_FINITE.
44         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
45         e_expl.S.
46         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
47         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
48         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
49         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
50         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
51         USE_AS_EXP10L.
52         (EXPL_FINITE): Likewise.
53         (FLDLOG): Likewise.
54         (c0): Likewise.
55         (c1): Likewise.
56         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
57         Adjust comments for base varying.
58         (__expl_finite): Change alias to EXPL_FINITE.
59         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
60         tests for bugs.
61         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
62
63         [BZ #14064]
64         * math/libm-test.inc (check_float_internal): Correct ulp
65         calculation for subnormal expected results.
66
67 2012-05-06  Andreas Jaeger  <aj@suse.de>
68
69         * Makeconfig (+math-flags): New, set to -frounding-math.
70         (+cflags): Add +math-flags so that all of glibc gets compiled with
71         it.
72
73         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
74
75 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
76
77         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
78         Disable one test.
79
80         [BZ #13787]
81         [BZ #13922]
82         [BZ #14036]
83         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
84         (__ieee754_expl): Allow for and saturate large arguments.
85         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
86         (u_threshold): Likewise.
87         (__exp): Call __ieee754_exp before checking for overflow and
88         underflow.
89         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
90         (u_threshold): Likewise.
91         (__expf): Call __ieee754_expf before checking for overflow and
92         underflow.
93         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
94         (u_threshold): Likewise.
95         (__expl): Call __ieee754_expl before checking for overflow and
96         underflow.
97         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
98         (__ieee754_expl): Allow for and saturate large arguments.
99         * math/libm-test.inc (exp_test): Add another test.  Do not allow
100         missing overflow exception on overflow.
101         (expm1_test): Do not allow missing overflow exception on overflow.
102
103         * sysdeps/i386/fpu/e_expl.c: Move to ...
104         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
105         rather than using inline asm.
106         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
107         * sysdeps/x86_64/fpu/e_expl.S: Copy from
108         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
109
110         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
111         (nice): Likewise.
112         (poll): Likewise.
113         (signal): Likewise.
114         (time): Likewise.
115         (times): Likewise.
116
117 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
118
119         * sysdeps/unix/syscalls.list (adjtime): Add entry from
120         sysdeps/unix/common/syscalls.list.
121         (fchmod): Likewise.
122         (fchown): Likewise.
123         (ftruncate): Likewise.
124         (getrusage): Likewise.
125         (gettimeofday): Likewise.
126         (setpgid): Likewise.
127         (setregid): Likewise.
128         (setreuid): Likewise.
129         (sigaction): Likewise.
130         (truncate): Likewise.
131         (vhangup): Likewise.
132         * sysdeps/unix/common/syscalls.list: Remove file.
133         * sysdeps/unix/bsd/Implies: Don't include unix/common.
134         * sysdeps/unix/sysv/linux/Implies: Likewise.
135
136 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
137
138         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
139         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
140         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
141         Moved to ...
142         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
143         Here.
144         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
145         to ...
146         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
147         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
148         to ...
149         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
150         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
151         to ...
152         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
153         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
154         to ...
155         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
156         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
157         to ...
158         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
159         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
160         to ...
161         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
162         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
163         to ...
164         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
165         Here.
166         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
167         to ...
168         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
169         Here.
170         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
171         to ...
172         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
173         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
174         Moved to ...
175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
176         Here.
177         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
178         to ...
179         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
180
181 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
182
183         * sysdeps/unix/common/bits/dirent.h: Remove file.
184         * sysdeps/unix/common/bits/fcntl.h: Likewise.
185
186         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
187         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
188         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
189         * sysdeps/unix/bsd/isatty.c: Likewise.
190         * sysdeps/unix/bsd/tcdrain.c: Likewise.
191         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
192         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
193
194 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
195
196         [BZ #13563]
197         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
198         long double comparison inaccuracies.
199         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
201
202 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
203
204         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
205         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
206
207 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
208
209         [BZ #14049]
210         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
211         nonzero digits before rounding a hex value.
212         * stdlib/tst-strtod.c (tests): Add another test.
213
214 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
215
216         * sysdeps/s390/fpu/libm-test-ulps: Update.
217
218 2012-05-03  Andreas Jaeger  <aj@suse.de>
219
220         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
221         does not get optimized out.
222         (malloc_opt_barrier): New.
223
224 2012-05-03  Andreas Jaeger  <aj@suse.de>
225             Roland McGrath  <roland@hack.frob.com>
226
227         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
228         intermediate file deletion.
229         (generated): Add .symlist files.
230
231 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
232
233         [BZ #13775]
234         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
235         Redirect under this condition.
236         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
237         [__USE_GNU] (__dprintf_chk): Not under this condition.
238         [__USE_GNU] (__vdprintf_chk): Likewise.
239         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
240         under this condition.
241         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
242         [__USE_XOPEN2K8] (dprintf): Define under this condition.
243         [__USE_XOPEN2K8] (vdprintf): Likewise.
244         [__USE_GNU] (__dprintf_chk): Not under this condition.
245         [__USE_GNU] (__vdprintf_chk): Likewise.
246         [__USE_GNU] (dprintf): Likewise.
247         [__USE_GNU] (vdprintf): Likewise.
248
249 2012-05-03  Roland McGrath  <roland@hack.frob.com>
250
251         * elf/Makefile (common-generated): Set this instead of generated for
252         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
253         $(all-built-dso)-derived lists.
254
255 2012-05-03  Andreas Jaeger  <aj@suse.de>
256
257         * sysdeps/i386/fpu/libm-test-ulps: Update.
258
259         * FAQ: Removed.
260         * FAQ.in: Likewise.
261         * scripts/gen-FAQ.pl: Likewise.
262         * manual/install.texi (Installation): Point to online location of
263         FAQ.
264         * Makefile (files-for-dist): Remove FAQ.
265         (FAQ): Remove.
266
267 2012-05-02  Allan McRae  <allan@archlinux.org>
268
269         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
270         (LDFLAGS-reldepmod5.so): Likewise.
271         (LDFLAGS-reldep6mod1.so): Likewise.
272         (LDFLAGS-reldep6mod4.so): Likewise.
273         (LDFLAGS-reldep8mod3.so): Likewise.
274         (LDFLAGS-unload4mod1.so): Likewise.
275         (LDFLAGS-unload4mod2.so): Likewise.
276         (LDFLAGS-tst-initorder): Likewise.
277         (LDFLAGS-tst-initordera2.so): Likewise.
278         (LDFLAGS-tst-initordera3.so): Likewise.
279         (LDFLAGS-tst-initordera4.so): Likewise.
280         (LDFLAGS-tst-initorderb2.so): Likewise.
281         (LDFLAGS-noload): Likewise.
282         (LDFLAGS-next): Likewise.
283         (LDFLAGS-order2mod1.so): Likewise.
284         (LDFLAGS-order2mod2.so): Likewise.
285         (LDFLAGS-tst-initorder2): Likewise.
286         (LDFLAGS-tst-initorder2a.so): Likewise.
287         (LDFLAGS-tst-initorder2b.so): Likewise.
288         (LDFLAGS-tst-initorder2c.so): Likewise.
289         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
290
291 2012-05-02  David S. Miller  <davem@davemloft.net>
292
293         * sysdeps/sparc/fpu/libm-test-ulps: Update.
294
295 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
296
297         [BZ #14055]
298         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
299
300 2012-05-02  Andreas Jaeger  <aj@suse.de>
301
302         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
303         since we manipulate rounding mode.
304         (CPPFLAGS-test-idouble.c): Likewise.
305         (CPPFLAGS-test-ifloat.c): Likewise.
306         (CFLAGS-test-ldouble.c): Likewise.
307         (CFLAGS-test-double.c): Likewise.
308         (CFLAGS-test-float.c): Likewise.
309         (CFLAGS-test-misc.c): Likewise.
310         (CFLAGS-test-test-fenv.c): Likewise.
311
312 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
313
314         [BZ #2550]
315         [BZ #2570]
316         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
317         comparisons to determine direction to adjust input.
318
319 2012-05-01  Roland McGrath  <roland@hack.frob.com>
320
321         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
322         output to the target.
323
324         * scripts/localplt.awk: New file.
325         * elf/Makefile ($(objpfx)check-localplt): Target removed.
326         (check-localplt-CFLAGS): Variable removed.
327         ($(all-built-dso:=.jmprel)): New static pattern rule.
328         (generated): Add those targets.
329         (localplt-built-dso): New variable.
330         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
331
332         * elf/check-localplt.c: File removed.
333
334         * scripts/check-execstack.awk: New file.
335         * elf/Makefile ($(objpfx)check-execstack): Target removed.
336         (check-execstack-CFLAGS): Variable removed.
337         ($(objpfx)check-execstack.h): Target removed.
338         ($(objpfx)execstack-default): New target.
339         (generated): Add that instead of check-execstack.h.
340         ($(all-built-dso:=.phdr)): New static pattern rule.
341         (generated): Add those targets.
342         * elf/check-execstack.c: File removed.
343
344         * scripts/check-textrel.awk: New file.
345         * elf/Makefile ($(objpfx)check-textrel): Target removed.
346         (check-textrel-CFLAGS): Variable removed.
347         (all-built-dso): Use := to define.o
348         ($(all-built-dso:=.dyn)): New static pattern rule.
349         (generated): Add those targets.
350         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
351         * config.make.in (READELF): New substituted variable.
352         * elf/check-textrel.c: File removed.
353
354 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
355
356         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
357         allow.
358         * conform/data/ctype.h-data [C99-based standards] (isblank):
359         Expect function.
360         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
361         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
362         [ISO || ISO99 || ISO11] (*_t): Do not allow.
363         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
364         Specify type.  Require positive value.
365         (EILSEQ): Likewise.
366         (ERANGE): Likewise.
367         [ISO || POSIX] (EILSEQ): Do not expect.
368         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
369         Specify type.  Require positive value.
370         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
371         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
372         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
373         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
374         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
375         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
376         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
377         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
378         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
379         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
380         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
381         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
382         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
383         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
384         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
385         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
386         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
387         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
388         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
389         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
390         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
391         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
392         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
393         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
394         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
395         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
396         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
397         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
398         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
399         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
400         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
401         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
402         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
403         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
404         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
405         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
406         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
407         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
408         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
409         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
410         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
411         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
412         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
413         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
414         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
415         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
416         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
417         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
418         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
419         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
420         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
421         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
422         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
423         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
424         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
425         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
426         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
427         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
428         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
429         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
430         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
431         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
432         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
433         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
434         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
435         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
436         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
437         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
438         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
439         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
440         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
441         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
442         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
443         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
444         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
445         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
446         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
447         Require >= 2.
448         (FLT_ROUNDS): Expect as macro, not constant.
449         (FLT_MANT_DIG): Use macro-int-constant.
450         (DBL_MANT_DIG): Likewise.
451         (LDBL_MANT_DIG): Likewise.
452         (FLT_DIG): Likewise.
453         (DBL_DIG): Likewise.
454         (LDBL_DIG): Likewise.
455         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
456         (DBL_MIN_EXP): Likewise.
457         (LDBL_MIN_EXP): Likewise.
458         (FLT_MAX_EXP): Use macro-int-constant.
459         (DBL_MAX_EXP): Likewise.
460         (LDBL_MAX_EXP): Likewise.
461         (FLT_MAX_10_EXP): Likewise.
462         (DBL_MAX_10_EXP): Likewise.
463         (LDBL_MAX_10_EXP): Likewise.
464         (FLT_MAX): Use macro-constant.
465         (DBL_MAX): Likewise.
466         (LDBL_MAX): Likewise.
467         (FLT_EPSILON): Use macro-constant.  Give upper bound.
468         (DBL_EPSILON): Likewise.
469         (LDBL_EPSILON): Likewise.
470         (FLT_MIN): Likewise.
471         (DBL_MIN): Likewise.
472         (LDBL_MIN): Likewise.
473         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
474         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
475         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
476         [ISO11] (FLT_HAS_SUBNORM): Likewise.
477         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
478         [ISO11] (DBL_DECIMAL_DIG): Likewise.
479         [ISO11] (FLT_DECIMAL_DIG): Likewise.
480         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
481         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
482         [ISO11] (FLT_TRUE_MIN): Likewise.
483         [ISO11] (LDBL_TRUE_MIN): Likewise.
484         [ISO || ISO99 || ISO11] (*_t): Do not allow.
485         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
486         (SCHAR_MIN): Use macro-int-constant.  Specify type.
487         (SCHAR_MAX): Likewise.
488         (UCHAR_MAX): Likewise.
489         (CHAR_MIN): Likewise.
490         (CHAR_MAX): Likewise.
491         (MB_LEN_MAX): Use macro-int-constant.
492         (SHRT_MIN): Use macro-int-constant.  Specify type.
493         (SHRT_MAX): Likewise.
494         (USHRT_MAX): Likewise.
495         (INT_MAX): Likewise.
496         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
497         bound negative.
498         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
499         bound with "U".
500         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
501         bound with "L".
502         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
503         bound negative.  Suffix upper bound with "L".
504         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
505         bound with "UL".
506         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
507         Specify type.
508         [C99-based standards] (LLONG_MAX): Likewise.
509         [C99-based standards] (ULLONG_MAX): Likewise.
510         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
511         == 0.
512         [ISO11] (max_align_t): Require type.
513         [ISO || ISO99 || ISO11] (*_t): Do not allow.
514
515         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
516         from $CFLAGS, without defining away __attribute__ calls.
517         (checknamespace): Use $CFLAGS_namespace.
518
519         * conform/conformtest.pl (@keywords): Only include C99 keywords
520         for standards based on C99 or C11.
521
522         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
523         Disable tests.
524         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
525         UNIX98]: Likewise.
526
527         * conform/conformtest.pl: Handle "macro-int-constant" and test for
528         usability of symbols in #if.
529
530         * conform/conformtest.pl: If macro or constant types start
531         "promoted:", expect the symbol to be of the following type
532         promoted by the integer promotions.
533
534         * conform/conformtest.pl: Parse all "constant" and "macro" lines
535         in one place.  Also handle "macro-constant".
536
537         * conform/conformtest.pl: Only accept expected macro values with
538         "==".  Parse all "macro" lines in one place.
539         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
540
541         * conform/conformtest.pl: Handle braced types on "constant" lines
542         instead of handling "typed-constant".
543         * conform/data/signal.h-data: Use "constant" instead of
544         "typed-constant".
545
546         * conform/conformtest.pl: Handle "optional-" at start of lines in
547         one place rather than duplicating several cases.  Handle each
548         format of "macro" line with initial "optional-".
549
550         * conform/conformtest.pl: Only accept expected constant or
551         optional-constant values with "==".  Parse all "constant" lines in
552         one place.  Parse all "optional-constant" lines in one place.
553         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
554         * conform/data/fmtmsg.h-data: Likewise.
555         * conform/data/netinet/in.h-data: Likewise.
556         * conform/data/tar.h-data: Likewise.
557         * conform/data/limits.h-data: Use "==" form on "constant" and
558         "optional-constant" lines.
559
560         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
561         Use -std=c99 for XOPEN2K.
562         (@knownproblems): Remove.
563         (newtoken): Don't check %isknown.
564
565         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
566         Do not expect macro.
567         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
568         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
569         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
570         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
571         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
572         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
573         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
574         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
575         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
576         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
577         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
578         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
579         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
580         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
581         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
582         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
583         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
584         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
585         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
586         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
587         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
588         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
589         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
590         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
591         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
592         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
593         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
594         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
595         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
596         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
597         [XPG3] (acosh): Likewise.
598         [XPG3] (asinh): Likewise.
599         [XPG3] (atanh): Likewise.
600         [XPG3] (cbrt): Likewise.
601         [XPG3] (expm1): Likewise.
602         [XPG3] (ilogb): Likewise.
603         [XPG3] (log1p): Likewise.
604         [XPG3] (logb): Likewise.
605         [XPG3] (nextafter): Likewise.
606         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
607         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
608         [XPG3] (remainder): Likewise.
609         [XPG3] (rint): Likewise.
610         [XPG3 || XPG4 || UNIX98] (round): Likewise.
611         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
612         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
613         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
614         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
615         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
616         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
617         [UNIX98 || XOPEN2K] (scalb): Expect.
618         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
619         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
620         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
621         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
622         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
623         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
624         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
625         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
626         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
627         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
628         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
629         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
630         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
631         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
632         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
633         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
634         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
635         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
636         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
637         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
638         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
639         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
640         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
641         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
642         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
643         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
644         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
645         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
646         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
647         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
648         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
649         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
650         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
651         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
652         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
653         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
654         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
655         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
656         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
657         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
658         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
659         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
660         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
661         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
662         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
663         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
664         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
665         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
666         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
667         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
668         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
669         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
670         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
671         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
672         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
673         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
674         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
675         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
676         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
677         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
678         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
679         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
680         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
681         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
682         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
683         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
684         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
685         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
686         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
687         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
688         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
689         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
690         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
691         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
692         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
693         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
694         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
695         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
696         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
697         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
698         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
699         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
700         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
701         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
702         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
703         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
704         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
705         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
706         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
707         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
708         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
709         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
710         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
711         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
712         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
713         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
714         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
715         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
716         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
717         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
718         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
719         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
720         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
721         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
722         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
723         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
724         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
725         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
726         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
727         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
728         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
729         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
730         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
731         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
732         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
733         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
734         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
735         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
736         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
737         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
738         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
739         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
740         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
741         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
742         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
743         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
744         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
745         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
746         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
747         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
748         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
749         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
750         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
751         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
752         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
753         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
754         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
755
756         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
757         _XOPEN_SOURCE_EXTENDED for XPG4.
758
759         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
760
761         * Makeconfig (localtime): Remove variable.
762         (inst_localtime-file): Likewise.
763
764 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
765
766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
767         Update.
768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
769         Update.
770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
771         Update.
772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
773         Update.
774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
775         Update.
776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
777         Update.
778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
779         Update.
780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
781         Update.
782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
783         Update.
784
785 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
786
787         [BZ #2550]
788         [BZ #2570]
789         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
790         comparisons to determine direction to adjust input.
791         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
792         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
793         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
794         Likewise.
795         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
796         Likewise.
797         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
798         Likewise.
799         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
800         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
801         Likewise.
802         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
803         Likewise.
804         * math/libm-test.inc (nexttoward_test): Add more tests.
805
806 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
807
808         [BZ #14040]
809         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
810         in version GLIBC_2.1, not GLIBC_2.0.
811         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
812         Likewise.
813
814 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
815
816         [BZ #13942]
817         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
818         (1 - x) * (1 + x).
819         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
820         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
821         * math/libm-test.inc (acos_test): Add more tests.
822         (asin_test): Likewise.
823         * sysdeps/i386/fpu/libm-test-ulps: Update.
824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
825
826         [BZ #14034]
827         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
828         of square root.
829         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
830         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
831         * math/libm-test.inc (acos_test_tonearest): New function.
832         (acos_test_towardzero): Likewise.
833         (acos_test_downward): Likewise.
834         (acos_test_upward): Likewise.
835         (asin_test_tonearest): Likewise.
836         (asin_test_towardzero): Likewise.
837         (asin_test_downward): Likewise.
838         (asin_test_upward): Likewise.
839         (main): Call the new functions.
840         * sysdeps/i386/fpu/libm-test-ulps: Update.
841         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
842
843         [BZ #13884]
844         [BZ #13924]
845         * math/e_exp10.c: Include <float.h>.
846         (__ieee754_exp10): Handle underflow here rather than multiplying
847         large negative argument by M_LN10.
848         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
849         of __ieee754_expf.
850         * math/e_exp10l.c: Include <float.h>.
851         (__ieee754_exp10l): Handle underflow here rather than multiplying
852         large negative argument by M_LN10l.
853         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
854         spurious overflow exception on underflow.
855
856 2012-04-29  Marek Polacek  <polacek@redhat.com>
857
858         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
859         (__fortify_function): New macro.
860         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
861         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
862         __extern_always_inline.
863         * libio/bits/stdio2.h: Likewise.
864         * libio/bits/stdio.h: Likewise.
865         * string/string.h: Likewise.
866         * string/bits/string3.h: Likewise.
867         * include/stdio.h: Likewise.
868         * stdlib/bits/stdlib.h: Likewise.
869         * stdlib/stdlib.h: Likewise.
870         * rt/bits/mqueue2.h: Likewise.
871         * rt/mqueue.h: Likewise.
872         * posix/bits/unistd.h: Likewise.
873         * posix/unistd.h: Likewise.
874         * io/bits/poll2.h: Likewise.
875         * io/bits/fcntl2.h: Likewise.
876         * io/fcntl.h: Likewise.
877         * io/sys/poll.h: Likewise.
878         * misc/bits/syslog.h: Likewise.
879         * misc/bits/syslog-ldbl.h: Likewise.
880         * misc/sys/syslog.h: Likewise.
881         * socket/bits/socket2.h: Likewise.
882         * socket/sys/socket.h: Likewise.
883         * debug/tst-chk1.c: Likewise.
884         * wcsmbs/bits/wchar2.h: Likewise.
885         * wcsmbs/bits/wchar-ldbl.h: Likewise.
886         * wcsmbs/wchar.h: Likewise.
887
888 2012-04-29  Andreas Jaeger  <aj@suse.de>
889
890         * Makerules (tests): Remove enable-check-abi protection.
891         (check-abi-warn): Remove.
892         (check-abi-%): Remove check-abi-warn usage.
893
894         * configure.in: Remove check-abi configure option.
895         * configure: Regenerated.
896         * config.make.in (enable-check-abi): Remove.
897
898 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
899
900         [BZ #14033]
901         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
902         double functions to double *_finite functions.
903
904         [BZ #13941]
905         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
906         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
907         LDBL_MIN_EXP.
908         * stdio-common/Makefile (tests): Add tst-sprintf3.
909         * stdio-common/tst-sprintf3.c: New file.
910
911         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
912         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
913
914 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
915
916         * conform/conformtest.pl: Remove duplicate typed-constant
917         handling.
918
919 2012-04-28  David S. Miller  <davem@davemloft.net>
920
921         * Makerules (%.abilist): Add vpath on sysdep_dirs.
922         (check-abi-%): Remove AWK script prerequisite and explicit
923         abilist directory.
924         (check-abi): Rewrite to just diff the symlist with the abilist.
925         (config-tls, config-abi-config): Delete, no longer used.
926         (update-abi-%): Remove AWK script and explicit abilist directory.
927         (update-abi): Rewrite to simply compare and conditionally copy the
928         symlist and the sysdep abilist file.  Remove update-abi-config
929         checks.
930         * abilist/ld.abilist: Remove.
931         * abilist/libBrokenLocale.abilist: Remove.
932         * abilist/libanl.abilist: Remove.
933         * abilist/libcrypt.abilist: Remove.
934         * abilist/libdl.abilist: Remove.
935         * abilist/librt.abilist: Remove.
936         * abilist/libthread_db.abilist: Remove.
937         * abilist/libutil.abilist: Remove.
938         * scripts/extract-abilist.awk: Remove.
939         * scripts/merge-abilist.awk: Remove.
940         * sysdeps/generic/libcidn.abilist: New file.
941         * sysdeps/generic/libnss_compat.abilist: New file.
942         * sysdeps/generic/libnss_db.abilist: New file.
943         * sysdeps/generic/libnss_dns.abilist: New file.
944         * sysdeps/generic/libnss_files.abilist: New file.
945         * sysdeps/generic/libnss_hesiod.abilist: New file.
946         * sysdeps/generic/libnss_nis.abilist: New file.
947         * sysdeps/generic/libnss_nisplus.abilist: New file.
948         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
949         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
950         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
951         file.
952         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
953         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
954         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
955         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
956         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
957         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
958         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
959         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
960         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
961         file.
962         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
963         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
964         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
965         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
966         file.
967         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
968         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
969         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
970         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
971         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
972         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
973         file.
974         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
975         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
976         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
977         file.
978         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
979         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
980         New file.
981         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
982         New file.
983         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
984         New file.
985         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
986         New file.
987         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
988         New file.
989         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
990         New file.
991         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
992         New file.
993         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
994         New file.
995         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
996         New file.
997         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
998         New file.
999         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
1000         New file.
1001         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
1002         New file.
1003         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
1004         New file.
1005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
1006         file.
1007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
1008         New file.
1009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
1010         New file.
1011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
1012         file.
1013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
1014         New file.
1015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
1016         New file.
1017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
1018         file.
1019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
1020         New file.
1021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1022         New file.
1023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
1024         New file.
1025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
1026         New file.
1027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
1028         New file.
1029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
1030         New file.
1031         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
1032         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
1033         file.
1034         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
1035         New file.
1036         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
1037         file.
1038         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
1039         file.
1040         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
1041         file.
1042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
1043         file.
1044         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
1045         file.
1046         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1047         New file.
1048         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
1049         file.
1050         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
1051         file.
1052         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
1053         New file.
1054         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
1055         file.
1056         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
1057         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
1058         file.
1059         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
1060         New file.
1061         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
1062         file.
1063         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
1064         file.
1065         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
1066         file.
1067         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
1068         file.
1069         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
1070         file.
1071         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1072         New file.
1073         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
1074         file.
1075         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
1076         file.
1077         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
1078         New file.
1079         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
1080         file.
1081         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1082         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
1083         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
1084         file.
1085         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
1086         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
1087         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
1088         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
1089         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
1090         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
1091         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
1092         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
1093         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
1094         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
1095         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
1096         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
1097         file.
1098         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
1099         New file.
1100         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
1101         file.
1102         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
1103         file.
1104         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
1105         file.
1106         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
1107         file.
1108         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
1109         file.
1110         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
1111         New file.
1112         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
1113         New file.
1114         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
1115         file.
1116         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
1117         New file.
1118         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
1119         file.
1120         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
1121         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
1122         file.
1123         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
1124         New file.
1125         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
1126         file.
1127         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
1128         file.
1129         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
1130         file.
1131         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
1132         file.
1133         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
1134         file.
1135         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
1136         New file.
1137         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
1138         New file.
1139         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
1140         file.
1141         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
1142         New file.
1143         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
1144         file.
1145
1146 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
1147
1148         * conform/conformtest.pl: Fix typo in handling typed-constant from
1149         allow-header.
1150
1151 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1152
1153         * README: Cut down references to pre-2.6 Linux kernels and
1154         Linuxthreads.  Update lists of configurations in libc and ports
1155         and sort alphabetically.  Say "or newer" with Linux kernel version
1156         requirements.
1157
1158         * config.h.in [IS_IN_build]: Allow compiling without optimization.
1159
1160 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1161
1162         [BZ #887]
1163         * math/libm-test.inc (logb_test_downward): New test to expose
1164         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
1165         rounding mode.
1166
1167 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
1168
1169         [BZ #14027]
1170         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
1171         to be done.
1172         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
1173         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
1174
1175 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
1176
1177         * sysdeps/unix/i386/brk.S: Remove file.
1178         * sysdeps/unix/i386/dl-brk.S: Likewise.
1179         * sysdeps/unix/i386/pipe.S: Likewise.
1180         * sysdeps/unix/i386/sigreturn.S: Likewise.
1181         * sysdeps/unix/i386/syscall.S: Likewise.
1182         * sysdeps/unix/i386/vfork.S: Likewise.
1183         * sysdeps/unix/i386/wait.S: Likewise.
1184
1185         * sysdeps/unix/common/tcsendbrk.c: Move to ...
1186         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
1187
1188         * configure.in (arm*-none*): Do not allow without
1189         --enable-hacker-mode.
1190         (netbsd*): Remove case setting base_os.
1191         (386bsd*): Likewise.
1192         (freebsd*): Likewise.
1193         (bsdi*): Likewise.
1194         (osf*): Likewise.
1195         (sunos*): Likewise.
1196         (ultrix*): Likewise.
1197         (newsos*): Likewise.
1198         (dynix*): Likewise.
1199         (*bsd*): Likewise.
1200         (sysv*): Likewise.
1201         (isc*): Likewise.
1202         (esix*): Likewise.
1203         (sco*): Likewise.
1204         (minix*): Likewise.
1205         (irix4*): Likewise.
1206         (irix6*): Likewise.
1207         (solaris[2-9]*): Likewise.
1208         (none): Likewise.
1209         * configure: Regenerated.
1210
1211 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1212
1213         [BZ #11521]
1214         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
1215         overflow or cancellation in calculating denominator.
1216         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
1217         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
1218         down expression to avoid unexpected rounding in newer GCCs.
1219         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
1220
1221 2012-04-26  David S. Miller  <davem@davemloft.net>
1222
1223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
1224         long-double compat symbols.
1225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
1229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1230         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
1231         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
1232         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
1233         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
1234         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
1235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
1236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
1237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
1238
1239 2012-04-25  David S. Miller  <davem@davemloft.net>
1240
1241         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
1242         HWCAP_* values only after the memory barriers have been defined.
1243         (atomic_full_barrier): Define.
1244         (atomic_read_barrier): Define.
1245         (atomic_write_barrier): Define.
1246
1247 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1248
1249         * shlib-versions: Add libgcc_s version information.
1250         * sysdeps/generic/libgcc_s.h: Remove.
1251         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
1252         libgcc_s.h.
1253         * sysdeps/gnu/unwind-resume.c: Likewise.
1254         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
1255
1256 2012-04-25  David S. Miller  <davem@davemloft.net>
1257
1258         * sysdeps/unix/sparc/brk.S: Delete.
1259         * sysdeps/unix/sparc/dl-brk.S: Delete.
1260         * sysdeps/unix/sparc/pipe.S: Delete.
1261         * sysdeps/unix/sparc/sysdep.S: Delete.
1262         * sysdeps/unix/sparc/sysdep.h: Delete.
1263         * sysdeps/unix/sparc/vfork.S: Delete.
1264         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
1265         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
1266         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
1267         ret_ERRVAL, r0, r1, MOVE): Define.
1268         (JUMPTARGET): Remove.
1269         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
1270         sysdeps/unix/sparc/sysdep.h
1271         (ENTRY, END): Remove.
1272         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1273
1274 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
1275
1276         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
1277         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
1278         -DIS_IN_build.
1279
1280         * timezone/README: Update upstream location and email address for
1281         tzcode and tzdata.
1282         * timezone/zdump.c: Update from tzcode 2012b.
1283         * timezone/zic.c: Likewise.
1284
1285         * configure.in (libc_cv_as_needed): Remove test.
1286         * configure: Regenerated.
1287         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
1288         conditional definition.
1289         [$(have-as-needed) != yes] (no-as-needed): Likewise.
1290         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
1291         * config.make.in (have-as-needed): Remove variable.
1292
1293 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1294             Paul Pluzhnikov  <ppluzhnikov@google.com>
1295
1296         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
1297         strings correctly.
1298
1299 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
1300
1301         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
1302         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
1303         * sysdeps/sh/strlen.S: Likewise.
1304
1305 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1306
1307         * sysdeps/unix/fork.S: Remove file.
1308         * sysdeps/unix/i386/fork.S: Likewise.
1309         * sysdeps/unix/sparc/fork.S: Likewise.
1310
1311         * sysdeps/unix/system.c: Remove file.
1312         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
1313
1314         * sysdeps/unix/getegid.S: Remove file.
1315         * sysdeps/unix/geteuid.S: Likewise.
1316
1317 2012-04-24  Roland McGrath  <roland@hack.frob.com>
1318
1319         * scripts/check-localplt.awk: New file.
1320         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
1321         of diff.
1322         * scripts/data/localplt-generic.data: Add a comment.
1323
1324         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
1325         NODE when __dir_mkfile failed.
1326         * sysdeps/mach/hurd/symlinkat.c: Likewise.
1327         Reported by Ludovic Courtès <ludo@gnu.org>.
1328
1329 2012-04-24  Andreas Jaeger  <aj@suse.de>
1330
1331         * Makerules (common-clean): Also remove gen-as-const-headers
1332         files.
1333
1334 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1335
1336         * Makerules (native-compile): Do not change working directory for
1337         build.  Use $(OUTPUT_OPTION) in command.
1338         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
1339
1340 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1341
1342         [BZ #13886]
1343         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
1344         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
1345         * math/libm-test.inc (floor_test): Add more tests.
1346         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
1347
1348 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
1349
1350         * sysdeps/unix/getdents.c: Remove file.
1351         * sysdeps/unix/sysv/getdents.c: Likewise.
1352         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
1353
1354         * sysdeps/unix/syscalls.list (madvise): Add syscall from
1355         sysdeps/unix/mman/syscalls.list.
1356         (mmap): Likewise.
1357         (mprotect): Likewise.
1358         (msync): Likewise.
1359         (munmap): Likewise.
1360         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
1361         * sysdeps/unix/mman/syscalls.list: Remove.
1362         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
1363
1364         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
1365         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
1366         * configure: Regenerated.
1367         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
1368         $(libgcc_s_suffix).
1369         * config.make.in (libgcc_s_suffix): Remove variable.
1370
1371 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
1372
1373         * sysdeps/unix/sysv/gethostname.c: Move to ...
1374         * sysdeps/posix/gethostname.c: ... here.
1375
1376         * sysdeps/unix/execve.S: Remove file.
1377
1378         * sysdeps/unix/_exit.S: Remove file.
1379
1380 2012-04-23  Andreas Jaeger  <aj@suse.de>
1381
1382         [BZ #13739]
1383         * manual/Makefile: Remove make dist support, there's no
1384         need for a stand-alone documentation tar ball.
1385         (TEXI2DVI): Define always, it's not in Makeconfig.
1386         (dist): Removed.
1387         (tar-it): Removed.
1388         (edition): Removed.
1389         (glibc-doc-$(edition).tar): Removed
1390         (%.Z): Removed.
1391         (%.gz): Removed.
1392         (%.uu): Removed.
1393         (ETAGS): Remove, it's in Makeconfig.
1394         (move-if-change): Remove, it's in Makeconfig.
1395
1396 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1397
1398         [BZ #13970]
1399         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
1400         (strtod, strtof, strtold, strtol, strtoul, strtoq)
1401         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
1402         (strtod_l, strtof_l, strtold_l): Remove __wur.
1403         It is not necessarily an error to ignore strtol's return value.
1404         One can reliably look at the stored endptr to decide whether
1405         the number had valid syntax.
1406
1407 2012-04-21  Andreas Jaeger  <aj@suse.de>
1408
1409         [BZ #13739]
1410         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
1411
1412 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
1413
1414         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
1415         * sysdeps/unix/sysv/Versions: Remove file.
1416
1417 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1418
1419         [BZ #13927]
1420         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1421
1422 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
1423
1424         [BZ #7064]
1425         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
1426         version from __vm86.
1427
1428 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
1429
1430         * sysdeps/unix/common/lxstat.c: Remove file.
1431         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
1432
1433         * sysdeps/unix/sysv/Makefile: Remove file.
1434
1435         * sysdeps/unix/sysv/direct.h: Remove file.
1436
1437         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
1438         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
1439         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
1440         * sysdeps/unix/sysv/bits/signum.h: Likewise.
1441         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1442         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
1443         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
1444
1445         * sysdeps/unix/sysv/setrlimit.c: Remove file.
1446
1447         * sysdeps/unix/xmknod.c: Remove file.
1448         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
1449
1450         * sysdeps/unix/sysv/settimeofday.c: Remove file.
1451
1452         * sysdeps/unix/sysv/i386/time.S: Remove file.
1453
1454         * sysdeps/unix/fxstat.c: Remove file.
1455         * sysdeps/unix/xstat.c: Likewise.
1456         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
1457
1458         * sysdeps/unix/sysv/sigaction.c: Remove file.
1459
1460         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
1461         (sysdep_headers): Remove variable.
1462         [termio.h not in sysdep_headers] (generated): Likewise.
1463         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
1464         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
1465         * sysdeps/unix/sysv/tcdrain.c: Likewise.
1466         * sysdeps/unix/sysv/tcflow.c: Likewise.
1467         * sysdeps/unix/sysv/tcflush.c: Likewise.
1468         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
1469         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
1470         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
1471         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
1472         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
1473
1474         * sysdeps/unix/siglist.c: Remove file.
1475
1476         * sysdeps/unix/getppid.S: Remove file.
1477
1478         * sysdeps/unix/mkdir.c: Remove file.
1479         * sysdeps/unix/rmdir.c: Likewise.
1480
1481 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
1482
1483         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
1484         ERR_MAX value.
1485         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
1486         errlist-compat value.
1487
1488 2012-04-18  David S. Miller  <davem@davemloft.net>
1489
1490         * sysdeps/generic/memcopy.h (reg_char): Delete.
1491         * debug/strcat_chk.c: Use char, not reg_char.
1492         * debug/strcpy_chk.c: Likewise.
1493         * debug/strncat_chk.c: Likewise.
1494         * debug/strncpy_chk.c: Likewise.
1495         * string/memchr.c: Likewise.
1496         * string/memrchr.c: Likewise.
1497         * string/rawmemchr.c: Likewise.
1498         * string/strcat.c: Likewise.
1499         * string/strchr.c: Likewise.
1500         * string/strchrnul.c: Likewise.
1501         * string/strcmp.c: Likewise.
1502         * string/strcpy.c: Likewise.
1503         * string/strncat.c: Likewise.
1504         * string/strncmp.c: Likewise.
1505         * string/strncpy.c: Likewise.
1506
1507 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1508
1509         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
1510         __builtin_memcopy is called when src and dest ranges are known to not
1511         overlap.
1512
1513 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1514
1515         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
1516         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
1517         fwd_align_merge macro call.
1518         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
1519         bwd_align_merge macro call.
1520         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1521
1522 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
1523
1524         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
1525         bwd_align_merge macros.
1526         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
1527         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
1528         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1529
1530 2012-04-18  David S. Miller  <davem@davemloft.net>
1531
1532         * sysdeps/sparc/sparc64/memcopy.h: Delete.
1533
1534 2012-04-18  Andreas Jaeger  <aj@suse.de>
1535
1536         [BZ# 6794]
1537         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
1538         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
1539         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1540
1541         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
1542         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
1543         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1544
1545         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
1546         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
1547         Adjust for changed ldbl-128 files.
1548
1549         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
1550         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
1551         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
1552
1553 2012-04-17  David S. Miller  <davem@davemloft.net>
1554
1555         * sysdeps/sparc/sparc32/memcopy.h: Delete.
1556
1557 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
1558
1559         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
1560         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
1561         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
1562         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
1563         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
1564         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
1565
1566 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1567
1568         [BZ #6794]
1569         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
1570         * math/libm-test.inc: Add ilogb errno and exception tests.
1571         * math/w_ilogb.c: New file: ilogb wrapper.
1572         * math/w_ilogbf.c: New file: ilogbf wrapper.
1573         * math/w_ilogbl.c: New file: ilogbl wrapper.
1574         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
1575         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
1576         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
1577         exception being thrown with 0.0 as argument.
1578         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
1579         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
1580         exception being thrown with 0.0 as argument.
1581         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
1582         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
1583         exception being thrown with 0.0 as argument.
1584         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
1585         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
1586         exception being thrown with 0.0 as argument.
1587         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
1588         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
1589         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
1590         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
1591         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
1592         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
1593         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
1594         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
1595         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
1596
1597 2012-04-17  Petr Baudis  <pasky@ucw.cz>
1598
1599         * include/sys/uio.h: Change __vector to __iovec to avoid clash
1600         with altivec.
1601
1602 2012-04-16  Marek Polacek  <polacek@redhat.com>
1603
1604         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
1605
1606 2012-04-16  Marek Polacek  <polacek@redhat.com>
1607
1608         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
1609         operands of fdivp instruction.
1610
1611 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1612
1613         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
1614         * elf/tst-auditmod3b.c: Likewise.
1615         * elf/tst-auditmod4b.c: Likewise.
1616         * elf/tst-auditmod5b.c: Likewise.
1617         * elf/tst-auditmod6b.c: Likewise.
1618         * elf/tst-auditmod6c.c: Likewise.
1619         * elf/tst-auditmod7b.c: Likewise.
1620         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
1621         * sysdeps/x86_64/preconfigure.in: Likewise.
1622         * sysdeps/x86_64/preconfigure: Regenerated.
1623
1624 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1625
1626         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
1627         __ILP32__.
1628
1629 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
1630
1631         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1632         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
1633
1634 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
1635
1636         [BZ #13973]
1637         * locale/iso-639.def: Fix gl language name. Spotted by
1638         Yaron Shahrabani.
1639
1640 2012-04-12  Roland McGrath  <roland@hack.frob.com>
1641
1642         [BZ #2074]
1643         * libio/libio.h (__io_write_fn): Update comment.
1644
1645 2012-04-12  Petr Baudis  <pasky@ucw.cz>
1646
1647         [BZ #2074]
1648         * stdio.texi (Hook Functions): The user provided writer function
1649         is not allowed to return -1.
1650
1651 2012-04-11  David S. Miller  <davem@davemloft.net>
1652
1653         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1654
1655 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
1656
1657         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
1658         Add a leading slash to rtkaio.
1659
1660 2012-04-11  Jim Meyering  <meyering@redhat.com>
1661
1662         [BZ #11959]
1663         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
1664         It is not necessarily an error to ignore fwrite's return
1665         value.  One can reliably use ferror to test for errors after
1666         the fact.
1667
1668 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1669
1670         * bits/types.h (__snseconds_t): New type.
1671         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
1672
1673         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
1674         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1675         (__SNSECONDS_T_TYPE): Likewise.
1676         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1677         (__SNSECONDS_T_TYPE): Likewise.
1678         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1679         (__SNSECONDS_T_TYPE): Likewise.
1680
1681 2012-04-10  Andreas Jaeger  <aj@suse.de>
1682
1683         [BZ #2636]
1684         * manual/time.texi (Processor Time): Return type of times is
1685         elapsed real time since an arbitrary point in the past.
1686         (CPU Time): Move CLK_TCK from here...
1687         (Processor Time): ...to here.  Correct description.
1688         * manual/conf.texi (Constants for Sysconf): Correct description of
1689         _SC_CLK_TCK.
1690
1691 2012-04-10  David S. Miller  <davem@davemloft.net>
1692
1693         [BZ #13967]
1694         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
1695         where the is a gap between DT_REL(A) and DT_JMPREL.
1696
1697 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1698
1699         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
1700         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
1701         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
1702
1703 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1704
1705         * elf/dl-support.c (_dl_inhibit_cache): New variable.
1706         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
1707         (dl_main): Handle --inhibit-cache.
1708         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
1709         _dl_inhibit_cache.
1710         * elf/dl-load.c (_dl_map_object): Use it.
1711         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
1712
1713 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
1714
1715         [BZ #13872]
1716         * sysdeps/i386/fpu/e_powl.S (p78): New object.
1717         (__ieee754_powl): Saturate large exponents rather than testing for
1718         overflow of y*log2(x).
1719         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1720         * math/libm-test.inc (pow_test): Do not permit spurious overflow
1721         exceptions.
1722
1723         [BZ #11521]
1724         * math/s_ctan.c: Include <float.h>.
1725         (__ctan): Avoid internal overflow or cancellation in calculating
1726         denominator.
1727         * math/s_ctanf.c: Likewise.
1728         * math/s_ctanl.c: Likewise.
1729         * math/s_ctanh.c: Likewise.
1730         * math/s_ctanhf.c: Likewise.
1731         * math/s_ctanhl.c: Likewise.
1732         * math/libm-test.inc (ctan_test): Add more tests.
1733         (ctanh_test): Likewise.
1734         * sysdeps/i386/fpu/libm-test-ulps: Update.
1735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1736
1737 2012-04-09  Andreas Jaeger  <aj@suse.de>
1738
1739         [BZ #6894]
1740         * manual/filesys.texi (Directory Entries): Mention that d_namlen
1741         is an optional BSD extension.
1742
1743         [BZ #10254]
1744         * manual/stdio.texi (Opening Streams): Document additional fopen
1745         parameters.
1746
1747 2012-04-09  Roland McGrath  <roland@hack.frob.com>
1748
1749         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
1750         %eax without telling the compiler.
1751
1752 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
1753
1754         [BZ # 13963]
1755         * manual/install.texi: Use sourceware.org.
1756
1757 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
1758
1759         [BZ #13873]
1760         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
1761         (__ieee754_pow): Generate overflow and underflow using huge*huge
1762         and tiny*tiny rather than just returning constant infinity or zero
1763         for large exponents.
1764         * math/libm-test.inc (pow_test): Require overflow exceptions for
1765         applicable cases of large exponents.
1766
1767         [BZ #706]
1768         * sysdeps/i386/fpu/e_pow.S (p10): New object.
1769         (__ieee754_pow): Use iterative multiplication algorithm only for
1770         integer exponents with absolute value below 1024.  Check for odd
1771         integer exponents when using algorithm for real exponents.
1772         * math/libm-test.inc (pow_test): Add more tests.
1773         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1774
1775 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
1776
1777         [BZ #13705]
1778         * math/libm-test.inc (exp_test): Do not allow overflow exception
1779         on underflow test.
1780
1781 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
1782
1783         [BZ #13705]
1784         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
1785         instead of __kernel_standard_f.
1786
1787 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
1788
1789         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
1790         * sysdeps/x86_64/memset_chk.S: Likewise.
1791
1792 2012-04-08  Andreas Jaeger  <aj@suse.de>
1793
1794         [BZ #10153]
1795         * manual/startup.texi (Environment Access): Describe return value
1796         for putenv and setenv.
1797
1798         [BZ #6895]
1799         * manual/filesys.texi (Directory Entries): Add description for
1800         DT_LNK.
1801
1802         [BZ #6890]
1803         * manual/filesys.texi (Directory Entries): Clarify that it's file
1804         system not operating system in the description of DT_UNKNOWN.
1805
1806         [BZ #6578]
1807         * manual/syslog.texi (closelog): Fix reference, it's openlog.
1808
1809 2012-04-08  Stephen Compall  <s11@member.fsf.org>
1810
1811         [BZ #6649]
1812         * manual/llio.texi (Opening and Closing Files): Add cross
1813         reference to explain mode argument.
1814
1815 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
1816
1817         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
1818         * sysdeps/x86_64/memset_chk.S: Likewise.
1819
1820 2012-04-07  David S. Miller  <davem@davemloft.net>
1821
1822         * elf/elf.h (R_SPARC_WDISP10): Define.
1823         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
1824         R_SPARC_SIZE32.
1825         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
1826         R_SPARC_SIZE64 and R_SPARC_H34.
1827
1828 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
1829
1830         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
1831         conditions and remove no longer applicable assertion.
1832
1833 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1834
1835         * bits/byteswap.h: Include <features.h>.
1836         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
1837         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
1838
1839 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1840
1841         * bits/byteswap.h (__bswap_16): Removed.
1842         Include <bits/byteswap-16.h> to get __bswap_16.
1843         * sysdeps/i386/bits/byteswap.h: Likewise.
1844         * sysdeps/s390/bits/byteswap.h: Likewise.
1845         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1846         * bits/byteswap-16.h: New file.
1847         * sysdeps/i386/bits/byteswap-16.h: Likewise.
1848         * sysdeps/s390/bits/byteswap-16.h: Likewise.
1849         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
1850         * string/Makefile (headers): Add bits/byteswap-16.h.
1851
1852 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1853
1854         [BZ #13895]
1855         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
1856         extra indirection.
1857         * nss/Makefile (tests-static, tests): Add tst-nss-static.
1858         * nss/tst-nss-static.c: New.
1859
1860 2012-04-06  Robert Millan  <rmh@gnu.org>
1861
1862         [BZ #6486]
1863         * manual/llio.texi (File Position Primitive): lseek
1864         refers to WHENCE when it really means OFFSET.
1865
1866 2012-04-06  Andreas Jaeger  <aj@suse.de>
1867
1868         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
1869         strncmp declarations.
1870
1871         * abilist/libc.abilist: Add __poll and __ppoll.
1872
1873 2012-04-05  David S. Miller  <davem@davemloft.net>
1874
1875         * scripts/check-local-headers.sh: Accept a host triplet in the
1876         path matched by the exclude regexp.
1877
1878         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
1879         definition.
1880         * sysdeps/powerpc/powerpc32/dl-machine.h
1881         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
1882         * sysdeps/s390/s390-32/dl-machine.h
1883         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1884         * sysdeps/sparc/sparc32/dl-machine.h
1885         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1886         * sysdeps/sparc/sparc64/dl-machine.h
1887         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
1888
1889         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
1890         lazy binding.
1891         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
1892         undefined symbol errors.
1893
1894         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
1895         DT_NEEDED entries.
1896
1897 2012-04-05  Michael Matz  <matz@suse.de>
1898
1899         [BZ #13592]
1900         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
1901
1902 2012-04-05  Andreas Jaeger  <aj@suse.de>
1903
1904         [BZ #13908]
1905         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
1906         comment.
1907
1908 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1909
1910         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
1911         which ROUND is no valid rounding mode.
1912
1913 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1914
1915         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
1916         read again.
1917         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
1918
1919 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1920
1921         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
1922         an exception using FPU order intentionally.
1923
1924 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
1925
1926         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
1927         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
1928         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
1929         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
1930
1931 2012-04-05  Simon Josefsson  <simon@josefsson.org>
1932
1933         [BZ #12340]
1934         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
1935         EINVAL when BUFLEN is too smal.
1936
1937 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1938
1939         [BZ #13553]
1940         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
1941         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
1942
1943 2012-04-03  Andreas Jaeger  <aj@suse.de>
1944
1945         [BZ #13938]
1946         * manual/setjmp.texi (System V contexts): Fix sentence.
1947
1948         [BZ #13926]
1949         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
1950         New macro for this case.
1951         [!__GNUC__] (__bswap_64): New inline function for this case.
1952         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1953         * bits/byteswap.h: Likewise.
1954         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
1955         ull, guard with __GLIBC_HAVE_LONG_LONG.
1956
1957         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
1958         __GLIBC_HAVE_LONG_LONG.
1959
1960         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
1961         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
1962
1963 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1964
1965         [BZ #13691]
1966         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
1967         inptr and inend, rather than using last_ch.
1968
1969 2012-04-02  David S. Miller  <davem@davemloft.net>
1970
1971         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
1972         * stdio-common/printf-parse.h (read_int): Change return type to
1973         'int', return -1 on INT_MAX overflow.
1974         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
1975         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
1976         overflows INT_MAX.  Check for overflow of in-format-string precision
1977         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
1978         SIZE_MAX not INT_MAX for integer overflow test.
1979         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
1980         skip the construct in the format string but do not record anything.
1981         * stdio-common/bug22.c: Adjust to test both width/prevision
1982         INT_MAX overflow as well as total length INT_MAX overflow.  Check
1983         explicitly for proper errno values.
1984
1985 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1986
1987         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
1988         CHAR_MAX.
1989         * string/test-strcmp.c [! WIDE]: Likewise.
1990         * time/tst-mktime2.c: Likewise for INT_MAX.
1991         * string/test-string.h: #include <sys/param.h> for MIN.
1992
1993         * csu/init-first.c (__libc_init_first): Call __ctype_init.
1994         * sysdeps/i386/init-first.c (init): Likewise.
1995         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
1996         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
1997         * sysdeps/sh/init-first.c (init): Likewise.
1998
1999 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
2000
2001         * po/ru.po: Update from translation team.
2002         * po/vi.po: Likewise.
2003
2004 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
2005
2006         * resolv/nss_dns/dns-host.c: Merge copyright years.
2007
2008 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2009
2010         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
2011         Optimize memcpy with prefetch if
2012         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
2013         src, dst pointers have unequal 16 byte alignments.
2014
2015 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2016
2017         [BZ #13928]
2018         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
2019         from a CNAME entry and return the minimum ttl for the query.
2020         (gaih_getanswer_slice): Likewise.
2021
2022 2012-03-30  Jeff Law  <law@redhat.com>
2023
2024         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
2025         due to long keys.
2026         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
2027         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
2028
2029         * resolv/nss_dns/dns-host.c: Update copyright year.
2030
2031 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
2032
2033         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
2034         requests to save a system call.  Fix check that all bytes are sent.
2035
2036         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
2037         comments for sendmmsg.
2038
2039 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2040
2041         [BZ #13691]
2042         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
2043         with only 1 character between 0x0041 and 0x01b0.
2044         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
2045         * wcsmbs/tst-mbsnrtowcs.c: New file.
2046
2047 2012-03-29  David S. Miller  <davem@davemloft.net>
2048
2049         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
2050         small copies by hand.
2051
2052 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2053
2054         [BZ #13761]
2055         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
2056         _nss_compat_initgroups_dyn): Fall back to malloc/free
2057         for large group memberships.
2058
2059 2012-03-28  David S. Miller  <davem@davemloft.net>
2060
2061         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
2062         that branches into memcpy.
2063         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2064         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
2065         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2066         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
2067         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
2068         bits.
2069         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
2070         implementation too.
2071         * sysdeps/sparc/mempcpy.S: New file.
2072
2073         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
2074         the IFUNC routine in the libc case.
2075         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
2076
2077         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
2078         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
2079         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
2080         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
2081         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
2082         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
2083         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
2084         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
2085
2086         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
2087         loop to 256 bytes instead of 64 bytes and fix test signedness.
2088
2089         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
2090         * sysdeps/sparc/sparc32/Makefile: rather than here...
2091         * sysdeps/sparc/sparc64/Makefile: and here.
2092
2093 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
2094
2095         * malloc/mallocbug.c: Avoid warnings about unused variables.
2096
2097 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2098
2099         [BZ #13760]
2100         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
2101         in the right place. Discard and retry query if response is
2102         larger than input buffer size.
2103
2104 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
2105
2106         [BZ #369]
2107         [BZ #2678]
2108         [BZ #3866]
2109         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
2110         x for large integer exponent.
2111         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
2112         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
2113         sign of result as needed afterwards.
2114         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2115         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
2116         result for underflowing pow the same as for overflow.
2117         (__kernel_standard_l): Handle powl overflow and underflow here
2118         rather than calling __kernel_standard.
2119         * math/libm-test.inc (pow_test): Add more tests.
2120
2121         [BZ #3868]
2122         [BZ #13879]
2123         [BZ #13910]
2124         [BZ #13911]
2125         [BZ #13912]
2126         [BZ #13913]
2127         [BZ #13915]
2128         [BZ #13916]
2129         [BZ #13917]
2130         [BZ #13918]
2131         [BZ #13919]
2132         [BZ #13920]
2133         [BZ #13921]
2134         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
2135         * sysdeps/ieee754/k_standard.c: Include <float.h>.
2136         (__kernel_standard_l): New function.
2137         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
2138         __kernel_standard.
2139         * math/w_acosl.c (__acosl): Likewise.
2140         * math/w_asinl.c (__asinl): Likewise.
2141         * math/w_atan2l.c (__atan2l): Likewise.
2142         * math/w_atanhl.c (__atanhl): Likewise.
2143         * math/w_coshl.c (__coshl): Likewise.
2144         * math/w_exp10l.c (__exp10l): Likewise.
2145         * math/w_exp2l.c (__exp2l): Likewise.
2146         * math/w_fmodl.c (__fmodl): Likewise.
2147         * math/w_hypotl.c (__hypotl): Likewise.
2148         * math/w_j0l.c (__j0l, __y0l): Likewise.
2149         * math/w_j1l.c (__j1l, __y1l): Likewise.
2150         * math/w_jnl.c (__jnl, __ynl): Likewise.
2151         * math/w_lgammal.c (__lgammal): Likewise.
2152         * math/w_log10l.c (__log10l): Likewise.
2153         * math/w_log2l.c (__log2l): Likewise.
2154         * math/w_logl.c (__logl): Likewise.
2155         * math/w_powl.c (__powl): Likewise.
2156         * math/w_remainderl.c (__remainderl): Likewise.
2157         * math/w_scalbl.c (sysv_scalbl): Likewise.
2158         * math/w_sinhl.c (__sinhl): Likewise.
2159         * math/w_sqrtl.c (__sqrtl): Likewise.
2160         * math/w_tgammal.c (__tgammal): Likewise.
2161         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
2162         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
2163         * math/libm-test.inc (acos_test): Add more tests.
2164         (acosh_test): Likewise.
2165         (asin_test): Likewise.
2166         (atanh_test): Likewise.
2167         (exp_test): Likewise.
2168         (exp10_test): Likewise.
2169         (exp2_test): Likewise.
2170         (expm1_test): Likewise.
2171         (lgamma_test): Likewise.
2172         (log_test): Likewise.
2173         (log10_test): Likewise.
2174         (log1p_test): Likewise.
2175         (log2_test): Likewise.
2176         (pow_test): Do not allow some spurious overflow exceptions.
2177         (sqrt_test): Add more tests.
2178         (tgamma_test): Likewise.
2179         (y0_test): Likewise.
2180         (y1_test): Likewise.
2181         (yn_test): Likewise.
2182
2183 2012-03-27  Anton Blanchard  <anton@samba.org>
2184
2185         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
2186         MAP_HUGETLB.
2187         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2188         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2189         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2190
2191 2012-03-27  David S. Miller  <davem@davemloft.net>
2192
2193         * conform/Makefile: Run run-conformtest.sh using $(BASH).
2194
2195         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
2196         have-as-vis3 check.
2197
2198 2012-03-27  Andreas Jaeger  <aj@suse.de>
2199
2200         * sysdeps/x86_64/elf/configure.in: Moved to ...
2201         * sysdeps/x86_64/configure.in: ... here.
2202         * sysdeps/x86_64/elf/start.S: Moved to ...
2203         * sysdeps/x86_64/start.S: ... here.
2204         * sysdeps/x86_64/elf/configure: Delete.
2205
2206         * sysdeps/x86_64/configure.in: Merge contents from
2207         sysdeps/i386/configure.in (without i686 check).
2208
2209         * sysdeps/i386/elf/Versions: Merge into ...
2210         * sysdeps/i386/Versions: ... this.
2211         * sysdeps/i386/elf/Versions: Delete file.
2212         * sysdeps/i386/elf/start.S: Moved to ...
2213         * sysdeps/i386/start.S: ...here.
2214         * sysdeps/i386/elf/configure.in: Merge into...
2215         * sysdeps/i386/configure.in: ...here.
2216         * sysdeps/i386/elf/configure.in: Delete file.
2217         * sysdeps/i386/elf/configure: Delete file.
2218
2219         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
2220         * debug/backtracesyms.c: ... here.
2221         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
2222         * debug/backtracesymsfd.c: ... here.
2223         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
2224         * sysdeps/generic/ifunc-sel.h: ... here.
2225
2226         * sysdeps/unix/i386/start.c: Delete file.
2227         * sysdeps/unix/sparc/start.c: Delete file.
2228         * sysdeps/unix/start.c: Delete file.
2229
2230         * sysdeps/sh/elf/configure.in: Moved to ...
2231         * sysdeps/sh/configure.in: ... here.
2232         * sysdeps/sh/elf/start.S: Moved to ...
2233         * sysdeps/sh/start.S: ... here.
2234         * sysdeps/sh/elf/configure: Delete file.
2235
2236         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
2237         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
2238         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
2239         * sysdeps/powerpc/powerpc64/entry.h: ... here.
2240         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
2241         * sysdeps/powerpc/powerpc64/start.S: here.
2242         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
2243         * sysdeps/powerpc/powerpc64/Makefile: ... this.
2244         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
2245         * sysdeps/powerpc/powerpc64/configure.in: ... this.
2246         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
2247
2248         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
2249         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
2250         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
2251         * sysdeps/powerpc/powerpc32/start.S: ... here.
2252         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
2253         * sysdeps/powerpc/powerpc32/configure.in: ... this.
2254         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
2255
2256         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
2257         * sysdeps/powerpc/ifunc-sel.h: ... here.
2258         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
2259         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
2260
2261         * sysdeps/sparc/elf/configure.in: Moved to ...
2262         * sysdeps/sparc/configure.in: ... here.
2263         * sysdeps/sparc/elf/configure: Delete file.
2264         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
2265         * sysdeps/sparc/sparc32/start.S: ... here.
2266         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
2267         * sysdeps/sparc/sparc64/start.S: ... here.
2268         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
2269         * sysdeps/sparc/sparc32/Makefile: ... this.
2270         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
2271         * sysdeps/sparc/sparc64/Makefile: ... this.
2272
2273         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
2274         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
2275         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
2276         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
2277         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
2278         * sysdeps/s390/s390-32/setjmp.S: ... here.
2279         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
2280         * sysdeps/s390/s390-32/configure.in: ... here.
2281         * sysdeps/s390/s390-32/elf/configure: Delete file.
2282         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
2283         * sysdeps/s390/s390-32/start.S: ... here.
2284
2285         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
2286         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
2287         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
2288         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
2289         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
2290         * sysdeps/s390/s390-64/setjmp.S: ... here.
2291         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
2292         * sysdeps/s390/s390-64/configure.in: ... here
2293         * sysdeps/s390/s390-64/elf/configure: Delete file.
2294         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
2295         * sysdeps/s390/s390-64/start.S: ... here.
2296         * sysdeps/s390/s390-64/elf/configure: Delete.
2297
2298         * configure.in: Remove support for elf directories in sysdeps.
2299
2300         * configure: Regenerated.
2301         * sysdeps/i386/configure: Regenerated.
2302         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2303         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2304         * sysdeps/s390/s390-32/configure: Regenerated.
2305         * sysdeps/s390/s390-64/configure: Regenerated.
2306         * sysdeps/sh/configure: Regenerated.
2307         * sysdeps/sparc/configure: Regenerated.
2308         * sysdeps/x86_64/configure: Regenerated.
2309
2310 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
2311
2312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2313
2314         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
2315         denormal result into account.
2316
2317 2012-03-25  Roland McGrath  <roland@hack.frob.com>
2318
2319         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
2320         Reported by Allan McRae <allan@archlinux.org>.
2321
2322 2012-03-23  Jeff Law  <law@redhat.com>
2323
2324         * nss/getnssent.c (__nss_getent): Fix typo.
2325
2326 2012-03-23  David S. Miller  <davem@davemloft.net>
2327
2328         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2329
2330 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
2331
2332         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
2333         to pad to uint64_t for each field.
2334         (dl_tls_index): Replace unsigned long with uint64_t.
2335
2336 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
2337         Paul Pluzhnikov  <ppluzhnikov@google.com>
2338
2339         [BZ #6528]
2340         * grp/Makefile (otherlibs): Don't set it.
2341         * inet/Makefile (otherlibs): Likewise.
2342         * login/Makefile (otherlibs): Likewise.
2343         * nscd/Makefile (otherlibs): Likewise.
2344         * posix/Makefile (otherlibs): Likewise.
2345         * pwd/Makefile (otherlibs): Likewise.
2346         * rt/Makefile (otherlibs): Likewise.
2347         * sunrpc/Makefile (otherlibs): Likewise.
2348         * nss/Makefile (otherlibs): Likewise.
2349         Add libnss_files to routines and static-only-routines.
2350         ($(objpfx)getent): Remove rule.
2351         * resolv/Makefile: Add libnss_dns and libresolv to routines and
2352         static-only-routines.
2353
2354 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2355
2356         [BZ #13892]
2357         * math/s_cexp.c: Include <float.h>.
2358         (__cexp): Handle exp result overflowing not necessarily
2359         overflowing both real and imaginary parts of result.
2360         * math/s_cexpf.c: Likewise.
2361         * math/s_cexpl.c: Likewise.
2362         * math/libm-test.inc (cexp_test): Add more tests.
2363         * sysdeps/i386/fpu/libm-test-ulps: Update.
2364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2365
2366 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2367
2368         * include/link.h (ELFW): New macro.
2369         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
2370         Replace ELF64_R_TYPE with ELFW(R_TYPE).
2371
2372 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2373
2374         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
2375         with uint64_t.
2376
2377 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2378
2379         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
2380         declaration.
2381         (struct La_x32_retval): Likewise.
2382
2383 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2384
2385         * sysdeps/x86_64/preconfigure.in: New file.
2386         * sysdeps/x86_64/preconfigure: New generated file.
2387
2388 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
2389
2390         [BZ #13824]
2391         * math/e_exp2l.c: Include <float.h>.
2392         (__ieee754_exp2l): Handle overflow and underflow cases
2393         separately.  Only pass fractional part of argument to
2394         __ieee754_expl.
2395         * math/libm-test.inc (exp2_test): Add more tests.
2396
2397         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
2398         negating x to take absolute value.
2399         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
2400         Likewise.
2401         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
2402         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
2403         Likewise.
2404         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
2405         computing low part if x was negated.
2406         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
2407
2408 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2409
2410         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
2411         la_x32_gnu_pltexit.
2412         (pltexit): Cast int_retval to ptrdiff_t.
2413         * elf/tst-auditmod3b.c: Likewise.
2414         * elf/tst-auditmod4b.c: Likewise.
2415         * elf/tst-auditmod5b.c: Likewise.
2416         * elf/tst-auditmod6b.c: Likewise.
2417         * elf/tst-auditmod6c.c: Likewise.
2418         * elf/tst-auditmod7b.c: Likewise.
2419
2420         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
2421         and x32_gnu_pltexit.
2422
2423         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
2424         __ELF_NATIVE_CLASS.
2425         (La_x32_regs): New macro.
2426         (La_x32_retval): Likewise.
2427         (la_x32_gnu_pltenter): New function prototype.
2428         (la_x32_gnu_pltexit): Likewise.
2429
2430 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
2431
2432         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
2433         exponent.
2434
2435         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2436
2437         * configure.in (libc_cv_cc_nofma): Check for option to disable
2438         generation of FMA instructions.
2439         * configure: Regenerate.
2440         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
2441         * sysdeps/ieee754/dbl-64/Makefile: New file.
2442         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2443         Remove brandred-fma4.
2444         (CFLAGS-brandred-fma4.c): Remove.
2445         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
2446         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
2447         define.
2448         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
2449         define.
2450
2451 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2452
2453         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
2454         LLONG_MAX != LONG_MAX.
2455         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2456         (_fitoa_word): Likewise.
2457         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
2458         LLONG_MAX != LONG_MAX.
2459         * stdio-common/_itowa.h: Include <_itoa.h>.
2460         (_itowa_word): Use _ITOA_WORD_TYPE on value.
2461         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
2462         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
2463         only if not defined.
2464         (_ITOA_WORD_TYPE): Likewise.
2465         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2466         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
2467
2468 2012-03-21  David S. Miller  <davem@davemloft.net>
2469
2470         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2471
2472 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
2473
2474         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
2475         of x86_64 when setting libc_cv_slibdir, libdir and
2476         libc_cv_localedir.
2477         * sysdeps/unix/sysv/linux/configure: Regenerated.
2478
2479 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2480
2481         * manual/lang.texi (Old Varargs): Remove section.
2482         (How Variadic): Update menu.
2483         (va_start): Do not mention varargs.h.
2484
2485 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2486             Joseph Myers  <joseph@codesourcery.com>
2487
2488         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
2489         link test.
2490         * configure: Regenerated.
2491
2492 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2493
2494         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
2495         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
2496         conformtest.pl
2497
2498 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2499
2500         * NOTES: Remove.
2501         * Makefile (files-for-dist): Remove NOTES.
2502         (NOTES): Remove rule.
2503         * README: Don't refer to NOTES.
2504         * manual/creature.texi: Don't include macros.texi.
2505         * manual/intro.texi (creature.texi): Remove comment referring to
2506         NOTES.
2507
2508         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
2509         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
2510         * configure: Regenerated.
2511         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
2512         LIBC_TRY_CC_OPTION.
2513         (libc_cv_as_i686): Likewise.
2514         (libc_cv_cc_avx): Likewise.
2515         (libc_cv_cc_sse2avx): Likewise.
2516         (libc_cv_cc_fma4): Likewise.
2517         (libc_cv_cc_novzeroupper): Likewise.
2518         * sysdeps/i386/configure: Regenerated.
2519
2520         [BZ #13883]
2521         * sysdeps/i386/fpu/s_cexp.S: Remove.
2522         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
2523         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
2524         * math/libm-test.inc (cexp_test): Add more tests.
2525         * sysdeps/i386/fpu/libm-test-ulps: Update.
2526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2527
2528 2012-03-21  Allan McRae  <allan@archlinux.org>
2529
2530         * timezone/Makefile: Do not install iso3166.tab and zone.tab
2531
2532 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
2533
2534         [BZ #13871]
2535         * math/w_exp2.c: Do not include <float.h>.
2536         (o_threshold, u_threshold): Remove.
2537         (__exp2): Calculate result before checking finiteness and calling
2538         __kernel_standard.
2539         * math/w_exp2f.c: Likewise.
2540         * math/w_exp2l.c: Likewise.
2541         * math/libm-test.inc (exp2_test): Require overflow exception for
2542         1e6 input.
2543
2544         [BZ #3866]
2545         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
2546         range of signed 64-bit integers before using fistpll.  Remove
2547         checks for whether integers fit in mantissa bits.
2548         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
2549         the range of signed 32-bit integers before using fistpl.  Remove
2550         checks for whether integers fit in mantissa bits.
2551         * sysdeps/i386/fpu/e_powl.S (p64): New object.
2552         (__ieee754_powl): Test for y outside the range of signed 64-bit
2553         integers before using fistpll.  Reduce 64-bit values to 63-bit
2554         ones as needed.
2555         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
2556         divide-by-zero is raised for zero to large negative powers.
2557         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
2558         (__ieee754_powl): Test for y outside the range of signed 64-bit
2559         integers before using fistpll.  Reduce 64-bit values to 63-bit
2560         ones as needed.
2561         * math/libm-test.inc (pow_test): Add more tests.
2562
2563 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2564
2565         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
2566         <stdio-common/_itoa.h>.
2567         * debug/segfault.c: Likewise.
2568         * elf/dl-cache.c: Likewise.
2569         * elf/dl-minimal.c: Likewise.
2570         * elf/dl-misc.c: Likewise.
2571         * elf/dl-sysdep.c: Likewise.
2572         * elf/dl-version.c: Likewise.
2573         * elf/rtld.c: Likewise.
2574         * hurd/hurdsock.c: Likewise.
2575         * hurd/lookup-retry.c: Likewise.
2576         * malloc/malloc.c: Likewise.
2577         * malloc/mtrace.c: Likewise.
2578         * nscd/nscd_getgr_r.c: Likewise.
2579         * nscd/nscd_getpw_r.c: Likewise.
2580         * nscd/nscd_getserv_r.c: Likewise.
2581         * posix/getopt_init.c: Likewise.
2582         * posix/wordexp.c: Likewise.
2583         * stdio-common/_itoa.c: Likewise.
2584         * stdio-common/printf_fphex.c: Likewise.
2585         * stdio-common/vfprintf.c: Likewise.
2586         * string/_strerror.c: Likewise.
2587         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
2588         * sysdeps/i386/i686/hp-timing.h: Likewise.
2589         * sysdeps/mach/_strerror.c: Likewise.
2590         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
2591         * sysdeps/mach/hurd/sethostid.c: Likewise.
2592         * sysdeps/mach/hurd/xmknodat.c: Likewise.
2593         * sysdeps/mach/xpg-strerror.c: Likewise.
2594         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
2595         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
2596         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
2597         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
2598         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
2599         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
2600         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2601         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2602         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
2603         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
2604         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
2605         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2606         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
2607         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
2608         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
2609         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2610         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
2611         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
2612         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2613         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2614         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
2615
2616         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
2617
2618         * stdio-common/_itoa.h: Moved to ...
2619         * sysdeps/generic/_itoa.h: Here.
2620
2621         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
2622
2623         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
2624         instead of "_itoa.h" and "_itowa.h".
2625         * stdio-common/vfprintf.: Likewise.
2626
2627 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2628
2629         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
2630         <bits/wordsize.h>.
2631         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
2632         (__signbit): Likwise.
2633         (llrintf): Likwise.
2634         (llrint): Likwise.
2635
2636 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2637
2638         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
2639         __WORDSIZE != 64.
2640
2641 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
2642
2643         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
2644         OVERFLOW_EXCEPTION_OK.
2645         * math/libm-test.inc ("Philosophy"): Update comment about
2646         exception testing.
2647         (OVERFLOW_EXCEPTION): Define.
2648         (OVERFLOW_EXCEPTION_OK): Likewise.
2649         (INVALID_EXCEPTION_OK): Renumber.
2650         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2651         (IGNORE_ZERO_INF_SIGN): Likewise.
2652         (test_exceptions): Handle FE_OVERFLOW.
2653         (exp10_test): Expect overflow exceptions.
2654         (exp2_test): Likewise.
2655         (expm1_test): Likewise.
2656         (nextafter_test): Likewise.
2657         (pow_test): Likewise.
2658         (scalbn_test): Likewise.
2659         (scalbln_test): Likewise.
2660
2661 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2662
2663         * sysdeps/x86_64/bits/atomic.h
2664         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
2665         64bit integer.
2666         (atomic_exchange_acq): Likewise.
2667         (__arch_exchange_and_add_body): Likewise.
2668         (__arch_add_body): Likewise.
2669         (atomic_add_negative): Likewise.
2670         (atomic_add_zero): Likewise.
2671
2672 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2673
2674         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
2675         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
2676
2677 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2678
2679         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
2680         Check __x86_64__ instead of __WORDSIZE.
2681
2682 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2683
2684         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
2685
2686 2012-03-19  David S. Miller  <davem@davemloft.net>
2687
2688         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2689
2690         * sysdeps/sparc/fpu/fenv_private.h: New file.
2691         * sysdeps/sparc/fpu/math_private.h: Use it.
2692         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
2693         Remove.
2694         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
2695         (libc_feholdexcept_setroundl): Remove.
2696         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
2697         Remove.
2698         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
2699         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
2700
2701 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2702
2703         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
2704         int64_t instead of long int.
2705         (INSERT_WORDS64): Likwise.
2706
2707 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
2708
2709         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
2710         _Unwind_GetCFA return to _Unwind_Ptr first.
2711
2712 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
2713
2714         [BZ #13629]
2715         * math/s_clog.c: Include <float.h>.
2716         (__clog): Scale large or subnormal inputs.
2717         * math/s_clogf.c: Likewise.
2718         * math/s_clogl.c: Likewise.
2719         * math/s_clog10.c: Include <float.h>.
2720         (M_LOG10_2): Define.
2721         (__clog10): Scale large or subnormal inputs.
2722         * math/s_clog10f.c: Likewise.
2723         * math/s_clog10l.c: Likewise.
2724         * math/libm-test.inc (clog_test): Add more tests.
2725         (clog10_test): Likewise.
2726         * sysdeps/i386/fpu/libm-test-ulps: Update.
2727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2728
2729         [BZ #11451]
2730         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
2731         x and y.
2732         * math/libm-test.inc (atan2_test): Add another test.
2733
2734         * Makerules (common-objdir-compile): Remove.
2735         * sysdeps/unix/Makefile (config-generated): Do not add
2736         $(unix-generated) to variable.
2737         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
2738         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
2739         Remove rule.
2740         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
2741         Likewise.
2742         [generic bits/local_lim.h] (before-compile): Do not append to
2743         variable.
2744         [generic bits/local_lim.h] (common-generated): Likewise.
2745         [generic sys/param.h] (before-compile): Do not append to variable.
2746         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
2747         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
2748         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
2749         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
2750         include.
2751         [generic sys/param.h] (sys/param.h-includes): Remove variable.
2752         [generic sys/param.h] (sys/param.h-includes): Remove rule.
2753         [generic sys/param.h] ($(addprefix
2754         $(common-objpfx),$(sys/param.h-includes))): Likewise.
2755         [generic sys/param.h] (common-generated): Do not append to
2756         variable.
2757         [generic sys/param.h] (sysdep_headers): Likewise.
2758         [generic bits/errno.h] (before-compile): Do not append to
2759         variable.
2760         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
2761         rule.
2762         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
2763         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
2764         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
2765         [generic bits/errno.h] (common-generated): Do not append to
2766         variable.
2767         [generic bits/ioctls.h] (before-compile): Do not append to
2768         variable.
2769         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
2770         rule.
2771         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
2772         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
2773         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
2774         rule.
2775         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
2776         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
2777         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
2778         [generic bits/ioctls.h] (common-generated): Do not append to
2779         variable.
2780         [generic sys/syscall.h] (syscall.h): Remove variable.
2781         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
2782         rule.
2783         [generic sys/syscall.h] (before-compile): Do not append to
2784         variable.
2785         [generic sys/syscall.h] (common-generated): Likewise.
2786         * sysdeps/unix/errnos-tmpl.c: Remove file.
2787         * sysdeps/unix/errnos.awk: Likewise.
2788         * sysdeps/unix/ioctls-tmpl.c: Likewise.
2789         * sysdeps/unix/ioctls.awk: Likewise.
2790         * sysdeps/unix/mk-local_lim.c: Likewise.
2791         * sysdeps/unix/snarf-ioctls: Likewise.
2792
2793 2012-03-19  Richard Henderson  <rth@twiddle.net>
2794
2795         * sysdeps/i386/fpu/fenv_private.h: New file.
2796         * sysdeps/i386/fpu/math_private.h: Use it.
2797         (math_opt_barrier, math_force_eval): Remove.
2798         (libc_feholdexcept_setround_53bit): Remove.
2799         (libc_feupdateenv_53bit): Remove.
2800         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2801         (math_opt_barrier, math_force_eval): Remove.
2802         (libc_feholdexcept): Remove.
2803         (libc_feholdexcept_setround): Remove.
2804         (libc_fetestexcept, libc_fesetenv): Remove.
2805         (libc_feupdateenv_test): Remove.
2806         (libc_feupdateenv, libc_feholdsetround): Remove.
2807         (libc_feresetround): Remove.
2808
2809         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
2810         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
2811
2812         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
2813         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
2814         (libc_feupdateenv_testl): New.
2815         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
2816         (libc_feupdateenv_testf): New.
2817         (libc_feupdateenv): Use libc_feupdateenv_test.
2818         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
2819         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
2820
2821         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
2822         (libc_feholdsetroundf, libc_feholdsetroundl): New.
2823         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
2824         (libc_feresetround_noex): New.
2825         (libc_feresetround_noexf): New.
2826         (libc_feresetround_noexl): New.
2827         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
2828         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
2829         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
2830         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
2831         SET_RESTORE_ROUND.
2832         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
2833         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
2834         (__cos): Likewise.
2835         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
2836         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
2837         SET_RESTORE_ROUND_NOEX.
2838         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
2839         SET_RESTORE_ROUND_NOEXF.
2840         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
2841         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
2842         (libc_feholdsetroundf): New.
2843         (libc_feresetround, libc_feresetroundf): New.
2844
2845         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
2846         (libc_feholdexcept_setround_53bit): Convert from macro to function.
2847         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
2848
2849         * sysdeps/generic/math_private.h: Include <fenv.h>.
2850         (default_libc_feholdexcept): New.
2851         (default_libc_feholdexcept_setround): New.
2852         (default_libc_fesetenv, default_libc_feupdateenv): New.
2853         (libc_feholdexcept): Only define if undefined.
2854         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
2855         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
2856         (libc_feholdexcept_setroundl): Likewise.
2857         (libc_feholdexcept_setround_53bit): Likewise.
2858         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
2859         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
2860         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
2861         (libc_feupdateenv_53bit): Likewise.
2862         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
2863         (libc_feholdexcept): Convert from macro to inline function.
2864         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
2865         (libc_fesetenv, libc_feupdateenv): Likewise.
2866
2867         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
2868         not previously defined.
2869         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
2870         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
2871         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
2872         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
2873         * sysdeps/ieee754/flt-32/math_private.h: New file.
2874         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
2875         math_private.h below SET_FLOAT_WORD.
2876         (__isnan, __isinf_ns, __finite): Remove.
2877         (__isnanf, __isinf_nsf, __finitef): Remove.
2878
2879 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
2880
2881         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2882
2883 2012-03-17  David S. Miller  <davem@davemloft.net>
2884
2885         [BZ #6471]
2886         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
2887         for 2.16.
2888
2889 2012-03-16  David S. Miller  <davem@davemloft.net>
2890
2891         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
2892         warnings.
2893
2894         [BZ #6471]
2895         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
2896         properly.
2897         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
2898         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
2899         sysdep_routines when subdir is sysvipc.
2900         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
2901         __getshmlba helper.
2902
2903         * sysdeps/sparc/fpu/libm-test/ulps: Update.
2904
2905 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2906
2907         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
2908         [__LP64__].
2909
2910 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2911
2912         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
2913         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
2914         (__lround): Renamed to ...
2915         (__llround): This.  Replace long int with long long int.
2916         Define lround functions as aliases of llround functions.
2917         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
2918
2919 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2920
2921         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2922         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
2923         adresses to uintptr_t.  Replace "long int" and "unsigned long
2924         int" with "greg_t" on va_arg.
2925
2926 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2927
2928         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
2929         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
2930
2931         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
2932         Move e_machine check before EI_CLASS check.  Handle x32
2933         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
2934         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
2935         SKIP_EM_IA_64 and include
2936         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
2937
2938         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
2939         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
2940         (add_system_dir): New macro.
2941
2942         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
2943         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
2944
2945 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
2946
2947         [BZ #2551]
2948         [BZ #2552]
2949         [BZ #2553]
2950         [BZ #2554]
2951         [BZ #2562]
2952         [BZ #2563]
2953         [BZ #2565]
2954         [BZ #2566]
2955         [BZ #2576]
2956         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
2957         (y0): Likewise.
2958         * math/w_j0f.c (j0f): Likewise.
2959         (y0f): Likewise.
2960         * math/w_j0l.c (__j0l): Likewise.
2961         (__y0l): Likewise.
2962         * math/w_j1.c (j1): Likewise.
2963         (y1): Likewise.
2964         * math/w_j1f.c (j1f): Likewise.
2965         (y1f): Likewise.
2966         * math/w_j1l.c (__j1l): Likewise.
2967         (__y1l): Likewise.
2968         * math/w_jn.c (jn): Likewise.
2969         (yn): Likewise.
2970         * math/w_jnf.c (jnf): Likewise.
2971         (ynf): Likewise.
2972         * math/w_jnl.c (__jnl): Likewise.
2973         (__ynl): Likewise.
2974         * math/libm-test.inc (j0_test): Add more tests.
2975         (j1_test): Likewise.
2976         (jn_test): Likewise.  Add trailing semicolon to existing test.
2977         (y0_test): Likewise.
2978         (y1_test): Likewise.
2979         * sysdeps/i386/fpu/libm-test-ulps: Update.
2980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2981
2982         [BZ #13851]
2983         [BZ #13854]
2984         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
2985         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
2986         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
2987         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
2988         (__tanl): Set errno for infinite argument.
2989         * sysdeps/i386/fpu/mptan.c: Remove.
2990         * sysdeps/i386/fpu/s_tan.S: Likewise.
2991         * sysdeps/i386/fpu/s_tanl.S: Likewise.
2992         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
2993         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
2994         * math/libm-test.inc (tan_test): Add more tests and enable more
2995         tests for double and long double.
2996         * sysdeps/i386/fpu/libm-test-ulps: Update.
2997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2998
2999 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3000
3001         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
3002         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
3003
3004 2012-03-16  Roland McGrath  <roland@hack.frob.com>
3005
3006         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
3007         * configure.in: Use it for both main tree and add-ons.
3008         * configure: Regenerated.
3009
3010 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3011
3012         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
3013
3014 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
3015
3016         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
3017         in comment.
3018
3019         [BZ #13851]
3020         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
3021         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
3022         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
3023         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
3024         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
3025         infinite argument.
3026         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
3027         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
3028         != 0 for prec == 2.
3029         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
3030         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
3031         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3032         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3033         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3034         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
3035         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
3036         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
3037         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3038         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
3039         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3040         * math/libm-test.inc (cos_test): Add more tests and enable more
3041         tests for long double.
3042         (sin_test): Likewise.
3043         (sincos_test): Likewise.
3044         * sysdeps/i386/fpu/libm-test-ulps: Update.
3045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3046
3047 2012-03-16  David S. Miller  <davem@davemloft.net>
3048
3049         * sysdeps/sparc/fpu/math_private.h: New file.
3050
3051 2012-03-15  David S. Miller  <davem@davemloft.net>
3052
3053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
3054         file.
3055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
3056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
3057         file.
3058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
3059         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
3060         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
3061         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
3062         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
3063         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
3064         sysdep routines.
3065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3066
3067         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
3068         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
3069
3070         * sysdeps/sparc/sparc-ifunc.h: New file.
3071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
3072         sparc-ifunc.h
3073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
3074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3075         Likewise.
3076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
3077         Likewise.
3078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
3079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
3080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
3082         Likewise.
3083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
3085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
3087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
3088         Likewise.
3089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
3090         Likewise.
3091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
3093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
3094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
3095         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
3096         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
3097         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
3098         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
3099         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
3100         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
3101         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
3102         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
3103         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
3104         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
3105         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
3106         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
3107         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
3108         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
3109         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
3110         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
3111         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
3112         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
3113         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
3114         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
3115
3116 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3117
3118         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
3119         scaling.
3120         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3121
3122 2012-03-15  Andreas Jaeger  <aj@suse.de>
3123
3124         [BZ #13852]
3125         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
3126         ieee754/flt-32 implementation for sin, cos and sincos.
3127         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
3128         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3129         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3130         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3131         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
3132         ieee754/flt-32 implementation for tan.
3133
3134         * math/libm-test.inc (cos_test): Enable some large input tests for
3135         float as well
3136         (sin_test): Likewise.
3137         (sincos_test): Likewise.
3138         (tan_test): Add tests for large input.
3139
3140         * sysdeps/i386/fpu/libm-test-ulps: Update.
3141
3142 2012-03-15  Andreas Jaeger  <aj@suse.de>
3143
3144         [BZ #13658]
3145         * math/libm-test.inc (cos_test): Add more test cases.
3146         (sin_test): Likewise.
3147         (sincos_test): Likewise.
3148
3149 2012-03-15  Andreas Jaeger  <aj@suse.de>
3150
3151         [BZ #13837]
3152         * math/libm-test.inc (cos_test): Add a test case for large input
3153         value.
3154         (sin_test): Likewise.
3155         (sincos_test): Likewise.
3156
3157 2012-03-15  Andreas Jaeger  <aj@suse.de>,
3158         Joseph Myers  <joseph@codesourcery.com>
3159
3160         [BZ #13658]
3161         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
3162         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
3163         * sysdeps/i386/fpu/branred.c: Likewise.
3164         * sysdeps/i386/fpu/dosincos.c: Likewise.
3165         * sysdeps/i386/fpu/mpa.c: Likewise.
3166         * sysdeps/i386/fpu/s_cos.S: Likewise.
3167         * sysdeps/i386/fpu/s_sin.S: Likewise.
3168         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3169         * sysdeps/i386/fpu/sincos32.c: Likewise.
3170
3171         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
3172         Define.
3173         (libc_feupdateenv_53bit): Define.
3174         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
3175         Define.
3176         (libc_feupdateenv_53bit): Define.
3177
3178         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
3179         53 bit (without extend i386 double precision).
3180
3181         * math/libm-test.inc (sincos_test): Add tests for large input.
3182         (sin): Likewise.
3183         (cos): Likewise.
3184
3185         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
3186
3187 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
3188
3189         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3190
3191 2012-03-15  David S. Miller  <davem@davemloft.net>
3192
3193         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
3194         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
3195         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
3196         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
3197         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
3198         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
3199         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
3200         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
3201         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
3202         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
3203         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
3204         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
3205         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
3206         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
3207         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
3208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
3209         file.
3210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
3211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
3212         file.
3213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
3214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
3215         file.
3216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
3217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
3218         file.
3219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
3220         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
3221         fmin/fmax sysdep routines.
3222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
3223
3224 2012-03-14  David S. Miller  <davem@davemloft.net>
3225
3226         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
3227         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
3228         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
3229         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
3230         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
3231         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
3232         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
3233         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
3234         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
3235         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
3236         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
3237         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
3238         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
3239         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
3240         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
3241         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
3242         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
3243         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
3244         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
3245         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
3246         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
3247         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
3248         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
3249         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
3250         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
3251         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
3252         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
3253         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
3254         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
3255         routines.
3256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
3257         file.
3258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
3259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
3260         file.
3261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
3262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
3263         file.
3264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
3265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
3266         file.
3267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
3268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
3269         file.
3270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
3271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
3272         file.
3273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
3274         file.
3275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
3276         file.
3277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
3278         file.
3279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
3280         New file.
3281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
3282         file.
3283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
3284         file.
3285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
3286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
3287         file.
3288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
3289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
3290         file.
3291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
3292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
3293         file.
3294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
3295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
3296         VIS3 routines.
3297
3298         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
3299         New file.
3300
3301         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3302
3303         * sysdeps/sparc/configure.in: New file.
3304         * sysdeps/sparc/configure: Generate.
3305         * configure.in (libc_cv_sparc_as_vis3): Substitute.
3306         * configure: Regenerate.
3307         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
3308         * config.make.in (have-as-vis3): New.
3309         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
3310         available use -Av9d instead of -Av9a.
3311         * sysdeps/sparc/sparc64/Makefile: Likewise.
3312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
3313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
3314         New file.
3315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
3316         file.
3317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
3318         New file.
3319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
3320         file.
3321         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
3322         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
3323         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
3324         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
3325         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
3326
3327         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
3328         fzeros/fnegs to load 0x80000000 into a float register instead of
3329         using the stack.
3330         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
3331
3332 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3333
3334         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3335         bits/syscall.h.
3336         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
3337         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
3338         ($(inst_includedir)/bits/syscall.h): Remove rule.
3339         ($(objpfx)bits/syscall.d): Include instead of
3340         $(objpfx)syscall-list.d.
3341         (generated): Change syscall-list.h and syscall-list.d to
3342         bits/syscall.h and bits/syscall.d.
3343
3344 2012-03-14  Roland McGrath  <roland@hack.frob.com>
3345
3346         [BZ #13846]
3347         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
3348
3349 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
3350
3351         [BZ #13841]
3352         * math/s_csqrt.c: Include <float.h>.
3353         (__csqrt): Scale large or subnormal inputs.
3354         * math/s_csqrtf.c: Likewise.
3355         * math/s_csqrtl.c: Likewise.
3356         * math/libm-test.inc (csqrt_test): Add more tests.
3357         * sysdeps/i386/fpu/libm-test-ulps: Update.
3358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3359
3360         [BZ #13840]
3361         * math/libm-test.inc (hypot_test): Add more tests.
3362
3363 2012-03-13  David S. Miller  <davem@davemloft.net>
3364
3365         [BZ #13840]
3366         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
3367         double-precision for the calculation instead of scaling.
3368
3369 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
3370
3371         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
3372         manipulate bits before adding and subtracting TWO52[sx].
3373         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
3374         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3375         Likewise.
3376         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
3377
3378 2012-03-13  David S. Miller  <davem@davemloft.net>
3379
3380         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
3381         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
3382         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
3383         rtld-global-offsets.h
3384         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3385
3386         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
3387         large parameters.
3388
3389         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
3390
3391         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
3392         'err' in the ifdef scope in which it is actually used.
3393
3394         * nss/nss_db/db-init.c: Include string.h
3395
3396 2012-03-12  David S. Miller  <davem@davemloft.net>
3397
3398         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
3399         masking out of the most significant byte of random value used.
3400         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3401         Fix coding style in previous change.
3402
3403         * sysdeps/unix/sysv/linux/kernel-features.h
3404         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
3405         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
3406         expression.
3407         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
3408         later.
3409
3410 2012-03-11  David S. Miller  <davem@davemloft.net>
3411
3412         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
3413         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
3414         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
3415         for 'resultvar' otherwise things get truncated on 64-bit.
3416
3417         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
3418         Fix masking out of the most significant byte of random value used.
3419
3420         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3421
3422 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
3423
3424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3425
3426 2012-03-09  David S. Miller  <davem@davemloft.net>
3427
3428         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
3429         variables with appropriate CPP guards.
3430         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
3431         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
3432         on resulting framesize and the management of the outregs buffer for pltexit.
3433         Preserve floating point return values across _dl_call_pltexit call.
3434         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
3435         framesize and the management of the outregs buffer for pltexit.
3436         Preserve floating point return values across _dl_call_pltexit
3437         call.
3438         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
3439         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
3440         (print_exit): Fix format string for return register value.
3441
3442 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
3443
3444         * sunrpc/Makefile (others): Add rpcgen.
3445         ($(objpfx)rpcgen): Remove special build rule and dependency on
3446         libc.
3447         * sunrpc/rpcgen.c: New file.
3448
3449 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
3450
3451         [BZ #13673]
3452         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
3453         * stdio-common/bug-vfprintf-nargs.c: Likewise.
3454         * sysdeps/i386/crti.S: Likewise.
3455         * sysdeps/i386/crtn.S: Likewise.
3456         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
3457         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
3458         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
3459         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
3460         * sysdeps/sh/crti.S: Likewise.
3461         * sysdeps/sh/crtn.S: Likewise.
3462         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3463
3464         [BZ #13673]
3465         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
3466         with URL.
3467         * locale/programs/locfile-kw.gperf: Likewise.
3468         * locale/programs/charmap-kw.h: Regenerated.
3469         * locale/programs/locfile-kw.h: Likewise.
3470
3471         [BZ #13673]
3472         * intl/plural.y: Replace FSF snail mail address with URL.
3473         * intl/plural.c: Regenerated.
3474
3475 2012-03-09  Richard Henderson  <rth@twiddle.net>
3476
3477         * include/math_private.h: Remove file.
3478         * math/math_private.h: Move file ...
3479         * sysdeps/generic/math_private.h: ... here.
3480
3481         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
3482         * sysdeps/powerpc/fpu/math_private.h: Likewise.
3483         * sysdeps/x86_64/fpu/math_private.h: Likewise.
3484
3485         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
3486         and <math_private.h>.
3487         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
3488         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3489         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
3490         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
3491         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
3492         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
3493         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3494         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3495         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3496         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3497         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3498         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3499         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3500         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3501         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3502         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3503         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3504         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3505         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3506         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
3507         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3508         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3509         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3510         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3511         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3512         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3513         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3514         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3515         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3516         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3517         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3518         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3519         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3520         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3521         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3522         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3523         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3524         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3525         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3526         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3527         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
3528         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3529         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
3530         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3531         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
3532         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3533         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3534         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3535         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3536         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3537         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3538         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3539         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
3540         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3541         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
3542         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3543         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
3544         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
3545         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
3546         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
3547         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3548         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3549         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3550         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3551         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
3552         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3553         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3554         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3555         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
3556         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
3557         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
3558         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
3559         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
3560         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3561         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
3562         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
3563         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
3564         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
3565         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
3566         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3567         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
3568         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
3569         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
3570         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
3571         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
3572         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
3573         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
3574         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
3575         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
3576         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
3577         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
3578         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
3579         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3580         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
3581         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
3582         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
3583         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
3584         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
3585         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3586         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3587         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
3588         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
3589         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
3590         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
3591         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3592         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
3593         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
3594         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
3595         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3596         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3597         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3598         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3599         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
3600         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3601         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
3602         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
3603         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3604         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3605         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3606         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3607         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3608         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
3609         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
3610         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
3611         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3612         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
3613         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
3614         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3615         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3616         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3617         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3618         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
3619         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3620         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3621         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3622         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
3623         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
3624         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
3625         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
3626         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
3627         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
3628         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
3629         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
3630         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
3631         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
3632         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3633         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3634         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
3635         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
3636         * sysdeps/ieee754/k_standard.c: Likewise.
3637         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
3638         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
3639         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
3640         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
3641         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
3642         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
3643         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
3644         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
3645         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
3646         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3647         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3648         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
3649         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3650         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
3651         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
3652         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
3653         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3654         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
3655         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
3656         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
3657         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
3658         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
3659         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3660         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
3661         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3662         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
3663         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
3664         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
3665         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
3666         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3667         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3668         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
3669         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
3670         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
3671         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3672         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
3673         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
3674         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
3675         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3676         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3677         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3678         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3679         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3680         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
3681         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3682         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3683         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
3684         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3685         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
3686         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3687         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3688         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3689         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
3690         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
3691         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3692         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3693         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
3694         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
3695         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
3696         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
3697         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3698         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3699         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3700         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
3701         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
3702         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
3703         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
3704         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
3705         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
3706         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
3707         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
3708         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
3709         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
3710         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
3711         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
3712         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
3713         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
3714         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
3715         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
3716         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3717         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3718         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
3719         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
3720         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
3721         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
3722         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
3723         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3724         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
3725         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3726         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
3727         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
3728         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
3729         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
3730         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3731         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
3732         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
3733         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
3734         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
3735         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
3736         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
3737         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
3738         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
3739         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3740         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
3741         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
3742         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3743         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3744         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
3745         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
3746         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
3747         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
3748         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3749         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
3750         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
3751         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
3752         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
3753         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
3754         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
3755         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3756         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
3757         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3758         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3759         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3760         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
3761         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
3762         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
3763         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3764         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
3765         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3766         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3767         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3768         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3769         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3770         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3771         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
3772         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
3773         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
3774         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3775         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3776         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3777         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3778         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3779         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3780         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3781         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
3782         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3783         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3784         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
3785         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
3786         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
3787         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3788         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
3789         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
3790         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3791         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
3792         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
3793         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3794         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
3795         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
3796         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3797         * sysdeps/ieee754/s_lib_version.c: Likewise.
3798         * sysdeps/ieee754/s_matherr.c: Likewise.
3799         * sysdeps/ieee754/s_signgam.c: Likewise.
3800         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
3801         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
3802         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
3803         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
3804         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
3805         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3806         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
3807         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
3808         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3809         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
3810         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3811         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
3812         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
3813         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
3814         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
3815         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
3816         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
3817         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
3818         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
3819         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3820         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3821
3822 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
3823
3824         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
3825         * sunrpc/rpc_main.c: Likewise.
3826         * sunrpc/rpc_svcout.c: Likewise.
3827
3828 2012-03-09  David S. Miller  <davem@davemloft.net>
3829
3830         * include/math_private.h: New file.
3831
3832 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
3833
3834         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
3835         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
3836         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
3837         from <bits/socket_type.h>.
3838         (enum __socket_type): Don't define here.
3839         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
3840         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3841         bits/socket_type.h.
3842
3843         [BZ #13566]
3844         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
3845         checking __USE_GNU.
3846
3847         * Makerules ($(inst_includedir)/%.h): New rule.
3848         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
3849         (install-others): Remove variable setting.
3850         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
3851
3852 2012-03-08  Richard Henderson  <rth@twiddle.net>
3853
3854         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
3855         from macro to inline function; merge with the
3856         !__LIBC_INTERNAL_MATH_INLINES version.
3857         (__ieee754_sqrtf): Likewise.
3858
3859         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
3860         to inline function.
3861         (__rintf, __floor, __floorf): Likewise.
3862
3863         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
3864         macro to inline function.
3865         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
3866
3867         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
3868         not <math/math_private.h>.
3869
3870 2012-03-08  David S. Miller  <davem@davemloft.net>
3871
3872         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
3873         copyright year.
3874         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
3875
3876 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
3877
3878         * resolv/gai_misc.c (handle_requests): Fix struct timespec
3879         normalization.
3880         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
3881         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
3882
3883 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
3884
3885         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
3886         be defined individually, they must be defined as a block.  Define
3887         S for printing a string instead of hidint the different by using a
3888         macro for adding the 'l'.
3889         * stdio-common/tst-fphex-wide.c: Adjust.
3890
3891 2012-03-07  Marek Polacek  <polacek@redhat.com>
3892
3893         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
3894
3895 2012-03-08  Marek Polacek  <polacek@redhat.com>
3896
3897         [BZ #13806]
3898         * stdio-common/Makefile (tests): Add tst-fphex-wide.
3899         * stdio-common/tst-fphex.c: Define a few macros to make the
3900         test reusable.  Use them.
3901         * stdio-common/tst-fphex-wide.c: New file.
3902
3903 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
3904
3905         [BZ #6911]
3906         * manual/macros.texi (gnusystems): New macro.
3907         (nongnusystems): Likewise.
3908         (gnulinuxhurdsystems): Likewise.
3909         (gnuhurdsystems): Likewise..
3910         (gnulinuxsystems): Likewise.
3911         * manual/charset.texi: Use new macros or @theglibc{} to refer to
3912         variants of the GNU system, not "GNU system".
3913         * manual/conf.texi: Likewise.
3914         * manual/errno.texi: Likewise.  Update example of errno macro
3915         expansion.
3916         * manual/filesys.texi: Likewise.
3917         (getumask): Document as specific to GNU/Hurd.
3918         * manual/install.texi: Likewise.  Reword some references to
3919         GNU/Linux.
3920         * manual/intro.texi: Likewise.
3921         * manual/io.texi: Likewise.
3922         (File Name Portability): Detail which constraints are inapplicable
3923         to all GNU systems and which are only inapplicable to GNU/Hurd.
3924         * manual/job.texi: Likewise.
3925         * manual/llio.texi: Likewise.
3926         (O_NOCTTY): Document as present on GNU/Linux.
3927         * manual/maint.texi: Likewise.
3928         * manual/memory.texi: Likewise.
3929         * manual/pattern.texi: Likewise.
3930         * manual/pipe.texi: Likewise.
3931         * manual/process.texi: Likewise.
3932         * manual/resource.texi: Likewise.
3933         (RUSAGE_CHILDREN): Remove statement about specifying a particular
3934         child on GNU/Hurd.
3935         * manual/setjmp.texi: Likewise.
3936         * manual/signal.texi: Likewise.
3937         * manual/startup.texi: Likewise.
3938         * manual/stdio.texi: Likewise.
3939         * manual/terminal.texi: Likewise.
3940         (ONLCR): Document as POSIX.
3941         (OXTABS): Document availability on GNU/Linux as XTABS.
3942         (ONOEOT): Document availability separately from other bits.
3943         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
3944         * manual/time.texi: Likewise.
3945         * manual/users.texi: Likewise.
3946         * INSTALL: Regenerated.
3947         * sysdeps/gnu/errlist.c: Regenerated.
3948
3949         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
3950         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
3951         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
3952         puts.
3953         * configure: Regenerated.
3954
3955 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
3956
3957         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
3958         default includes instead of AC_HEADER_CHECK.
3959         * sysdeps/i386/configure: Regenerated.
3960
3961         [BZ #10716]
3962         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
3963         * math/s_cacoshf.c (__cacoshf): Likewise.
3964         * math/s_cacoshl.c (__cacoshl): Likewise.
3965         * math/s_casinh.c (__casinh): Set signs of result from argument.
3966         * math/s_casinhf.c (__casinhf): Likewise.
3967         * math/s_casinhl.c (__casinhl): Likewise.
3968         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
3969         (casinh_test): Add more tests.
3970         * sysdeps/i386/fpu/libm-test-ulps: Update.
3971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3972
3973 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
3974
3975         * po/zh_TW.po: Update from translation team.
3976
3977         * login/Makefile (distribute): Remove variable.
3978         * catgets/Makefile: Likewise.
3979         * mach/Makefile: Likewise.
3980         * malloc/Makefile: Likewise.
3981         * misc/Makefile: Likewise.
3982         * iconv/Makefile: Likewise.
3983         * nscd/Makefile: Likewise.
3984         * hurd/Makefile: Likewise.
3985         * manual/Makefile: Likewise.
3986         * locale/Makefile: Likewise.
3987         * intl/Makefile: Likewise.
3988         * conform/Makefile: Likewise.
3989         * nss/Makefile: Likewise.
3990         * time/Makefile: Likewise.
3991         * soft-fp/Makefile: Likewise.
3992         * dirent/Makefile: Likewise.
3993         * gmon/Makefile: Likewise.
3994         * po/Makefile: Likewise.
3995         * rt/Makefile: Likewise.
3996         * socket/Makefile: Likewise.
3997         * math/Makefile: Likewise.
3998         * signal/Makefile: Likewise.
3999         * debug/Makefile: Likewise.
4000         * elf/Makefile: Likewise.
4001         * timezone/Makefile: Likewise.
4002         * stdlib/Makefile: Likewise.
4003         * iconvdata/Makefile: Likewise.
4004         * sunrpc/Makefile: Likewise.
4005         * io/Makefile: Likewise.
4006         * argp/Makefile: Likewise.
4007         * inet/Makefile: Likewise.
4008         * hesiod/Makefile: Likewise.
4009         * grp/Makefile: Likewise.
4010         * csu/Makefile: Likewise.
4011         * wctype/Makefile: Likewise.
4012         * crypt/Makefile: Likewise.
4013         * libio/Makefile: Likewise.
4014         * string/Makefile: Likewise.
4015         * nis/Makefile: Likewise.
4016         * resolv/Makefile: Likewise.
4017         * stdio-common/Makefile: Likewise.
4018         * wcsmbs/Makefile: Likewise.
4019         * dlfcn/Makefile: Likewise.
4020         * posix/Makefile: Likewise.
4021
4022         [BZ #6959]
4023         * timezone/Makefile: Don't install timezone files, just the programs
4024         and scripts.
4025
4026 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
4027
4028         * nss/databases.def: Add missing gshadow entry.
4029
4030         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
4031
4032 2012-03-06  Marek Polacek  <polacek@redhat.com>
4033
4034         [BZ #13726]
4035         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
4036         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
4037         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
4038         * stdio-common/tst-long-dbl-fphex.c: New file.
4039
4040 2012-03-06  David S. Miller  <davem@davemloft.net>
4041
4042         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4043         (set_obp_int): New function.
4044         (get_obp_int): New function.
4045         (__get_clockfreq_via_dev_openprom): Likewise.
4046         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4047         Avoid unused variable warnings on 'val' and use builtin_expect.
4048         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
4049         __builtin_expect.
4050         (INLINE_CLONE_SYSCALL): Likewise.
4051
4052 2012-03-05  David S. Miller  <davem@davemloft.net>
4053
4054         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4055
4056 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
4057
4058         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4059
4060         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
4061         only for |x| >= 40.
4062         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4063
4064 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
4065
4066         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
4067         Replace gettimeofday with __vdso_gettimeofday.
4068
4069         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4070         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
4071         __vdso_clock_gettime and __vdso_getcpu.
4072
4073         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
4074         time with __vdso_time.
4075
4076 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4077
4078         * manual/lang.texi (size_t): Note types to which size_t may be
4079         equivalent with the GNU C Library, but do not describe when
4080         differences between them are significant.
4081
4082 2012-03-05  Andreas Jaeger  <aj@suse.de>
4083
4084         * sysdeps/i386/fpu/libm-test-ulps: Update.
4085
4086 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
4087
4088         [BZ #3976]
4089         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
4090         (__ieee754_pow): Save and restore rounding mode and use
4091         round-to-nearest for main computations.
4092         * math/libm-test.inc (pow_test_tonearest): New function.
4093         (pow_test_towardzero): Likewise.
4094         (pow_test_downward): Likewise.
4095         (pow_test_upward): Likewise.
4096         (main): Call the new functions.
4097         * sysdeps/i386/fpu/libm-test-ulps: Update.
4098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4099
4100         [BZ #3976]
4101         * math/libm-test.inc (cosh_test_tonearest): New function.
4102         (cosh_test_towardzero): Likewise.
4103         (cosh_test_downward): Likewise.
4104         (cosh_test_upward): Likewise.
4105         (sinh_test_tonearest): Likewise.
4106         (sinh_test_towardzero): Likewise.
4107         (sinh_test_downward): Likewise.
4108         (sinh_test_upward): Likewise.
4109         (main): Call the new functions.
4110         * sysdeps/i386/fpu/libm-test-ulps: Update.
4111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4112
4113 2012-03-05  Tom de Vries  <tom@codesourcery.com>
4114
4115         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
4116         default stack guard is set in last bytes.
4117         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
4118
4119 2012-03-05  Kees Cook  <keescook@chromium.org>
4120
4121         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
4122
4123         [BZ #13656]
4124         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
4125         possibly allocate from heap instead of stack.
4126         * stdio-common/bug-vfprintf-nargs.c: New file.
4127         * stdio-common/Makefile (tests): Add nargs overflow test.
4128
4129 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
4130
4131         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4132
4133 2012-03-03  Marek Polacek  <polacek@redhat.com>
4134
4135         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
4136         * math/math_private.h: Likewise.
4137         * stdlib/tst-strtod.c: Likewise.
4138         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4139         * sysdeps/x86_64/bits/atomic.h: Likewise.
4140
4141 2012-03-02  David S. Miller  <davem@davemloft.net>
4142
4143         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
4144         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
4145         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
4146         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
4147         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
4148         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
4149         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
4150         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
4151
4152 2012-03-02  Roland McGrath  <roland@hack.frob.com>
4153
4154         [BZ #13792]
4155         * manual/examples/README: New file, says the example source files
4156         can be used under GPL>=2.
4157         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
4158         line containing just "*/".
4159         * manual/examples/add.c: Add copyright header (GPL>=2).
4160         * manual/examples/argp-ex1.c: Likewise.
4161         * manual/examples/argp-ex2.c: Likewise.
4162         * manual/examples/argp-ex3.c: Likewise.
4163         * manual/examples/argp-ex4.c: Likewise.
4164         * manual/examples/atexit.c: Likewise.
4165         * manual/examples/db.c: Likewise.
4166         * manual/examples/dir.c: Likewise.
4167         * manual/examples/dir2.c: Likewise.
4168         * manual/examples/execinfo.c: Likewise.
4169         * manual/examples/filecli.c: Likewise.
4170         * manual/examples/filesrv.c: Likewise.
4171         * manual/examples/fmtmsgexpl.c: Likewise.
4172         * manual/examples/genpass.c: Likewise.
4173         * manual/examples/inetcli.c: Likewise.
4174         * manual/examples/inetsrv.c: Likewise.
4175         * manual/examples/isockad.c: Likewise.
4176         * manual/examples/longopt.c: Likewise.
4177         * manual/examples/memopen.c: Likewise.
4178         * manual/examples/memstrm.c: Likewise.
4179         * manual/examples/mkfsock.c: Likewise.
4180         * manual/examples/mkisock.c: Likewise.
4181         * manual/examples/mygetpass.c: Likewise.
4182         * manual/examples/pipe.c: Likewise.
4183         * manual/examples/popen.c: Likewise.
4184         * manual/examples/rprintf.c: Likewise.
4185         * manual/examples/search.c: Likewise.
4186         * manual/examples/select.c: Likewise.
4187         * manual/examples/setjmp.c: Likewise.
4188         * manual/examples/sigh1.c: Likewise.
4189         * manual/examples/sigusr.c: Likewise.
4190         * manual/examples/stpcpy.c: Likewise.
4191         * manual/examples/strdupa.c: Likewise.
4192         * manual/examples/strftim.c: Likewise.
4193         * manual/examples/strncat.c: Likewise.
4194         * manual/examples/subopt.c: Likewise.
4195         * manual/examples/swapcontext.c: Likewise.
4196         * manual/examples/termios.c: Likewise.
4197         * manual/examples/testopt.c: Likewise.
4198         * manual/examples/testpass.c: Likewise.
4199         * manual/examples/timeval_subtract.c: Likewise.
4200
4201         [BZ #13792]
4202         * manual/time.texi (Elapsed Time): Move timeval_subtract example
4203         function to ...
4204         * manual/timeval_subtract.c.texi: ... here, new file.
4205
4206 2012-03-02  David S. Miller  <davem@davemloft.net>
4207
4208         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
4209
4210 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
4211
4212         [BZ #3976]
4213         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
4214         (__sin): Save and restore rounding mode and use round-to-nearest
4215         for all computations.
4216         (__cos): Save and restore rounding mode and use round-to-nearest
4217         for all computations.
4218         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
4219         <fenv.h>.
4220         (tan): Save and restore rounding mode and use round-to-nearest for
4221         all computations.
4222         * math/libm-test.inc (cos_test_tonearest): New function.
4223         (cos_test_towardzero): Likewise.
4224         (cos_test_downward): Likewise.
4225         (cos_test_upward): Likewise.
4226         (sin_test_tonearest): Likewise.
4227         (sin_test_towardzero): Likewise.
4228         (sin_test_downward): Likewise.
4229         (sin_test_upward): Likewise.
4230         (tan_test_tonearest): Likewise.
4231         (tan_test_towardzero): Likewise.
4232         (tan_test_downward): Likewise.
4233         (tan_test_upward): Likewise.
4234         (main): Call the new functions.
4235         * sysdeps/i386/fpu/libm-test-ulps: Update.
4236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4237
4238         [BZ #10135]
4239         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
4240         small n, then large n, before computing and testing k+n.
4241         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
4242         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
4243         Likewise.
4244         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
4245         Likewise.
4246         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
4247         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
4248         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
4249         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
4250         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4251         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4252         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
4253         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
4254         * math/libm-test.inc (scalbn_test): Add more tests.
4255         (scalbln_test): Likewise.
4256
4257         * manual/filesys.texi (mode_t): Describe constraints on size and
4258         signedness, not exact equivalence to a particular type.
4259         (ino_t): Likewise.
4260         (ino64_t): Likewise.
4261         (dev_t): Likewise.
4262         (nlink_t): Likewise.
4263         (blkcnt_t): Likewise.
4264         (blkcnt64_t): Likewise.
4265         * manual/llio.texi (off_t): Likewise.
4266
4267         [BZ #3976]
4268         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
4269         (__ieee754_exp): Save and restore rounding mode and use
4270         round-to-nearest for all computations.
4271         * math/libm-test.inc (exp_test_tonearest): New function.
4272         (exp_test_towardzero): Likewise.
4273         (exp_test_downward): Likewise.
4274         (exp_test_upward): Likewise.
4275         (main): Call the new functions.
4276         * sysdeps/i386/fpu/libm-test-ulps: Update.
4277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4278
4279 2012-03-01  Chris Demetriou  <cgd@google.com>
4280
4281         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
4282         have predictable order.
4283
4284 2012-03-01  David S. Miller  <davem@davemloft.net>
4285
4286         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
4287
4288         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
4289         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
4290         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
4291         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
4292
4293         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
4294         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
4295         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
4296         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
4297         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
4298         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
4299         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
4300         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
4301         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
4302
4303         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4304
4305         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
4306         * sysdeps/sparc/fpu/libm-test-ulps: to here.
4307         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
4308
4309         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
4310         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4311         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4312         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
4313         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
4314         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
4315         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
4316         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4317         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4318         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
4319         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
4320         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4321         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4322         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4323         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4324         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4325         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
4326         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
4327         * sysdeps/sparc/elf/configure: Regenerated.
4328
4329 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
4330
4331         * configure.in (AS, LD): Require binutils 2.20 or later.
4332         * configure: Regenerated.
4333         * manual/install.texi (Tools for Compilation): Give binutils 2.20
4334         as required minimum version.
4335         * INSTALL: Regenerated.
4336
4337         [BZ #2541]
4338         [BZ #4108]
4339         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
4340         before squaring exponent.
4341         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
4342         bottom long double and 27 bits of top long double before squaring
4343         exponent.
4344         * math/libm-test.inc (erfc_test): Add more tests.
4345         * sysdeps/i386/fpu/libm-test-ulps: Update.
4346         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4348
4349 2012-03-01  Kai Tietz  <ktietz@redhat.com>
4350
4351         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
4352         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
4353         containing bit-fields.
4354         * soft-fp/extended.h (_FP_UNION_E): Likewise.
4355         * soft-fp/single.h (_FP_UNION_S): Likewise.
4356         * soft-fp/double.h (_FP_UNION_D): Likewise.
4357
4358 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4359
4360         [BZ #13786]
4361         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
4362         not include ../strcmp.S.
4363         [USE_AS_STRNCASECMP_L]: Likewise.
4364         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
4365         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
4366         * sysdeps/i386/i686/multiarch/strncase_l-c.c
4367         (__strncasecmp_l_ia32): Define as alias to
4368         __strncasecmp_l_nonascii.
4369
4370         [BZ #5794]
4371         * math/libm-test.inc (expm1_test): Add test for bug 5794.
4372         * sysdeps/i386/fpu/libm-test-ulps: Update.
4373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4374
4375         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
4376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4377
4378 2012-02-29  Jeff Law  <law@redhat.com>
4379
4380         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
4381         out of bounds read.
4382
4383 2012-02-29  Marek Polacek  <polacek@redhat.com>
4384
4385         [BZ #13706]
4386         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
4387         * elf/Makefile: Add rules to run tst-unused-dep.out.
4388
4389 2012-02-28  David S. Miller  <davem@davemloft.net>
4390
4391         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
4392         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
4393         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
4394         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
4395         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
4396         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
4397
4398 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
4399
4400         * math/libm-test.inc (llround_test): Move one test from
4401         lround_test.  Use TEST_f_L in moved test.
4402         (lround_test): Move misplaced test to llround_test.  Add testcase
4403         from bug 2561.
4404
4405 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
4406
4407         * sysdeps/x86_64/fpu/e_expf.S: New file.
4408         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
4409
4410 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
4411
4412         [BZ #13637]
4413         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
4414         of remain_len that may cause incomplete multi-byte character and
4415         false match.
4416         * posix/bug-regex33.c: New file.
4417         * posix/Makefile (tests): Add bug-regex33.
4418
4419 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
4420
4421         * manual/macros.texi: New file.
4422         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
4423         * manual/libc.texinfo: Include macros.texi.
4424         * manual/creatute.texi: Likewise.
4425         * manual/install.texi: Likewise.
4426         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
4427         @glibcadj{} in references to the GNU C Library.
4428         * manual/charset.texi: Likewise.
4429         * manual/conf.texi: Likewise.
4430         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
4431         when not using those macros.
4432         * manual/creature.texi: Likewise.
4433         * manual/crypt.texi: Likewise.
4434         * manual/errno.texi: Likewise.
4435         * manual/filesys.texi: Likewise.
4436         * manual/header.texi: Likewise.
4437         * manual/install.texi: Likewise.
4438         * manual/intro.texi: Likewise.
4439         * manual/io.texi: Likewise.
4440         * manual/job.texi: Likewise.
4441         * manual/lang.texi: Likewise.
4442         * manual/libc.texiinfo: Likewise.
4443         * manual/llio.texi: Likewise.
4444         * manual/locale.texi: Likewise.
4445         * manual/maint.texi: Likewise.
4446         * manual/math.texi: Likewise.
4447         * manual/memory.texi: Likewise.
4448         * manual/message.texi: Likewise.
4449         * manual/nss.texi: Likewise.
4450         * manual/pattern.texi: Likewise.
4451         * manual/process.texi: Likewise.
4452         * manual/resource.texi: Likewise.
4453         * manual/search.texi: Likewise.
4454         * manual/setjmp.texi: Likewise.
4455         * manual/signal.texi: Likewise.
4456         * manual/socket.texi: Likewise.
4457         * manual/startup.texi: Likewise.
4458         * manual/stdio.texi: Likewise.
4459         * manual/string.texi: Likewise.
4460         * manual/sysinfo.texi: Likewise.
4461         * manual/syslog.texi: Likewise.
4462         * manual/terminal.texi: Likewise.
4463         * manual/time.texi: Likewise.
4464         * manual/users.texi: Likewise.
4465         * INSTALL: Regenerated.
4466         * NOTES: Regenerated.
4467         * sysdeps/gnu/errlist.c: Regenerated.
4468
4469 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
4470
4471         * include/dirent.h: Include <dirstream.h> before
4472         <dirent/dirent.h>.
4473
4474 2012-02-28  David S. Miller  <davem@davemloft.net>
4475
4476         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
4477         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
4478         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
4479         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
4480
4481 2012-02-27  David S. Miller  <davem@davemloft.net>
4482
4483         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
4484         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
4485         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
4486         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
4487
4488         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
4489         frame pointer instead of stack pointer relative arg slot.
4490         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4491         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4492         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4493
4494 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
4495
4496         [BZ #3992]
4497         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
4498
4499 2012-02-27  David S. Miller  <davem@davemloft.net>
4500
4501         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
4502         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
4503         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4504         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
4505         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
4506         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
4507         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
4508         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
4509
4510 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4511
4512         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
4513         later.  Allow versions 5-9.
4514         * configure: Regenerated.
4515         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
4516         required minimum version and 4.6 as recommended version.  Do not
4517         mention bugs in GCC 2.7 and 2.8.
4518         * INSTALL: Regenerated.
4519
4520 2012-02-27  David S. Miller  <davem@davemloft.net>
4521
4522         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
4523         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
4524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
4525         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
4526         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
4527         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
4528         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
4529         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
4530
4531         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
4532         manipulate bits before adding and subtracting TWO112[sx].
4533         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4534
4535 2012-02-27  Roland McGrath  <roland@hack.frob.com>
4536
4537         [BZ #13775]
4538         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
4539         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
4540         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
4541         being in POSIX, because they are in 1003.1-2008.
4542
4543         * rt/tst-aio.c: Include <fcntl.h>.
4544         * rt/tst-aio7.c: Likewise.
4545         * rt/tst-aio64.c: Likewise.
4546
4547         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
4548
4549 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
4550
4551         * manual/install.texi (--with-headers): Describe headers as
4552         interface headers, not private headers.
4553         (Specific advice for GNU/Linux systems): Describe use of headers
4554         from "make headers_install", not private headers from older
4555         kernels.
4556         * INSTALL: Regenerated.
4557         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
4558         Change to 2.6.19.
4559         * sysdeps/unix/sysv/linux/configure: Regenerated.
4560
4561         * manual/llio.texi (fclean): Remove documentation.
4562
4563         * manual/Makefile (libc-texi-generated): New variable.  Include
4564         version.texi.
4565         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
4566         $(libc-texi-generated), not duplicated list of files.
4567         (version.texi, stamp-version): New rules.
4568         (realclean): Remove $(libc-texi-generated), not individual files
4569         from that list.  Do not remove dir-add.texinfo.
4570         * manual/libc.texinfo: Comment out uses of edition numbers and
4571         references to printed manual.  Remove last-updated dates.
4572         (EDITION): Comment out.
4573         (ISBN): Likewise.
4574         (VERSION, UPDATED): Remove.
4575         (version.texi): Include.
4576
4577 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
4578
4579         * sysdeps/posix/spawni.c: Include <signal.h>.
4580         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
4581         * sysdeps/pthread/aio_fsync.c: Likewise.
4582
4583 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
4584
4585         * conform/Makefile (tests): Run only when not cross-compiling and
4586         when fast-check is not defined.
4587
4588         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
4589         * conform/data/limits.h-data: Fixes for POSIX2008.
4590         * conform/run-conformtest.sh: Run all tests.
4591         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
4592         headers.
4593         * include/bits/dlfcn.h: Likewise.
4594         * include/langinfo.h: Likewise.
4595         * include/monetary.h: Likewise.
4596         * include/sys/poll.h: Likewise.
4597
4598         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
4599         for __USE_GNU.
4600         * posix/spawn.h: Define __need_sigset_t.
4601         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
4602         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
4603         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
4604         to get sigevent_t only.
4605         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
4606         only for __USE_GNU.
4607         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4608         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
4609         process_vm_writev only for __USE_GNU.
4610         * termios/termios.h: Declare tcgetsid also for POSIX2008.
4611
4612         * conform/Makefile: For now ignore errors from run-conformtest.
4613         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
4614         POSIX to avoid namespace pollution.  Don't prepend headers.
4615         * conform/data/aio.h-data: Fixes for POSIX testing.
4616         * conform/data/fcntl.h-data: Likewise.
4617         * conform/data/glob.h-data: Likewise.
4618         * conform/data/grp.h-data: Likewise.
4619         * conform/data/pthread.h-data: Likewise.
4620         * conform/data/pwd.h-data: Likewise.
4621         * conform/data/signal.h-data: Likewise.
4622         * conform/data/spawn.h-data: Likewise.
4623         * conform/data/stdio.h-data: Likewise.
4624         * conform/data/stdlib.h-data: Likewise.
4625         * conform/data/stropts.h-data: Likewise.
4626         * conform/data/sys/mman.h-data: Likewise.
4627         * conform/data/sys/stat.h-data: Likewise.
4628         * conform/data/sys/types.h-data: Likewise.
4629         * conform/data/sys/wait.h-data: Likewise.
4630         * conform/data/time.h-data: Likewise.
4631         * conform/data/unistd.h-data: Likewise.
4632         * conform/data/utime.h-data: Likewise.
4633
4634         * io/sys/stat.h: fchmod was always in POSIX.
4635         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
4636         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
4637         * rt/aio.h: Define __need_timespec before including <time.h>.
4638         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
4639         struct.  Add forward declaration of pthread_attr_t and use it in
4640         sigevent.
4641         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
4642         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4643         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
4644         always remove CLK_TCK definition.
4645
4646 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
4647
4648         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
4649
4650 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
4651
4652         * conform/run-conformtest.sh: New file.
4653         * conform/Makefile: Run run-conformtest for tests.
4654         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
4655         support.
4656
4657         * conform/data/uchar.h-data: New file.
4658         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
4659         * conform/data/arpa/inet.h-data: Likewise.
4660         * conform/data/assert.h-data: Likewise.
4661         * conform/data/complex.h-data: Likewise.
4662         * conform/data/cpio.h-data: Likewise.
4663         * conform/data/ctype.h-data: Likewise.
4664         * conform/data/dirent.h-data: Likewise.
4665         * conform/data/dlfcn.h-data: Likewise.
4666         * conform/data/errno.h-data: Likewise.
4667         * conform/data/fcntl.h-data: Likewise.
4668         * conform/data/float.h-data: Likewise.
4669         * conform/data/fmtmsg.h-data: Likewise.
4670         * conform/data/fnmatch.h-data: Likewise.
4671         * conform/data/ftw.h-data: Likewise.
4672         * conform/data/glob.h-data: Likewise.
4673         * conform/data/grp.h-data: Likewise.
4674         * conform/data/iconv.h-data: Likewise.
4675         * conform/data/inttypes.h-data: Likewise.
4676         * conform/data/langinfo.h-data: Likewise.
4677         * conform/data/libgen.h-data: Likewise.
4678         * conform/data/limits.h-data: Likewise.
4679         * conform/data/locale.h-data: Likewise.
4680         * conform/data/math.h-data: Likewise.
4681         * conform/data/monetary.h-data: Likewise.
4682         * conform/data/mqueue.h-data: Likewise.
4683         * conform/data/ndbm.h-data: Likewise.
4684         * conform/data/net/if.h-data: Likewise.
4685         * conform/data/netdb.h-data: Likewise.
4686         * conform/data/netinet/in.h-data: Likewise.
4687         * conform/data/nl_types.h-data: Likewise.
4688         * conform/data/poll.h-data: Likewise.
4689         * conform/data/pthread.h-data: Likewise.
4690         * conform/data/pwd.h-data: Likewise.
4691         * conform/data/regex.h-data: Likewise.
4692         * conform/data/sched.h-data: Likewise.
4693         * conform/data/search.h-data: Likewise.
4694         * conform/data/semaphore.h-data: Likewise.
4695         * conform/data/setjmp.h-data: Likewise.
4696         * conform/data/signal.h-data: Likewise.
4697         * conform/data/spawn.h-data: Likewise.
4698         * conform/data/stdarg.h-data: Likewise.
4699         * conform/data/stdio.h-data: Likewise.
4700         * conform/data/stdlib.h-data: Likewise.
4701         * conform/data/string.h-data: Likewise.
4702         * conform/data/strings.h-data: Likewise.
4703         * conform/data/stropts.h-data: Likewise.
4704         * conform/data/sys/ipc.h-data: Likewise.
4705         * conform/data/sys/mman.h-data: Likewise.
4706         * conform/data/sys/msg.h-data: Likewise.
4707         * conform/data/sys/resource.h-data: Likewise.
4708         * conform/data/sys/select.h-data: Likewise.
4709         * conform/data/sys/sem.h-data: Likewise.
4710         * conform/data/sys/shm.h-data: Likewise.
4711         * conform/data/sys/socket.h-data: Likewise.
4712         * conform/data/sys/stat.h-data: Likewise.
4713         * conform/data/sys/statvfs.h-data: Likewise.
4714         * conform/data/sys/time.h-data: Likewise.
4715         * conform/data/sys/timeb.h-data: Likewise.
4716         * conform/data/sys/times.h-data: Likewise.
4717         * conform/data/sys/types.h-data: Likewise.
4718         * conform/data/sys/uio.h-data: Likewise.
4719         * conform/data/sys/un.h-data: Likewise.
4720         * conform/data/sys/utsname.h-data: Likewise.
4721         * conform/data/sys/wait.h-data: Likewise.
4722         * conform/data/syslog.h-data: Likewise.
4723         * conform/data/tar.h-data: Likewise.
4724         * conform/data/termios.h-data: Likewise.
4725         * conform/data/utime.h-data: Likewise.
4726         * conform/data/utmpx.h-data: Likewise.
4727         * conform/data/varargs.h-data: Likewise.
4728         * conform/data/wchar.h-data: Likewise.
4729         * conform/data/wctype.h-data: Likewise.
4730         * conform/data/wordexp.h-data: Likewise.
4731
4732         * include/stropts.h: New file.
4733         * include/uchar.h: New file.
4734         * include/aio.h: Changes to allow conformtest.pl to use the headers.
4735         * include/assert.h: Likewise.
4736         * include/ctype.h: Likewise.
4737         * include/dirent.h: Likewise.
4738         * include/dlfcn.h: Likewise.
4739         * include/fcntl.h: Likewise.
4740         * include/fnmatch.h: Likewise.
4741         * include/glob.h: Likewise.
4742         * include/grp.h: Likewise.
4743         * include/libio.h: Likewise.
4744         * include/locale.h: Likewise.
4745         * include/math.h: Likewise.
4746         * include/net/if.h: Likewise.
4747         * include/netdb.h: Likewise.
4748         * include/netinet/in.h: Likewise.
4749         * include/pthread.h: Likewise.
4750         * include/pwd.h: Likewise.
4751         * include/regex.h: Likewise.
4752         * include/sched.h: Likewise.
4753         * include/search.h: Likewise.
4754         * include/setjmp.h: Likewise.
4755         * include/signal.h: Likewise.
4756         * include/stdio.h: Likewise.
4757         * include/stdlib.h: Likewise.
4758         * include/string.h: Likewise.
4759         * include/sys/cdefs.h: Likewise.
4760         * include/sys/mman.h: Likewise.
4761         * include/sys/msg.h: Likewise.
4762         * include/sys/resource.h: Likewise.
4763         * include/sys/select.h: Likewise.
4764         * include/sys/socket.h: Likewise.
4765         * include/sys/stat.h: Likewise.
4766         * include/sys/statvfs.h: Likewise.
4767         * include/sys/time.h: Likewise.
4768         * include/sys/times.h: Likewise.
4769         * include/sys/uio.h: Likewise.
4770         * include/sys/utsname.h: Likewise.
4771         * include/sys/wait.h: Likewise.
4772         * include/termios.h: Likewise.
4773         * include/time.h: Likewise.
4774         * include/ulimit.h: Likewise.
4775         * include/unistd.h: Likewise.
4776         * include/utime.h: Likewise.
4777         * include/wchar.h: Likewise.
4778         * include/wctype.h: Likewise.
4779         * include/wordexp.h: Likewise.
4780
4781         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
4782
4783         * time/time.h: TIME_UTC must be a macro.
4784         Make timespec_get available for ISO C11 only as well.
4785
4786 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
4787
4788         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
4789         Reported by Peng Haitao <penght@cn.fujitsu.com>.
4790
4791 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4792
4793         * configure.in: Use -o not -a in test for unsupported multi-arch.
4794
4795 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4796
4797         * manual/texinfo.tex: Update to version 2012-01-19.16.
4798
4799 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
4800
4801         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
4802
4803 2012-02-24  Roland McGrath  <roland@hack.frob.com>
4804
4805         [BZ #13738]
4806         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
4807         * manual/fdl-1.3.texi: New file.
4808         * manual/fdl-1.1.texi: File removed.
4809
4810         [BZ #13738]
4811         * manual/libc.texinfo (FDL_VERSION): New @set.
4812         Use it for mention of FDL in cover text.
4813         (Documentation License): Use it in @include file name.
4814
4815 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4816             Roland McGrath  <roland@hack.frob.com>
4817
4818         [BZ #5461]
4819         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
4820         not LONG_LONG_MAX and LONG_LONG_MIN.
4821         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
4822         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
4823         name.
4824         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
4825
4826 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4827
4828         [BZ #2547]
4829         [BZ #11365]
4830         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
4831         manipulate bits before adding and subtracting TWO23[sx].
4832         * math/libm-test.inc (nearbyint_test): Add more tests.
4833
4834 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4835
4836         [BZ #2548]
4837         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
4838         bits before adding and subtracting TWO23[sx].
4839         * math/libm-test.inc (rint_test): Add more tests.
4840         (rint_test_tonearest): Likewise.
4841         (rint_test_towardzero): Likewise.
4842         (rint_test_downward): Likewise.
4843         (rint_test_upward: Likewise.
4844
4845 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4846
4847         [BZ #10110]
4848         * include/stdc-predef.h: New file.  Extracted from features.h.
4849         * include/features.h: Include stdc-predef.h.
4850         * Makefile (headers): Add stdc-predef.h.
4851         * CONFORMANCE (Compiler limitations): Update.
4852
4853 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
4854
4855         * manual/libc.texinfo (VERSION, UPDATED): Revert.
4856
4857 2012-02-21  David S. Miller  <davem@davemloft.net>
4858
4859         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
4860         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
4861
4862 2012-02-20  David S. Miller  <davem@davemloft.net>
4863
4864         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
4865         using a normal save/restore sequence, rather than allocating a
4866         dummy stack frame just to store a frame pointer and restore.
4867         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4868
4869 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4870
4871         * manual/install.texi: Fix stray word in line-wrapped comment.
4872
4873 2012-02-20  David S. Miller  <davem@davemloft.net>
4874
4875         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
4876         both binutils and gcc support GOTDATA.
4877
4878         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
4879         "rd %pc" in the PIC register setup sequences.
4880
4881         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
4882         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
4883         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4884         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
4885         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4886         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
4887         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4888         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
4889         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4890         (SYSCALL_ERROR_HANDLER): Likewise.
4891         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
4892         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4893         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4894         (SYSCALL_ERROR_HANDLER): Likewise.
4895
4896         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
4897         (HAVE_GCC_GOTDATA): New.
4898         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
4899         relocation support in both binutils and gcc.
4900         * sysdeps/sparc/elf/configure: Regenerate.
4901
4902         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
4903         * sysdeps/sparc/sparc32/elf/configure: Delete.
4904         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
4905         * sysdeps/sparc/sparc64/elf/configure: Delete.
4906         * sysdeps/sparc/elf/configure.in: New file.
4907         * sysdeps/sparc/elf/configure: Generate.
4908
4909         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
4910         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
4911         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
4912         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
4913         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
4914
4915 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4916
4917         * manual/install.texi: Do not mention specific glibc version
4918         numbers.
4919         * manual/libc.texinfo (VERSION, UPDATED): Update.
4920         (@copying): Use @copyright{} and range of years.
4921
4922 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
4923
4924         [BZ #13695]
4925         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
4926         [crti.S not in sysdirs] (generated): Do not append.
4927         [crti.S not in sysdirs] (omit-deps): Likewise.
4928         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
4929         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
4930         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
4931         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
4932         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
4933         Likewise.
4934         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
4935         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
4936         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
4937         * csu/defs.awk: Remove file.
4938         * sysdeps/generic/initfini.c: Likewise.
4939         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
4940         variable.
4941         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
4942         Likewise.
4943
4944 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4945
4946         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
4947         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
4948         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
4949         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
4950         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4951         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
4952         <bits/epoll.h>.
4953         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
4954         (__EPOLL_PACKED): Define to empty if not defined by
4955         <bits/epoll.h>.
4956         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
4957         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4958         bits/epoll.h.
4959
4960 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4961
4962         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
4963         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
4964         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
4965         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
4966         <bits/timerfd.h>.
4967         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
4968         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4969         bits/timerfd.h.
4970
4971 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
4972
4973         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
4974         in C locale.
4975         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4976         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4977         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
4978         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4979
4980 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
4981
4982         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4983         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
4984
4985 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
4986
4987         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
4988         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
4989         defined.
4990         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
4991         Likewise.
4992         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
4993         entry for 2.16.
4994
4995 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
4996
4997         * math/w_acos.c: Use non-signaling floating-point comparisons.
4998         * math/w_acosf.c: Likewise.
4999         * math/w_acosh.c: Likewise.
5000         * math/w_acoshf.c: Likewise.
5001         * math/w_acoshl.c: Likewise.
5002         * math/w_acosl.c: Likewise.
5003         * math/w_asin.c: Likewise.
5004         * math/w_asinf.c: Likewise.
5005         * math/w_asinl.c: Likewise.
5006         * math/w_atanh.c: Likewise.
5007         * math/w_atanhf.c: Likewise.
5008         * math/w_atanhl.c: Likewise.
5009         * math/w_exp2.c: Likewise.
5010         * math/w_exp2f.c: Likewise.
5011         * math/w_exp2l.c: Likewise.
5012         * math/w_j0.c: Likewise.
5013         * math/w_j0f.c: Likewise.
5014         * math/w_j0l.c: Likewise.
5015         * math/w_j1.c: Likewise.
5016         * math/w_j1f.c: Likewise.
5017         * math/w_j1l.c: Likewise.
5018         * math/w_jn.c: Likewise.
5019         * math/w_jnf.c: Likewise.
5020         * math/w_log.c: Likewise.
5021         * math/w_log10.c: Likewise.
5022         * math/w_log10f.c: Likewise.
5023         * math/w_log10l.c: Likewise.
5024         * math/w_log2.c: Likewise.
5025         * math/w_log2f.c: Likewise.
5026         * math/w_log2l.c: Likewise.
5027         * math/w_logf.c: Likewise.
5028         * math/w_logl.c: Likewise.
5029         * math/w_sqrt.c: Likewise.
5030         * math/w_sqrtf.c: Likewise.
5031         * math/w_sqrtl.c: Likewise.
5032         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5033         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
5034         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5035         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
5036         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
5037
5038 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5039
5040         [BZ #9739]
5041         * manual/string.texi (strnlen): Use correct parameter name in
5042         equivalent expression.
5043
5044 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5045
5046         [BZ #11174]
5047         * manual/users.texi (seteuid): Consistently use neweuid for
5048         argument name.
5049
5050 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
5051
5052         [BZ #13704]
5053         * manual/nss.texi (Services in the NSS configuration): Correct
5054         list of services in example configuration file.
5055
5056 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
5057
5058         [BZ #11322]
5059         * manual/arith.texi: Remove statements about negative zero
5060         behaving identically to zero.
5061
5062 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5063
5064         [BZ #5993]
5065         * manual/install.texi: Do not document upgrading from libc5.
5066
5067 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
5068
5069         [BZ #4596]
5070         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
5071
5072 2012-02-18  David S. Miller  <davem@davemloft.net>
5073
5074         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
5075         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
5076         %o7 across the call.
5077         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
5078         instead.
5079         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
5080         SETUP_PIC_REG_LEAF.
5081         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5082         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
5083         * sysdeps/sparc/crtn.S: Likewise.
5084
5085 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
5086
5087         * aout/Makefile: Remove.
5088
5089 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
5090
5091         [BZ #13058]
5092         * manual/examples/argp-ex1.c (main): Format definition in GNU
5093         style.
5094         * manual/examples/argp-ex2.c (main): Likewise.
5095         * manual/examples/argp-ex3.c (main): Likewise.
5096         * manual/examples/argp-ex4.c (main): Likewise.
5097         * manual/examples/longopt.c (main): Use new-style prototype
5098         definition.
5099         * manual/examples/strncat.c (main): Specify return type and use
5100         (void) for arguments.
5101         * manual/examples/subopt.c (main): Use char **argv argument.
5102
5103 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5104
5105         [BZ #5077]
5106         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
5107         rounding modes.
5108
5109 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
5110
5111         [BZ #6907]
5112         * manual/string.texi (strchr): Change when strchrnul is
5113         recommended.
5114
5115 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
5116
5117         [BZ #174]
5118         * manual/locale.texi (setlocale): Document LOCPATH.
5119
5120 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5121
5122         [BZ #10210]
5123         * manual/process.texi (execle): Move @dots{} before last argument.
5124
5125 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
5126
5127         [BZ #12047]
5128         * manual/charset.texi (Generic Charset Conversion): Fix typo
5129         (LC_TYPE -> LC_CTYPE).
5130
5131 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
5132
5133         [BZ #5805]
5134         * manual/arith.texi (scalbn): Use @var{} on parameter names.
5135         (scalbnf): Likewise.
5136         (scalbnl): Likewise.
5137         (scalbln): Likewise.
5138         (scalblnf): Likewise.
5139         (scalblnl): Likewise.
5140         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
5141         (vwarnx): Likewise.
5142         (verr): Likewise.
5143         (verrx): Likewise.
5144         * manual/filesys.texi (telldir): Use braces around return type.
5145         * manual/llio.texi (mmap): Add space after comma.
5146         (mmap64): Likewise.
5147         * manual/math.texi (jn): Use @var{} on parameter names.
5148         (jnf): Likewise.
5149         (jnl): Likewise.
5150         (yn): Likewise.
5151         (ynf): Likewise.
5152         (ynl): Likewise.
5153         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
5154         line.
5155         * manual/resource.texi (ulimit): Use @dots{} instead of literal
5156         "...".
5157         (sched_get_priority_min): Remove semicolon on @deftypefun line.
5158         (sched_get_priority_max): Likewise.
5159         * manual/signal.texi (sigvec): Add space after comma.
5160         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
5161         names.
5162         (if_indextoname): Likewise.
5163         (if_freenameindex): Likewise.
5164         (sendto): Use ',' instead of '.' in prototype.
5165         * manual/startup.texi (syscall): Use @dots{} instead of literal
5166         "...".
5167         * manual/stdio.texi (__fpending): Separate initial words of
5168         paragraph from @deftypefun line.
5169         * manual/syslog.texi (syslog): Use @dots{} instead of literal
5170         "...".
5171         (vsyslog): Use @var{} on parameter names.
5172         * manual/terminal.texi (stty): Use @var{} on parameter names.
5173         * manual/users.texi (getutmp): Use @var{} on parameter names.
5174         (getutmpx): Likewise.
5175
5176 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5177
5178         [BZ #6884]
5179         * manual/stdio.texi (fopen): Fix typos in description of
5180         ",ccs=STRING".
5181
5182 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
5183
5184         [BZ #4026]
5185         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
5186         get clock_id definition.
5187
5188 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
5189
5190         [BZ #4822]
5191         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
5192         (madvise): Cast every argument to void on its own.
5193
5194 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5195
5196         [BZ #9902]
5197         * manual/startup.texi (Exit Status): Fix typo.
5198
5199 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
5200
5201         [BZ #10140]
5202         * manual/examples/argp-ex1.c: Include <stdlib.h>.
5203         * manual/examples/argp-ex2.c: Likewise.
5204         * manual/examples/argp-ex3.c: Likewise.
5205
5206 2012-02-16  Richard Henderson  <rth@redhat.com>
5207
5208         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
5209         * sysdeps/s390/s390-32/initfini.c: Remove.
5210         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
5211         * sysdeps/s390/s390-64/initfini.c: Remove.
5212
5213 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5214
5215         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
5216         compiler output for sysdeps/generic/initfini.c.
5217         * sysdeps/sh/elf/initfini.c: Remove file.
5218
5219 2012-02-16  David S. Miller  <davem@davemloft.net>
5220
5221         [BZ #11494]
5222         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
5223
5224         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
5225         * sysdeps/sparc/crti.S: New file.
5226         * sysdeps/sparc/crtn.S: New file.
5227         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
5228         * sysdeps/sparc/sparc64/Makefile: Likewise.
5229
5230 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
5231
5232         [BZ #3335]
5233         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
5234
5235 2012-02-15  Roland McGrath  <roland@hack.frob.com>
5236
5237         [BZ #4822]
5238         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
5239
5240         * mach/devstream.c (cookie_io_functions_t): Macro removed.
5241         (write, read, close): Likewise.
5242         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5243
5244 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
5245
5246         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
5247         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
5248         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
5249         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
5250         <bits/signalfd.h>.
5251         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
5252         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5253         bits/signalfd.h.
5254
5255 2012-02-14  Marek Polacek  <polacek@redhat.com>
5256
5257         * sysdeps/x86_64/crti.S: New file.
5258         * sysdeps/x86_64/crtn.S: New file.
5259         * sysdeps/x86_64/elf/initfini.c: Remove file.
5260
5261 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5262
5263         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
5264         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
5265         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
5266         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
5267         <bits/inotify.h>.
5268         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
5269         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5270         bits/inotify.h.
5271
5272 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
5273
5274         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
5275         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
5276         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
5277         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
5278         <bits/eventfd.h>.
5279         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
5280         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5281         bits/eventfd.h.
5282
5283 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
5284
5285         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
5286         __feraiseexcept instead of feraiseexcept.
5287
5288         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
5289         nanosleep invocations.
5290         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
5291         strings, and add error checking for a nanosleep invocations.
5292
5293 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5294
5295         Replace FSF snail mail address with URLs, as per GNU coding standards.
5296         Most of the snail mail addresses were wrong anyway, and omitting
5297         them makes the source code easier to maintain.  Almost all of the
5298         changes are to license notices and to locale LC_IDENTIFICATION
5299         addresses, except for this one:
5300         * manual/libc.texinfo: In "Published by", give the FSF's URL,
5301         not its snail mail address.
5302
5303 2012-02-09  Richard Henderson  <rth@twiddle.net>
5304
5305         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
5306         of kernel-features.h.
5307
5308         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
5309
5310 2012-02-08  Marek Polacek  <polacek@redhat.com>
5311
5312         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
5313         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
5314         * sysdeps/gnu/_G_config.h: Likewise.
5315         * sysdeps/generic/_G_config.h: Likewise.
5316
5317 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
5318
5319         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
5320         tests.
5321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5322
5323         * sysdeps/powerpc/powerpc32/crti.S: New file.
5324         * sysdeps/powerpc/powerpc32/crtn.S: New file.
5325         * sysdeps/powerpc/powerpc64/crti.S: New file.
5326         * sysdeps/powerpc/powerpc64/crtn.S: New file.
5327
5328         * Makeconfig (have-initfini): Don't set.
5329         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
5330         * configure.in (nopic_initfini): Don't substitute.
5331         * config.h.in (HAVE_INITFINI): Don't #undef.
5332         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
5333         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
5334
5335 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
5336
5337         Support crti.S and crtn.S provided directly by architectures.
5338         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
5339         [crti.S in sysdirs] (omit-deps): Likewise.
5340         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
5341         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
5342         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
5343         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
5344         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
5345         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
5346         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
5347         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
5348         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
5349         compiler output for sysdeps/generic/initfini.c.
5350         * sysdeps/i386/elf/Makefile: Remove file.
5351         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
5352
5353 2012-02-07  Marek Polacek  <polacek@redhat.com>
5354
5355         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
5356         * sysdeps/gnu/_G_config.h: Likewise.
5357         * sysdeps/mach/hurd/_G_config.h: Likewise.
5358
5359 2012-02-07  Marek Polacek  <polacek@redhat.com>
5360
5361         * math/Makefile (tests): Add tst-CMPLX2.
5362         * math/tst-CMPLX2.c: New file.
5363
5364 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
5365
5366         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5367
5368         * math/libm-test.inc (jn_test): Add missing L suffix.
5369
5370 2012-02-06  Marek Polacek  <polacek@redhat.com>
5371
5372         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
5373         * sysdeps/i386/fpu/e_powf.S: Likewise.
5374         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
5375         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
5376         * sysdeps/i386/fpu/e_acosh.S: Likewise.
5377         * sysdeps/i386/fpu/e_pow.S: Likewise.
5378         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
5379         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
5380         * sysdeps/i386/fpu/s_expm1.S: Likewise.
5381         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
5382         * sysdeps/i386/fpu/e_log2.S: Likewise.
5383         * sysdeps/i386/fpu/e_log2l.S: Likewise.
5384         * sysdeps/i386/fpu/e_scalb.S: Likewise.
5385         * sysdeps/i386/fpu/e_powl.S: Likewise.
5386         * sysdeps/i386/fpu/s_log1p.S: Likewise.
5387         * sysdeps/i386/fpu/e_log10f.S: Likewise.
5388         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
5389         * sysdeps/i386/fpu/e_logl.S: Likewise.
5390         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
5391         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
5392         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
5393         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
5394         * sysdeps/i386/fpu/e_log2f.S: Likewise.
5395         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
5396         * sysdeps/i386/fpu/e_log.S: Likewise.
5397         * sysdeps/i386/fpu/s_cexp.S: Likewise.
5398         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
5399         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
5400         * sysdeps/i386/fpu/e_logf.S: Likewise.
5401         * sysdeps/i386/fpu/e_log10l.S: Likewise.
5402         * sysdeps/i386/fpu/e_atanh.S: Likewise.
5403         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
5404         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
5405         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
5406         * sysdeps/i386/fpu/e_log10.S: Likewise.
5407         * sysdeps/i386/fpu/s_frexp.S: Likewise.
5408         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
5409         * sysdeps/i386/fpu/s_asinh.S: Likewise.
5410         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
5411         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
5412         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
5413         * sysdeps/i386/asm-syntax.h: Likewise.
5414         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
5415         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5416         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
5417         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5418         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
5419         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
5420         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5421         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
5422         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
5423         * sysdeps/powerpc/sysdep.h: Likewise.
5424         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
5425         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5426
5427 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5428
5429         [BZ #411]
5430         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
5431
5432 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
5433
5434         * sysdeps/i386/sysdep.h: Include <features.h>.
5435         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
5436         version.
5437
5438 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
5439
5440         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
5441         Define.
5442         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
5443         LOAD_PIC_REG_STR.
5444
5445 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5446
5447         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
5448         (SETUP_PIC_REG): Use GET_PC_THUNK.
5449         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
5450         macro.
5451
5452 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5453
5454         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
5455         for non-PIC compilation.
5456         (SETUP_PIC_REG): Add .p2align directive.
5457         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
5458         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
5459         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
5460         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
5461         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
5462         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
5463         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
5464         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
5465         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
5466         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
5467         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
5468         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
5469         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
5470         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
5471         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
5472         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5473         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5474         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
5475         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
5476         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
5477         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5478         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5479         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
5480         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
5481         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
5482         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
5483         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5484         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
5485         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
5486         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
5487         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
5488         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5489         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
5490         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
5491         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
5492         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
5493         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
5494         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
5495         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
5496         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
5497         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
5498
5499 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
5500
5501         * math/tst-CMPLX.c: Include <stdio.h>.
5502
5503 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
5504
5505         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
5506         float.
5507         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
5508         * sysdeps/sparc/bits/mathdef.h: Likewise.
5509
5510 2012-01-31  Marek Polacek  <polacek@redhat.com>
5511
5512         * libio/libio.h: Don't define _PARAMS.
5513         * locale/programs/config.h: Don't define PARAMS.
5514         * stdlib/strtol_l.c: Likewise.
5515         (__strtol_l): Remove PARAMS from the prototype.
5516
5517 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
5518
5519         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
5520         names.  Just use the correct names.  Remove unnecessary wrapper
5521         functions.
5522         * malloc/arena.c: Likewise.
5523         * malloc/hooks.c: Likewise.
5524
5525         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
5526         ARENA_TEST says not to.  Simplify test for creation of a new arena.
5527         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
5528
5529 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
5530
5531         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
5532         into tail calls.
5533         (update_get_addr): New function.
5534         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
5535         GET_ADDR_MODULE parameter.
5536
5537 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
5538
5539         * crypt/cert.c: Remove __STDC__ conditionals.
5540         * crypt/crypt-entry.c: Likewise.
5541         * crypt/crypt_util.c: Likewise.
5542         * libio/filedoalloc.c: Likewise.
5543         * libio/fileops.c: Likewise.
5544         * libio/genops.c: Likewise.
5545         * libio/iofclose.c: Likewise.
5546         * libio/iofdopen.c: Likewise.
5547         * libio/iofopen.c: Likewise.
5548         * libio/iofopen64.c: Likewise.
5549         * libio/iogetdelim.c: Likewise.
5550         * libio/iopopen.c: Likewise.
5551         * libio/obprintf.c: Likewise.
5552         * libio/oldfileops.c: Likewise.
5553         * libio/oldiofclose.c: Likewise.
5554         * libio/oldiofdopen.c: Likewise.
5555         * libio/oldiofopen.c: Likewise.
5556         * libio/oldiopopen.c: Likewise.
5557         * libio/wfiledoalloc.c: Likewise.
5558         * libio/wgenops.c: Likewise.
5559         * locale/programs/xmalloc.c: Likewise.
5560         * misc/syslog.c: Likewise.
5561         * stdio-common/xbug.c: Likewise.
5562         * string/memchr.c: Likewise.
5563         * string/memcmp.c: Likewise.
5564         * string/memrchr.c: Likewise.
5565         * string/rawmemchr.c: Likewise.
5566         * sysdeps/posix/getcwd.c: Likewise.
5567         * time/strftime_l.c: Likewise.
5568
5569 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
5570
5571         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
5572         * config.make.in (config-cflags-sse2avx): Define.
5573         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
5574         Fix typo.
5575
5576 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
5577
5578         * scripts/config.guess: Update from upstream config git repository.
5579         * scripts/config.sub: Likewise.
5580
5581 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
5582
5583         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
5584         (EM_NUM): Update.
5585         (R_TILEPRO_*, R_TILEGX_*): New macros.
5586
5587         * scripts/firstversions.awk: Fix bug in version range handling.
5588
5589         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
5590
5591         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
5592
5593         * include/sys/epoll.h: New file.
5594         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
5595         libc_hidden_def.
5596
5597 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
5598
5599         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
5600         Avoid unnecessary __WORDSIZE == 64 test.
5601         (fmaxf): Use VEX format if possible.
5602         (fmax): Likewise.
5603         (fminf): Likewise.
5604         (fmin): Likewise.
5605
5606         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
5607         * math/math_private.h: Remove libc_fegetround* and
5608         libc_fesetround*.
5609         * sysdeps/i386/configure.in: Check for -msse2avx.
5610         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
5611         also if SSE2AVX is defined.
5612         Remove libc_fegetround* and libc_fesetround*.
5613         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
5614         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
5615         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
5616         of HAS_YMM_USABLE.
5617         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5618         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5619         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5620         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5621         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5622
5623         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
5624
5625 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5626
5627         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
5628         size is not set.
5629         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
5630
5631 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
5632
5633         [BZ #13618]
5634         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
5635         relocation.
5636         * Makeconfig (libm): Define.
5637         * elf/Makefile: Add rules to build and run tst-relsort1.
5638         * elf/tst-relsort1.c: New file.
5639         * elf/tst-relsort1mod1.c: New file.
5640         * elf/tst-relsort1mod2.c: New file.
5641
5642 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
5643
5644         * math/s_ldexp.c: Remove __STDC__ conditionals.
5645         * math/s_ldexpf.c: Likewise.
5646         * math/s_ldexpl.c: Likewise.
5647         * math/s_nextafter.c: Likewise.
5648         * math/s_nexttowardf.c: Likewise.
5649         * math/s_significand.c: Likewise.
5650         * math/s_significandf.c: Likewise.
5651         * math/s_significandl.c: Likewise.
5652         * math/w_jnl.c: Likewise.
5653         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5654         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5655         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5656         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5657         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5658         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5659         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
5660         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5661         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5662         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5663         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5664         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5665         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5666         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5667         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5668         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5669         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5670         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5671         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5672         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5673         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5674         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5675         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5676         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5677         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5678         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5679         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5680         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5681         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5682         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5683         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5684         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5685         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5686         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5687         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5688         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5689         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5690         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5691         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5692         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5693         * sysdeps/ieee754/k_standard.c: Likewise.
5694         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5695         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5696         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5697         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5698         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5699         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5700         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5701         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5702         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5703         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5704         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5705         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5706         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5707         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5708         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5709         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5710         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5711         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5712         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5713         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5714         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5715         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5716         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5717         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5718         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5719         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5720         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5721         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5722         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5723         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5724         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5725         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
5726         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5727         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5728         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5729         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5730         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
5731         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5732         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5733         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
5734         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
5735         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5736         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
5737         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
5738         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5739         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5740         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
5741         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5742         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5743         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
5744         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5745         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5746         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5747         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5748         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5749         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5750         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
5751         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5752         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5753         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5754         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5755         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5756         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5757         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5758         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5759         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5760         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5761         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5762         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5763         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5764         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5765         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5766         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5767         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5768         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5769         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5770         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5771         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5772         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5773         * sysdeps/ieee754/s_matherr.c: Likewise.
5774         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5775         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5776         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5777         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5778
5779 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
5780
5781         * crypt/md5.h: Remove __STDC__ conditionals.
5782         * libio/libioP.h: Likewise.
5783         * locale/programs/config.h: Likewise.
5784         * sysdeps/generic/sysdep.h: Likewise.
5785         * sysdeps/i386/asm-syntax.h: Likewise.
5786         * sysdeps/s390/asm-syntax.h: Likewise.
5787         * sysdeps/unix/sysdep.h: Likewise.
5788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
5789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5790
5791 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
5792
5793         * libio/libio.h: Remove __STDC__ conditionals.
5794         * malloc/obstack.h: Likewise.
5795         * math/complex.h: Likewise.
5796         * math/math.h: Likewise.
5797         * sysdeps/generic/_G_config.h: Likewise.
5798         * sysdeps/gnu/_G_config.h: Likewise.
5799         * sysdeps/mach/hurd/_G_config.h: Likewise.
5800         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5801         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
5802         * sysdeps/sparc/bits/mathdef.h: Likewise.
5803
5804 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
5805
5806         [BZ #13583]
5807         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
5808         Clean up HAS_* macros.
5809         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
5810         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
5811         possible.
5812         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
5813         HAS_AVX.
5814         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5815         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5816         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5817         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5818         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5819
5820 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
5821
5822         * elf/tst-unique3.cc (gets): Remove declaration.
5823         * elf/tst-unique3lib.cc (gets): Likewise.
5824         * elf/tst-unique3lib2.cc (gets): Likewise.
5825         * elf/tst-unique4.cc (gets): Likewise.
5826
5827 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
5828
5829         * include/stdio.h: Add C++ protection.  Add gets declarations and
5830         definitions.
5831         * debug/tst-chk1.c: Don't declare gets here.
5832         * stdio-common/tst-gets.c: Likewise.
5833
5834 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
5835
5836         * posix/glob: Remove directory.
5837
5838 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
5839
5840         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
5841
5842 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
5843
5844         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
5845         of the non-standard EPFNOSUPPORT.
5846
5847 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5848
5849         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
5850         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
5851         ANYWHERE set to 1 only on KERN_NO_SPACE error.
5852
5853 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
5854
5855         * wcsmbs/uchar.h: Test __STDC_VERSION__.
5856
5857 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
5858
5859         * nscd/aicache.c (addhstaiX): Do not cache negative results of
5860         transient errors.
5861         * nscd/grpcache.c (cache_addgr): Likewise.
5862         * nscd/hstcache.c (cache_addhst): Likewise.
5863         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5864         * nscd/pwdcache.c (cache_addpw): Likewise.
5865         * nscd/servicescache.c (cache_addserv): Likewise.
5866
5867 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
5868
5869         * malloc/malloc.c: Various cleanups.
5870         * malloc/hooks.c: Likewise.
5871
5872         * stdlib/Makefile (tests): Add bug-fmtmsg1.
5873         * stdlib/bug-fmtmsg1.c: New file.
5874
5875         * stdlib/fmtmsg.c (init): Add missing unlock.
5876         Patch by Peng Haitao <penght@cn.fujitsu.com>.
5877
5878 2012-01-12  Marek Polacek  <polacek@redhat.com>
5879
5880         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
5881         and _GNU_SOURCE.
5882
5883 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
5884
5885         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
5886         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
5887         macro to ensure uniqueness of label name.
5888         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5889         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5890
5891 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
5892
5893         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
5894
5895         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
5896         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5897         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5898         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
5899
5900 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
5901
5902         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
5903
5904         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
5905         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5906         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5907
5908         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
5909
5910         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
5911         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5912         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5913         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
5914
5915         * math/bits/math-finite.h: Add ldexp support.
5916
5917 2012-01-10  Marek Polacek  <polacek@redhat.com>
5918
5919         * locale/programs/localedef.h (show_archive_content): Add noreturn
5920         attribute.
5921
5922 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
5923
5924         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
5925
5926 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5927
5928         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
5929
5930         * io/Makefile (headers): Add bits/poll2.h.
5931
5932 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
5933
5934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
5935         typo #include statement.
5936
5937 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5938
5939         * include/sys/cdefs.h: Define __attribute_alloc_size.
5940         * catgets/gencat.c: Add alloc_size attribute and apply consistently
5941         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
5942         * elf/pldd.c: Likewise.
5943         * iconv/iconv_charmap.c: Likewise.
5944         * iconv/iconvconfig.c: Likewise.
5945         * iconv/strtab.c: Likewise.
5946         * locale/programs/locale.c: Likewise.
5947         * locale/programs/localedef.h: Likewise.
5948         * locale/programs/simple-hash.c: Likewise.
5949         * nscd/nscd.h: Likewise.
5950         * nss/makedb.c: Likewise.
5951         * sysdeps/generic/ldconfig.h: Likewise.
5952         * locale/programs/localedef.c: Remove xmalloc prototype.
5953         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
5954
5955 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
5956
5957         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
5958         appropriate.
5959
5960 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
5961
5962         * math/Makefile (tests): Add tst-CMPLX.
5963         * math/tst-CMPLX.c: New file.
5964
5965         * math/complex.h (CMPLXL): Fix typo.
5966
5967         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
5968         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
5969         GLIBC_2.16.
5970         * debug/tst-chk1.c: Add poll and ppoll tests.
5971         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
5972         * include/sys/poll.h: Add hidden proto for ppoll.
5973         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
5974         * sysdeps/mach/hurd/ppoll.c: Likewise.
5975         * io/ppoll.c: Likewise.
5976         * debug/poll_chk.c: New file.
5977         * debug/ppoll_chk.c: New file.
5978         * include/bits/poll2.h: New file.
5979         * io/bits/poll2.h: New file.
5980
5981         [BZ #1350]
5982         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
5983
5984         * configure.in: static is always set to yes.  Remove.
5985         * config.make.in: Don't set build-static.
5986         * Makeconfig: Remove use of build-static.
5987         * dlfcn/Makefile: Likewise.
5988         * elf/Makefile: Likewise.
5989         * math/Makefile: Likewise.
5990         * misc/Makefile: Likewise.
5991         * nptl/Makefile: Likewise.
5992         * sysdeps/mach/hurd/Makefile: Likewise.
5993
5994         * configure.in: PWD_P is not used anymore.
5995         * config.make.in: Remove PWD_P entry.
5996
5997         * configure.in: Remove last remnants of RANLIB.
5998         No need to check for signed size_t anymore.
5999         Don't set libc_commonpagesize and libc_relro_required here for Alpha
6000         and IA-64.
6001         Remove __builtin_expect test because we require at least gcc 3.4.
6002         * aclocal.m4: Likewise.
6003
6004         * wcsmbs/mbrtoc16.c: Implement using towc function.
6005         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
6006         * wcsmbs/wcsmbsload.c: Likewise.
6007         * iconv/gconv_simple.c: Likewise.
6008         * iconv/gconv_int.h: Likewise.
6009         * iconv/gconv_builtin.h: Likewise.
6010         * iconv/iconv_prog.c: Remove CHAR16 handling.
6011
6012         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
6013
6014         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
6015
6016         * configure.in: Remove --with-elf and --enable-bounded options.
6017         Dont set base_machine for ia64.  More non-ELF conditions removed.
6018         Remove testing and setting of leading underscore information.
6019         * config.make.in (build-bounded): Set to no.
6020         * config.h.in: Remove NO_UNDERSCORES entry.
6021         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
6022         them.
6023         * csu/start.c: Remove !NO_UNDERSCORE code.
6024         * locale/localeinfo.h: Likewise.
6025         * sysdeps/generic/machine-gmon.h: Likewise.
6026         * sysdeps/generic/sysdep.h: Likewise.
6027         * sysdeps/i386/sysdep.h: Likewise.
6028         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6029         * sysdeps/mach/sysdep.h: Likewise.
6030         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6031         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6032         * sysdeps/sh/sysdep.h: Likewise.
6033         * sysdeps/sparc/sparc32/alloca.S: Likewise.
6034         * sysdeps/unix/i386/sysdep.S: Likewise.
6035         * sysdeps/unix/sparc/start.c: Likewise.
6036         * sysdeps/unix/sparc/sysdep.S: Likewise.
6037         * sysdeps/unix/sparc/sysdep.h: Likewise.
6038         * sysdeps/unix/start.c: Likewise.
6039         * sysdeps/unix/x86_64/sysdep.S: Likewise.
6040         * sysdeps/x86_64/sysdep.h: Likewise.
6041
6042 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
6043
6044         [BZ #13553]
6045         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
6046         for non-gcc.
6047         * argp/argp-fmtstream.h: Use const instead __const.
6048         * argp/argp.h: Likewise.
6049         * assert/assert.h: Likewise.
6050         * bits/fenv.h: Likewise.
6051         * bits/sched.h: Likewise.
6052         * bits/sigset.h: Likewise.
6053         * bits/sigthread.h: Likewise.
6054         * catgets/nl_types.h: Likewise.
6055         * conform/data/pthread.h-data: Likewise.
6056         * crypt/crypt-private.h: Likewise.
6057         * crypt/crypt.h: Likewise.
6058         * crypt/crypt_util.c: Likewise.
6059         * ctype/ctype.h: Likewise.
6060         * debug/execinfo.h: Likewise.
6061         * debug/mbsnrtowcs_chk.c: Likewise.
6062         * debug/mbsrtowcs_chk.c: Likewise.
6063         * debug/wcsnrtombs_chk.c: Likewise.
6064         * debug/wcsrtombs_chk.c: Likewise.
6065         * debug/wcstombs_chk.c: Likewise.
6066         * dirent/dirent.h: Likewise.
6067         * dlfcn/dlfcn.h: Likewise.
6068         * elf/neededtest4.c: Likewise.
6069         * grp/grp.h: Likewise.
6070         * gshadow/gshadow.h: Likewise.
6071         * iconv/gconv.h: Likewise.
6072         * iconv/gconv_int.h: Likewise.
6073         * iconv/gconv_simple.c: Likewise.
6074         * iconv/iconv.h: Likewise.
6075         * iconv/loop.c: Likewise.
6076         * iconv/skeleton.c: Likewise.
6077         * include/aio.h: Likewise.
6078         * include/aliases.h: Likewise.
6079         * include/argz.h: Likewise.
6080         * include/arpa/inet.h: Likewise.
6081         * include/assert.h: Likewise.
6082         * include/dirent.h: Likewise.
6083         * include/dlfcn.h: Likewise.
6084         * include/execinfo.h: Likewise.
6085         * include/fcntl.h: Likewise.
6086         * include/fenv.h: Likewise.
6087         * include/glob.h: Likewise.
6088         * include/grp.h: Likewise.
6089         * include/libintl.h: Likewise.
6090         * include/mntent.h: Likewise.
6091         * include/netdb.h: Likewise.
6092         * include/pwd.h: Likewise.
6093         * include/rpc/netdb.h: Likewise.
6094         * include/sched.h: Likewise.
6095         * include/search.h: Likewise.
6096         * include/shadow.h: Likewise.
6097         * include/signal.h: Likewise.
6098         * include/stdio.h: Likewise.
6099         * include/stdlib.h: Likewise.
6100         * include/string.h: Likewise.
6101         * include/sys/socket.h: Likewise.
6102         * include/sys/stat.h: Likewise.
6103         * include/sys/statfs.h: Likewise.
6104         * include/sys/statvfs.h: Likewise.
6105         * include/sys/syslog.h: Likewise.
6106         * include/sys/time.h: Likewise.
6107         * include/sys/uio.h: Likewise.
6108         * include/time.h: Likewise.
6109         * include/unistd.h: Likewise.
6110         * include/utmp.h: Likewise.
6111         * include/wchar.h: Likewise.
6112         * include/wctype.h: Likewise.
6113         * inet/aliases.h: Likewise.
6114         * inet/arpa/inet.h: Likewise.
6115         * inet/netinet/ether.h: Likewise.
6116         * inet/netinet/in.h: Likewise.
6117         * intl/libintl.h: Likewise.
6118         * io/bits/fcntl2.h: Likewise.
6119         * io/fcntl.h: Likewise.
6120         * io/ftw.h: Likewise.
6121         * io/sys/poll.h: Likewise.
6122         * io/sys/stat.h: Likewise.
6123         * io/sys/statfs.h: Likewise.
6124         * io/sys/statvfs.h: Likewise.
6125         * io/utime.h: Likewise.
6126         * libio/bits/stdio.h: Likewise.
6127         * libio/bits/stdio2.h: Likewise.
6128         * libio/libio.h: Likewise.
6129         * libio/libioP.h: Likewise.
6130         * libio/stdio.h: Likewise.
6131         * locale/lc-ctype.c: Likewise.
6132         * locale/locale.h: Likewise.
6133         * login/utmp.h: Likewise.
6134         * malloc/arena.c: Likewise.
6135         * malloc/malloc.c: Likewise.
6136         * malloc/malloc.h: Likewise.
6137         * malloc/mcheck.c: Likewise.
6138         * malloc/mtrace.c: Likewise.
6139         * math/bits/mathcalls.h: Likewise.
6140         * math/fenv.h: Likewise.
6141         * math/math_private.h: Likewise.
6142         * misc/bits/error.h: Likewise.
6143         * misc/bits/syslog.h: Likewise.
6144         * misc/err.h: Likewise.
6145         * misc/error.h: Likewise.
6146         * misc/fstab.h: Likewise.
6147         * misc/mntent.h: Likewise.
6148         * misc/regexp.h: Likewise.
6149         * misc/search.h: Likewise.
6150         * misc/sgtty.h: Likewise.
6151         * misc/sys/mman.h: Likewise.
6152         * misc/sys/syslog.h: Likewise.
6153         * misc/sys/uio.h: Likewise.
6154         * misc/sys/xattr.h: Likewise.
6155         * misc/ttyent.h: Likewise.
6156         * nis/rpcsvc/ypclnt.h: Likewise.
6157         * nss/nss.h: Likewise.
6158         * posix/bits/unistd.h: Likewise.
6159         * posix/fnmatch.h: Likewise.
6160         * posix/glob.h: Likewise.
6161         * posix/sched.h: Likewise.
6162         * posix/spawn.h: Likewise.
6163         * posix/sys/wait.h: Likewise.
6164         * posix/unistd.h: Likewise.
6165         * posix/wordexp.h: Likewise.
6166         * pwd/pwd.h: Likewise.
6167         * resolv/netdb.h: Likewise.
6168         * resource/sys/resource.h: Likewise.
6169         * rt/aio.h: Likewise.
6170         * rt/bits/mqueue2.h: Likewise.
6171         * rt/mqueue.h: Likewise.
6172         * shadow/shadow.h: Likewise.
6173         * signal/signal.h: Likewise.
6174         * socket/send.c: Likewise.
6175         * socket/sendto.c: Likewise.
6176         * socket/sys/socket.h: Likewise.
6177         * stdio-common/printf.h: Likewise.
6178         * stdlib/bits/stdlib.h: Likewise.
6179         * stdlib/fmtmsg.h: Likewise.
6180         * stdlib/monetary.h: Likewise.
6181         * stdlib/stdlib.h: Likewise.
6182         * stdlib/ucontext.h: Likewise.
6183         * streams/stropts.h: Likewise.
6184         * string/argz.h: Likewise.
6185         * string/bits/string2.h: Likewise.
6186         * string/string.h: Likewise.
6187         * string/strings.h: Likewise.
6188         * sunrpc/rpc/auth.h: Likewise.
6189         * sunrpc/rpc/auth_des.h: Likewise.
6190         * sunrpc/rpc/clnt.h: Likewise.
6191         * sunrpc/rpc/netdb.h: Likewise.
6192         * sunrpc/rpc/pmap_clnt.h: Likewise.
6193         * sunrpc/rpc/xdr.h: Likewise.
6194         * sysdeps/generic/inttypes.h: Likewise.
6195         * sysdeps/generic/net/if.h: Likewise.
6196         * sysdeps/generic/sys/swap.h: Likewise.
6197         * sysdeps/gnu/net/if.h: Likewise.
6198         * sysdeps/gnu/utmpx.h: Likewise.
6199         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
6200         * sysdeps/i386/i486/bits/string.h: Likewise.
6201         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
6202         * sysdeps/s390/bits/string.h: Likewise.
6203         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
6204         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
6205         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6206         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
6207         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6208         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6209         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6210         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
6211         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
6212         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6213         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
6214         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
6215         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
6216         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
6217         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6218         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
6219         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
6220         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6221         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
6222         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
6223         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6224         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
6225         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
6226         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
6227         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
6228         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
6229         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
6230         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6231         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
6232         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
6233         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
6234         * sysvipc/sys/ipc.h: Likewise.
6235         * sysvipc/sys/msg.h: Likewise.
6236         * sysvipc/sys/sem.h: Likewise.
6237         * sysvipc/sys/shm.h: Likewise.
6238         * termios/termios.h: Likewise.
6239         * time/sys/time.h: Likewise.
6240         * time/time.h: Likewise.
6241         * wcsmbs/bits/wchar2.h: Likewise.
6242         * wcsmbs/uchar.h: Likewise.
6243         * wcsmbs/wchar.h: Likewise.
6244         * wctype/wctype.h: Likewise.
6245
6246         [BZ #13551]
6247         * Makeconfig: Remove all but ELF support including AIX support.
6248         * Makerules: Likewise.
6249         * config.h.in: Likewise.
6250         * config.make.in: Likewise.
6251         * configure: Likewise.
6252         * configure.in: Likewise.
6253         * csu/Makefile: Likewise.
6254         * csu/version.c: Likewise.
6255         * debug/Makefile: Likewise.
6256         * dlfcn/Makefile: Likewise.
6257         * elf/Makefile: Likewise.
6258         * extra-lib.mk: Likewise.
6259         * iconv/Makefile: Likewise.
6260         * include/libc-symbols.h: Likewise.
6261         * include/shlib-compat.h: Likewise.
6262         * resolv/Makefile: Likewise.
6263         * resolv/res_libc.c: Likewise.
6264         * rt/Makefile: Likewise.
6265         * sysdeps/i386/asm-syntax.h: Likewise.
6266         * sysdeps/i386/sysdep.h: Likewise.
6267         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
6268         * sysdeps/mach/sysdep.h: Likewise.
6269         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
6270         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
6271         * sysdeps/s390/asm-syntax.h: Likewise.
6272         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6273         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6274         * sysdeps/sh/sysdep.h: Likewise.
6275         * sysdeps/unix/sparc/sysdep.h: Likewise.
6276         * sysdeps/wordsize-32/divdi3.c: Likewise.
6277         * sysdeps/x86_64/sysdep.h: Likewise.
6278
6279         * argp/Versions: Remove _argp_unlock_xxx.
6280
6281         [BZ #13559]
6282         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
6283         * abilist/libBrokenLocale.abilist: Likewise.
6284         * abilist/libanl.abilist: Likewise.
6285         * abilist/libc.abilist: Likewise.
6286         * abilist/libcrypt.abilist: Likewise.
6287         * abilist/libdl.abilist: Likewise.
6288         * abilist/libm.abilist: Likewise.
6289         * abilist/libnsl.abilist: Likewise.
6290         * abilist/libpthread.abilist: Likewise.
6291         * abilist/libresolv.abilist: Likewise.
6292         * abilist/librt.abilist: Likewise.
6293         * abilist/libthread_db.abilist: Likewise.
6294         * abilist/libutil.abilist: Likewise.
6295         * abilist/libnss_db.abilist: New file.
6296
6297         * scripts/abilist.awk: Add support for indirect functions.
6298
6299         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
6300
6301         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
6302
6303         * shlib-versions: Remove entries for ports architectures.
6304
6305         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
6306         files in ports.
6307         * elf/stackguard-macros.h: Remove support for IA-64.
6308         * elf/tst-auditmod1.c: Likewise.
6309         * sysdeps/generic/ldsodefs.h: Likewise.
6310
6311         * sysdeps/unix/sysv/linux/configure.in: Ports should define
6312         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
6313         configure files.
6314
6315         [BZ #13552]
6316         * configure.in: Remove --enable-omitfp support.
6317         * FAQ.in: Adjust.
6318         * config.make.in: Likewise.
6319         * Makeconfig: Likewise.
6320         * manual/install.texi: Likewise.
6321
6322         In case anyone cares, the IA-64 architecture could move to ports.
6323         * sysdeps/ia64/*: Removed.
6324         * sysdeps/unix/sysv/linux/ia64/*: Removed.
6325         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
6326
6327         [BZ #13555]
6328         * configure.in: Remove entries for unsupported architectures.
6329
6330         [BZ #13533]
6331         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
6332         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
6333         routines.
6334         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
6335         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
6336         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
6337         fall back to using wcrtomb.
6338         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
6339         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
6340         renaming.
6341         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
6342         * wcsmbs/tst-c16c32-1.c: New file.
6343
6344         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
6345         local variable.
6346
6347         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
6348
6349         * elf/tst-unique3.cc: Add explicit declaration of gets.
6350         * elf/tst-unique3lib.cc: Likewise.
6351         * elf/tst-unique3lib2.cc: Likewise.
6352         * elf/tst-unique4.cc: Likewise.
6353
6354         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
6355
6356 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
6357
6358         [BZ #13566]
6359         * assert/assert.h (static_assert): Don't define for C++.
6360         * libio/stdio.h (gets): Do declare for C++ <= C++11.
6361         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
6362
6363 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
6364
6365         * iconv/loop.c (single loop): Fix assertion in storing of
6366         remaining bytes.
6367
6368         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
6369
6370 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
6371
6372         * posix/getconf.c: Update copyright year.
6373         * nss/getent.c: Likewise.
6374         * nss/makedb.c: Likewise.
6375         * iconv/iconvconfig.c: Likewise.
6376         * iconv/iconv_prog.c: Likewise.
6377         * elf/ldconfig.c: Likewise.
6378         * elf/pldd.c: Likewise.
6379         * elf/sotruss.ksh: Likewise.
6380         * catgets/gencat.c: Likewise.
6381         * csu/version.c: Likewise.
6382         * elf/ldd.bash.in: Likewise.
6383         * elf/sprof.c (print_version): Likewise.
6384         * locale/programs/locale.c: Likewise.
6385         * locale/programs/localedef.c: Likewise.
6386         * login/programs/pt_chown.c: Likewise.
6387         * nscd/nscd.c (print_version): Likewise.
6388         * debug/xtrace.sh: Likewise.
6389         * malloc/memusage.sh: Likewise.
6390         * malloc/mtrace.pl: Likewise.
6391         * debug/catchsegv.sh: Likewise.
6392
6393 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
6394
6395         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
6396         pure attribute.
6397
6398 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
6399
6400         [BZ #13533]
6401         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
6402         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
6403         transformations.
6404         * iconv/gconv_int.h: Likewise.
6405         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
6406         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
6407         from libc for GLIBC_2.16.
6408         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
6409         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
6410         * wcsmbs/uchar.h: Really define mbstate_t.
6411         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
6412         * wcsmbs/c16rtomb.c: New file.
6413         * wcsmbs/mbrtoc16.c: New file.
6414         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
6415         for C/POSIX locale.
6416         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
6417         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
6418
6419         * wcsmbs/wchar.h: Add missing __restrict.
6420
6421 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6422
6423         [BZ #13532]
6424         * time/Makefile (routines): Add timespec_get.
6425         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
6426         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
6427         timespec for ISO C11.
6428         * time/timespec_get.c: New file.
6429         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
6430         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
6431
6432         [BZ #13531]
6433         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
6434         * stdlib/stdlib.h: Declare aligned_alloc.
6435         * Versions.def: Add GLIBC_2.16 for libc.
6436         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
6437
6438         [BZ 13527]
6439         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
6440         ISO C11.
6441
6442         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
6443         code.
6444
6445         [BZ #13528]
6446         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
6447
6448         [BZ #13529]
6449         * assert/assert.h (static_assert): Define.
6450
6451         * version.h: Update for 2.16 development version.
6452
6453         [BZ #13526]
6454         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
6455         _ISOC11_SOURCE.
6456
6457         * version.h (RELEASE): Bump for 2.15 release.
6458         * include/features.h (__GLIBC_MINOR__): Bump to 15.
6459
6460         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
6461         Patch by Marek Polacek <mpolacek@redhat.com>.
6462
6463         * bits/byteswap.h: Protect long long constants with __extension__.
6464         * sysdeps/i386/bits/byteswap.h: Likewise.
6465         * sysdeps/ia64/bits/byteswap.h: Likewise.
6466         * sysdeps/s390/bits/byteswap.h: Likewise.
6467         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6468
6469 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6470
6471         [BZ #13540]
6472         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
6473         destination buffer.
6474         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
6475
6476 2011-12-23  Marek Polacek  <polacek@redhat.com>
6477
6478         * elf/dl-addr.c (determine_info): Add inline keyword.
6479         * elf/tst-auditmod4b.c (check_avx): Likewise.
6480         * elf/tst-auditmod6b.c (check_avx): Likewise.
6481         * elf/tst-auditmod6c.c (check_avx): Likewise.
6482         * elf/tst-auditmod7b.c (check_avx): Likewise.
6483
6484 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
6485
6486         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
6487         !__SSE_MATH__.
6488
6489 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6490
6491         [BZ #13540]
6492         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
6493         processing for last bytes.
6494
6495 2011-08-06  Bruno Haible  <bruno@clisp.org>
6496
6497         [BZ #13061]
6498         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
6499         U+0385, not to U+1FEE.
6500
6501         [BZ #13062]
6502         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
6503         entry for U+00A5 U+0301.
6504
6505 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6506
6507         [BZ #13166]
6508         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
6509         buffer for the output is too small.
6510
6511         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
6512         optimization.
6513
6514         [BZ #13185]
6515         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
6516         SSE flags if possible.
6517
6518 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6519
6520         [BZ #13540]
6521         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
6522         processing for last bytes.
6523
6524 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
6525
6526         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
6527         (syscall-list-default-options, syscall-list-default-condition)
6528         (syscall-list-includes): Define.
6529         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
6530         list of ABIs and options and #if conditions for each ABI.  Do not
6531         handle common syscalls between ABIs specially.
6532         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
6533         Remove.
6534         (syscall-list-variants, syscall-list-32bit-options)
6535         (syscall-list-32bit-condition, syscall-list-64bit-options)
6536         (syscall-list-64bit-condition): Define.
6537         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
6538         (syscall-list-variants, syscall-list-32bit-options)
6539         (syscall-list-32bit-condition, syscall-list-64bit-options)
6540         (syscall-list-64bit-condition): Define.
6541         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
6542         Remove.
6543         (syscall-list-variants, syscall-list-32bit-options)
6544         (syscall-list-32bit-condition, syscall-list-64bit-options)
6545         (syscall-list-64bit-condition): Define.
6546         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
6547         Remove.
6548         (syscall-list-variants, syscall-list-32bit-options)
6549         (syscall-list-32bit-condition, syscall-list-64bit-options)
6550         (syscall-list-64bit-condition): Define.
6551
6552 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
6553
6554         * locale/iso-639.def: Add brx entry.
6555
6556         [BZ #13328]
6557         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
6558         Proposed by Mariusz_Cukr <marcukr@op.pl>.
6559
6560         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
6561         __feraiseexcept_renamed.
6562
6563 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
6564
6565         [BZ #13538]
6566         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
6567         EPOLLET with unsigned values.
6568         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6569         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
6570
6571         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
6572         to large cancellation.
6573         * math/s_cacoshf.c: Likewise.
6574         * math/s_cacoshl.c: Likewise.
6575
6576 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
6577
6578         [BZ #13305]
6579         [BZ #12786]
6580         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
6581         * math/s_cacoshf.c: Likewise.
6582         * math/s_cacoshl.c: Likewise.
6583
6584 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
6585
6586         [BZ #13439]
6587         * iconv/gconv.h: Define __GCONV_SWAP.
6588         * iconvdata/unicode.c: The swap bit must be stored in __flags.
6589         * iconvdata/utf-16.c: Likewise.
6590         * iconvdata/utf-32.c: Likewise.
6591
6592 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
6593
6594         [BZ #13524]
6595         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
6596         numerator after shifting it by one limb.
6597
6598 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
6599
6600         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
6601         under [__USE_EXTERN_INLINES].
6602
6603 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
6604
6605         [BZ #13446]
6606         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
6607
6608 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6609
6610         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
6611         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
6612         optimized code.
6613         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
6614         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
6615         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
6616         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
6617         for strncasecmp/strncasecmp_l compilation.
6618         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
6619         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
6620
6621 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
6622
6623         [BZ #13484]
6624         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
6625         of __asm__.
6626
6627 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
6628
6629         [BZ #13506]
6630         * time/tzfile.c (__tzfile_read): Check values from file header.
6631
6632 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
6633
6634         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
6635         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
6636         * powerpc/powerpc32/dl-start.S: Likewise.
6637         * powerpc/powerpc32/elf/start.S: Likewise.
6638         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
6639         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
6640         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
6641         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
6642         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
6643         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
6644         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
6645         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
6646         * powerpc/powerpc32/fpu/s_round.S: Likewise.
6647         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
6648         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
6649         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
6650         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
6651         * powerpc/powerpc32/memset.S: Likewise.
6652         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
6653         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6654         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6655         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6656         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6657         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
6658         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
6659         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
6660         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
6661         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
6662         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
6663         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
6664         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
6665
6666 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6667
6668         * math/libm-test.inc: Added more nearbyint tests.
6669         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
6670         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
6671         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
6672         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
6673
6674 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
6675
6676         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
6677         FD_CLOEXEC.
6678
6679 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6680
6681         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
6682         Add wcscpy-ssse3 wcscpy-c.
6683         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
6684         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
6685         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
6686         * sysdeps/x86_64/wcschr.S: New file.
6687         * sysdeps/x86_64/wcsrchr.S: New file.
6688         * string/test-strcmp.c: Remove checking of wcscmp function for
6689         wrong alignments.
6690         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
6691         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
6692         wcsrchr-sse2 wcsrchr-c.
6693         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
6694         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
6695         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
6696         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
6697         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
6698         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
6699         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
6700         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
6701         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
6702         * wcsmbc/wcschr.c (WCSCHR): New macro.
6703
6704 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6705
6706         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
6707         * wcsmbs/test-wcsrchr.c: New file.
6708         * string/test-strrchr.c: Add wcsrchr support.
6709         (WIDE): New macro.
6710         * wcsmbs/test-wcscpy.c: New file.
6711         * string/test-strcpy.c: Add wcscpy support.
6712         (WIDE): New macro.
6713
6714 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
6715
6716         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
6717         the inner loop.
6718
6719 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
6720
6721         [BZ #13472]
6722         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
6723
6724 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
6725
6726         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
6727         Minor optimizations.
6728
6729         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
6730         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
6731         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
6732
6733 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
6734
6735         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
6736         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
6737         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
6738         for gcc to avoid warnings.
6739         * inet/Makefile (tests): Add tst-checks.
6740         * inet/tst-checks.c: New file.
6741
6742         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
6743         warning.
6744
6745         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
6746         __wmemcmp_sse2.
6747
6748         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
6749         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
6750
6751         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
6752
6753 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
6754
6755         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
6756         problem.
6757
6758         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
6759
6760 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
6761
6762         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
6763         conditional on GCC version.
6764         (__arch_compare_and_exchange_val_8_acq)
6765         (__arch_compare_and_exchange_val_16_acq)
6766         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
6767         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
6768         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
6769
6770 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
6771
6772         * sysdeps/sh/backtrace.c: New file.
6773
6774 2011-12-02  Andreas Schwab  <schwab@redhat.com>
6775
6776         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
6777         parenthesis.
6778
6779 2011-12-01  Andreas Schwab  <schwab@redhat.com>
6780
6781         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
6782         falling back to utime.
6783
6784 2011-11-30  Andreas Schwab  <schwab@redhat.com>
6785
6786         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
6787         expectations for float.
6788
6789 2011-11-29  Andreas Schwab  <schwab@redhat.com>
6790
6791         * locale/weight.h (findidx): Add parameter len.
6792         * locale/weightwc.h (findidx): Likewise.
6793         * posix/fnmatch_loop.c (FCT): Adjust caller.
6794         * posix/regcomp.c (build_equiv_class): Likewise.
6795         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
6796         * posix/regexec.c (check_node_accept_bytes): Likewise.
6797         * string/strcoll_l.c (STRCOLL): Likewise.
6798         * string/strxfrm_l.c (STRXFRM): Likewise.
6799
6800 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
6801
6802         * Makefile.in: Remove CVSOPT handling.
6803         * configure.in: Remove use of AC_REVISION.
6804         * iconvdata/Makefile (distribute): No need to filter out CVS.
6805         * scripts/list-sources.sh: Remove CVS, subversion and monotone
6806         handling.
6807
6808 2011-11-16  Andreas Schwab  <schwab@redhat.com>
6809
6810         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
6811         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
6812         [USE_AS_STRNCASECMP_L]: Likewise.
6813         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
6814         NO_TLS_DIRECT_SEG_REFS.
6815         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
6816         Fix argument offsets for non-PIC.
6817         [USE_AS_STRNCASECMP_L]: Likewise.
6818         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
6819         NO_TLS_DIRECT_SEG_REFS.
6820
6821 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
6822
6823         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
6824         O_CLOEXEC.
6825         * locale/loadlocale.c (_nl_load_locale): Likewise.
6826
6827 2011-11-15  Andreas Schwab  <schwab@redhat.com>
6828
6829         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
6830         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
6831         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
6832         (SYSCALL_GETTIME): Set errno on error.
6833
6834         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
6835         count references to noai6ai_cached.
6836
6837 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
6838
6839         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
6840
6841         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
6842         FD_CLOEXEC for /proc/self/maps.
6843
6844         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
6845         FD_CLOEXEC for /proc/meminfo.
6846
6847         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
6848         gai.conf.
6849
6850         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
6851         FD_CLOEXEC for given file.
6852
6853         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
6854
6855         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
6856         FD_CLOEXEC for /etc/hosts.
6857         (_gethtent): Likewise.
6858
6859         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
6860
6861         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
6862         cancellation and set FD_CLOEXEC for /etc/netgroup.
6863
6864         * nss/nss_files/files-key.c (search): Don't allow cancellation when
6865         reading /etc/publickey.
6866
6867         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
6868         allow cancellation when reading /etc/group.
6869
6870         * nss/nss_files/files-alias.c (internal_setent): Don't allow
6871         cancellation.
6872         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
6873
6874         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
6875         when using data file.
6876
6877         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
6878
6879         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
6880         (write_nis_obj): Use "c" and "e" in fopen.
6881
6882         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
6883
6884         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
6885
6886         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
6887
6888         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
6889
6890         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
6891         locale.alias.
6892
6893         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
6894
6895         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
6896
6897         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
6898
6899         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
6900         file parsing and set FD_CLOEXEC.
6901
6902 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6903
6904         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
6905
6906 2011-11-14  Andreas Schwab  <schwab@redhat.com>
6907
6908         * malloc/arena.c (arena_get2): Don't call reused_arena when
6909         _int_new_arena failed.
6910
6911 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
6912
6913         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
6914         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
6915         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
6916         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6917         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6918         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
6919         to compile strcasecmp and strncasecmp.
6920         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
6921         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
6922
6923         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
6924
6925 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
6926
6927         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
6928         locale-defines.sym to gen-as-const-headers.
6929         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
6930         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
6931         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
6932         to compile strcasecmp and strncasecmp.
6933         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
6934         strcasecmp_l and strncasecmp_l.
6935         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
6936         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
6937         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
6938         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
6939         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
6940         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
6941         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
6942         * sysdeps/i386/i686/multiarch/strncase.S: New file.
6943         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
6944         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
6945         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
6946
6947 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
6948
6949         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
6950         result of SYSDEP_GETTIME_CPU to retval.
6951         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
6952         parameter list to macro.  Remove trailing semicolon.  Adjust users.
6953
6954         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
6955         variable.
6956
6957         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
6958         mantissa words.
6959         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
6960
6961         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
6962         from unused variable.
6963
6964         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
6965         DWARF definitions.
6966         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
6967         for assembling.
6968
6969         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
6970         over namespaces.
6971
6972         * sunrpc/rpc_prot.c (rejected): Fix case value.
6973
6974         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
6975         unsigned long long int to avoid warnings in shift.
6976
6977         * posix/regex_internal.c (re_string_reconstruct): Actually use result
6978         of use of trans.
6979         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
6980         variable tmp.
6981
6982         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
6983         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
6984         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
6985
6986         * nis/nis_table.c (nis_list): Use variable of correct type for
6987         result of __follow_path call.
6988
6989 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6990
6991         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
6992         of math functions ceil, trunc, floor, round, and sqrt, when
6993         avaliable on the platform.
6994         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
6995         name clash.
6996         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6997         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6998         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6999
7000 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
7001
7002         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
7003         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
7004
7005 2011-11-11  Roland McGrath  <roland@hack.frob.com>
7006
7007         * include/unistd.h: Fix __readlink return type.
7008         Reported by Chris Metcalf <cmetcalf@tilera.com>.
7009
7010 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
7011
7012         * stdlib/ucontext.h: Undo last change for makecontext.
7013
7014 2011-11-11  Andreas Schwab  <schwab@redhat.com>
7015
7016         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
7017
7018         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
7019         * setjmp/setjmp.h: Mark functions as non-leaf.
7020         * setjmp/bits/setjmp2.h: Likewise.
7021         * stdlib/ucontext.h: Likewise.
7022
7023 2011-11-10  Andreas Schwab  <schwab@redhat.com>
7024
7025         * malloc/arena.c (_int_new_arena): Don't increment narenas.
7026         (reused_arena): Don't check arena limit.
7027         (arena_get2): Atomically check arena limit.
7028
7029 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
7030
7031         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
7032         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
7033
7034         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
7035         instructions.
7036
7037 2011-11-07  Andreas Schwab  <schwab@redhat.com>
7038
7039         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
7040         handler when locking.
7041
7042         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7043         Fix size of allocated buffer.
7044
7045 2011-11-04  Andreas Schwab  <schwab@redhat.com>
7046
7047         [BZ #10103]
7048         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
7049         declarations for long double functions.
7050         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
7051
7052         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
7053
7054 2011-11-03  Andreas Schwab  <schwab@redhat.com>
7055
7056         * nscd/nscd.c (main): Don't start AVC thread until credentials are
7057         installed.
7058
7059         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
7060         is disabled.
7061
7062 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7063
7064         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
7065
7066 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7067
7068         * include/alloca.h (stackinfo_alloca_round): Define.
7069         (extend_alloca): Use it.
7070         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
7071         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
7072         here.
7073
7074         * scripts/check-local-headers.sh: Ignore libaudit.h.
7075
7076         * nscd/Makefile (extra-objs): Make recursively expanded.
7077
7078 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
7079
7080         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
7081         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7082
7083         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
7084         * posix/tst-rfc3484-2.c: Likewise.
7085         * posix/tst-rfc3484-3.c: Likewise.
7086
7087         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
7088         process_vm_writev.
7089         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
7090         process_vm_writev.
7091         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
7092         process_vm_writev from libc using GLIBC_2.15 version.
7093
7094         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
7095
7096 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
7097
7098         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
7099         stack usage.
7100
7101 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
7102
7103         [BZ #13367]
7104         * nss/getent.c (initgroups_keys): Show error message in case no group
7105         names are given.
7106
7107         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
7108         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
7109         __bump_nl_timestamp.
7110         * nscd/connections (nscd_init): When host database is served open
7111         netlink socket and request notification about configuration changes.
7112         (main_loop_poll): Track netlink file descriptor and bump timestamp
7113         in case data becomes available.
7114         (main_loop_epoll): Likewise.
7115         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
7116         (database_pers_head): Add extra_data fileds.
7117         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
7118         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
7119         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
7120         Adjust caller.
7121         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
7122         in6ai data, call __free_in6ai.
7123         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
7124         Add -DHAVE_NETLINK.
7125         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
7126         interface information.  Reuse previous data if netlink timestamp
7127         is not changed.
7128         (__bump_nl_timestamp): New function.
7129         (__free_in6ai): New function.
7130
7131 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
7132
7133         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
7134         close_not_cancel_no_status here.
7135         (__check_pf): Reorganize code a bit to not call close twice if OOM.
7136
7137 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7138
7139         [BZ #13276]
7140         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
7141         return value.
7142
7143         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
7144         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
7145         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
7146
7147 2011-07-03  Andreas Jaeger  <aj@suse.de>
7148
7149         [BZ #10709]
7150         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
7151         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
7152         * math/libm-test.inc (sin_test): Add test case.
7153
7154 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
7155
7156         [BZ #13337]
7157         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
7158         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7159
7160         * elf/chroot_canon.c (chroot_canon): Cleanups.
7161
7162         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
7163
7164         [BZ #13335]
7165         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
7166         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
7167
7168         * string/test-strchr.c: Make usable for strchrnul testing.
7169         * string/test-strchrnul.c: New file.
7170         * string/Makefile (strop-tests): Add strchrnul.
7171
7172         * po/it.po: Update from translation team.
7173         * po/es.po: Likewise.
7174
7175 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
7176
7177         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
7178         the three constants needed as parameters.  Drop the others.
7179         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
7180         __m128i_strloadu_tolower.
7181         Create and initialize variable zero and use it in all the places
7182         where _mm_setzero_si128 was used.
7183
7184         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
7185         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
7186         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
7187         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
7188         anymore.
7189         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
7190         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
7191         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
7192         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
7193         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
7194         __mpranred, __mptan.
7195         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
7196         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
7197         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
7198         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
7199         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
7200         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
7201         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
7202         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
7203         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
7204
7205 2011-10-28  Andreas Schwab  <schwab@redhat.com>
7206
7207         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
7208         redefine if SHARED.
7209         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
7210
7211         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
7212         wide char related routines to wcsmbs subdir.
7213
7214 2011-10-27  Andreas Schwab  <schwab@redhat.com>
7215
7216         [BZ #13344]
7217         * misc/sys/cdefs.h (__THROWNL): Define.
7218         * posix/unistd.h: Use __THREADNL instead of __THREAD
7219         for memory synchronization functions.
7220
7221 2011-10-26  Roland McGrath  <roland@hack.frob.com>
7222
7223         [BZ #13349]
7224         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
7225         doesn't exist.
7226         * manual/stdio.texi (Obstack Streams): Node removed.
7227
7228 2011-10-26  Andreas Schwab  <schwab@redhat.com>
7229
7230         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
7231         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7232         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7233
7234         * math/math_private.h (math_force_eval): Allow non-addressable
7235         arguments.
7236         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
7237
7238 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7239
7240         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
7241         file is not needed.
7242
7243         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
7244         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7245         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7246         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7247         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7248         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7249         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7250         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
7251         Add AVX variants.
7252         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
7253         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
7254         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
7255         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
7256         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
7257         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
7258         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
7259         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
7260         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
7261         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
7262         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
7263         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
7264         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
7265         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
7266         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
7267         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
7268         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
7269         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
7270         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
7271
7272         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
7273         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
7274
7275         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
7276         place.  Use VEX encoding when compiling for AVX.
7277
7278 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7279
7280         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
7281         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7282
7283         * string/test-strchr.c (do_test): Don't generate NUL bytes.
7284
7285 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7286
7287         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
7288         useless if() expression.
7289         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7290         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7291         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7292         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7293         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7294         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7295         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7296         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7297         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7298         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7299         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7300         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7301         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7302         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7303         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7304         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7305         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7306         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7307         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7308
7309         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
7310
7311 2011-10-25  Andreas Schwab  <schwab@redhat.com>
7312
7313         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
7314         condition.
7315         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7316
7317 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
7318
7319         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
7320         .text section.  Avoid duplicate constants.
7321         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7322         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7323         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7324         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7325         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7326         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7327         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7328         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7329         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
7330         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
7331         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
7332         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
7333         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
7334         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
7335         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
7336         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
7337         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
7338         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
7339         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7340         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7341         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7342         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7343         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7344         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
7345         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
7346         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
7347         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
7348         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
7349         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
7350         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
7351         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
7352         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
7353         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
7354         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
7355         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
7356         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
7357         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
7358         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
7359         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
7360         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
7361         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
7362         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
7363         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
7364         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
7365         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
7366
7367 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
7368
7369         * sysdeps/x86_64/dla.h: Move to ...
7370         * sysdeps/x86_64/fpu/dla.h: ...here.
7371         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
7372         situations.  Use __builtin_fma only for gcc 4.6 and up.
7373
7374         * config.make.in: Add have-mfma4 entry.
7375         * configure.in: Substitute libc_cv_cc_fma4.
7376         * math/Makefile (dbl-only-routines): Add sincostab.
7377         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
7378         Use __sincostab not sincos.
7379         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
7380         name is a macro.
7381         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7382         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7383         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7384         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
7385         using __copysign.
7386         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
7387         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
7388         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
7389         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
7390         and __inv.
7391         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
7392         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
7393         __copysign.
7394         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
7395         define aliases when function name is a macro.
7396         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
7397         sysdeps/ieee754/dbl-64/sincos.tbl.
7398         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
7399         fma4-enabled routines.
7400         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
7401         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
7402         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
7403         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
7404         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
7405         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
7406         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
7407         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
7408         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
7409         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
7410         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
7411         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
7412         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
7413         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
7414         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
7415         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
7416         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
7417         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
7418         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
7419         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
7420         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
7421         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
7422         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
7423         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
7424         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
7425         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
7426         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
7427         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
7428         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
7429         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
7430
7431         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
7432         rename.
7433         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7434         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7435         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7436         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7437         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7438         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7439         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7440         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7441
7442 2011-10-24  Andreas Schwab  <schwab@redhat.com>
7443
7444         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
7445
7446 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7447
7448         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
7449
7450         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
7451         prediction.
7452         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
7453
7454         * string/strnlen.c: Don't define STRNLEN, reverse logic.
7455         Remove unused variable magic_bits.
7456         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
7457
7458         * string/strnlen.c: Define and use STRNLEN macro.
7459         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
7460         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
7461         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
7462         * wcsmbs/wcslen.c: Define and use WCSLEN.
7463         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
7464         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
7465         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
7466         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
7467         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
7468         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
7469         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7470
7471 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7472
7473         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7474         strnlen-sse2-no-bsf.
7475         Rename strlen-no-bsf to strlen-sse2-no-bsf.
7476         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
7477         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
7478         Add strnlen support.
7479         (USE_AS_STRNLEN): New macro.
7480         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
7481         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
7482         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
7483         * sysdeps/x86_64/wcslen.S: New file.
7484
7485 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
7486
7487         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7488         XMM-moves are used for copying on small sizes.
7489
7490 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7491
7492         * wcsmbs/Makefile (strop-tests): Add wcschr.
7493         * wcsmbs/test-wcschr.c: New file.
7494         * string/test-strchr.c: Update.
7495         Add wcschr support.
7496         (WIDE): New macro.
7497
7498 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7499
7500         * wcsmbs/Makefile (strop-tests): Add wcslen.
7501         * wcsmbs/test-wcslen.c: New file.
7502         * string/test-strlen.c: Update.
7503         Add wcslen support.
7504         (WIDE): New macro.
7505
7506 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7507
7508         * po/it.po: Update from translation team.
7509
7510 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7511
7512         * sysdeps/x86_64/wcscmp.S: Update.
7513         Fix wrong comparison semantics.
7514         wcscmp shall use signed comparison not unsigned.
7515         Don't use substraction to avoid overflow bug.
7516         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
7517         * wcsmbc/wcscmp.c: Likewise.
7518         * string/test-strcmp.c: Likewise.
7519         Add new tests to check cases with negative values.
7520
7521 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
7522
7523         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
7524         * sysdeps/x86_64/dla.h: ...here.  New file.
7525         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
7526         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7527         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7528         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7529         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7530         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7531         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7532         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7533         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7534
7535 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
7536
7537         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
7538         __ynl_finite aliases.
7539
7540 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
7541
7542         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7543
7544         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
7545         define DLA_FMA.
7546         [DLA_FMA] (EMULV): Use DLA_FMA.
7547         [DLA_FMA] (MUL12): Use EMULV.
7548         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
7549         that are not needed.
7550         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7551         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7552         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7553         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7554         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7555         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7556         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7557
7558 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
7559
7560         * math/s_nan.c: Undef __nan.
7561         * math/s_nanf.c: Undef __nanf.
7562         * math/s_nanl.c: Undef __nanl.
7563         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
7564         "math_private.h".
7565
7566 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
7567
7568         * math/s_catan.c: Add branch predictions.
7569         * math/s_catanf.c: Likewise.
7570         * math/s_catanh.c: Likewise.
7571         * math/s_catanhf.c: Likewise.
7572         * math/s_catanhl.c: Likewise.
7573         * math/s_catanl.c: Likewise.
7574         * math/s_cexp.c: Likewise.
7575         * math/s_cexpf.c: Likewise.
7576         * math/s_cexpl.c: Likewise.
7577         * math/s_clog.c: Likewise.
7578         * math/s_clog10.c: Likewise.
7579         * math/s_clog10f.c: Likewise.
7580         * math/s_clog10l.c: Likewise.
7581         * math/s_clogf.c: Likewise.
7582         * math/s_clogl.c: Likewise.
7583         * math/s_csqrt.c: Likewise.
7584         * math/s_csqrtf.c: Likewise.
7585         * math/s_csqrtl.c: Likewise.
7586         * math/s_ctanf.c: Likewise.
7587         * math/s_ctanh.c: Likewise.
7588         * math/s_ctanhf.c: Likewise.
7589         * math/s_ctanhl.c: Likewise.
7590         * math/s_ctanl.c: Likewise.
7591
7592         * math/math_private.h: Define __nan, __nanf, __nanl.
7593         * math/s_cacosh.c: Include <math_private.h>.
7594         * math/s_cacoshl.c: Likewise.
7595         * math/s_casinh.c: Likewise.
7596         * math/s_casinhf.c: Likewise.
7597         * math/s_casinhl.c: Likewise.
7598         * math/s_ccos.c: Rely entire on ccosh.
7599         * math/s_ccosf.c: Rely entire on ccoshf.
7600         * math/s_ccosl.c: Rely entirely on ccoshl.
7601         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
7602         Remove tests for FE_INVALID.
7603         * math/s_ccoshf.c: Likewise.
7604         * math/s_ccoshl.c: Likewise.
7605         * math/s_csin.c: Likewise.
7606         * math/s_csinf.c: Likewise.
7607         * math/s_csinh.c Likewise.
7608         * math/s_csinhf.c: Likewise.
7609         * math/s_csinhl.c: Likewise.
7610         * math/s_csinl.c: Likewise.
7611         * math/s_ctan.c: Likewise.
7612         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
7613         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
7614         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
7615
7616 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
7617
7618         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
7619         compilation problems.
7620
7621         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
7622         __builtin_expect.
7623
7624 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
7625
7626         * sysdeps/i386/configure.in: Test for -mfma4 option.
7627         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
7628         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
7629         COMMON_CPUID_INDEX_80000001.
7630         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
7631         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
7632         use it if FMA3 is not supported.
7633         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
7634
7635         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
7636         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
7637
7638 2011-10-20  Andreas Schwab  <schwab@redhat.com>
7639
7640         [BZ #12892]
7641         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
7642         it would create a cycle with a link time dependency.
7643
7644 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
7645
7646         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
7647         instruction.
7648         * string/Makefile (strop-tests): Add rawmemchr.
7649         * string/test-rawmemchr.c: New file.
7650
7651         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
7652         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
7653         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
7654         when compiling str{,n}casecmp and when AVX is available.  Hook up
7655         new optimized code in initializers.
7656
7657 2011-10-19  Andreas Schwab  <schwab@redhat.com>
7658
7659         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
7660         __feraiseexcept instead of feraiseexcept.
7661
7662 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
7663
7664         * math/math_private.h: Define defaults for libc_fetestexcept and
7665         libc_feupdateenv.
7666         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
7667         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7668         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
7669         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
7670         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7671         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
7672         libc_fetestexcept and libc_feupdateenv.
7673
7674         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
7675         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
7676         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
7677         * sysdeps/x86_64/fpu/math_private.h: Define special version of
7678         libc_feholdexcept_setround.
7679
7680         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
7681         Add s_nearbyint-c and s_nearbyintf-c.
7682         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
7683         nearbyintf inlines.
7684         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
7685         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
7686         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
7687         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
7688
7689         * math/math_private.h: Define defaults for libc_fegetround,
7690         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
7691         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
7692         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
7693         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
7694         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
7695         standard functions.
7696         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7697         Remove comments and hacks for old compiler versions.
7698         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
7699         libc_fegetround, libc_fesetround, libc_feholdexcept, and
7700         libc_feholdexceptl.
7701
7702 2011-10-18  Andreas Schwab  <schwab@redhat.com>
7703
7704         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
7705         (__feraiseexcept_renamed): Add __NTH.
7706         (feraiseexcept): Add __NTH.  Rename local variables to fix
7707         namespace violations.
7708
7709 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
7710
7711         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
7712
7713         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
7714
7715         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
7716         recently added interfaces.
7717         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7718
7719         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
7720         about macro parameter expansion.
7721
7722         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
7723         __NO_MATH_INLINES is defined.  Cleanups.
7724
7725         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
7726         and __floorf is target has SSE4.1.
7727         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
7728         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
7729         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
7730         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
7731
7732         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
7733         name.
7734         (floorf): Likewise.
7735
7736         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
7737
7738 2011-10-17  Andreas Schwab  <schwab@redhat.com>
7739
7740         * misc/sys/cdefs.h: Fix last change.
7741
7742         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
7743         database lookup.
7744
7745 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
7746
7747         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
7748
7749         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
7750         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7751         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7752         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7753         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7754         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7755         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7756         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7757         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7758         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
7759         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
7760         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
7761         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
7762         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
7763         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
7764         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
7765         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
7766         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
7767         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
7768         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
7769         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
7770         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
7771
7772         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
7773         ceil, ceilf, floor, floorf.
7774
7775         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
7776         Perform IRELATIVE relocations last.
7777
7778         * elf/do-rel.h: Add another parameter nrelative, replacing the
7779         local variable with the same name.  Change name of the function
7780         to end in Rel or Rela (uppercase).
7781         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
7782         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
7783         elf_dynamic_do_##reloc function.
7784
7785 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
7786
7787         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
7788         is sufficient, at least on modern CPUs.
7789
7790         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
7791
7792         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
7793         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
7794
7795         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
7796         __expl_finite.
7797         * math/bits/math-finite.h: Add entries for exp.
7798         * math/e_expl.c: Add __*_finite alias.
7799         * sysdeps/i386/fpu/e_exp.S: Likewise.
7800         * sysdeps/i386/fpu/e_expf.S: Likewise.
7801         * sysdeps/i386/fpu/e_expl.c: Likewise.
7802         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7803         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
7804         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7805         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7806         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
7807         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
7808         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
7809
7810         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
7811         is sufficient, at least on modern CPUs.
7812
7813         * ctype/ctype-info.c (__ctype_init): Define.
7814         * include/ctype.h (__ctype_init): Declare.
7815         (__ctype_b_loc): The variable is always initialized.
7816         (__ctype_toupper_loc): Likewise.
7817         (__ctype_tolower_loc): Likewise.
7818         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
7819         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
7820
7821 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
7822
7823         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
7824
7825         * configure.in: Also look in $cxxmachine/include for C++ system
7826         headers.
7827
7828 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7829
7830         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
7831         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
7832         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
7833         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
7834         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
7835         (USE_AS_WMEMCMP): New macro.
7836         Fixing indents.
7837         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
7838         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
7839         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
7840         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
7841         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7842         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
7843         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
7844         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
7845         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
7846         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
7847         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
7848         (USE_AS_WMEMCMP): New macro.
7849         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
7850         * sysdeps/string/test-memcmp.c: Update.
7851         Fix simple_wmemcmp.
7852         Add new tests.
7853         * wcsmbs/wmemcmp.c: Update.
7854         (WMEMCMP): New macro.
7855         Fix overflow bug.
7856
7857 2011-10-12  Andreas Jaeger  <aj@suse.de>
7858
7859         [BZ #13268]
7860         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
7861
7862 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
7863
7864         * libio/iofwide.c (do_length): Avoid warning.
7865
7866         * ctype/ctype.h (__isctype_f): Add missing __THROW.
7867
7868 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
7869
7870         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
7871
7872         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
7873         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
7874         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
7875         * sysdeps/i386/i686/fpu/e_log.S: New file.
7876         * sysdeps/i386/i686/fpu/e_logf.S: New file.
7877         * sysdeps/i386/i686/fpu/e_logl.S: New file.
7878
7879         * ctype/ctype.h: Add support for inlined isXXX functions when
7880         compiling C++ code.
7881
7882 2011-10-14  Andreas Schwab  <schwab@redhat.com>
7883
7884         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7885
7886         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
7887
7888 2011-10-13  Roland McGrath  <roland@hack.frob.com>
7889
7890         [BZ #13291]
7891         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
7892
7893 2011-10-13  Andreas Schwab  <schwab@redhat.com>
7894
7895         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
7896         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
7897         feraiseexcept.
7898
7899         * sysdeps/x86_64/memrchr.S: Check for zero size.
7900
7901         * string/stratcliff.c: Add memrchr tests.
7902
7903 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7904
7905         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7906         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
7907         rawmemchr-sse2 rawmemchr-sse2-bsf.
7908         * sysdeps/i386/i686/multiarch/memchr.S: New file.
7909         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
7910         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
7911         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
7912         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
7913         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
7914         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
7915         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
7916         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
7917         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
7918         * string/memrchr.c (MEMRCHR): New macro.
7919
7920 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
7921
7922         Add integration with gcc's -ffinite-math-only and optimize wrapper
7923         functions in libm.
7924         * Versions.def: Define GLIBC_2.15 version for libm.
7925         * math/Makefile (headers): Add bits/math-finite.h.
7926         * math/bits/math-finite.h: New file.
7927         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
7928         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
7929         * math/e_acoshl.c: Add __*_finite alias.
7930         * math/e_acosl.c: Likewise.
7931         * math/e_asinl.c: Likewise.
7932         * math/e_atan2l.c: Likewise.
7933         * math/e_atanhl.c: Likewise.
7934         * math/e_coshl.c: Likewise.
7935         * math/e_exp10.c: Likewise.
7936         * math/e_exp10f.c: Likewise.
7937         * math/e_exp10l.c: Likewise.
7938         * math/e_exp2l.c: Likewise.
7939         * math/e_fmodl.c: Likewise.
7940         * math/e_gammal_r.c: Likewise.
7941         * math/e_hypotl.c: Likewise.
7942         * math/e_j0l.c: Likewise.
7943         * math/e_j1l.c: Likewise.
7944         * math/e_jnl.c: Likewise.
7945         * math/e_lgammal_r.c: Likewise.
7946         * math/e_log10l.c: Likewise.
7947         * math/e_log2l.c: Likewise.
7948         * math/e_logl.c: Likewise.
7949         * math/e_powl.c: Likewise.
7950         * math/e_sinhl.c: Likewise.
7951         * math/e_sqrtl.c: Likewise.
7952         * math/e_scalb.c: Completely rewritten and optimized.
7953         * math/e_scalbf.c: Likewise.
7954         * math/e_scalbl.c: Likewise.
7955         * math/w_acos.c: Likewise.
7956         * math/w_acosf.c: Likewise.
7957         * math/w_acosl.c: Likewise.
7958         * math/w_acosh.c: Likewise.
7959         * math/w_acoshf.c: Likewise.
7960         * math/w_acoshl.c: Likewise.
7961         * math/w_asin.c: Likewise.
7962         * math/w_asinf.c: Likewise.
7963         * math/w_asinl.c: Likewise.
7964         * math/w_atan2.c: Likewise.
7965         * math/w_atan2f.c: Likewise.
7966         * math/w_atan2l.c: Likewise.
7967         * math/w_atanh.c: Likewise.
7968         * math/w_atanhf.c: Likewise.
7969         * math/w_atanhl.c: Likewise.
7970         * math/w_exp10.c: Likewise.
7971         * math/w_exp10f.c: Likewise.
7972         * math/w_exp10l.c: Likewise.
7973         * math/w_fmod.c: Likewise.
7974         * math/w_fmodf.c: Likewise.
7975         * math/w_fmodl.c: Likewise.
7976         * math/w_j0.c: Likewise.
7977         * math/w_j0f.c: Likewise.
7978         * math/w_j0l.c: Likewise.
7979         * math/w_j1.c: Likewise.
7980         * math/w_j1f.c: Likewise.
7981         * math/w_j1l.c: Likewise.
7982         * math/w_jn.c: Likewise.
7983         * math/w_jnf.c: Likewise.
7984         * math/w_log.c: Likewise.
7985         * math/w_logf.c: Likewise.
7986         * math/w_logl.c: Likewise.
7987         * math/w_log10.c: Likewise.
7988         * math/w_log10f.c: Likewise.
7989         * math/w_log10l.c: Likewise.
7990         * math/w_log2.c: Likewise.
7991         * math/w_log2f.c: Likewise.
7992         * math/w_log2l.c: Likewise.
7993         * math/w_pow.c: Likewise.
7994         * math/w_powf.c: Likewise.
7995         * math/w_powl.c: Likewise.
7996         * math/w_remainder.c: Likewise.
7997         * math/w_remainderf.c: Likewise.
7998         * math/w_remainderl.c: Likewise.
7999         * math/w_scalb.c: Likewise.
8000         * math/w_scalbf.c: Likewise.
8001         * math/w_scalbl.c: Likewise.
8002         * math/w_sqrt.c: Likewise.
8003         * math/w_sqrtf.c: Likewise.
8004         * math/w_sqrtl.c: Likewise.
8005         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
8006         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
8007         used.
8008         * math/math_private.h: Declare __kernel_standard_f.
8009         * math/w_cosh.c: Remove cruft and optimize a bit.
8010         * math/w_coshf.c: Likewise.
8011         * math/w_coshl.c: Likewise.
8012         * math/w_exp2.c: Likewise.
8013         * math/w_exp2f.c: Likewise.
8014         * math/w_exp2l.c: Likewise.
8015         * math/w_hypot.c: Likewise.
8016         * math/w_hypotf.c: Likewise.
8017         * math/w_hypotl.c: Likewise.
8018         * math/w_lgamma.c: Likewise.
8019         * math/w_lgamma_r.c: Likewise.
8020         * math/w_lgammaf.c: Likewise.
8021         * math/w_lgammaf_r.c: Likewise.
8022         * math/w_lgammal.c: Likewise.
8023         * math/w_lgammal_r.c: Likewise.
8024         * math/w_sinh.c: Likewise.
8025         * math/w_sinhf.c: Likewise.
8026         * math/w_sinhl.c: Likewise.
8027         * math/w_tgamma.c: Likewise.
8028         * math/w_tgammaf.c: Likewise.
8029         * math/w_tgammal.c: Likewise.
8030         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8031         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8032         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
8033         Minor optimizations.  Pretty printing.  Remove cruft.
8034         * sysdeps/i386/fpu/e_acosf.S: Likewise.
8035         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8036         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8037         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8038         * sysdeps/i386/fpu/e_acosl.c: Likewise.
8039         * sysdeps/i386/fpu/e_asin.S: Likewise.
8040         * sysdeps/i386/fpu/e_asinf.S: Likewise.
8041         * sysdeps/i386/fpu/e_atan2.S: Likewise.
8042         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
8043         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
8044         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8045         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8046         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8047         * sysdeps/i386/fpu/e_exp10.S: Likewise.
8048         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
8049         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
8050         * sysdeps/i386/fpu/e_exp2.S: Likewise.
8051         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
8052         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
8053         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8054         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
8055         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8056         * sysdeps/i386/fpu/e_hypot.S: Likewise.
8057         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
8058         * sysdeps/i386/fpu/e_log.S: Likewise.
8059         * sysdeps/i386/fpu/e_log10.S: Likewise.
8060         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8061         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8062         * sysdeps/i386/fpu/e_log2.S: Likewise.
8063         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8064         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8065         * sysdeps/i386/fpu/e_logf.S: Likewise.
8066         * sysdeps/i386/fpu/e_logl.S: Likewise.
8067         * sysdeps/i386/fpu/e_pow.S: Likewise.
8068         * sysdeps/i386/fpu/e_powf.S: Likewise.
8069         * sysdeps/i386/fpu/e_powl.S: Likewise.
8070         * sysdeps/i386/fpu/e_remainder.S: Likewise.
8071         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
8072         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
8073         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8074         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8075         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8076         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
8077         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
8078         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
8079         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8080         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8081         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8082         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8083         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8084         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8085         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8086         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8087         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8088         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8089         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8090         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8091         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8092         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8093         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8094         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8095         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8096         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8097         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8098         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8099         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8100         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8101         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8102         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8103         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8104         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8105         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8106         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8107         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8108         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8109         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8110         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8111         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8112         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8113         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8114         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8115         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8116         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8117         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8118         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8119         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8120         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8121         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8122         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8123         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8124         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8125         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8126         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8127         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8128         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8129         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8130         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8131         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8132         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8133         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8134         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8135         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8136         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8137         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8138         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8139         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8140         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8141         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8142         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8143         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8144         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8145         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8146         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8147         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8148         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8149         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8150         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8151         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8152         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8153         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8154         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8155         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
8156         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8157         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8158         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8159         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8160         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8161         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8162         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8163         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8164         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8165         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8166         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8167         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8168         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8169         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8170         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8171         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8172         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8173         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8174         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8175         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8176         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
8177         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
8178         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
8179         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
8180         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
8181         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
8182         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
8183         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8184         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8185         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8186         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8187         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
8188         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8189         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
8190         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
8191         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
8192         (__isnanf): Likewise.
8193         (__isinf_ns): Likewise.
8194         (__isinf_nsf): Likewise.
8195         (__finite): Likewise.
8196         (__finitef): Likewise.
8197         (__ieee754_sqrt): Define as macro.
8198         (__ieee754_sqrtf): Define as macro.
8199         (__ieee754_sqrtl): Define as macro.
8200         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
8201         inlined copy.
8202         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
8203         __FINITE_MATH_ONLY__ consistent.
8204         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
8205
8206 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
8207
8208         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
8209         of rawmemchr.
8210
8211         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
8212
8213 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
8214
8215         * po/ja.po: Update from translation team.
8216
8217 2011-10-08  Roland McGrath  <roland@hack.frob.com>
8218
8219         * locale/programs/locarchive.c (prepare_address_space): New function.
8220         (create_archive, enlarge_archive, open_archive): Use it.
8221
8222         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
8223         inside [SHARED], where it is used.
8224
8225         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
8226
8227         * nss/getent.c (netgroup_keys): Remove unused variable.
8228         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8229
8230 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
8231
8232         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
8233         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
8234         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
8235         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
8236         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
8237         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
8238         * math/Makefile (libm-calls): Add s_isinf_ns.
8239         * math/divtc3.c: Use __isinf_nsl instead of isinf.
8240         * math/multc3.c: Likewise.
8241         * math/s_casin.c: Likewise.
8242         * math/s_casinf.c: Likewise.
8243         * math/s_casinl.c: Likewise.
8244         * math/s_ccos.c: Likewise.
8245         * math/s_ccosf.c: Likewise.
8246         * math/s_ccosl.c: Likewise.
8247         * math/s_ctan.c: Likewise.
8248         * math/s_ctanf.c: Likewise.
8249         * math/s_ctanh.c: Likewise.
8250         * math/s_ctanhf.c: Likewise.
8251         * math/s_ctanhl.c: Likewise.
8252         * math/s_ctanl.c: Likewise.
8253         * math/w_fmod.c: Likewise.
8254         * math/w_fmodf.c: Likewise.
8255         * math/w_fmodl.c: Likewise.
8256         * math/w_remainder.c: Likewise.
8257         * math/w_remainderf.c: Likewise.
8258         * math/w_remainderl.c: Likewise.
8259         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
8260         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
8261         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
8262         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
8263         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
8264         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
8265         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
8266         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
8267
8268         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
8269         of the number.
8270         * stdio-common/printf_fphex.c: Likewise.
8271         * stdio-common/printf_size.c: Likewise.
8272
8273         * math/e_exp10.c: Include math_private.h using <...> not "...".
8274         * math/e_exp10f.c: Likewise.
8275         * math/e_exp10l.c: Likewise.
8276         * math/e_exp2l.c: Likewise.
8277         * math/e_j0l.c: Likewise.
8278         * math/e_j1l.c: Likewise.
8279         * math/e_jnl.c: Likewise.
8280         * math/e_lgammal_r.c: Likewise.
8281         * math/e_rem_pio2l.c: Likewise.
8282         * math/e_scalb.c: Likewise.
8283         * math/e_scalbf.c: Likewise.
8284         * math/e_scalbl.c: Likewise.
8285         * math/k_cosl.c: Likewise.
8286         * math/k_sinl.c: Likewise.
8287         * math/k_tanl.c: Likewise.
8288         * math/s_cacoshf.c: Likewise.
8289         * math/s_catan.c: Likewise.
8290         * math/s_catanf.c: Likewise.
8291         * math/s_catanh.c: Likewise.
8292         * math/s_catanhf.c: Likewise.
8293         * math/s_catanhl.c: Likewise.
8294         * math/s_catanl.c: Likewise.
8295         * math/s_ccosh.c: Likewise.
8296         * math/s_ccoshf.c: Likewise.
8297         * math/s_ccoshl.c: Likewise.
8298         * math/s_cexp.c: Likewise.
8299         * math/s_cexpf.c: Likewise.
8300         * math/s_cexpl.c: Likewise.
8301         * math/s_clog.c: Likewise.
8302         * math/s_clog10.c: Likewise.
8303         * math/s_clog10f.c: Likewise.
8304         * math/s_clog10l.c: Likewise.
8305         * math/s_clogf.c: Likewise.
8306         * math/s_clogl.c: Likewise.
8307         * math/s_csin.c: Likewise.
8308         * math/s_csinf.c: Likewise.
8309         * math/s_csinh.c: Likewise.
8310         * math/s_csinhf.c: Likewise.
8311         * math/s_csinhl.c: Likewise.
8312         * math/s_csinl.c: Likewise.
8313         * math/s_csqrt.c: Likewise.
8314         * math/s_csqrtf.c: Likewise.
8315         * math/s_csqrtl.c: Likewise.
8316         * math/s_ctan.c: Likewise.
8317         * math/s_ctanf.c: Likewise.
8318         * math/s_ctanh.c: Likewise.
8319         * math/s_ctanhf.c: Likewise.
8320         * math/s_ctanhl.c: Likewise.
8321         * math/s_ctanl.c: Likewise.
8322         * math/s_ldexp.c: Likewise.
8323         * math/s_ldexpf.c: Likewise.
8324         * math/s_ldexpl.c: Likewise.
8325         * math/s_significand.c: Likewise.
8326         * math/s_significandf.c: Likewise.
8327         * math/s_significandl.c: Likewise.
8328         * math/w_acos.c: Likewise.
8329         * math/w_acosf.c: Likewise.
8330         * math/w_acosh.c: Likewise.
8331         * math/w_acoshf.c: Likewise.
8332         * math/w_acoshl.c: Likewise.
8333         * math/w_acosl.c: Likewise.
8334         * math/w_asin.c: Likewise.
8335         * math/w_asinf.c: Likewise.
8336         * math/w_asinl.c: Likewise.
8337         * math/w_atan2.c: Likewise.
8338         * math/w_atan2f.c: Likewise.
8339         * math/w_atan2l.c: Likewise.
8340         * math/w_atanh.c: Likewise.
8341         * math/w_atanhf.c: Likewise.
8342         * math/w_atanhl.c: Likewise.
8343         * math/w_cosh.c: Likewise.
8344         * math/w_coshf.c: Likewise.
8345         * math/w_coshl.c: Likewise.
8346         * math/w_dremf.c: Likewise.
8347         * math/w_exp10.c: Likewise.
8348         * math/w_exp10f.c: Likewise.
8349         * math/w_exp10l.c: Likewise.
8350         * math/w_exp2.c: Likewise.
8351         * math/w_exp2f.c: Likewise.
8352         * math/w_fmod.c: Likewise.
8353         * math/w_fmodf.c: Likewise.
8354         * math/w_fmodl.c: Likewise.
8355         * math/w_hypot.c: Likewise.
8356         * math/w_hypotf.c: Likewise.
8357         * math/w_hypotl.c: Likewise.
8358         * math/w_j0.c: Likewise.
8359         * math/w_j0f.c: Likewise.
8360         * math/w_j0l.c: Likewise.
8361         * math/w_j1.c: Likewise.
8362         * math/w_j1f.c: Likewise.
8363         * math/w_j1l.c: Likewise.
8364         * math/w_jn.c: Likewise.
8365         * math/w_jnf.c: Likewise.
8366         * math/w_jnl.c: Likewise.
8367         * math/w_lgamma.c: Likewise.
8368         * math/w_lgamma_r.c: Likewise.
8369         * math/w_lgammaf.c: Likewise.
8370         * math/w_lgammaf_r.c: Likewise.
8371         * math/w_lgammal.c: Likewise.
8372         * math/w_lgammal_r.c: Likewise.
8373         * math/w_log.c: Likewise.
8374         * math/w_log10.c: Likewise.
8375         * math/w_log10f.c: Likewise.
8376         * math/w_log10l.c: Likewise.
8377         * math/w_log2.c: Likewise.
8378         * math/w_log2f.c: Likewise.
8379         * math/w_log2l.c: Likewise.
8380         * math/w_logf.c: Likewise.
8381         * math/w_logl.c: Likewise.
8382         * math/w_pow.c: Likewise.
8383         * math/w_powf.c: Likewise.
8384         * math/w_powl.c: Likewise.
8385         * math/w_remainder.c: Likewise.
8386         * math/w_remainderf.c: Likewise.
8387         * math/w_remainderl.c: Likewise.
8388         * math/w_scalb.c: Likewise.
8389         * math/w_scalbf.c: Likewise.
8390         * math/w_scalbl.c: Likewise.
8391         * math/w_sinh.c: Likewise.
8392         * math/w_sinhf.c: Likewise.
8393         * math/w_sinhl.c: Likewise.
8394         * math/w_sqrt.c: Likewise.
8395         * math/w_sqrtf.c: Likewise.
8396         * math/w_sqrtl.c: Likewise.
8397         * math/w_tgamma.c: Likewise.
8398         * math/w_tgammaf.c: Likewise.
8399         * math/w_tgammal.c: Likewise.
8400
8401         * po/ja.po: Update from translation team.
8402
8403 2011-09-29  Andreas Jaeger  <aj@suse.de>
8404
8405         [BZ #13179]
8406         * sunrpc/netname.c (netname2host): Fix logic.
8407
8408         [BZ #6779]
8409         [BZ #6783]
8410         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
8411         correctly.
8412         * math/w_remainder.c (__remainder): Likewise.
8413         * math/w_remainderf.c (__remainderf): Likewise.
8414         * math/libm-test.inc (remainder_test): Add test cases.
8415
8416 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8417
8418         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
8419         sdiv_qrnnd.
8420
8421 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8422
8423         * string/test-memcmp.c: Avoid unncessary #defines.
8424         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
8425
8426 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8427
8428         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
8429         Use new sse2 version for core i3 - i7 as it's faster
8430         than sse42 version.
8431         (bit_Prefer_PMINUB_for_stringop): New.
8432         * sysdeps/x86_64/rawmemchr.S: Update.
8433         Replace with faster SSE2 version.
8434         * sysdeps/x86_64/memrchr.S: New file.
8435         * sysdeps/x86_64/memchr.S: Update.
8436         Replace with faster SSE2 version.
8437
8438 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
8439
8440         * elf/dl-load.c (lose): Add cast to avoid warning.
8441
8442 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
8443
8444         * po/ca.po: Update from translation team.
8445
8446         * inet/getnetgrent_r.c: Hook up nscd.
8447         * nscd/Makefile (routines): Add nscd_netgroup.
8448         (nscd-modules): Add netgroupcache.
8449         (CFLAGS-netgroupcache.c): Define.
8450         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
8451         (cache_search): Add const to second parameter.
8452         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
8453         INNETGR.
8454         (dbs): Add netgrdb entry.
8455         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
8456         (verify_persistent_db): Handle netgrdb.
8457         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
8458         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
8459         GETFDNETGR.
8460         (netgroup_response_header): Define.
8461         (innetgroup_response_header): Define.
8462         (datahead): Add netgroup_response_header and innetgroup_response_header
8463         elements.
8464         * nscd/nscd.conf: Add entries for netgroup cache.
8465         * nscd/nscd.h (dbtype): Add netgrdb.
8466         (_PATH_NSCD_NETGROUP_DB): Define.
8467         (netgroup_iov_disabled): Declare.
8468         (xmalloc, xcalloc, xrealloc): Move declarations here.
8469         (cache_search): Adjust prototype.
8470         Add netgroup-related prototypes.
8471         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
8472         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
8473         (__nscd_innetgr): Declare.
8474         * nscd/selinux.c (perms): Use access_vector_t as element type and
8475         add netgroup-related initializers.
8476         * nscd/netgroupcache.c: New file.
8477         * nscd/nscd_netgroup.c: New file.
8478         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
8479         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
8480         For four parameters use innetgr.
8481         * nss/nss_files/files-init.c: Add definition and callback for netgr.
8482         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
8483         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
8484         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
8485
8486         * nscd/connections.c (register_traced_file): Don't register file
8487         for disabled databases.
8488
8489 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
8490
8491         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
8492
8493         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
8494         from tree and freeing node.
8495
8496 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
8497
8498         * nss/nsswitch.c (__nss_database_lookup): Handle
8499         nss_parse_service_list out of memory case.
8500
8501 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
8502
8503         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
8504         out of memory case.
8505
8506 2011-10-04  Andreas Schwab  <schwab@redhat.com>
8507
8508         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
8509         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
8510         pass it down.
8511         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
8512         elf_machine_rela, elf_machine_lazy_rel.
8513         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
8514         (ELF_DYNAMIC_DO_REL): Likewise.
8515         (ELF_DYNAMIC_DO_RELA): Likewise.
8516         (ELF_DYNAMIC_RELOCATE): Likewise.
8517         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
8518         to ELF_DYNAMIC_DO_REL.
8519         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
8520         (dl_main): In trace mode always set __RTLD_NOIFUNC.
8521         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
8522         elf_machine_rela.
8523         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
8524         skip_ifunc, don't call ifunc function if non-zero.
8525         (elf_machine_rela): Likewise.
8526         (elf_machine_lazy_rel): Likewise.
8527         (elf_machine_lazy_rela): Likewise.
8528         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
8529         (elf_machine_lazy_rel): Likewise.
8530         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
8531         Likewise.
8532         (elf_machine_lazy_rel): Likewise.
8533         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8534         Likewise.
8535         (elf_machine_lazy_rel): Likewise.
8536         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
8537         (elf_machine_lazy_rel): Likewise.
8538         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
8539         (elf_machine_lazy_rel): Likewise.
8540         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8541         (elf_machine_lazy_rel): Likewise.
8542         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8543         (elf_machine_lazy_rel): Likewise.
8544         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8545         (elf_machine_lazy_rel): Likewise.
8546         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8547         (elf_machine_lazy_rel): Likewise.
8548
8549 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
8550
8551         * nss/nss_files/files-init.c (_nss_files_init): Use static
8552         initialization for all the *_traced_file variables.
8553
8554 2011-09-28  Andreas Schwab  <schwab@redhat.com>
8555
8556         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8557
8558 2011-09-27  Roland McGrath  <roland@hack.frob.com>
8559
8560         [BZ #13226]
8561         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
8562
8563 2011-09-27  Andreas Schwab  <schwab@redhat.com>
8564
8565         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8566         Reread the line before reparsing it.
8567
8568 2011-09-26  Andreas Schwab  <schwab@redhat.com>
8569
8570         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
8571
8572 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
8573             Maxim Kuvyrkov  <maxim@codesourcery.com>
8574             Joseph Myers  <joseph@codesourcery.com>
8575
8576         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
8577         if needed for __stack_chk_guard.
8578
8579 2011-09-19  Roland McGrath  <roland@hack.frob.com>
8580
8581         * sysdeps/posix/spawni.c (script_execute): Always define it.
8582         It will be optimized away if unused.
8583         (maybe_script_execute): New function.
8584         (__spawni): Call it.
8585
8586         * Makerules: Don't include tls.make.
8587         (config-tls): Always set to thread.
8588         * tls.make.c: File removed.
8589
8590 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
8591
8592         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
8593         * config.make.in (CPPFLAGS-config): New substituted variable.
8594
8595 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
8596
8597         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
8598
8599         [BZ #13192]
8600         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
8601         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
8602
8603 2011-09-15  Roland McGrath  <roland@hack.frob.com>
8604
8605         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
8606         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
8607         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
8608         (CALL_FAIL): Likewise.
8609         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
8610         (CALL_FAIL): Macro removed.
8611         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
8612
8613 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
8614
8615         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
8616         for __FINITE_MATH_ONLY__ == 1.
8617
8618 2011-09-15  Andreas Schwab  <schwab@redhat.com>
8619
8620         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
8621         __ieee754_sqrt instead of sqrt.
8622         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
8623         __ieee754_sqrtf instead of sqrtf.
8624         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
8625         __floorf instead of floorf.
8626         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
8627         __floorf, __truncf instead of floorf, truncf.
8628
8629 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
8630
8631         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
8632
8633         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
8634         __extern_always_inline.
8635         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
8636         32-bit.
8637
8638 2011-09-14  Andreas Schwab  <schwab@redhat.com>
8639
8640         * elf/rtld.c (dl_main): Also relocate in dependency order when
8641         doing symbol dependency testing.
8642
8643 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
8644
8645         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8646         Always define `refsym'.
8647
8648 2011-09-13  Andreas Schwab  <schwab@redhat.com>
8649
8650         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
8651         (__FD_ELT): Renamed from __FDELT.
8652         * misc/bits/select2.h (__FD_ELT): Likewise.
8653         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
8654         __FD_MASK instead of __FDELT, __FDMASK.
8655         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
8656         Likewise.
8657         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
8658         Likewise.
8659
8660         * elf/Makefile (gen-ldd): Fix pattern.
8661
8662         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
8663         (init_tls): Likewise.
8664
8665 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
8666
8667         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
8668
8669 2011-09-12  Andreas Schwab  <schwab@redhat.com>
8670
8671         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
8672         `struct cmsghdr *' instead of `void *'.
8673         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
8674         Likewise.
8675
8676 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
8677
8678         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
8679         if non-absolute.
8680         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
8681         ldd_rewrite_script.
8682
8683 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
8684
8685         * configure.in: Remove --with-tls option.
8686         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
8687         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
8688         out in case it is missing.
8689         * sysdeps/ia64/elf/configure.in: Likewise.
8690         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
8691         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
8692         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
8693         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
8694         * sysdeps/sh/elf/configure.in: Likewise.
8695         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
8696         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8697         * sysdeps/x86_64/elf/configure.in: Likewise.
8698         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
8699         * sysdeps/mach/hurd/tls.h: Likewise.
8700
8701         [BZ #13067]
8702         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
8703
8704         [BZ #13090]
8705         * configure.in: Fix use of AC_INIT.
8706
8707         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
8708
8709 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
8710
8711         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
8712         __set_errno.
8713         * malloc/hooks.c: Likewise.
8714
8715         [BZ #11929]
8716         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
8717         variables statically.
8718         (narenas): Initialize.
8719         (list_lock): Initialize.
8720         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
8721         initializtion of main_arena and list_lock.  Small cleanups.
8722         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
8723         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
8724         Add initializers to main_arena and mp_.
8725         (malloc_state): Remove pagesize member.  Change all users to use
8726         GLRO(dl_pagesize).
8727
8728         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
8729         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
8730         is always initialized.
8731
8732         * malloc/malloc.c: Removed unused configurations and dead code.
8733         * malloc/arena.c: Likewise.
8734         * malloc/hooks.c: Likewise.
8735         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
8736
8737         * include/tls.h: Removed.  USE___THREAD must always be defined.
8738         * bits/libc-tsd.h: Don't handle !USE___THREAD.
8739         * elf/dl-libc.c: Likewise.
8740         * elf/dl-tsd.c: Likewise.
8741         * include/errno.h: Likewise.
8742         * include/netdb.h: Likewise.
8743         * include/resolv.h: Likewise.
8744         * inet/herrno-loc.c: Likewise.
8745         * inet/herrno.c: Likewise.
8746         * malloc/arena.c: Likewise.
8747         * malloc/hooks.c: Likewise.
8748         * malloc/malloc.c: Likewise.
8749         * resolv/res-state.c: Likewise.
8750         * resolv/res_libc.c: Likewise.
8751         * sysdeps/i386/dl-machine.h: Likewise.
8752         * sysdeps/ia64/dl-machine.h: Likewise.
8753         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8754         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8755         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8756         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8757         * sysdeps/sh/dl-machine.h: Likewise.
8758         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8759         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8760         * sysdeps/unix/i386/sysdep.S: Likewise.
8761         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8762         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
8763         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
8764         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8765         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
8766         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8767         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
8768         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8769         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8770         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8771         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8772         * sysdeps/x86_64/dl-machine.h: Likewise.
8773         * tls.make.c: Likewise.
8774
8775         * configure.in: Remove --with-__thread option.  Make tests for
8776         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
8777         tls_model attribute fail if no support is available.  Remove
8778         USE_IN_LIBIO.
8779         * Makeconfig: Adjust for dropped configure option.  All features are
8780         now mandatory.
8781         * Makerules: Likewise.
8782         * Versions.def: Likewise.
8783         * argp/argp-fmtstream.c: Likewise.
8784         * argp/argp-fmtstream.h: Likewise.
8785         * argp/argp-help.c: Likewise.
8786         * assert/assert.c: Likewise.
8787         * config.h.in: Likewise.
8788         * config.make.in: Likewise.
8789         * configure: Likewise.
8790         * configure.in: Likewise.
8791         * csu/Versions: Likewise.
8792         * csu/init.c: Likewise.
8793         * elf/tst-audit2.c: Likewise.
8794         * elf/tst-tls10.c: Likewise.
8795         * elf/tst-tls10.h: Likewise.
8796         * elf/tst-tls11.c: Likewise.
8797         * elf/tst-tls12.c: Likewise.
8798         * elf/tst-tls14.c: Likewise.
8799         * elf/tst-tlsmod11.c: Likewise.
8800         * elf/tst-tlsmod12.c: Likewise.
8801         * elf/tst-tlsmod13.c: Likewise.
8802         * elf/tst-tlsmod13a.c: Likewise.
8803         * elf/tst-tlsmod14a.c: Likewise.
8804         * elf/tst-tlsmod15b.c: Likewise.
8805         * elf/tst-tlsmod16a.c: Likewise.
8806         * elf/tst-tlsmod16b.c: Likewise.
8807         * elf/tst-tlsmod7.c: Likewise.
8808         * elf/tst-tlsmod8.c: Likewise.
8809         * elf/tst-tlsmod9.c: Likewise.
8810         * gmon/gmon.c: Likewise.
8811         * grp/fgetgrent_r.c: Likewise.
8812         * grp/putgrent.c: Likewise.
8813         * hurd/fopenport.c: Likewise.
8814         * include/libc-symbols.h: Likewise.
8815         * include/tls.h: Likewise.
8816         * intl/gettextP.h: Likewise.
8817         * intl/loadinfo.h: Likewise.
8818         * locale/global-locale.c: Likewise.
8819         * locale/localeinfo.h: Likewise.
8820         * mach/devstream.c: Likewise.
8821         * malloc/arena.c: Likewise.
8822         * malloc/set-freeres.c: Likewise.
8823         * misc/err.c: Likewise.
8824         * misc/getttyent.c: Likewise.
8825         * misc/mntent_r.c: Likewise.
8826         * posix/getopt.c: Likewise.
8827         * posix/wordexp.c: Likewise.
8828         * pwd/fgetpwent_r.c: Likewise.
8829         * resolv/Versions: Likewise.
8830         * resolv/res_hconf.c: Likewise.
8831         * shadow/fgetspent_r.c: Likewise.
8832         * shadow/putspent.c: Likewise.
8833         * stdio-common/printf_fphex.c: Likewise.
8834         * stdio-common/tmpfile.c: Likewise.
8835         * stdlib/abort.c: Likewise.
8836         * stdlib/fmtmsg.c: Likewise.
8837         * sunrpc/auth_unix.c: Likewise.
8838         * sunrpc/clnt_perr.c: Likewise.
8839         * sunrpc/clnt_tcp.c: Likewise.
8840         * sunrpc/clnt_udp.c: Likewise.
8841         * sunrpc/clnt_unix.c: Likewise.
8842         * sunrpc/openchild.c: Likewise.
8843         * sunrpc/svc_simple.c: Likewise.
8844         * sunrpc/svc_tcp.c: Likewise.
8845         * sunrpc/svc_udp.c: Likewise.
8846         * sunrpc/svc_unix.c: Likewise.
8847         * sunrpc/xdr.c: Likewise.
8848         * sunrpc/xdr_array.c: Likewise.
8849         * sunrpc/xdr_rec.c: Likewise.
8850         * sunrpc/xdr_ref.c: Likewise.
8851         * sunrpc/xdr_stdio.c: Likewise.
8852
8853 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8854
8855         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8856
8857 2011-07-03  Andreas Jaeger  <aj@suse.de>
8858
8859         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
8860         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
8861         regenerate with gen-libm-tests.pl.
8862
8863 2010-05-12  Petr Baudis  <pasky@suse.cz>
8864
8865         [BZ #11589]
8866         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
8867         around j0() zero points by switching to j1().
8868         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8869         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8870         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8871         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8872
8873 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8874
8875         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
8876         instead of 0.
8877         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
8878         instead of 0.                              .
8879         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8880         Patch in part by Pavel Roskin <proski@gnu.org>.
8881
8882         [BZ #13138]
8883         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
8884         realloc.
8885         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
8886         Free memory block if necessary.
8887
8888         [BZ #12847]
8889         * libio/genops.c (INTDEF): For string streams the _lock pointer can
8890         be NULL.  Don't lock in this case.
8891
8892 2011-09-09  Roland McGrath  <roland@hack.frob.com>
8893
8894         * elf/elf.h (ELFOSABI_GNU): New macro.
8895         (ELFOSABI_LINUX): Define to that.
8896
8897 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
8898
8899         * string/strncat.c (strncat): Undef the symbol in case it has been
8900         defined in bits/string.h.
8901
8902 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
8903
8904         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
8905
8906         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
8907         link map.
8908
8909 2011-08-17  Andreas Jaeger  <aj@suse.de>
8910
8911         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
8912
8913 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
8914             Ian Lance Taylor  <iant@google.com>
8915
8916         * math/libm-test.inc (lround_test): New testcase.
8917         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
8918
8919 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
8920
8921         * Makefile: Remove support for automatic cvs check-ins.
8922         * Makerules: Likewise.
8923         * config.make.in: Likewise.
8924         * configure.in: Likewise.
8925         * intl/Makefile: Likewise.
8926         * locale/Makefile: Likewise.
8927         * po/Makefile: Likewise.
8928         * posix/Makefile: Likewise.
8929         * sysdeps/gnu/Makefile: Likewise.
8930         * sysdeps/mach/hurd/Makefile: Likewise.
8931         * sysdeps/sparc/sparc32/Makefile: Likewise.
8932
8933         [BZ #13118]
8934         * posix/Makefile (bug-regex32-ENV): Define.
8935         Patch by John Stanley <jpsinthemix@verizon.net>.
8936
8937         * misc/Makefile (headers): Add bits/select2.h.
8938         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
8939         * misc/bits/select2.h: New file.
8940         * include/bits/select2.h: New file.
8941         * debug/Makefile (routines): Add fdelt_chk.
8942         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
8943         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
8944         FD_ISSET.
8945         * debug/fdelt_chk.c: New file.
8946
8947         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
8948         * wcsmbs/test-wmemcmp.c: Likewise.
8949         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
8950         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
8951
8952 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8953
8954         * string/Makefile (strop-tests): Add memcmp.
8955         * string/test-wmemcmp.c: New file.
8956         * string/test-memcmp.c: Add wmemcmp support.
8957
8958 2011-09-08  Roland McGrath  <roland@hack.frob.com>
8959
8960         [BZ #13153]
8961         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
8962         2011-07-19 change.
8963
8964         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
8965         garbage value in a __mach_port_mod_refs call in the cases of the
8966         task-self and thread-self ports.
8967
8968 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8969
8970         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
8971
8972 2011-09-08  Andreas Schwab  <schwab@redhat.com>
8973
8974         * elf/dl-load.c (lose): Check for non-null L.
8975
8976 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
8977
8978         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
8979
8980         * elf/dl-libc.c (dlerror_run): Pass back error code from
8981         dl_catch_error.
8982
8983         [BZ #13123]
8984         * elf/dl-load.c (lose): Free l_origin if it is valid.
8985
8986         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
8987         names.
8988         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
8989         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
8990         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8991         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
8992         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
8993         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
8994
8995 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8996
8997         * sysdeps/powerpc/fpu/e_hypot.c: New file.
8998         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
8999         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
9000         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
9001         * sysdeps/powerpc/fpu/k_cosf.c: New file.
9002         * sysdeps/powerpc/fpu/k_sinf.c: New file.
9003         * sysdeps/powerpc/fpu/s_cosf.c: New file.
9004         * sysdeps/powerpc/fpu/s_sinf.c: New file.
9005         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
9006         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
9007
9008 2011-08-15  Alan Modra  <amodra@gmail.com>
9009
9010         [BZ #13092]
9011         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
9012         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
9013         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
9014         ppc_mcount to static-only-routines.
9015         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
9016         __mcount_internal.
9017         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
9018         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
9019
9020 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
9021
9022         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
9023         for finite and infinity parameters.
9024
9025 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9026
9027         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
9028         and add nop instructions for throughput optimization.
9029         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9030
9031 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
9032
9033         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
9034         aligned copy for power7 with vector-scalar instructions.
9035         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
9036
9037 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9038
9039         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
9040         AVX check.
9041
9042 2011-09-07  Andreas Schwab  <schwab@redhat.com>
9043
9044         [BZ #13144]
9045         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
9046         last change.
9047
9048 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
9049
9050         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9051         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
9052         syscall wrapper around clock_gettime in __vdso_clock_gettime.
9053         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
9054         clock_gettime.
9055
9056 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9057
9058         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
9059         Forgot to demangle the pointer.
9060
9061         * sysdeps/i386/sysdep.h: Define atom_text_section.
9062         * sysdeps/x86_64/sysdep.h: Likewise.
9063         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
9064         section with atom_text_section.
9065         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
9066         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
9067         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
9068         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
9069         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
9070
9071         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
9072         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
9073         already be defined.  Change to take two parameters and don't assign
9074         result to variable.  Adjust all users.
9075         Define INTERNAL_GETTIME if not already defined.
9076         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
9077         call.
9078         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
9079         HAVE_CLOCK_GETTIME_VSYSCALL.
9080         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
9081
9082         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
9083         gettimeofday vsyscall, just use time.
9084
9085 2011-09-06  Andreas Schwab  <schwab@redhat.com>
9086
9087         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
9088         <errno.h>.
9089
9090 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
9091
9092         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
9093         syscall on x86-64.
9094         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
9095         syscall.
9096         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
9097         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
9098         syscall if possible.
9099
9100 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9101
9102         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
9103         e_ident.  Don't pass to find_mapsXX.
9104         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
9105
9106 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9107
9108         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9109         strchr-sse2-no-bsf strrchr-sse2-no-bsf
9110         * sysdeps/x86_64/multiarch/strchr.S: Update.
9111         Check bit_slow_BSF bit.
9112         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
9113         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
9114         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
9115
9116 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9117
9118         [BZ #13134]
9119         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
9120         before glibc 2.15.
9121         (tryshell): Define.
9122         (__spawni): Change last parameter to be flag.  Test
9123         SPAWN_XFLAGS_USE_PATH flag to use path or not.
9124         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
9125         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
9126         * posix/spawni.c: Likewise.
9127         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
9128         * posix/spawnp.c: Likewise.  Change normal version to use
9129         SPAWN_XFLAGS_USE_PATH.
9130         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
9131         SPAWN_XFLAGS_TRY_SHELL.
9132
9133         [BZ #13150]
9134         * posix/glob.h: Remove gcc 1.x support.
9135
9136         [BZ #13068]
9137         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
9138
9139 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9140
9141         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9142         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
9143         strrchr-sse2-bsf
9144         * sysdeps/i386/i686/multiarch/strchr.S: New file.
9145         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
9146         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
9147         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
9148         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
9149         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
9150
9151 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9152
9153         * sysdeps/x86_64/wcscmp.S: New file.
9154
9155         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
9156         wcscmp-c wcscmp-sse2
9157         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
9158         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
9159         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
9160         * wcsmbs/wcscmp.c: Allow renaming.
9161
9162 2011-09-05  David S. Miller  <davem@davemloft.net>
9163
9164         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
9165         stack slot, rather than the struct return pointer slot.
9166         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
9167         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
9168         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
9169         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
9170
9171 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
9172
9173         * po/ja.po: Update from translation team.
9174
9175         [BZ #13144]
9176         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
9177         kernel in 64-bit binaries.
9178
9179 2011-09-01  David S. Miller  <davem@davemloft.net>
9180
9181         * elf/elf.h (HWCAP_SPARC_*): Move to..
9182         * sysdeps/sparc/sysdep.h: this new file and add new values.
9183         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
9184         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
9185         _DL_HWCAP_COUNT to 24.
9186         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9187         entries.
9188         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
9189         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
9190         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
9191         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
9192         instead of magic constants.
9193         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9194
9195 2011-08-31  David S. Miller  <davem@davemloft.net>
9196
9197         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
9198         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
9199         Reimplement to do errno handling inline.
9200         (SYSCALL_ERROR_HANDLER): New macro.
9201         (__SYSCALL_STRING): Do not do errno handling in asm.
9202         (__CLONE_SYSCALL_STRING): Delete.
9203         (__INTERNAL_SYSCALL_STRING): Delete.
9204         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
9205         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
9206         (PSEUDO): Reimplement to do errno handling inline.
9207         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
9208         (SYSCALL_ERROR_HANDLER): New macro.
9209         (__SYSCALL_STRING): Do not do errno handling in asm.
9210         (__CLONE_SYSCALL_STRING): Delete.
9211         (__INTERNAL_SYSCALL_STRING): Delete.
9212         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
9213         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
9214         i386.
9215         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
9216         (inline_syscall*): Add 'err' argument.
9217         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
9218         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
9219         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
9220         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
9221
9222         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
9223         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9224
9225 2011-08-30  Andreas Schwab  <schwab@redhat.com>
9226
9227         * elf/rtld.c (dl_main): Relocate objects in dependency order.
9228
9229 2011-08-29  Jiri Olsa <jolsa@redhat.com>
9230
9231         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
9232         directive.
9233
9234 2011-08-24  David S. Miller  <davem@davemloft.net>
9235
9236         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
9237
9238 2011-08-24  Andreas Schwab  <schwab@redhat.com>
9239
9240         * elf/Makefile: Add rules to build and run unload8 test.
9241         * elf/unload8.c: New file.
9242         * elf/unload8mod1.c: New file.
9243         * elf/unload8mod1x.c: New file.
9244         * elf/unload8mod2.c: New file.
9245         * elf/unload8mod3.c: New file.
9246
9247         * elf/dl-close.c (_dl_close_worker): Reset private search list if
9248         it wasn't used.
9249
9250 2011-08-23  David S. Miller  <davem@davemloft.net>
9251
9252         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
9253         subtract stack bias.
9254         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
9255         %sp not %fp in calculations.
9256         (_JMPBUF_UNWINDS_ADJ): Likewise.
9257
9258         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
9259         (aio_suspend): Call it to force an exception region around the
9260         AIO_MISC_WAIT() invocation.
9261
9262 2011-08-23  Andreas Schwab  <schwab@redhat.com>
9263
9264         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
9265         backslash.
9266
9267 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
9268
9269         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
9270         protection macro.
9271         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
9272         and <dl-machine.h>.
9273         (Elf64_FuncDesc): Remove.
9274
9275 2011-08-22  David S. Miller  <davem@davemloft.net>
9276
9277         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
9278         sigaltstack check, add missing cfi directives.
9279         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
9280         missing cfi directives, and sigaltstack handling.
9281
9282 2011-08-16  Andreas Schwab  <schwab@redhat.com>
9283
9284         [BZ #11724]
9285         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
9286         object is seen twice.
9287         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9288
9289         * elf/Makefile (distribute): Add tst-initorder2.c.
9290         (tests): Add tst-initorder2.
9291         (modules-names): Add tst-initorder2a tst-initorder2b
9292         tst-initorder2c tst-initorder2d.  Add rules to build them.
9293         ($(objpfx)tst-initorder2.out): New rule.
9294         * elf/tst-initorder2.c: New file.
9295         * elf/tst-initorder2.exp: New file.
9296
9297 2011-08-22  Andreas Schwab  <schwab@redhat.com>
9298
9299         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
9300
9301         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
9302         dependencies back to end of function.
9303
9304         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
9305         $(elfobjdir)/ld.so.
9306
9307 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
9308
9309         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
9310         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
9311         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9312         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9313         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
9314         of __vdso_gettimeofday.
9315         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
9316         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
9317         attribute_hidden.
9318         (_libc_vdso_platform_setup): Remove initialization of
9319         __vdso_gettimeofday and __vdso_time.
9320
9321 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9322
9323         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
9324         and fgetc_unlocked.
9325         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
9326         getc_unlocked.
9327
9328         * elf/dl-open.c (add_to_global): Report additions to the global scope
9329         for LD_DEBUG=scopes.
9330         (dl_open_worker): Also print scope of newly loaded dependencies.
9331         (_dl_show_scope): Indicate if there is no scope.
9332
9333         [BZ #13114]
9334         * stdio-common/Makefile (tests): Add bug24.
9335         * stdio-common/bug24.c: New file.
9336
9337 2011-08-19  Andreas Jaeger  <aj@suse.de>
9338
9339         [BZ #13114]
9340         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
9341         non-existant file when using close-on-exec mode.
9342
9343 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
9344
9345         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
9346         the very first instruction.
9347
9348         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
9349         the CFI state in the end.
9350         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
9351         inclusion of dl-trampoline.h.
9352         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
9353
9354 2011-08-19  Andreas Schwab  <schwab@redhat.com>
9355
9356         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
9357         expectations for long double.
9358
9359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
9360         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
9361
9362 2011-08-14  David S. Miller  <davem@davemloft.net>
9363
9364         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
9365         artificual limit depends upon the system page size.
9366
9367 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9368
9369         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
9370         * resolv/Makefile: Define CFLAGS-libresolv.
9371
9372 2011-08-17  Andreas Schwab  <schwab@redhat.com>
9373
9374         * nss/makedb.c (compute_tables): Make variables used in nested
9375         function static.
9376
9377 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
9378
9379         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
9380         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
9381         if buffer was too small.
9382
9383         * elf/pldd.c (main): Attach to all threads in the process.
9384         Rewrite /proc handling to use *at functions.
9385
9386 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
9387
9388         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
9389         specifies first scope to show.
9390         (dl_open_worker): Update callers.  Move printing scope of new
9391         object to before the relocation.
9392         * elf/rtld.c (dl_main): Update _dl_show_scope call.
9393         * sysdeps/generic/ldsodefs.h: Update declaration.
9394
9395         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
9396         string for the scope number.
9397
9398 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
9399
9400         * nscd/servicescache.c (cache_addserv): Make sure written is always
9401         initialized.
9402
9403 2011-08-14  Roland McGrath  <roland@hack.frob.com>
9404
9405         * sysdeps/i386/i486/bits/atomic.h
9406         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
9407         statement expression, so as to suppress "set but not used" warning.
9408         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
9409
9410         * string/strncat.c (STRNCAT): Use prototype definition.
9411
9412         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
9413         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
9414         -Iprograms here.
9415         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
9416         (localedef-modules): Add localedef.
9417         (locale-modules): Add locale.
9418
9419         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
9420         * elf/rtld.c (dl_main): Invert order of assignment in last change,
9421         to avoid a warning.
9422
9423 2011-08-14  David S. Miller  <davem@davemloft.net>
9424
9425         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
9426         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
9427
9428 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
9429
9430         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
9431         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
9432         * elf/rtld.c (dl_main): Set l_name of vDSO.
9433         Call _dl_show_scope when DL_DEBUG_SCOPES.
9434         (process_dl_debug): Recognize scopes flag and also set it for all.
9435         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
9436         Declare _dl_show_scope.
9437
9438         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
9439         (do_dlopen): Pass caller_dlopen to dl_open.
9440         (__libc_dlopen_mode): Initialize caller_dlopen.
9441
9442         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
9443         of libc.  Make tolower call locale-independent.  Optimize a bit by
9444         using isdigit instead of isalnum.
9445         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
9446
9447 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
9448
9449         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
9450         was a dependency or dynamically loaded.
9451
9452 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
9453
9454         * intl/l10nflist.c: Allow architecture-specific pop function.
9455         * sysdeps/x86_64/l10nflist.c: New file.
9456
9457         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
9458         classification.
9459
9460 2011-08-10  Andreas Schwab  <schwab@redhat.com>
9461
9462         * include/dirent.h: Add libc_hidden_proto for scandirat and
9463         scandirat64.  Don't declare __scandirat64.
9464         * dirent/scandirat.c: Add libc_hidden_def.
9465         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
9466         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
9467
9468 2011-08-10  David S. Miller  <davem@davemloft.net>
9469
9470         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
9471         enum.
9472         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9473         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9474         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9475
9476 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
9477
9478         * Versions.def [libc]: Add GLIBC_2.15.
9479         * dirent/Makefile (routines): Add scandirat and scandirat64.
9480         * dirent/Versions [libc]: Export scandirat and scandirat64 for
9481         GLIBC_2.15.
9482         * dirent/dirent.h: Declare scandirat and scandirat64.
9483         * dirent/scandirat.c: New file.
9484         * dirent/scandirat64.c: New file.
9485         * sysdeps/wordsize-64/scandirat.c: New file.
9486         * sysdeps/wordsize-64/scandirat64.c: New file.
9487         * dirent/opendir.c: Define opendirat.
9488         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
9489         using scandirat.
9490         * dirent/scandir64.c: Adjust for scandir.c change.
9491         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
9492         __scandirat64, and __scandir_cancel_handler.
9493         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
9494         additional parameter and use openat instead of open (outside of ld.so).
9495         Add new __opendir as wrapper around __opendirat.
9496         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
9497         here without requiring old scandirat implementation.
9498
9499 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
9500
9501         * dirent/scandir.c (cancel_handler): Renamed to
9502         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
9503         defined.  Adjust users.
9504         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
9505         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
9506
9507 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
9508
9509         * string/test-string.h (IMPL): Use __STRING to expand name and then
9510         stringify it.
9511
9512         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
9513         of cleanups.
9514
9515 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9516
9517         * string/Makefile: Update.
9518         (strop-tests): Append strncat.
9519         * string/test-wcscmp.c: New file.
9520         New comprehensive test for wcscmp.
9521         * string/test-strcmp.c: Update.
9522         (WIDE): New define.
9523
9524 2011-07-22  Andreas Schwab  <schwab@redhat.com>
9525
9526         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
9527         line.
9528
9529 2011-07-26  Andreas Schwab  <schwab@redhat.com>
9530
9531         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
9532         encoding to ACE if AI_IDN.
9533
9534 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
9535
9536         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
9537         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
9538
9539 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9540
9541         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
9542         Fix overflow bug in strncat.
9543         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
9544
9545         * string/test-strncat.c: Update.
9546         Add new tests for checking overflow bugs.
9547
9548 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9549
9550         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9551         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
9552         * sysdeps/i386/i686/multiarch/strcat.S: New file.
9553         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
9554         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
9555         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
9556         * sysdeps/i386/i686/multiarch/strncat.S: New file.
9557         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
9558         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
9559
9560         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
9561         (USE_AS_STRCAT): Define.
9562         Add strcat and strncat support.
9563         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
9564
9565 2011-07-25  Andreas Schwab  <schwab@redhat.com>
9566
9567         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
9568         __n bigger than INT_MAX+1.
9569         (__strncmp_g): Likewise.
9570
9571 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
9572
9573         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
9574         * libio/stido.h: Likewise.
9575
9576         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
9577         (AF_NFC): Define.
9578         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
9579         (AF_NFC): Define.
9580
9581         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
9582         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9583         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9584         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9585         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9586
9587         [BZ #13021]
9588         * scripts/test-installation.pl: Don't expect libnss_test1 to be
9589         installed.
9590
9591         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
9592         typo.
9593         (_dl_x86_64_save_sse): Likewise.
9594
9595 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
9596
9597         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
9598         OSXSAVE.
9599         (_dl_x86_64_save_sse): Likewise.
9600
9601         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
9602
9603         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
9604
9605 2011-07-21  Andreas Schwab  <schwab@redhat.com>
9606
9607         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
9608         change.
9609         (_dl_x86_64_save_sse): Use correct AVX check.
9610
9611 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9612
9613         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
9614         bug in strncpy/strncat.
9615         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
9616
9617 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
9618
9619         * string/tester.c (test_strcat): Add tests for different alignments
9620         of source and destination.
9621         (test_strncat): Likewise.
9622
9623 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
9624
9625         [BZ #12852]
9626         * posix/glob.c (glob): Check passed in values before using them in
9627         expressions to avoid some overflows.
9628         (glob_in_dir): Likewise.
9629
9630         [BZ #13007]
9631         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
9632         check for AVX enablement so that we don't crash with old kernels and
9633         new hardware.
9634         * elf/tst-audit4.c: Add same checks here.
9635         * elf/tst-audit6.c: Likewise.
9636
9637         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
9638
9639 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
9640
9641         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
9642
9643 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
9644
9645         * po/cs.po: Update from translation team.
9646         * po/bg.po: Likewise.
9647
9648 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
9649
9650         * misc/sys/cdefs.h: Add support for const attribute.
9651         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
9652         to gnu_dev_{major,minor,makedev} functions.
9653
9654 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
9655
9656         * intl/dcigettext.c (get_output_charset): Add missing bracket.
9657
9658 2011-07-20  Andreas Schwab  <schwab@redhat.com>
9659
9660         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
9661         strlen results.
9662
9663 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9664
9665         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
9666         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
9667         register in order to avoid conflicts with the soft frame pointer
9668         being held in r11 when necessary.
9669         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
9670         (INTERNAL_VSYSCALL_NCS): Likewise.
9671
9672 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
9673
9674         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
9675         * elf/dl-fini.c (_dl_fini): Adjust caller.
9676         * elf/dl-close.c (_dl_close_worker): Likewise.
9677         * sysdeps/generic/ldsodefs.h: Adjust declaration.
9678
9679 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
9680
9681         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
9682         "aux_cache->nlibs < 0".
9683
9684         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
9685         in the reload-count case.
9686
9687 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
9688
9689         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9690         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
9691         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
9692         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
9693         * sysdeps/x86_64/multiarch/strcat.S: New file.
9694         * sysdeps/x86_64/multiarch/strncat.S: New file.
9695         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
9696         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
9697         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
9698         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
9699         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
9700         (USE_AS_STRCAT): Define.
9701         Add strcat and strncat support.
9702         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
9703         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
9704         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
9705         * string/strncat.c: Update.
9706         (USE_AS_STRNCAT): Define.
9707         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9708         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
9709         and i7.
9710         * sysdeps/x86_64/multiarch/init-arch.h
9711         (bit_Prefer_PMINUB_for_stringop): New.
9712         (index_Prefer_PMINUB_for_stringop): Likewise.
9713         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
9714         bit_Prefer_PMINUB_for_stringop.
9715
9716 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
9717
9718         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
9719         buffer64.
9720         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
9721         of casting of buffer.
9722         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
9723         buffer32 and buffer64.
9724         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
9725         writes instead of casting of buffer.
9726         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
9727         buffer32.
9728         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
9729         casting of buffer.
9730
9731 2011-07-19  Andreas Schwab  <schwab@redhat.com>
9732
9733         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
9734
9735 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
9736
9737         * nscd/nscd.c (termination_handler): Don't do anything for a database
9738         if it has not yet been initialized.
9739
9740 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
9741
9742         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
9743
9744 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
9745
9746         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
9747
9748 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
9749
9750         * po/nl.po: Update from translation team.
9751         * po/sv.po: Likewise.
9752
9753 2011-07-16  Roland McGrath  <roland@hack.frob.com>
9754
9755         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
9756         now disallowed by GCC.
9757
9758         * configure.in (use-default-link): Default to yes if a test -shared
9759         link meets our qualifications.
9760         * configure: Regenerated.
9761
9762         * config.make.in (output-format): New variable.
9763         * configure.in: Check for ld --print-output-format support.
9764         * configure: Regenerated.
9765         * Makerules ($(common-objpfx)format.lds)
9766         [$(output-format) != unknown]: Just use $(output-format),
9767         instead of the linker-script munging.
9768
9769 2011-07-14  Roland McGrath  <roland@hack.frob.com>
9770
9771         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
9772         of $(common-objpfx)shlib.lds.
9773         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
9774
9775         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
9776         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
9777
9778         * configure.in (-z relro check): Adjust test code to add a large
9779         writable data section after it.
9780         * configure: Regenerated.
9781
9782 2011-07-11  Roland McGrath  <roland@hack.frob.com>
9783
9784         * configure.in (-z relro check): Fix test code to make the variable
9785         truly const.
9786         * configure: Regenerated.
9787
9788 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
9789
9790         * nscd/nscd.h (struct traced_file): Define.
9791         (struct database_dyn): Remove inotify_descr, reset_res, and filename
9792         elements.  Add traced_files.
9793         (inotify_fd): Declare.
9794         (register_traced_file): Declare.
9795         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
9796         (inotify_fd): Export.
9797         (resolv_conf_descr): Remove.
9798         (nscd_init): Move inotify descriptor creation to main.
9799         Don't register files for notification here.
9800         (register_traced_file): New function.
9801         (invalidate_cache): Don't use reset_res to determine whether to call
9802         res_init, go through the list of registered files.
9803         (main_loop_poll): The inotify descriptors are now stored in the
9804         structures for the traced files.
9805         (main_loop_epoll): Likewise
9806         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
9807         to __nss_disable_nscd.
9808         * nscd/cache.c (prune_cache): There is no single inotify descriptor
9809         for a database anymore.  Check the records for all the registered
9810         files instead.
9811         * nss/Makefile (libnss_files-routines): Add files-init.
9812         (libnss_db-routines): Add db-init.
9813         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
9814         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
9815         * nss/nss_db/db-init.c: New file.
9816         * nss/nss_files/files-init.c: New file.
9817         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
9818         __nss_lookup_function.
9819         (__nss_lookup_function): Call nss_load_library.
9820         (nss_load_all_libraries): New function.
9821         (__nss_disable_nscd): Take parameter with callback function for files
9822         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
9823         used for the cached services.
9824         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
9825         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
9826         options for features to all the files in nscd.
9827
9828         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
9829
9830 2011-07-10  Roland McGrath  <roland@hack.frob.com>
9831
9832         * csu/elf-init.c (__libc_csu_init): Comment typo.
9833
9834 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
9835
9836         * po/pl.po: Update from translation team.
9837         * po/ja.po: Likewise.
9838         * po/ru.po: Likewise.
9839         * po/ko.po: Likewise.
9840         * po/fr.po: Likewise.
9841
9842 2011-07-09  Roland McGrath  <roland@hack.frob.com>
9843
9844         * configure.in (.ctors/.dtors header and trailer check):
9845         Use an empirical test on a built program.
9846         * configure: Regenerated.
9847
9848         * configure.in (-z relro check): Use an empirical test on a built DSO.
9849         Detect, but do not require, on ia64.
9850         * configure: Regenerated.
9851
9852         * configure.in (READELF): Find it with AC_CHECK_TOOL.
9853         Update tests that use readelf to use $READELF instead.
9854         * configure: Regenerated.
9855
9856 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
9857
9858         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
9859         if the result is not used.
9860
9861 2011-07-05  Andreas Jaeger  <aj@suse.de>
9862
9863         [BZ#9696]
9864         * stdlib/tst-strtod.c: Add testcase.
9865
9866 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
9867
9868         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
9869         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
9870         The latter has a higher limit.  Take additional parameter to pass to
9871         the new function.
9872         (__pathconf): Pass file to __statfs_link_max.
9873         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
9874         __statfs_link_max.
9875         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
9876         __statfs_link_max.
9877
9878         [BZ #12868]
9879         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
9880         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9881         Handle Lustre.
9882         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
9883         (__statfs_filesize_max): Likewise.
9884         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
9885
9886 2011-07-05  Andreas Jaeger  <aj@suse.de>
9887
9888         * resolv/res_comp.c (dn_skipname): Remove unused variable.
9889
9890 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
9891
9892         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
9893         `status' variable.
9894         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
9895         Likewise.
9896
9897 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
9898
9899         * Makefile (strop-tests): Add strncat.
9900         * string/test-strncat.c: New file.
9901
9902 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
9903
9904         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
9905
9906 2011-06-21  Andreas Jaeger  <aj@suse.de>
9907
9908         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
9909         Copy rule from iconvdata/Makefile.
9910
9911 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9912
9913         [BZ #12922]
9914         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
9915         but no long options are defined, just return 'W'.
9916
9917 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
9918
9919         [BZ #9696]
9920         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
9921
9922 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
9923
9924         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
9925         netgroups to read.
9926         (innetgr): Likewise.
9927
9928 2011-07-05  Roland McGrath  <roland@hack.frob.com>
9929
9930         * config.make.in (install_root): Default to $(DESTDIR).
9931
9932 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
9933
9934         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
9935
9936 2011-07-02  Roland McGrath  <roland@hack.frob.com>
9937
9938         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
9939
9940         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
9941         containing directory rather than embedding absolute directory names.
9942
9943         * scripts/check-local-headers.sh: Rewritten using awk.
9944         Match by word, not by line.  Print error messages for matches.
9945         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
9946
9947         * Makerules [shlib-lds-flags empty]:
9948         ($(common-objpfx)libc_pic.opts): New target.
9949         ($(common-objpfx)libc_pic.os.clean): New target.
9950         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
9951
9952         * config.make.in (OBJCOPY): New variable.
9953         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
9954         * configure: Regenerated.
9955
9956         * config.make.in (use-default-link): New variable.
9957         * configure.in (use_default_link): Grok --with-default-link to set it.
9958         * configure: Regenerated.
9959         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
9960         (shlib-lds, shlib-lds-flags): Define to empty.
9961
9962         * Makerules (shlib-lds): New variable.
9963         (shlib-lds-flags): New variable.
9964         (build-shlib, build-moduile, build-module-asneeded): Use it.
9965         ($(common-objpfx)libc.so): Use $(shlib-lds).
9966         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
9967         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
9968
9969         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
9970         DT_FLAGS/DT_FLAGS_1 with zero flags.
9971
9972         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
9973         linker script munging.
9974
9975 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
9976
9977         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
9978         as 128-bit value.
9979         * crypt/sha512.c (sha512_process_block): Perform total addition using
9980         128-bit if possible.
9981         (__sha512_finish_ctx): Likewise.
9982         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
9983         as 64-bit value.
9984         * crypt/sha256.c (SWAP64): Define.
9985         (sha256_process_block): Perform total addition using 64-bit if
9986         possible.
9987         (__sha256_finish_ctx): Likewise.
9988
9989 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
9990
9991         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
9992         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9993         * nscd/hstcache.c (cache_addhst): Likewise.
9994         * nscd/grpcache.c (cache_addgr): Likewise.
9995         * nscd/aicache.c (addhstaiX): Likewise
9996         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
9997
9998 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
9999
10000         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
10001         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10002         * nscd/hstcache.c (cache_addhst): Likewise.
10003         * nscd/grpcache.c (cache_addgr): Likewise.
10004         * nscd/aicache.c (addhstaiX): Likewise
10005
10006 2011-07-01  Andreas Schwab  <schwab@redhat.com>
10007
10008         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
10009         domain only when needed.
10010
10011 2011-06-30  Andreas Schwab  <schwab@redhat.com>
10012
10013         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
10014         is always restored.
10015
10016 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
10017
10018         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
10019         are re-adding the entry.
10020         * nscd/servicescache.c (cache_addserv): Likewise.
10021
10022 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
10023
10024         * sysdeps/generic/dl-irel.h: fix protection against multiple
10025         inclusions.
10026         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
10027
10028 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
10029
10030         [BZ #12935]
10031         * malloc/memusage.sh: Fix quoting in message.
10032         * debug/xtrace.sh: Likewise.
10033
10034         * configure.in: Remove support for --experimental-malloc option, make
10035         it the default.
10036         * config.make.in: Likewise.
10037         * malloc/Makefile: Likewise.
10038
10039 2011-06-27  Andreas Schwab  <schwab@redhat.com>
10040
10041         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
10042         two-byte characters.
10043
10044 2011-06-27  Roland McGrath  <roland@hack.frob.com>
10045
10046         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
10047         AC_CACHE_CHECK invocation.
10048         * configure: Regenerated.
10049
10050         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
10051
10052 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
10053
10054         [BZ #12350]
10055         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
10056         bit from old_res_options.
10057
10058         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
10059
10060         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
10061         value type for setfct.
10062
10063 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10064
10065         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10066         __gettimeofday instead of gettimeofday.
10067
10068 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
10069
10070         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
10071
10072 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10073
10074         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
10075
10076         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
10077         info.
10078
10079 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10080
10081         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10082         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10083         strcpy-sse2-unaligned strncpy-sse2-unaligned
10084         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
10085         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
10086         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
10087         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
10088         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
10089         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
10090         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
10091         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
10092         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
10093         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
10094         (STRCPY): Support SSE2 and SSSE3 versions.
10095
10096 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
10097
10098         [BZ #12874]
10099         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
10100         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
10101         kernels which artificially limit size of requests.
10102
10103 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10104
10105         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10106         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
10107         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
10108         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
10109         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
10110         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
10111         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
10112         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
10113         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
10114         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
10115         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
10116         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
10117         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
10118         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
10119         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
10120         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10121         Enable unaligned load optimization for Intel Core i3, i5 and i7
10122         processors.
10123         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
10124         Define.
10125         (index_Fast_Unaligned_Load): Define.
10126         (HAS_FAST_UNALIGNED_LOAD): Define.
10127
10128 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
10129
10130         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
10131
10132 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10133
10134         [BZ #12907]
10135         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
10136         until it is clear that the information is realy needed.
10137         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
10138
10139 2011-06-22  Andreas Schwab  <schwab@redhat.com>
10140
10141         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
10142
10143 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
10144
10145         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
10146         /sys/devices/system/cpu/online if it is usable.
10147
10148         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
10149         reading the information from the /proc filesystem to once a second.
10150
10151 2011-06-21  Andreas Jaeger  <aj@suse.de>
10152
10153         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
10154         NULL after inclusion of kernel headers.
10155
10156 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
10157
10158         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
10159         calls to internal_setent.
10160
10161         [BZ #12885]
10162         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
10163         addresses using gethostbyname4_r ignore IPv4 addresses.
10164
10165         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
10166         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
10167
10168         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
10169
10170 2011-06-20  David S. Miller  <davem@davemloft.net>
10171
10172         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
10173         inclusions.
10174         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
10175
10176         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
10177         (elf_irel): Use it.
10178         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
10179         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
10180         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
10181         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
10182         * sysdeps/x86_64/dl-irel.h: Likewise.
10183
10184         * elf/dl-runtime.c: Use elf_ifunc_invoke.
10185         * elf/dl-sym.c: Likewise.
10186
10187 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10188
10189         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
10190         need to dereference resplen2.
10191
10192 2011-06-14  Andreas Schwab  <schwab@redhat.com>
10193
10194         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
10195
10196 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
10197
10198         * Makeconfig: Define vardbdir and inst_vardbdir.
10199         * nss/Makefile: Add rules to install db-Makefile.
10200
10201         * nss/nss_db/db-XXX.c: Cleanup.
10202
10203         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
10204         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
10205         GLIBC_PRIVATE.
10206         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
10207         * nss/makedb.c: Implement -g option to specify that value strings
10208         are generated and should not be added to table iterated over for
10209         get*ent calls.
10210         * nss/nss_db/db-initgroups.c: New file.
10211
10212         * nss/getent.c: Add support for initgroups lookups through getgrouplist
10213         interface.
10214
10215         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
10216         (internal_getgrouplist): Adjust to name change.
10217         Update use_initgroups_entry if this is not the first call.
10218         * nss/databases.def: Add initgroups entry.
10219
10220         * nss/makedb.c (compute_tables): Check result of multiple hash table
10221         sizes to minimize maximum chain length.
10222
10223 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
10224
10225         * Versions.def: Add entry for libnss_db.
10226         * shlib-versions: Likewise.
10227         * nss/Makefile: Add rules to build libnss_db.
10228         * nss/Versions: Add libnss_db information.  Organize libnss_files
10229         entries better.
10230         * nss/db-Makefile: Add gshadow support.  Change rules for the new
10231         makedb progra.  Some minor improvements to generate smaller files.
10232         * nss/nss_db/nss_db.h: Move NSS database header data structures to
10233         here from...
10234         * nss/makedb.c: ...here.
10235         Improve database format to be smaller and require less memory at
10236         runtime.
10237         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
10238         db anymore.
10239         * nss/nss_db/db-netgrp.c: Likewise.
10240         * nss/nss_db/db-open.c: Likewise.
10241         * nss/nss_files/flies-XXX.x: Adjust comments.
10242         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
10243         * nss/nss_files/files-grp.c: Likewise.
10244         * nss/nss_files/files-hosts.c: Likewise.
10245         * nss/nss_files/files-network.c: Likewise.
10246         * nss/nss_files/files-proto.c: Likewise.
10247         * nss/nss_files/files-pwd.c: Likewise.
10248         * nss/nss_files/files-rpc.c: Likewise.
10249         * nss/nss_files/files-service.c: Likewise.
10250         * nss/nss_files/files-sgrp.c: Likewise.
10251         * nss/nss_files/files-spwd.c: Likewise.
10252         * nss/nss_db/db-alias.c: Removed.
10253         * nss/nss_db/dummy-db.h: Removed.
10254
10255 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
10256
10257         * nss/makedb.c: Rewritten to not use database library.
10258         * nss/Makefile: Update to build new makedb program.
10259
10260 2011-06-14  Andreas Jaeger  <aj@suse.de>
10261
10262         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
10263         memset declaration.
10264
10265 2011-06-10  Andreas Schwab  <schwab@redhat.com>
10266
10267         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
10268         tmpbuf.
10269
10270 2011-06-10  Roland McGrath  <roland@hack.frob.com>
10271
10272         * Makerules (shlib.lds): Fail if the linker script comes out empty.
10273         * elf/Makefile ($(objpfx)ld.so): Likewise.
10274
10275         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
10276         Don't list ld.so twice in dependencies.
10277
10278         * posix/bug-regex31.c: Include <stdlib.h>.
10279
10280         * nscd/hstcache.c (cache_addhst): Remove unused variable.
10281
10282         * nis/nss_compat/compat-spwd.c
10283         (getspent_next_nss_netgr): Remove unused variable.
10284         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
10285
10286         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
10287         nonmembers" output to use the right array.
10288
10289         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
10290
10291         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
10292
10293         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
10294         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
10295         * catgets/gencat.c (read_input_file): Likewise.
10296         * locale/programs/locarchive.c (enlarge_archive): Likewise.
10297
10298         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
10299         variable definition inside #if's controlling its use.
10300
10301         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
10302
10303         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
10304
10305         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
10306
10307         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
10308         unreachable code.
10309
10310         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
10311
10312         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
10313         * configure: Regenerated.
10314
10315         * Makerules: Revert last change.
10316         * elf/Makefile: Likewise.
10317
10318 2011-06-09  Roland McGrath  <roland@hack.frob.com>
10319
10320         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
10321         * elf/Makefile ($(objpfx)librtld.os): Likewise.
10322         (reloc-link): Likewise.
10323
10324 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
10325
10326         * elf/Makefile: Add rules to build pldd.
10327         * elf/pldd.c: New file.
10328         * elf/pldd-xx.c: New file.
10329
10330 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
10331
10332         * version.h: Update for 2.15 development version.
10333
10334 2011-06-07  David S. Miller  <davem@davemloft.net>
10335
10336         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
10337         ifuncs.
10338         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
10339         elf_machine_lazy_rel): Likewise.
10340         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
10341         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
10342         elf_machine_lazy_rel): Likewise.
10343         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
10344         dl_hwcap via passed in argument.
10345         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
10346         Likewise.
10347
10348 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10349
10350         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
10351
10352 2011-06-06  Roland McGrath  <roland@hack.frob.com>
10353
10354         [BZ #12849]
10355         * manual/fdl-1.1.texi: New file, verbatim from:
10356         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
10357         * manual/lgpl-2.1.texi: New file, verbatim from:
10358         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
10359         * manual/Makefile (licenses): New variable, list those new file names.
10360         (texis): Use it.
10361         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
10362
10363         * manual/fdl.texi: File removed.
10364         * manual/lesser.texi: File removed.
10365         * manual/libc.texinfo (Copying, Documentation License):
10366         Use new @include file names, put @appendix directive before @include.
10367
10368 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
10369
10370         [BZ #12841]
10371         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
10372         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
10373         (mq_open): Add __NTH.
10374
10375 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10376
10377         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10378         Assume Intel Core i3/i5/i7 processor if AVX is available.
10379
10380 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10381
10382         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10383         typo.
10384
10385 2011-05-31  Andreas Schwab  <schwab@redhat.com>
10386
10387         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
10388         memory.  Use alloca_account.  Fix memory leak when retrying.
10389
10390 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
10391
10392         * version.h (RELEASE): Bump for 2.14 release.
10393         * include/features.h (__GLIBC_MINOR__): Bump to 14.
10394
10395         * config.make.in (RANLIB): Remove entry.
10396
10397 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
10398
10399         * po/Makefile (po-sed-cmd): Add ksh to extensions.
10400         (libc.pot): Work around missing support for .ksh extension in xgettext.
10401
10402         [BZ #12684]
10403         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
10404         if both request failed.
10405         (send_dg): In case of server errors clear resplen or *resplen2.
10406
10407         [BZ #12454]
10408         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
10409         when there are multiple maps.
10410         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
10411         (_dl_fini): Remove test here.
10412
10413         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
10414
10415 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
10416
10417         [BZ #12350]
10418         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
10419         bit from old_res_options.
10420         (gaih_inet): Likewise.
10421
10422         [BZ #11099]
10423         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
10424         as signed.
10425
10426         * resolv/res_init.c (res_setoptions): Make the code more compact.
10427
10428         [BZ #11558]
10429         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
10430         set RES_USEVC.
10431
10432         [BZ #11634]
10433         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
10434
10435         * malloc/malloc.h: Mark malloc hook variables as deprecated.
10436
10437         [BZ #11781]
10438         * malloc/malloc.h: Declare malloc hook variables as volatile.
10439
10440         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
10441         in last patch.
10442
10443         [BZ #11799]
10444         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
10445         raise in the comment.
10446         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10447         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10448         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
10449
10450 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
10451
10452         [BZ #12811]
10453         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
10454         grow the buffers more if it already has to be sufficient.
10455         (build_wcs_upper_buffer): Likewise.
10456         * posix/regexec.c (check_matching): Likewise.
10457         (clean_state_log_if_needed): Likewise.
10458         (extend_buffers): Don't enlarge buffers beyond size of the input
10459         buffer.
10460         Patches mostly by Emil Wojak <emil@wojak.eu>.
10461         * posix/bug-regex32.c: New file.
10462         * posix/Makefile (tests): Add bug-regex32.
10463
10464         * locale/findlocale.c (_nl_find_locale): Return right away if
10465         _nl_explode_name failed.
10466         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
10467
10468         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
10469
10470         * debug/xtrace.sh: Unify messages.
10471         * malloc/memusage.sh: Likewise.
10472
10473         [BZ #12813]
10474         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
10475         time symbol from vDSO.  Substitute with vsyscall if not available.
10476         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
10477         __vdso_time.
10478
10479         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
10480         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
10481         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
10482         Add sendmmsg and internal_sendmmsg.
10483         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
10484         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
10485         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
10486
10487         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
10488         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
10489         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
10490
10491 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
10492
10493         [BZ #12813]
10494         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
10495         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
10496         available.
10497         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
10498         __vdso_getcpu.
10499
10500         [BZ #12814]
10501         * iconvdata/Makefile (tests): Add bug-iconv9.
10502         * iconvdata/bug-iconv9.c: New file.
10503
10504 2011-05-27  Andreas Schwab  <schwab@redhat.com>
10505
10506         [BZ #12814]
10507         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
10508
10509 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
10510
10511         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
10512         (struct user_regs_struct): Change intcs field back to cs.
10513
10514 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
10515
10516         * po/ja.po: Update from translation team.
10517
10518 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
10519
10520         [BZ #12795]
10521         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
10522         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
10523
10524 2011-05-20  Andreas Schwab  <schwab@redhat.com>
10525
10526         * stdlib/longlong.h: Update from GCC.
10527
10528 2011-05-23  Andreas Schwab  <schwab@redhat.com>
10529
10530         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
10531         parameter name.
10532         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
10533         Add parameter name.
10534         (__sysconf): Pass it down.
10535
10536 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
10537
10538         [BZ #12671]
10539         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
10540         some situations.
10541         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10542         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
10543         add in in __libc_use_alloca calls.  Adjust callers.
10544         (glob): Use malloc in some situations.
10545
10546         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
10547         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
10548         pltexit.
10549
10550 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
10551
10552         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
10553         and CLOCK_BOOTTIME_ALARM.
10554
10555         [BZ #12782]
10556         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
10557         is returned.
10558
10559         * string/_strerror.c (__strerror_r): Print negative errors as signed
10560         numbers.
10561
10562         [BZ #12777]
10563         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
10564         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
10565         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
10566
10567         * configure.in: Fix typo in redirection and correct removal of test
10568         files in two cases.
10569
10570         [BZ #12788]
10571         * locale/setlocale.c (new_composite_name): Fix test to check for
10572         identical name of all categories.
10573
10574         [BZ #12792]
10575         * libio/filedoalloc.c (local_isatty): New function.
10576         (_IO_file_doallocate): Use local_isatty.
10577         * stdio-common/perror.c (perror): In case a new stream is used
10578         forward the stream error.
10579         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
10580         error flag.
10581
10582 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
10583
10584         [BZ #11869]
10585         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
10586         alloca.
10587         * include/alloca.h (extend_alloca_account): Define.
10588
10589         [BZ #11857]
10590         * posix/regex.h: Fix comments with documentation of user-accessible
10591         fields after compilation and describe correct free'ing of pattern
10592         after re_compile_pattern.
10593         Patch by Reuben Thomas <rrt@sc3d.org>.
10594
10595 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
10596
10597         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
10598         and -mno-altivec to prevent the compiler from using Altivec and/or
10599         VSX instructions when the corresponding registers are not available.
10600
10601 2011-05-19  Andreas Schwab  <schwab@redhat.com>
10602
10603         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
10604
10605 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
10606
10607         * libio/freopen.c (freopen): Use __dup2, not dup2.
10608         * libio/freopen64.c (freopen64): Likewise.
10609
10610 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
10611
10612         [BZ #12775]
10613         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
10614         * math/Makefile (tests): Add test-powl.
10615         (CFLAGS-test-powl.c): Define.
10616         * math/test-powl.c: New file.
10617
10618 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10619
10620         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
10621
10622 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
10623
10624         [BZ #11837]
10625         * iconvdata/gb18030.c: Update to GB18020-2005.
10626
10627 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
10628
10629         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
10630         RE_SYNTAX_POSIX_AWK): Update to match recent development.
10631         Patch by Aharon Robbins <arnold@skeeve.com>.
10632
10633         [BZ #11892]
10634         * stdlib/putenv.c (putenv): Don't always create copy of the variable
10635         on the stack.
10636
10637         [BZ #11895]
10638         * misc/pselect.c (__pselect): Handle timeout value errors hidden
10639         through underflows.
10640
10641         [BZ #12766]
10642         * misc/error.c (error_at_line): Ensure file_name and old_file_name
10643         point to strings before performing equality test for error_one_per_line
10644         mode.
10645
10646         [BZ #11697]
10647         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
10648
10649         [BZ #11820]
10650         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
10651         (struct user_fpregs_struct): Avoid __uint*_t types.
10652
10653         [BZ #6420]
10654         * malloc/mtrace.c (tr_where): Add additional parameter to point to
10655         symbol info.  Use it instead of calling _dl_addr locally.
10656         (lock_and_info): New function.
10657         (tr_freehook): Call lock_and_info and pass symbol info as additional
10658         parameter to tr_where.
10659         (tr_mallochook): Likewise.
10660         (tr_reallochook): Likewise.
10661         (tr_memalignhook): Likewise.
10662
10663         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
10664         used and couldn't be at all thread-safe.
10665
10666 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
10667
10668         * libio/freopen.c (freopen): Don't close old file descriptor
10669         before the new one is opened.  Instead dup the new file descriptor
10670         to the old one after the new stream is created.
10671         * libio/freopen64.c (freopen64): Likewise.
10672         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
10673         * libio/fileops.c (_IO_new_file_close_it): Handle new
10674         _IO_FLAGS2_NOCLOSE flag.
10675         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
10676         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
10677         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
10678         _IO_FLAGS2_NOCLOSE flag.
10679         * include/unistd.h: Add hidden_proto for dup3.
10680         Define __have_dup3.
10681         * io/dup3.c: Define hidden symbol.
10682         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
10683
10684         [BZ #7101]
10685         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
10686         when an incomplete long option is used.
10687         * posix/tst-getopt_long1.c: New file.
10688         * posix/Makefile (tests): Add tst-getopt_long1.
10689
10690         [BZ #10138]
10691         * scripts/config.guess: Update from autoconf-2.68.
10692         * scripts/config.sub: Likewise.
10693
10694         [BZ #10157]
10695         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
10696         tests into ...
10697         (has_cpuclock): ...this.  New function.
10698         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
10699         macro here based on has_cpuclock code.
10700
10701         [BZ #10149]
10702         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10703         First byte (not low byte) is now always NUL.
10704         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
10705
10706         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10707         Use non-cancelable interfaces.
10708
10709         [BZ #9809]
10710         * locale/iso-639.def: Add entry for Sorani.
10711
10712         [BZ #11901]
10713         * include/stdlib.h: Move include protection to the right place.
10714         Define abort_msg_s.  Declare __abort_msg with it.
10715         * stdlib/abort.c (__abort_msg): Adjust type.
10716         * assert/assert.c (__assert_fail_base): New function.  Majority
10717         of code from __assert_fail.  Allocate memory for __abort_msg with
10718         mmap.
10719         (__assert_fail): Now call __assert_fail_base.
10720         * assert/assert-perr.c: Remove bulk of implementation.  Use
10721         __assert_fail_base.
10722         * include/assert.hL Declare __assert_fail_base.
10723         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
10724         mmap.
10725         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
10726
10727 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
10728
10729         [BZ #11952]
10730         [BZ #12453]
10731         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
10732         until all modules are registered in the DTV.
10733         * elf/Makefile: Add rules to build and run tst-tls19.
10734         * elf/tst-tls19.c: New file.
10735         * elf/tst-tls19mod1.c: New file.
10736         * elf/tst-tls19mod2.c: New file.
10737         * elf/tst-tls19mod3.c: New file.
10738         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
10739
10740         [BZ #12083]
10741         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
10742         correctly.
10743
10744         [BZ #12601]
10745         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
10746         two-byte sequence errors.
10747         * iconvdata/Makefile (tests): Add bug-iconv8.
10748         * iconvdata/bug-iconv8.c: New file.
10749
10750         [BZ #12626]
10751         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
10752         buf2 definition.
10753
10754         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
10755
10756         [BZ #12432]
10757         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
10758         (dummy_getcfa): New function.
10759         (init): Get _Unwind_GetCFA address, use dummy if not found.
10760         (backtrace_helper): In recursion check, also check whether CFA changes.
10761         (__backtrace): Completely initialize arg.
10762
10763         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
10764         storing incomplete byte sequence in state object.  Avoid testing for
10765         guaranteed too small input if we know there is enough data available.
10766
10767 2011-05-11  Andreas Schwab  <schwab@redhat.com>
10768
10769         * Makeconfig (+link-pie): Indent.
10770         * Rules (binaries-pie): Define if $(have-fpie) and
10771         $(build-shared).
10772         (binaries-shared): Also filter out $(binaries-pie).
10773         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
10774         * nscd/Makefile (others-pie): Add nscd.
10775         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
10776         ($(objpfx)nscd): Remove command override.
10777         * login/Makefile (others-pie): Add pt_chown.
10778         ($(objpfx)pt_chown): Remove command override.
10779         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
10780         remove command overrides.
10781
10782 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
10783
10784         * libio/tst_putwc.c: Fix error messages.
10785
10786         [BZ #12724]
10787         * libio/fileops.c (_IO_new_file_close_it): Always flush when
10788         currently writing and seek to current position when not.
10789         * libio/Makefile (tests): Add bug-fclose1.
10790         * libio/bug-fclose1.c: New file.
10791
10792 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
10793
10794         [BZ #12511]
10795         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
10796         don't set DF_1_NODELETE here.
10797         (do_lookup_x): When entering new entry test for copy relocation
10798         and if necessary set DF_1_NODELETE flag.
10799         * elf/tst-unique4.cc: New file.
10800         * elf/tst-unique4.h: New file.
10801         * elf/tst-unique4lib.cc: New file.
10802         * elf/Makefile: Add rules to build and run tst-unique4.
10803         Patch by Piotr Bury <pbury@goahead.com>.
10804
10805 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10806
10807         [BZ #12052]
10808         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
10809
10810         [BZ #12625]
10811         * misc/mntent_r.c (addmntent): Flush the stream after the output
10812
10813         [BZ #12393]
10814         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
10815         (is_trusted_path_normalize): Skip initial colon.  Append slash
10816         to empty buffer.  Duplicate is_trusted_path code but allow
10817         constructed patch to be prefix.
10818         (is_dst): Allow $ORIGIN followed by /.
10819         (_dl_dst_substitute): Correct clearing of check_for_trusted.
10820         Correct testing of result of is_trusted_path_normalize
10821         (decompose_rpath): Fix warning.
10822
10823 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
10824
10825         [BZ #11257]
10826         * grp/initgroups.c (internal_getgrouplist): When we found the service
10827         list through the initgroups entry in nsswitch.conf do not always
10828         continue on a successful lookup.  Don't always use the
10829         __nss_group_database value if it is set.
10830         * nss/nsswitch.conf (initgroups): Change action for successful db
10831         lookup to continue for compatibility.
10832
10833 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
10834
10835         [BZ #11532]
10836         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
10837         and CP774 modules.
10838         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
10839         and CP774 modules.
10840         * iconvdata/tst-tables.sh: Likewise.
10841         * iconvdata/cp770.c: New file.
10842         * iconvdata/cp771.c: New file.
10843         * iconvdata/cp772.c: New file.
10844         * iconvdata/cp773.c: New file.
10845         * iconvdata/cp774.c: New file.
10846         * iconvdata/testdata/CP770: New file.
10847         * iconvdata/testdata/CP770..UTF8: New file.
10848         * iconvdata/testdata/CP771: New file.
10849         * iconvdata/testdata/CP771..UTF8: New file.
10850         * iconvdata/testdata/CP772: New file.
10851         * iconvdata/testdata/CP772..UTF8: New file.
10852         * iconvdata/testdata/CP773: New file.
10853         * iconvdata/testdata/CP773..UTF8: New file.
10854         * iconvdata/testdata/CP774: New file.
10855         * iconvdata/testdata/CP774..UTF8: New file.
10856
10857         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
10858         END CHARMAP line.
10859         * iconvdata/gen-8bit-gap.sh: Likewise.
10860         * iconvdata/gen-8bit.sh: Likewise.
10861
10862         * locale/iso-639.def: Add ary entry.
10863
10864         [BZ #11258]
10865         * locale/C-translit.h.in: Add U20A1 transliteration.
10866
10867         [BZ #12178]
10868         * locale/iso-639.def: Add wae entry.
10869         Patch by Kevin Bortis <bortis@translate-wae.ch>.
10870
10871         [BZ #12545]
10872         * locale/programs/localedef.c (construct_output_path): Use ssize_t
10873         for n.
10874
10875         [BZ #12711]
10876         * locale/C-translit.h.in: Add entry for U20B9.
10877         Patch by pravin.d.s@gmail.com.
10878
10879 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
10880
10881         [BZ #12713]
10882         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
10883         ENAMETOOLONG use generic getcwd.
10884         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
10885         in rtld.  Use *stat64.
10886         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
10887         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
10888         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
10889         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
10890         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
10891         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
10892         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
10893         __fstatat64 macros.
10894         * include/dirent.h: Add libc_hidden_proto for rewinddir.
10895         * dirent/rewinddir.c: Add libc_hidden_def.
10896         * sysdeps/mach/hurd/rewinddir.c: Likewise.
10897         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
10898
10899         * include/dirent.h (__alloc_dir): Add flags parameter.
10900         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
10901         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
10902         __alloc_dir.
10903         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
10904         from fdopendir if O_CLOEXEC is already set.
10905
10906 2011-03-15  Alan Modra  <amodra@gmail.com>
10907
10908         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
10909         l_tls_firstbyte_offset non-zero.  Save padding offset in
10910         l_tls_firstbyte_offset for later use.
10911         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
10912         freeing static tls block.
10913
10914 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
10915
10916         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
10917         where #ifdef was intended.  The intent is to prevent ARG_MAX from
10918         being defined by the kernel headers.
10919
10920 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
10921
10922         [BZ #12734]
10923         * resolv/resolv.h: Define RES_NOTLDQUERY.
10924         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
10925         no-tld-query and set RES_NOTLDQUERY.
10926         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
10927         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
10928         modern BIND to search name as TLD unless forbidden.
10929
10930 2011-05-07  Petr Baudis  <pasky@suse.cz>
10931             Ulrich Drepper  <drepper@gmail.com>
10932
10933         [BZ #12393]
10934         * elf/dl-load.c (fillin_rpath): Move trusted path check...
10935         (is_trusted_path): ...to here.
10936         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
10937         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
10938         using is_trusted_path_normalize() in setuid scripts.
10939
10940 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10941
10942         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
10943         __BEGIN/__END_DECLS.
10944
10945 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
10946
10947         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
10948         NSS_STATUS_NOTFOUND if no record was found.
10949
10950 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10951
10952         * sunrpc/Makefile (headers): Add rpc/netdb.h.
10953         (headers-not-in-tirpc): Remove rpc/netdb.h
10954         * resolv/netdb.h: Revert last change.
10955
10956 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10957
10958         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
10959         circular dependency between libgcc.a and libc.a.
10960
10961 2011-05-05  Andreas Schwab  <schwab@redhat.com>
10962
10963         * resolv/netdb.h: Don't include <rpc/netdb.h>.
10964         * nis/Makefile: Don't install rpcsvc/*.
10965         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
10966         instead of <rpc/types.h>.
10967         (MAXHOSTNAMELEN): Define.
10968
10969 2011-05-03  Andreas Schwab  <schwab@redhat.com>
10970
10971         * elf/ldconfig.c (add_dir): Don't crash on empty path.
10972
10973 2011-04-28  Maciej Babinski  <mbabinski@google.com>
10974
10975         [BZ #12714]
10976         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
10977         gethostbyname4_r when IPv6 results are possible.
10978
10979 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
10980
10981         [BZ #12723]
10982         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
10983         _PC_PIPE_BUF handling.
10984
10985 2011-04-30  Bruno Haible  <bruno@clisp.org>
10986
10987         [BZ #12717]
10988         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
10989         * resolv/netdb.h (getnameinfo): Change type of flags parameter
10990         to 'int'.
10991         * inet/getnameinfo.c (getnameinfo): Likewise.
10992
10993 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
10994
10995         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
10996         to groups setting in database lookup.
10997         * nss/nsswitch.conf: Add initgroups entry.
10998
10999 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
11000
11001         [BZ #12685]
11002         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
11003         mode string.
11004         Patch by Eric Blake <eblake@redhat.com>.
11005
11006 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11007
11008         * sunrpc/Makefile (need-export-routines): Add svc_run.
11009         (routines): Remove svc_run.
11010         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
11011         * sunrpc/clnt_perr.c (clnt_perrno): Export.
11012         * sunrpc/svc_run.c (svc_run): Likewise.
11013         * sunrpc/svc_udp.c (svcudp_create): Likewise.
11014
11015 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
11016
11017         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
11018         problem in reallocation in last patch.
11019
11020 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
11021
11022         * sunrpc/Makefile: Move inclusion of Rules.
11023
11024 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11025
11026         * nss/nss_files/files-initgroups.c: New file.
11027         * nss/Makefile (libnss_files-routines): Add files-initgroups.
11028         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
11029         _nss_files_initgroups_dyn.
11030
11031 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
11032
11033         * elf/elf.h (R_ARM_IRELATIVE): Define.
11034
11035 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
11036
11037         * po/ru.po: Update from translation team.
11038
11039 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11040
11041         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
11042         dependencies.
11043
11044 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
11045
11046         [BZ #12653]
11047         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
11048         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
11049         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11050         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11051         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
11052
11053 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
11054
11055         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
11056         differing bytes.
11057         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
11058         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
11059         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11060
11061 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
11062
11063         [BZ #12420]
11064         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
11065         storing it.
11066         * stdlib/bug-getcontext.c: New file.
11067         * stdlib/Makefile: Add rules to build and run bug-getcontext.
11068
11069 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11070
11071         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
11072         instructions into .machine "z9-109".
11073         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
11074         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
11075
11076 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11077
11078         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
11079         between environment variables and auxiliary vector.
11080
11081 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
11082
11083         * Makefile: Add rules to build linkobj/libc.so.
11084         * include/libc-symbols.h: Define libc_hidden_nolink.
11085         * include/rpc/auth.h: Mark functions which are to be hidden.
11086         * include/rpc/auth_des.h: Likewise.
11087         * include/rpc/auth_unix.h: Likewise.
11088         * include/rpc/clnt.h: Likewise.
11089         * include/rpc/des_crypt.h: Likewise.
11090         * include/rpc/key_prot.h: Likewise.
11091         * include/rpc/pmap_clnt.h: Likewise.
11092         * include/rpc/pmap_prot.h: Likewise.
11093         * include/rpc/pmap_rmt.h: Likewise.
11094         * include/rpc/rpc_msg.h: Likewise.
11095         * include/rpc/svc.h: Likewise.
11096         * include/rpc/svc_auth.h: Likewise.
11097         * include/rpc/xdr.h: Likewise.
11098         * nis/Makefile: Link all DSOs against linkobj/libc.so.
11099         * nss/Makefile: Likewise.
11100         * sunrpc/Makefile: Don't install headers.  Build library with normal
11101         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
11102         * sunrpc/auth_des.c: Hide exported symbols by default, export some
11103         for the compat linking library.  Remove use of INTDEF/INTUSE.
11104         * sunrpc/auth_none.c: Likewise.
11105         * sunrpc/auth_unix.c: Likewise.
11106         * sunrpc/authdes_prot.c: Likewise.
11107         * sunrpc/authuxprot.c: Likewise.
11108         * sunrpc/clnt_gen.c: Likewise.
11109         * sunrpc/clnt_perr.c: Likewise.
11110         * sunrpc/clnt_raw.c: Likewise.
11111         * sunrpc/clnt_simp.c: Likewise.
11112         * sunrpc/clnt_tcp.c: Likewise.
11113         * sunrpc/clnt_udp.c: Likewise.
11114         * sunrpc/clnt_unix.c: Likewise.
11115         * sunrpc/des_crypt.c: Likewise.
11116         * sunrpc/des_soft.c: Likewise.
11117         * sunrpc/get_myaddr.c: Likewise.
11118         * sunrpc/key_call.c: Likewise.
11119         * sunrpc/key_prot.c: Likewise.
11120         * sunrpc/netname.c: Likewise.
11121         * sunrpc/pm_getmaps.c: Likewise.
11122         * sunrpc/pm_getport.c: Likewise.
11123         * sunrpc/pmap_clnt.c: Likewise.
11124         * sunrpc/pmap_prot.c: Likewise.
11125         * sunrpc/pmap_prot2.c: Likewise.
11126         * sunrpc/pmap_rmt.c: Likewise.
11127         * sunrpc/publickey.c: Likewise.
11128         * sunrpc/rpc_cmsg.c: Likewise.
11129         * sunrpc/rpc_common.c: Likewise.
11130         * sunrpc/rpc_dtable.c: Likewise.
11131         * sunrpc/rpc_prot.c: Likewise.
11132         * sunrpc/rpc_thread.c: Likewise.
11133         * sunrpc/rtime.c: Likewise.
11134         * sunrpc/svc.c: Likewise.
11135         * sunrpc/svc_auth.c: Likewise.
11136         * sunrpc/svc_authux.c: Likewise.
11137         * sunrpc/svc_raw.c: Likewise.
11138         * sunrpc/svc_run.c: Likewise.
11139         * sunrpc/svc_simple.c: Likewise.
11140         * sunrpc/svc_tcp.c: Likewise.
11141         * sunrpc/svc_udp.c: Likewise.
11142         * sunrpc/svc_unix.c: Likewise.
11143         * sunrpc/svcauth_des.c: Likewise.
11144         * sunrpc/xcrypt.c: Likewise.
11145         * sunrpc/xdr.c: Likewise.
11146         * sunrpc/xdr_array.c: Likewise.
11147         * sunrpc/xdr_float.c: Likewise.
11148         * sunrpc/xdr_intXX_t.c: Likewise.
11149         * sunrpc/xdr_mem.c: Likewise.
11150         * sunrpc/xdr_rec.c: Likewise.
11151         * sunrpc/xdr_ref.c: Likewise.
11152         * sunrpc/xdr_sizeof.c: Likewise.
11153         * sunrpc/xdr_stdio.c: Likewise.
11154
11155 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
11156
11157         [BZ #12650]
11158         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
11159         * sysdeps/ia64/dl-tls.h: Likewise.
11160         * sysdeps/powerpc/dl-tls.h: Likewise.
11161         * sysdeps/s390/dl-tls.h: Likewise.
11162         * sysdeps/sh/dl-tls.h: Likewise.
11163         * sysdeps/sparc/dl-tls.h: Likewise.
11164         * sysdeps/x86_64/dl-tls.h: Likewise.
11165         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
11166
11167 2011-03-14  Andreas Schwab  <schwab@redhat.com>
11168
11169         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
11170         rpath element also skip the following colon.
11171         (expand_dynamic_string_token): Add is_path parameter and pass
11172         down to DL_DST_REQUIRED and _dl_dst_substitute.
11173         (decompose_rpath): Call expand_dynamic_string_token with
11174         non-zero is_path.  Ignore empty rpaths.
11175         (_dl_map_object_from_fd): Call expand_dynamic_string_token
11176         with zero is_path.
11177
11178 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
11179
11180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
11181         Make cancelable.
11182
11183 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
11184
11185         [BZ #12655]
11186         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
11187         Patch by Filipe David Manana <fdmanana@apache.org>.
11188
11189 2011-04-07  Andreas Schwab  <schwab@redhat.com>
11190
11191         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
11192         Maintain aligned stack.
11193         (CHECK_RSP): Remove unused macro.
11194
11195 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
11196
11197         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
11198         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
11199
11200 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
11201
11202         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
11203
11204         * include/features.h: Mention __USE_XOPEN2K8 in comment.
11205
11206 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11207
11208         [BZ #12518]
11209         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
11210         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
11211         * sysdeps/x86_64/memmove.c: New file.
11212         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
11213         (memcpy): Renamed to ...
11214         (__new_memcpy): This.
11215         (memcpy): Provide GLIBC_2_14 memcpy.
11216         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
11217         (memcpy): Provide GLIBC_2_2_5 memcpy.
11218
11219 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11220
11221         [BZ #12631]
11222         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
11223
11224 2011-03-30  Andreas Schwab  <schwab@redhat.com>
11225
11226         * misc/syncfs.c: New file.
11227         * misc/Makefile (routines): Add syncfs.
11228         * posix/unistd.h: Declare syncfs.
11229         * sysdeps/unix/syscalls.list: Add syncfs.
11230
11231 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11232
11233         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
11234         open_by_handle_at.
11235         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11236         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11237         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11238         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11239         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11240         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11241         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11242
11243 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11244
11245         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
11246         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11247         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11248         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11249         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11250         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11251         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11252
11253         * io/Makefile: Compile fallocate.c, fallocate64.c, and
11254         sync_file_range.c with -fexceptions.
11255         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
11256         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
11257         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
11258         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
11259         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
11260         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
11261         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
11262         sync_file_range as cancellation point
11263         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
11264         now a wrapper around __call_sync_file_range with cancellation handling.
11265         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
11266         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
11267         function name to __call_sync_file_range.
11268         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
11269         Add call_sync_file_range.
11270
11271 2011-04-01  Andreas Schwab  <schwab@redhat.com>
11272
11273         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11274         bits/timex.h.
11275
11276 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
11277
11278         * iconv/iconv.h: Fix typo in comment.
11279         * io/fcntl.h: Likewise.
11280         * libio/stdio.h: Likewise.
11281         * posix/spawn.h: Likewise.
11282         * posix/unistd.h: Likewise.
11283         * stdlib/stdlib.h: Likewise.
11284         * time/time.h: Likewise.
11285         * wcsmbs/wchar.h: Likewise.
11286
11287         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
11288         open_by_handle): Add.
11289         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
11290         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
11291         Augment a few comments.
11292         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11293         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11294         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11295         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11296         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11297         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
11298         open_by_handle.
11299
11300         * io/fcntl.h (AT_EMPTY_PATH): Define.
11301
11302 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
11303
11304         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
11305         * sysdeps/unix/sysv/linux/bits/time.h: New file.
11306         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
11307         to...
11308         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
11309         * Versions.def: Add GLIBC_2.14.
11310         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
11311         Export.
11312
11313 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
11314
11315         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
11316         round counter.
11317         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11318
11319 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11320
11321         [BZ #12597]
11322         * string/test-strncmp.c (do_page_test): New function.
11323         (check2): Likewise.
11324         (test_main): Call check2.
11325         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
11326
11327 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
11328
11329         [BZ #12587]
11330         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11331         Handle cache information in CPU leaf 4.
11332         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
11333
11334 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
11335
11336         [BZ #12583]
11337         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
11338         character representation.
11339         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
11340
11341 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
11342
11343         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
11344         END(__isnan) to END(__isnanf) to match function entry point/label
11345         EALIGN(__isnanf,...).
11346
11347 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11348
11349         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
11350
11351 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
11352
11353         [BZ #12510]
11354         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
11355         copy from the symbol referenced in the relocation to initialize the
11356         used variable.
11357         Patch by Piotr Bury <pbury@goahead.com>.
11358         * elf/Makefile: Add rules to build and tst-unique3.
11359         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
11360         * elf/tst-unique3.cc: New file.
11361         * elf/tst-unique3.h: New file.
11362         * elf/tst-unique3lib.cc: New file.
11363         * elf/tst-unique3lib2.cc: New file.
11364
11365         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
11366
11367 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
11368
11369         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
11370         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
11371         to _start.
11372
11373 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
11374
11375         * elf/dl-load.c (_dl_map_object): If we are looking for the first
11376         to-be-loaded object along a path to loader is ld.so.
11377
11378 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11379             Ulrich Drepper  <drepper@gmail.com>
11380
11381         * sysdeps/x86_64/memset.S: After aligning destination, code
11382         branches to different locations depending on the value of
11383         misalignment, when multiarch is enabled. Fix this.
11384
11385 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
11386
11387         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
11388         Set _x86_64_preferred_memory_instruction for AMD processsors.
11389         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11390         Set bit_Prefer_SSE_for_memop for AMD processors.
11391
11392 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
11393
11394         * libio/fmemopen.c (fmemopen): Optimize a bit.
11395
11396 2011-03-03  Andreas Schwab  <schwab@redhat.com>
11397
11398         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
11399
11400 2011-03-03  Roland McGrath  <roland@redhat.com>
11401
11402         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
11403
11404 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
11405
11406         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
11407         __bzero_ultra1 instead of __memset_ultra1.
11408
11409 2011-02-23  Andreas Schwab  <schwab@redhat.com>
11410             Ulrich Drepper  <drepper@gmail.com>
11411
11412         [BZ #12509]
11413         * include/link.h (struct link_map): Add l_orig_initfini.
11414         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
11415         returning unsuccessfully.
11416         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
11417         close of a file loaded at startup, restore the original l_initfini
11418         list.
11419         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
11420         list, store the pointer.
11421         * elf/Makefile ($(objpfx)noload-mem): New rule.
11422         (noload-ENV): Define.
11423         (tests): Add $(objpfx)noload-mem.
11424         * elf/noload.c: Include <memcheck.h>.
11425         (main): Call mtrace.  Close all opened handles.
11426
11427 2011-02-17  Andreas Schwab  <schwab@redhat.com>
11428
11429         [BZ #12454]
11430         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
11431         dependencies are missing.
11432
11433 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11434
11435         Fix __if_freereq crash: Unlike the generic version which uses free,
11436         Hurd needs munmap.
11437         * sysdeps/mach/hurd/ifreq.h: New file.
11438
11439 2011-01-27  Petr Baudis  <pasky@suse.cz>
11440             Ulrich Drepper  <drepper@gmail.com>
11441
11442         [BZ 12445]#
11443         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
11444         to extend_alloca().
11445         * stdio-common/bug23.c: New file.
11446         * stdio-common/Makefile (tests): Add bug23.
11447
11448 2010-09-28  Andreas Schwab  <schwab@redhat.com>
11449             Ulrich Drepper  <drepper@gmail.com>
11450
11451         [BZ #12489]
11452         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
11453         before performing relro protection.  At old place add assertion
11454         to make sure nothing changed.
11455
11456 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
11457             Glauber de Oliveira Costa  <glommer@gmail.com>
11458
11459         * elf/elf.h: Add new ARM TLS relocs.
11460
11461 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
11462
11463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11464         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
11465         cast from r3.
11466         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
11467         'tests' variable.
11468         * sysdeps/wordsize-64/tst-writev.c: New file.
11469
11470 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
11471
11472         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
11473         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
11474         insns in _dl_start to prevent a TOC reference before relocs are
11475         resolved.
11476
11477 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
11478
11479         [BZ #12469]
11480         * Makeconfig: Remove RANLIB definition.
11481         * Makerules: Don't use RANLIB.
11482         * aclocal.m4: Remove ranlib test.
11483         * configure.in: No need to check for ranlib.
11484         * elf/rtld-Rules: Don't use RANLIB.
11485
11486 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11487
11488         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
11489         protection macro.
11490         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
11491         inclusion protection macro.
11492
11493         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
11494         SIGRTMIN and SIGRTMAX and print information in that case only when
11495         SIGRTMIN is defined.
11496
11497 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11498
11499         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
11500         arginfo fn returning -1.
11501
11502         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
11503         and thousands string is zero terminated.
11504
11505 2011-02-03  Andreas Schwab  <schwab@redhat.com>
11506
11507         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
11508         sysdeps/unix/sysv/linux/bits/socket.h.
11509
11510 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11511
11512         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
11513         (__CPU_COUNT): Remove old macros.
11514         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
11515         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
11516         (__CPU_ALLOC, __CPU_FREE): Add macros.
11517         (__sched_cpualloc, __sched_cpufree): Add declarations.
11518
11519 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
11520
11521         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
11522         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
11523         * nscd/aicache.c (addhstaiX): Return timeout of added value.
11524         (readdhstai): Return value of addhstaiX call.
11525         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
11526         (addgrbyX): Return value returned by cache_addgr.
11527         (readdgrbyname): Return value returned by addgrbyX.
11528         (readdgrbygid): Likewise.
11529         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
11530         (addpwbyX): Return value returned by cache_addpw.
11531         (readdpwbyname): Return value returned by addhstbyX.
11532         (readdpwbyuid): Likewise.
11533         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
11534         (addservbyX): Return value returned by cache_addserv.
11535         (readdservbyname): Return value returned by addservbyX:
11536         (readdservbyport): Likewise.
11537         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
11538         (addhstbyX): Return value returned by cache_addhst.
11539         (readdhstbyname): Return value returned by addhstbyX.
11540         (readdhstbyaddr): Likewise.
11541         (readdhstbynamev6): Likewise.
11542         (readdhstbyaddrv6): Likewise.
11543         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
11544         (readdinitgroups): Return value returned by addinitgroupsX.
11545         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
11546         (prune_cache): Keep track of timeout value of re-added entries.
11547         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
11548         * nscd/nscd.h: Adjust prototypes of readd* functions.
11549
11550 2011-02-04  Roland McGrath  <roland@redhat.com>
11551
11552         * nis/nis_server.c (nis_servstate): Use the right name for 0.
11553         (nis_stats): Likewise.
11554         * nis/nis_modify.c (nis_modify): Likewise.
11555         * nis/nis_remove.c (nis_remove): Likewise.
11556         * nis/nis_add.c (nis_add): Likewise.
11557
11558         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
11559
11560         * posix/fnmatch_loop.c: Add some consts.
11561
11562         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
11563
11564 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
11565
11566         [BZ #12460]
11567         * config.make.in (config-cflags-novzeroupper): Define.
11568         * configure.in: Substitute libc_cv_cc_novzeroupper.
11569         * elf/Makefile (AVX-CFLAGS): Define.
11570         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
11571         (CFLAGS-tst-auditmod4a.c): Likewise.
11572         (CFLAGS-tst-auditmod4b.c): Likewise.
11573         (CFLAGS-tst-auditmod6b.c): Likewise.
11574         (CFLAGS-tst-auditmod6c.c): Likewise.
11575         (CFLAGS-tst-auditmod7b.c): Likewise.
11576         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
11577
11578 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
11579
11580         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
11581         function to the callback.
11582         Patch partly by Jiri Olsa <jolsa@redhat.com>.
11583
11584 2011-02-02  Andreas Schwab  <schwab@redhat.com>
11585
11586         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
11587         of errno.
11588
11589 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
11590
11591         [BZ #11724]
11592         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
11593         of constructors.
11594         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
11595         of destructors.
11596         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
11597
11598         [BZ #11724]
11599         * elf/Makefile: Add rules to build and run new test.
11600         * elf/tst-initorder.c: New file.
11601         * elf/tst-initorder.exp: New file.
11602         * elf/tst-initordera1.c: New file.
11603         * elf/tst-initordera2.c: New file.
11604         * elf/tst-initordera3.c: New file.
11605         * elf/tst-initordera4.c: New file.
11606         * elf/tst-initorderb1.c: New file.
11607         * elf/tst-initorderb2.c: New file.
11608         * elf/tst-order-a1.c: New file.
11609         * elf/tst-order-a2.c: New file.
11610         * elf/tst-order-a3.c: New file.
11611         * elf/tst-order-a4.c: New file.
11612         * elf/tst-order-b1.c: New file.
11613         * elf/tst-order-b2.c: New file.
11614         * elf/tst-order-main.c: New file.
11615         New test case by George Gensure <werkt0@gmail.com>.
11616
11617 2010-10-01  Andreas Schwab  <schwab@redhat.com>
11618
11619         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11620         decoding ACE if AI_CANONIDN.
11621
11622 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
11623
11624         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
11625
11626 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
11627
11628         * version.h (RELEASE): Bump for 2.13 release.
11629         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
11630
11631         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
11632
11633         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
11634         MADV_NOHUGEPAGE.
11635         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
11636         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
11637         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11638         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11639         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11640         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
11641
11642         * posix/getconf.c: Update copyright year.
11643         * catgets/gencat.c: Likewise.
11644         * csu/version.c: Likewise.
11645         * debug/catchsegv.sh: Likewise.
11646         * debug/xtrace.sh: Likewise.
11647         * elf/ldconfig.c: Likewise.
11648         * elf/ldd.bash.in: Likewise.
11649         * elf/sprof.c (print_version): Likewise.
11650         * iconv/iconv_prog.c: Likewise.
11651         * iconv/iconvconfig.c: Likewise.
11652         * locale/programs/locale.c: Likewise.
11653         * locale/programs/localedef.c: Likewise.
11654         * malloc/memusage.sh: Likewise.
11655         * malloc/mtrace.pl: Likewise.
11656         * nscd/nscd.c (print_version): Likewise.
11657         * nss/getent.c: Likewise.
11658
11659         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
11660         PF_CAIF, and PF_ALG.
11661         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11662
11663 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
11664
11665         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
11666         (modules-names): Use them.
11667         (ifunc-test-modules, ifunc-pie-tests): Define.
11668         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
11669         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
11670         (test-extras): Likewise.
11671         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
11672         $(compile-command.c).
11673         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
11674         (all-built-dso): Define.
11675         (check-textrel.out, check-execstack.out): Depend on it.
11676
11677         * configure.in: Don't override --enable-multi-arch.
11678
11679 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
11680
11681         [BZ #6812]
11682         * nscd/hstcache.c (tryagain): Define.
11683         (cache_addhst): Return tryagain not notfound for temporary errors.
11684         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
11685         failed.
11686
11687 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
11688
11689         [BZ #10563]
11690         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
11691         to make the syscall.
11692         * sysdeps/unix/sysv/linux/setgroups.c: New file.
11693
11694         [BZ #12378]
11695         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
11696         and fall back to matching as normal character if the string ends before
11697         the matching ']' is found.  This is what POSIX requires.
11698         * posix/testfnm.c: Adjust test result.
11699         * posix/globtest.sh: Adjust test result.  Add new test.
11700         * posix/tst-fnmatch.input: Likewise.
11701         * posix/tst-fnmatch2.c: Add new test.
11702
11703 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
11704
11705         * elf/Makefile (check-execstack): Revert last change.  Depend on
11706         check-execstack.h.
11707         (check-execstack.h): New target.
11708         (generated): Add check-execstack.h.
11709         * elf/check-execstack.c: Include "check-execstack.h".
11710         (main): Revert last change.
11711         (handle_file): Return zero if GNU_STACK is absent and
11712         DEFAULT_STACK_PERMS doesn't include PF_X.
11713
11714 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
11715
11716         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
11717         in child fails because the descriptor is already closed.
11718         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
11719         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
11720         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
11721
11722         [BZ #12397]
11723         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
11724         syscall.
11725
11726         [BZ #10484]
11727         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
11728         temporary buffer used to handle multi lookups locally.
11729         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
11730
11731 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
11732
11733         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
11734         loader is ld.so.
11735
11736 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
11737
11738         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
11739         alignment for SSE2.
11740
11741 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
11742
11743         [BZ #12394]
11744         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
11745         characters.  When rounding increased number of integer digits recompute
11746         number of groups.
11747         * stdio-common/tst-grouping.c: New file.
11748         * stdio-common/Makefile: Add rules to build and run tst-grouping.
11749
11750 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
11751
11752         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
11753         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
11754
11755         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
11756         void.
11757         * bits/select.h: Likewise.
11758
11759 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
11760
11761         * po/ja.po: Update from translation team.
11762
11763 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
11764
11765         [BZ #11155]
11766         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
11767         implementation just like for lxstat, fxstatat, et al.
11768
11769 2010-12-27  Jim Meyering  <meyering@redhat.com>
11770
11771         [BZ #12348]
11772         * posix/regexec.c (build_trtable): Return failure indication upon
11773         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11774
11775 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
11776
11777         [BZ #12201]
11778         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
11779         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
11780         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
11781         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
11782
11783         [BZ #12207]
11784         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
11785
11786         [BZ #12204]
11787         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
11788         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
11789
11790 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
11791
11792         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
11793         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
11794         script has SORT_BY_INIT_PRIORITY.
11795         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
11796         NO_CTORS_DTORS_SECTIONS is defined.
11797         * elf/soinit.c: Likewise.
11798         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
11799         NO_CTORS_DTORS_SECTIONS is defined.
11800         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
11801         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
11802         * sysdeps/sh/init-first.c: Likewise.
11803         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
11804
11805 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
11806
11807         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
11808         always use the slow path.
11809
11810 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
11811
11812         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
11813         similar rule which adds the sysdep directories to the header search in
11814         order to pick up the correct platform stackinfo.h.
11815         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
11816         perform test if it is, otherwise return successfully without testing.
11817         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
11818         DEFAULT_STACK_PERMS define in stackinfo.h.
11819         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
11820         defined in stackinfo.h.
11821         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
11822         DEFAULT_STACK_PERMS defined in stackinfo.h.
11823         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
11824         * sysdeps/ia64/stackinfo.h: Likewise.
11825         * sysdeps/s390/stackinfo.h: Likewise.
11826         * sysdeps/sh/stackinfo.h: Likewise.
11827         * sysdeps/sparc/stackinfo.h: Likewise.
11828         * sysdeps/x86_64/stackinfo.h: Likewise.
11829         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
11830         PF_X for powerpc64.  Retain PF_X for powerpc32.
11831
11832 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
11833
11834         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
11835         accurately.
11836         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
11837         GETDENTS_64BIT_ALIGNED.
11838
11839 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
11840
11841         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
11842
11843 2010-12-10  Andreas Schwab  <schwab@redhat.com>
11844
11845         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
11846         _GNU_SOURCE.
11847
11848         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
11849         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
11850         Remove __restrict.
11851         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
11852         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
11853
11854 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
11855
11856         [BZ #11655]
11857         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
11858         are initialized.
11859
11860 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
11861
11862         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
11863
11864 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
11865
11866         * po/it.po: Update from translation team.
11867
11868 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
11869
11870         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
11871         unused codes.
11872
11873 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
11874
11875         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
11876
11877 2010-11-24  Andreas Schwab  <schwab@redhat.com>
11878
11879         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
11880         specially.
11881         (gaih_getanswer_slice): Likewise.
11882
11883 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
11884
11885         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
11886
11887 2010-05-31  Petr Baudis  <pasky@suse.cz>
11888
11889         [BZ #11149]
11890         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
11891         silently even in the chroot mode.
11892
11893 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
11894
11895         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
11896         last patch a bit.  Pretty printing
11897
11898 2010-05-31  Petr Baudis <pasky@suse.cz>
11899
11900         [BZ #10085]
11901         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
11902         initialization of skip_initgroups_dyn.
11903
11904 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
11905
11906         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
11907         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
11908
11909 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
11910
11911         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
11912
11913 2010-11-11  Andreas Schwab  <schwab@redhat.com>
11914
11915         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
11916         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
11917         (tst-fnmatch-ENV): Set MALLOC_TRACE.
11918         ($(objpfx)tst-fnmatch-mem): New rule.
11919         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
11920         * posix/tst-fnmatch.c (main): Call mtrace.
11921
11922 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
11923
11924         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11925         Support Intel processor model 6 and model 0x2c.
11926
11927 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
11928
11929         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
11930           signed comparison.
11931
11932 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
11933
11934         [BZ #12205]
11935         * string/test-strncasecmp.c (check_result): New function.
11936         (do_one_test): Use it.
11937         (check1): New function.
11938         (test_main): Use it.
11939         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
11940         Support strcasecmp and strncasecmp.
11941
11942 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
11943
11944         [BZ #12194]
11945         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
11946         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11947
11948 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
11949
11950         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
11951         IFUNC support.
11952         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11953         memset-x86-64.
11954         * sysdeps/x86_64/multiarch/bzero.S: New file.
11955         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
11956         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
11957         * sysdeps/x86_64/multiarch/memset.S: New file.
11958         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
11959         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11960         Set bit_Prefer_SSE_for_memop for Intel processors.
11961         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
11962         Define.
11963         (index_Prefer_SSE_for_memop): Define.
11964         (HAS_PREFER_SSE_FOR_MEMOP): Define.
11965
11966 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
11967
11968         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
11969         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
11970
11971 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
11972
11973         [BZ #12191]
11974         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
11975         (__x86_64_raw_data_cache_size_half): Likewise.
11976         (__x86_64_raw_shared_cache_size): Likewise.
11977         (__x86_64_raw_shared_cache_size_half): Likewise.
11978
11979         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
11980         (__x86_64_raw_data_cache_size_half): Likewise.
11981         (__x86_64_raw_shared_cache_size): Likewise.
11982         (__x86_64_raw_shared_cache_size_half): Likewise.
11983         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
11984         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
11985         and __x86_64_raw_shared_cache_size_half.  Round
11986         __x86_64_data_cache_size_half, __x86_64_data_cache_size
11987         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
11988         to multiple of 256 bytes.
11989
11990 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
11991
11992         [BZ #12167]
11993         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
11994         of inacessible symlinks.  Verify result of symlink before returning it.
11995         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
11996         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
11997
11998 2010-10-28  Erich Ritz  <erichritz@gmail.com>
11999
12000         * math/math.h (isinf): Fix typo in comment.
12001
12002 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
12003
12004         * po/da.po: Update from translation team.
12005
12006 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
12007
12008         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
12009         is added to the list.
12010
12011 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12012             Ulrich Drepper  <drepper@gmail.com>
12013
12014         * elf/dl-object.c (_dl_new_object): Don't append the new object to
12015         the global list here.  Move code to...
12016         (_dl_add_to_namespace_list): ...here.  New function.
12017         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
12018         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
12019         * elf/dl-load.c (lose): Don't remove the element from the list.
12020         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
12021         (_dl_map_object): Likewise.
12022
12023 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
12024
12025         [BZ #12159]
12026         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
12027         into all bytes of SSE register.
12028         Patch by Richard Li <richardpku@gmail.com>.
12029
12030 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
12031
12032         [BZ #12140]
12033         * malloc/malloc.c (_int_free): Fill correct number of bytes when
12034         perturbing.
12035
12036 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
12037
12038         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
12039         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
12040         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
12041         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
12043         submachine.
12044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12045
12046 2010-10-22  Andreas Schwab  <schwab@redhat.com>
12047
12048         * include/dlfcn.h (__RTLD_SECURE): Define.
12049         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
12050         mode & __RTLD_SECURE instead.
12051         (open_path): Rename preloaded parameter to secure.
12052         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
12053         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
12054         * elf/dl-deps.c (openaux): Likewise.
12055         * elf/rtld.c (struct map_args): Remove is_preloaded.
12056         (map_doit): Don't use it.
12057         (dl_main): Likewise.
12058         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
12059         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
12060
12061 2010-09-09  Andreas Schwab  <schwab@redhat.com>
12062
12063         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
12064         (sysd-rules-targets): Remove duplicates.
12065         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
12066         rtld-%.$o dependency.
12067
12068 2010-10-18  Andreas Schwab  <schwab@redhat.com>
12069
12070         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
12071         _dl_map_object do it.
12072
12073 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
12074
12075         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
12076         fast fma builtins, define the macros in the C99 standard.
12077         (FP_FAST_FMAF): Likewise.
12078         (FP_FAST_FMAL): Likewise.
12079         * sysdeps/x86_64/bits/mathdef.h: Likewise.
12080
12081         * bits/mathdef.h: Update copyright year.
12082         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12083
12084 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
12085
12086         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
12087         builtins, define the macros in the C99 standard.
12088         (FP_FAST_FMAF): Likewise.
12089         (FP_FAST_FMAL): Likewise.
12090         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
12091         multiply/add.
12092         (FP_FAST_FMAF): Likewise.
12093
12094 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
12095
12096         [BZ #3268]
12097         * math/libm-test.inc (fma_test): Some new testcases.
12098         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
12099         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
12100         y and infinite z.  Do multiplication by C already in long double.
12101         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
12102         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
12103         y and infinite z.  Do bitwise or of inexact bit into u.d.
12104         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
12105         * sysdeps/i386/fpu/s_fmaf.S: Removed.
12106         * sysdeps/i386/fpu/s_fma.S: Removed.
12107         * sysdeps/i386/fpu/s_fmal.S: Removed.
12108
12109 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
12110
12111         [BZ #3268]
12112         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
12113         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
12114         computation is not scheduled after fetestexcept.  Fix value
12115         of minimum denormal long double.
12116
12117 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
12118
12119         [BZ #3268]
12120         * math/libm-test.inc (fma_test): Add some more tests.
12121         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
12122         correctly.
12123
12124 2010-10-15  Andreas Schwab  <schwab@redhat.com>
12125
12126         * scripts/data/localplt-s390-linux-gnu.data: New file.
12127         * scripts/data/localplt-s390x-linux-gnu.data: New file.
12128
12129 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
12130
12131         [BZ #3268]
12132         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
12133         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
12134         instead of dbl-64.
12135         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
12136         inlines.
12137         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
12138         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
12139         if one of x and y is very large and the other is subnormal.
12140         * sysdeps/s390/fpu/s_fmaf.c: New file.
12141         * sysdeps/s390/fpu/s_fma.c: New file.
12142         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
12143         * sysdeps/powerpc/fpu/s_fma.S: New file.
12144         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
12145         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
12146         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
12147
12148 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
12149
12150         [BZ #3268]
12151         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
12152         fma tests.
12153         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
12154         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
12155         * sysdeps/i386/i686/multiarch/s_fma.c: Include
12156         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
12157         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
12158         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
12160
12161 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
12162
12163         [BZ #12078]
12164         * posix/regcomp.c (parse_branch): One more memory leak plugged.
12165         * posix/bug-regex31.input: Add test case.
12166
12167 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12168
12169         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
12170         * posix/bug-regex31.input: New file.
12171
12172         [BZ #12078]
12173         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
12174         (parse_sub_exp): Fix last change, use postorder.
12175
12176         * posix/bug-regex31.c: New file.
12177         * posix/Makefile: Add rules to build and run bug-regex31.
12178
12179         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
12180
12181         [BZ #12078]
12182         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
12183
12184         [BZ #12108]
12185         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
12186         to have entries in sys_siglist.
12187
12188         [BZ #12093]
12189         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
12190         be NULL.
12191
12192 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
12193
12194         [BZ #3268]
12195         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
12196         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
12197         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
12198         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
12199         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12200         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
12201         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
12202         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
12203         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
12204         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
12205         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
12206         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
12207         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
12208         * math/ftestexcept.c (fetestexcept): Likewise.
12209         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
12210         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
12211         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12212         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
12213         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
12214         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
12215         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12216
12217 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
12218
12219         [BZ #12107]
12220         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
12221         newline.
12222
12223 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
12224
12225         * string/bug-strstr1.c: New file.
12226         * string/Makefile: Add rules to build and run bug-strstr1.
12227
12228 2010-10-05  Eric Blake  <eblake@redhat.com>
12229
12230         [BZ #12092]
12231         * string/str-two-way.h (two_way_long_needle): Always clear memory
12232         when skipping input due to the shift table.
12233
12234 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
12235
12236         [BZ #12005]
12237         * malloc/mcheck.c: Handle large requests.
12238
12239         [BZ #12077]
12240         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
12241         for strncmp and strncasecmp.
12242         * string/stratcliff.c: Add tests for strcmp and strncmp.
12243         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
12244
12245 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12246
12247         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
12248         __set_fpscr.
12249
12250 2010-09-30  Andreas Jaeger  <aj@suse.de>
12251
12252         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
12253         (CGROUP_SUPER_MAGIC): Define.
12254         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12255         Handle btrfs and cgroup file systems.
12256         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12257         Likewise.
12258
12259 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
12260
12261         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
12262         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
12263
12264 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12265
12266         [BZ #12067]
12267         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
12268         trying to locate the ELF header.
12269
12270 2010-09-27  Andreas Schwab  <schwab@redhat.com>
12271
12272         [BZ #11611]
12273         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
12274         Mask out sign-bit copies when constructing f_fsid.
12275
12276 2010-09-24  Petr Baudis <pasky@suse.cz>
12277
12278         * debug/stack_chk_fail_local.c: Add missing licence exception.
12279         * debug/warning-nop.c: Likewise.
12280
12281 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12282
12283         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
12284         implementing getdents64 using getdents syscall, set d_type if
12285         __ASSUME_GETDENTS32_D_TYPE.
12286
12287 2010-09-16  Andreas Schwab  <schwab@redhat.com>
12288
12289         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
12290         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
12291
12292 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
12293
12294         [BZ #12037]
12295         * posix/unistd.h: Undo change of feature selection for ftruncate from
12296         2010-01-11.
12297
12298 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
12299
12300         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
12301         detection.
12302
12303 2010-09-20  Andreas Schwab  <schwab@redhat.com>
12304
12305         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
12306         fanotify_mark.
12307         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12308
12309 2010-09-14  Andreas Schwab  <schwab@redhat.com>
12310
12311         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
12312         variables after CHECK_SP call.
12313         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
12314
12315 2010-09-13  Andreas Schwab  <schwab@redhat.com>
12316             Ulrich Drepper  <drepper@redhat.com>
12317
12318         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
12319         re-relocationg ld.so.
12320         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
12321         _dl_init_paths call.
12322         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
12323         here anymore.
12324
12325 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
12326
12327         * resolv/res_init.c (__res_vinit): Count the default server we added.
12328
12329 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
12330             Ulrich Drepper  <drepper@redhat.com>
12331
12332         [BZ #11968]
12333         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12334         (____longjmp_chk): Use %ebx for saving value across system call.
12335         Add unwind info.
12336
12337 2010-09-06  Andreas Schwab  <schwab@redhat.com>
12338
12339         * manual/Makefile: Don't mix pattern rules with normal rules.
12340
12341 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
12342
12343         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
12344         operation.
12345         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
12346         * libio/iofopncook.c (_IO_cookie_init): Likewise.
12347         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
12348         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
12349         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12350         Likewise.
12351
12352 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
12353
12354         [BZ #11979]
12355         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
12356         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
12357
12358 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
12359
12360         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
12361         * sysdeps/x86_64/addmul_1.S: Likewise.
12362         * sysdeps/x86_64/lshift.S: Likewise.
12363         * sysdeps/x86_64/mul_1.S: Likewise.
12364         * sysdeps/x86_64/rshift.S: Likewise.
12365         * sysdeps/x86_64/sub_n.S: Likewise.
12366         * sysdeps/x86_64/submul_1.S: Likewise.
12367
12368 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12369
12370         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
12371         Define __sched_param instead of SCHED_* and sched_param when
12372         <bits/sched.h> is included with __need_schedparam defined.
12373         * bits/sched.h [__need_schedparam]
12374         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
12375         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
12376         (__defined_schedparam): Define to 1.
12377         (__sched_param): New structure, identical to sched_param.
12378         (__need_schedparam): Undefine.
12379
12380 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
12381
12382         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
12383         (epoll_create1): Declare.
12384
12385         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
12386
12387 2010-08-31  Andreas Schwab  <schwab@redhat.com>
12388
12389         [BZ #7066]
12390         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
12391         shifting retval into place.
12392
12393 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
12394
12395         * nis/rpcsvc/nis.h: Update copyright notice.
12396         * nis/rpcsvc/nis.x: Likewise.
12397         * nis/rpcsvc/nis_callback.h: Likewise.
12398         * nis/rpcsvc/nis_callback.x: Likewise.
12399         * nis/rpcsvc/nis_object.x: Likewise.
12400         * nis/rpcsvc/nis_tags.h: Likewise.
12401         * nis/rpcsvc/yp.h: Likewise.
12402         * nis/rpcsvc/yp.x: Likewise.
12403         * nis/rpcsvc/ypupd.h: Likewise.
12404         * nis/yp_xdr.c: Likewise.
12405         * nis/ypupdate_xdr.c: Likewise.
12406
12407         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
12408         mainly the body of pmap_getport.  Add parameters to specify timeouts.
12409         (pmap_getport): Use __libc_rpc_getport.
12410         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
12411         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
12412         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
12413
12414 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
12415
12416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
12417         fanotify_mark.
12418
12419 2010-08-27  Roland McGrath  <roland@redhat.com>
12420
12421         * sysdeps/i386/i686/multiarch/Makefile
12422         (CFLAGS-varshift.c): New variable.
12423
12424 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
12425
12426         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
12427         * sysdeps/i386/i686/multiarch/varshift.c: New file.
12428
12429         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
12430
12431         * sysdeps/x86_64/strlen.S: Minimal code improvement.
12432
12433 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12434
12435         * sysdeps/x86_64/strlen.S: Unroll the loop.
12436         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12437         strlen-sse2 strlen-sse2-bsf.
12438         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
12439         __strlen_no_bsf if bit_Slow_BSF is set.
12440         (__strlen_sse42): Removed.
12441         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
12442         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
12443
12444 2010-08-25  Roland McGrath  <roland@redhat.com>
12445
12446         * sysdeps/x86_64/multiarch/varshift.S: File removed.
12447         * sysdeps/x86_64/multiarch/varshift.c: New file.
12448         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
12449         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
12450         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
12451         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
12452
12453 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12454
12455         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12456         strlen-sse2 strlen-sse2-bsf.
12457         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
12458         __strlen_sse2_bsf if bit_Slow_BSF is unset.
12459         (__strlen_sse2): Removed.
12460         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
12461         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
12462         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
12463         bit_Slow_BSF for Atom.
12464         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
12465         (index_Slow_BSF): Define.
12466         (HAS_SLOW_BSF): Define.
12467
12468 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
12469
12470         [BZ #10851]
12471         * resolv/res_init.c (__res_vinit): When no server address at all
12472         is given default to loopback.
12473
12474 2010-08-24  Roland McGrath  <roland@redhat.com>
12475
12476         * configure.in: Remove config-name.h generation.
12477         * configure: Regenerated.
12478         * config-name.in: File removed.
12479         * scripts/config-uname.sh: New file.
12480         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
12481         ($(objdir)config-name.h): New target.
12482
12483         * sunrpc/rpc_parse.h: Avoid nested comment.
12484
12485 2010-08-24  Richard Henderson  <rth@redhat.com>
12486             Ulrich Drepper  <drepper@redhat.com>
12487             H.J. Lu  <hongjiu.lu@intel.com>
12488
12489         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
12490         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
12491         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
12492         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
12493         _mm_alignr_epi8 with _mm_loadu_si128.
12494         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
12495         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
12496         (__m128i_shift_right): Removed.
12497         * sysdeps/i386/i686/multiarch/varshift.h: New file.
12498         * sysdeps/i386/i686/multiarch/varshift.S: New file.
12499         * sysdeps/x86_64/multiarch/varshift.h: New file.
12500         * sysdeps/x86_64/multiarch/varshift.S: New file.
12501
12502 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
12503
12504         * configure.in: Move assembler checks to before sysdep dir checking.
12505
12506 2010-08-20  Petr Baudis  <pasky@suse.cz>
12507
12508         * LICENSES: Sync the sunrpc license.
12509
12510 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
12511
12512         * sunrpc/auth_des.c: Update copyright notice once again.
12513         * sunrpc/auth_none.c: Likewise.
12514         * sunrpc/auth_unix.c: Likewise.
12515         * sunrpc/authdes_prot.c: Likewise.
12516         * sunrpc/authuxprot.c: Likewise.
12517         * sunrpc/bindrsvprt.c: Likewise.
12518         * sunrpc/clnt_gen.c: Likewise.
12519         * sunrpc/clnt_perr.c: Likewise.
12520         * sunrpc/clnt_raw.c: Likewise.
12521         * sunrpc/clnt_simp.c: Likewise.
12522         * sunrpc/clnt_tcp.c: Likewise.
12523         * sunrpc/clnt_udp.c: Likewise.
12524         * sunrpc/clnt_unix.c: Likewise.
12525         * sunrpc/des_crypt.c: Likewise.
12526         * sunrpc/des_soft.c: Likewise.
12527         * sunrpc/get_myaddr.c: Likewise.
12528         * sunrpc/getrpcport.c: Likewise.
12529         * sunrpc/key_call.c: Likewise.
12530         * sunrpc/key_prot.c: Likewise.
12531         * sunrpc/openchild.c: Likewise.
12532         * sunrpc/pm_getmaps.c: Likewise.
12533         * sunrpc/pm_getport.c: Likewise.
12534         * sunrpc/pmap_clnt.c: Likewise.
12535         * sunrpc/pmap_prot.c: Likewise.
12536         * sunrpc/pmap_prot2.c: Likewise.
12537         * sunrpc/pmap_rmt.c: Likewise.
12538         * sunrpc/rpc/auth.h: Likewise.
12539         * sunrpc/rpc/auth_unix.h: Likewise.
12540         * sunrpc/rpc/clnt.h: Likewise.
12541         * sunrpc/rpc/des_crypt.h: Likewise.
12542         * sunrpc/rpc/key_prot.h: Likewise.
12543         * sunrpc/rpc/netdb.h: Likewise.
12544         * sunrpc/rpc/pmap_clnt.h: Likewise.
12545         * sunrpc/rpc/pmap_prot.h: Likewise.
12546         * sunrpc/rpc/pmap_rmt.h: Likewise.
12547         * sunrpc/rpc/rpc.h: Likewise.
12548         * sunrpc/rpc/rpc_des.h: Likewise.
12549         * sunrpc/rpc/rpc_msg.h: Likewise.
12550         * sunrpc/rpc/svc.h: Likewise.
12551         * sunrpc/rpc/svc_auth.h: Likewise.
12552         * sunrpc/rpc/types.h: Likewise.
12553         * sunrpc/rpc/xdr.h: Likewise.
12554         * sunrpc/rpc_clntout.c: Likewise.
12555         * sunrpc/rpc_cmsg.c: Likewise.
12556         * sunrpc/rpc_common.c: Likewise.
12557         * sunrpc/rpc_cout.c: Likewise.
12558         * sunrpc/rpc_dtable.c: Likewise.
12559         * sunrpc/rpc_hout.c: Likewise.
12560         * sunrpc/rpc_main.c: Likewise.
12561         * sunrpc/rpc_parse.c: Likewise.
12562         * sunrpc/rpc_parse.h: Likewise.
12563         * sunrpc/rpc_prot.c: Likewise.
12564         * sunrpc/rpc_sample.c: Likewise.
12565         * sunrpc/rpc_scan.c: Likewise.
12566         * sunrpc/rpc_scan.h: Likewise.
12567         * sunrpc/rpc_svcout.c: Likewise.
12568         * sunrpc/rpc_tblout.c: Likewise.
12569         * sunrpc/rpc_util.c: Likewise.
12570         * sunrpc/rpc_util.h: Likewise.
12571         * sunrpc/rpcinfo.c: Likewise.
12572         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
12573         * sunrpc/rpcsvc/key_prot.x: Likewise.
12574         * sunrpc/rpcsvc/klm_prot.x: Likewise.
12575         * sunrpc/rpcsvc/mount.x: Likewise.
12576         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
12577         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
12578         * sunrpc/rpcsvc/rex.x: Likewise.
12579         * sunrpc/rpcsvc/rstat.x: Likewise.
12580         * sunrpc/rpcsvc/rusers.x: Likewise.
12581         * sunrpc/rpcsvc/sm_inter.x: Likewise.
12582         * sunrpc/rpcsvc/spray.x: Likewise.
12583         * sunrpc/rpcsvc/yppasswd.x: Likewise.
12584         * sunrpc/rtime.c: Likewise.
12585         * sunrpc/svc.c: Likewise.
12586         * sunrpc/svc_auth.c: Likewise.
12587         * sunrpc/svc_authux.c: Likewise.
12588         * sunrpc/svc_raw.c: Likewise.
12589         * sunrpc/svc_run.c: Likewise.
12590         * sunrpc/svc_simple.c: Likewise.
12591         * sunrpc/svc_tcp.c: Likewise.
12592         * sunrpc/svc_udp.c: Likewise.
12593         * sunrpc/svc_unix.c: Likewise.
12594         * sunrpc/svcauth_des.c: Likewise.
12595         * sunrpc/xcrypt.c: Likewise.
12596         * sunrpc/xdr.c: Likewise.
12597         * sunrpc/xdr_array.c: Likewise.
12598         * sunrpc/xdr_float.c: Likewise.
12599         * sunrpc/xdr_mem.c: Likewise.
12600         * sunrpc/xdr_rec.c: Likewise.
12601         * sunrpc/xdr_ref.c: Likewise.
12602         * sunrpc/xdr_sizeof.c: Likewise.
12603         * sunrpc/xdr_stdio.c: Likewise.
12604
12605         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
12606         handling.
12607
12608 2010-08-19  Andreas Schwab  <schwab@redhat.com>
12609
12610         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
12611
12612 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
12613
12614         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
12615         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
12616         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
12617         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
12618         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
12619         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
12620         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
12621         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
12622         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
12623         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
12624         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
12625         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
12626         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
12627         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
12628
12629 2010-07-26  Anton Blanchard  <anton@samba.org>
12630
12631         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
12632         * malloc/arena.c (heap_trim): Likewise.
12633
12634 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
12635
12636         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
12637         here.  Not...
12638         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
12639         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
12640
12641 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
12642
12643         * sysdeps/i386/elf/Makefile: New file.
12644
12645 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
12646
12647         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
12648         from fanotify_init.
12649         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
12650         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12651
12652 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
12653
12654         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
12655         of strncasecmp_l.
12656         * sysdeps/multiarch/strcmp.S: Likewise.
12657
12658 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
12659
12660         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
12661         strncase_l-nonascii.
12662         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
12663         Add strncase_l-ssse3.
12664         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
12665         * sysdeps/x86_64/strcmp.S: Likewise.
12666         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
12667         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
12668         * sysdeps/x86_64/strncase.S: New file.
12669         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
12670         * sysdeps/x86_64/strncase_l.S: New file.
12671         * string/Makefile (strop-tests): Add strncasecmp.
12672         * string/test-strncasecmp.c: New file.
12673
12674         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
12675         warning.
12676
12677         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
12678         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
12679
12680 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
12681
12682         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
12683
12684 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
12685
12686         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
12687         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
12688         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
12689
12690 2010-05-01  Alan Modra  <amodra@gmail.com>
12691
12692         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
12693         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
12694         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
12695         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
12696         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
12697         tidying.  Don't tail-call __sigjmp_save for static lib.
12698         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
12699         save location.
12700         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
12701         (CALL_MCOUNT): Add eh info, and nop after bl.
12702         (TAIL_CALL_SYSCALL_ERROR): New macro.
12703         (PSEUDO_RET): Use it.
12704         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
12705         Correct save location of integer regs and cr.
12706         (_dl_profile_resolve): Correct cr save location.  Delete nops
12707         after bl when SHARED.  Reduce cfi size a little by better
12708         placement of cfi directives.
12709         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
12710         make a stack frame.  Instead use parm save area as a temp.
12711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
12712         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
12713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
12714         Don't make a stack frame for parent, use parm save area.
12715         Increase child stack frame to 112 bytes.  Don't save unused reg,
12716         and adjust reg usage.  Set up cfi on error recovery and
12717         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
12718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12719         (__makecontext): Add dummy nop after jump to exit.
12720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
12721         Use correct parm save area and cr save, reduce stack frame.
12722         Correct cfi for possible PSEUDO_RET frame setup.
12723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
12724         Branch to local label emitted by PSEUDO_RET rather than
12725         __syscall_error.
12726
12727 2010-08-12  Andreas Schwab  <schwab@redhat.com>
12728
12729         [BZ #11904]
12730         * locale/programs/locale.c (print_assignment): New function.
12731         (show_locale_vars): Use it.
12732
12733 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
12734
12735         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
12736         field.
12737         (struct statfs64): Likewise.
12738         (_STATFS_F_FLAGS): Define.
12739         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
12740         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12741         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
12742         (ST_VALID): Define locally.
12743         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
12744         __statvfs_getflags, use the provided value.
12745         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12746         __ASSUME_STATFS_F_FLAGS.
12747
12748         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
12749
12750         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
12751         Add sys/fanotify.h.
12752         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
12753         fanotify_mask for GLIBC_2.13.
12754         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
12755         fanotify_init and fanotify_mark.
12756         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12757         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
12758
12759         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
12760         Add prlimit.
12761         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
12762         prlimit64 for GLIBC_2.13.
12763         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
12764         prlimit64.
12765         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
12766         syscall.
12767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12768         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
12769         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
12770         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
12771         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
12772         add prlimit alias.
12773         * sysdeps/unix/sysv/linux/prlimit.c: New file.
12774
12775         [BZ #11903]
12776         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
12777         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
12778
12779         * nss/Makefile: Add rules to build and run tst-nss-test1.
12780         * shlib-versions: Add entry for libnss_test1.
12781         * nss/nss_test1.c: New file.
12782         * nss/tst-nss-test1.c: New file.
12783
12784         * nss/nsswitch.c (__nss_database_custom): Define new variable.
12785         (__nss_configure_lookup): Set appropriate entry in
12786         __nss_configure_lookup to true.
12787         * nss/nsswitch.h: Define enum with indeces of databases in
12788         databases and __nss_database_custom arrays.  Declare
12789         __nss_database_custom.
12790         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
12791         to avoid using nscd when custom rules are installed.
12792         * nss/getXXbyYY_r.c: Likewise.
12793         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12794
12795         * nss/nss_files/files-parse.c: Whitespace fixes.
12796
12797 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
12798
12799         [BZ #11883]
12800         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
12801         * posix/fnmatch_loop.c: Likewise.
12802
12803 2010-07-17  Andi Kleen  <ak@linux.intel.com>
12804
12805         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
12806         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
12807         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
12808         * Versions.def [GLIBC_2.13]: Add.
12809
12810 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
12811
12812         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12813         Also fail if tpwd after pwuid call is NULL.
12814
12815 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12816
12817         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
12818         when converting to ms.
12819
12820 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12821
12822         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
12823         EOPNOTSUPP errors with ENOTTY.
12824         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
12825         EOPNOTSUPP errors with ENOTTY.
12826
12827 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
12828
12829         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
12830         Add strcasecmp_l-ssse3.
12831         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
12832         strcasecmp.
12833         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
12834         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
12835         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
12836
12837 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
12838
12839         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
12840
12841         * string/Makefile (strop-tests): Add strcasecmp.
12842         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
12843         strcasecmp_l-nonascii.
12844         (gen-as-const-headers): Add locale-defines.sym.
12845         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
12846         * sysdeps/x86_64/strcasecmp.S: New file.
12847         * sysdeps/x86_64/strcasecmp_l.S: New file.
12848         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
12849         * sysdeps/x86_64/locale-defines.sym: New file.
12850         * string/test-strcasecmp.c: New file.
12851
12852         * string/test-strcasestr.c: Test both ends of the range of characters.
12853         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
12854
12855 2010-07-29  Roland McGrath  <roland@redhat.com>
12856
12857         [BZ #11856]
12858         * manual/locale.texi (Yes-or-No Questions): Fix example code.
12859
12860 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
12861
12862         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
12863         for ld.so.
12864
12865 2010-07-27  Andreas Schwab  <schwab@redhat.com>
12866
12867         * manual/memory.texi (Malloc Tunable Parameters): Document
12868         M_PERTURB.
12869
12870 2010-07-26  Roland McGrath  <roland@redhat.com>
12871
12872         [BZ #11840]
12873         * configure.in (-fgnu89-inline check): Set and substitute
12874         gnu89_inline, not libc_cv_gnu89_inline.
12875         * configure: Regenerated.
12876         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
12877
12878 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
12879
12880         * string/test-strnlen.c: New file.
12881         * string/Makefile (strop-tests): Add strnlen.
12882         * string/tester.c (test_strnlen): Add a few more test cases.
12883         * string/tst-strlen.c: Better error reporting.
12884
12885         * sysdeps/x86_64/strnlen.S: New file.
12886
12887 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
12888
12889         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
12890         lower-latency instructions.
12891
12892 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
12893
12894         * string/test-strcasestr.c: New file.
12895         * string/test-strstr.c: New file.
12896         * string/Makefile (strop-tests): Add strstr and strcasestr.
12897         * string/str-two-way.h: Don't undefine MAX.
12898         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
12899
12900 2010-07-21  Andreas Schwab  <schwab@redhat.com>
12901
12902         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12903         strcasestr-nonascii.
12904         (CFLAGS-strcasestr-nonascii.c): Define.
12905         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
12906         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
12907         Remove unused attribute.
12908
12909 2010-07-20  Roland McGrath  <roland@redhat.com>
12910
12911         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
12912         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
12913         ld.so.cache was broken.  With it, there is no way to disable dsocaps
12914         like LD_HWCAP_MASK can disable hwcaps.
12915
12916 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
12917
12918         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
12919
12920 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
12921
12922         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
12923         call in strcasestr.
12924         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
12925         __strcasestr_sse42_nonascii.
12926         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
12927         strcasestr-nonascii.c.
12928         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
12929
12930 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
12931
12932         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
12933         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
12934         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
12935         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
12936
12937 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
12938
12939         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
12940         fcntl.
12941
12942 2010-07-06  Andreas Schwab  <schwab@redhat.com>
12943
12944         [BZ #11577]
12945         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
12946         dl_signal_cerror.
12947
12948 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
12949
12950         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
12951         _PC_PIPE_BUF using F_GETPIPE_SZ.
12952
12953 2010-07-05  Roland McGrath  <roland@redhat.com>
12954
12955         * manual/arith.texi (Rounding Functions): Fix rint description
12956         implicit in round description.
12957
12958 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
12959
12960         * elf/Makefile: Fix linking for a few tests to make recent linker
12961         happy.
12962
12963 2010-06-30  Andreas Schwab  <schwab@redhat.com>
12964
12965         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12966         $(common-objpfx)libc_nonshared.a.
12967
12968 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
12969
12970         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
12971         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
12972         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
12973         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
12974         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
12975         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
12976         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
12977         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
12978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
12979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
12980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
12981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
12982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
12983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
12984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
12985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
12986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
12987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
12988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
12989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
12990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
12991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
12992         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
12993         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
12994         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
12995         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
12996         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
12997         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
12998         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
12999         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
13000         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
13001         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
13002         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
13003         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
13004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
13005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
13006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
13007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
13008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
13009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
13010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
13011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
13012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
13013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
13014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
13015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
13016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
13017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
13018
13019 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13020
13021         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
13022         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
13023         * string/memmove.c (memmove): Renamed to ...
13024         (MEMMOVE): ...this.  Default to memmove.
13025         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
13026         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
13027         (END_CHK): Define.
13028         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13029         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
13030         mempcpy-ssse3-back memmove-ssse3-back.
13031         * sysdeps/x86_64/multiarch/bcopy.S: New file .
13032         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
13033         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
13034         * sysdeps/x86_64/multiarch/memcpy.S: New file.
13035         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
13036         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
13037         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
13038         * sysdeps/x86_64/multiarch/memmove.c: New file.
13039         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
13040         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
13041         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
13042         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
13043         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
13044         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
13045         Define.
13046         (index_Fast_Copy_Backward): Define.
13047         (HAS_ARCH_FEATURE): Define.
13048         (HAS_FAST_REP_STRING): Define.
13049         (HAS_FAST_COPY_BACKWARD): Define.
13050
13051 2010-06-21  Andreas Schwab  <schwab@redhat.com>
13052
13053         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13054         Restore proper fallback handling.
13055
13056 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
13057
13058         [BZ #11701]
13059         * posix/group_member.c (__group_member): Correct checking loop.
13060
13061         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
13062         OOM in getpwuid_r correctly.  Return error number when the caller
13063         should return, otherwise -1.
13064         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
13065         call returning > 0 value.
13066         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
13067
13068 2010-06-07  Andreas Schwab  <schwab@redhat.com>
13069
13070         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
13071         libc_nonshared.a from targets in modules-names.
13072
13073 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
13074
13075         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
13076         requires it.
13077
13078 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
13079
13080         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
13081         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
13082         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
13083         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
13084
13085 2010-06-02  Andreas Schwab  <schwab@redhat.com>
13086
13087         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
13088
13089 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
13090
13091         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
13092         and F_GETPIPE_SZ.
13093         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13094         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13095         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13096         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13097         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13098         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
13099
13100 2010-06-14  Roland McGrath  <roland@redhat.com>
13101
13102         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
13103
13104 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
13105
13106         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
13107         __REDIRECT followed by __THROW.
13108         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
13109         * posix/getopt.h (getopt): Likewise.
13110
13111 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
13112
13113         * hurd/lookup-at.c (__file_name_lookup_at): Accept
13114         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
13115         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
13116         in AT_FLAGS.
13117         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
13118         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
13119
13120 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
13121
13122         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
13123
13124 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
13125
13126         [BZ #11640]
13127         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13128         Properly check family and model.
13129
13130 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
13131
13132         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
13133
13134 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
13135
13136         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
13137
13138 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
13139
13140         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
13141         symbol reference.
13142
13143 2010-05-19  Andreas Schwab  <schwab@redhat.com>
13144
13145         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
13146         symbol reference.
13147
13148 2010-05-21  Andreas Schwab  <schwab@redhat.com>
13149
13150         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
13151         and internal_recvmmsg.
13152         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
13153         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
13154         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
13155         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
13156
13157         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
13158         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
13159         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
13160
13161 2010-05-20  Andreas Schwab  <schwab@redhat.com>
13162
13163         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
13164
13165 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
13166
13167         POWER7 optimizations.
13168         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
13169         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
13170
13171 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
13172
13173         * version.h: Update for 2.13 development version.
13174
13175 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
13176
13177         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
13178         exceptions.  Return 0.
13179
13180 2010-05-07  Roland McGrath  <roland@redhat.com>
13181
13182         * elf/ldconfig.c (main): Add a const.
13183
13184 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
13185
13186         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
13187         (args_options): Add no-idn option.
13188         (ahosts_keys_int): Add idn_flags to ai_flags.
13189         (parse_option): Handle 'i' option to clear idn_flags.
13190
13191         * malloc/malloc.c (_int_free): Possible race in the most recently
13192         added check.  Only act on the data if no current modification
13193         happened.
13194
13195 See ChangeLog.17 for earlier changes.