Include LOCPATH in default test environment.
[platform/upstream/glibc.git] / ChangeLog
1 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
2
3         * Rules (make-test-out): Include
4         LOCPATH=$(common-objpfx)localedata in default environment.
5         * debug/Makefile (tst-chk1-ENV): Remove variable.
6         (tst-chk2-ENV): Likewise.
7         (tst-chk3-ENV): Likewise.
8         (tst-chk4-ENV): Likewise.
9         (tst-chk5-ENV): Likewise.
10         (tst-chk6-ENV): Likewise.
11         (tst-lfschk1-ENV): Likewise.
12         (tst-lfschk2-ENV): Likewise.
13         (tst-lfschk3-ENV): Likewise.
14         (tst-lfschk4-ENV): Likewise.
15         (tst-lfschk5-ENV): Likewise.
16         (tst-lfschk6-ENV): Likewise.
17         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
18         (tst-iconv7-ENV): Likewise.
19         * intl/Makefile (LOCPATH-ENV): Likewise.
20         (tst-codeset-ENV): Likewise.
21         (tst-gettext3-ENV): Likewise.
22         (tst-gettext5-ENV): Likewise.
23         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
24         (tst-fopenloc-ENV): Likewise.
25         (tst-fgetws-ENV): Remove variable.
26         (tst-ungetwc1-ENV): Likewise.
27         (tst-ungetwc2-ENV): Likewise.
28         (bug-ungetwc2-ENV): Likewise.
29         (tst-swscanf-ENV): Likewise.
30         (bug-ftell-ENV): Likewise.
31         (tst-fgetwc-ENV): Likewise.
32         (tst-fseek-ENV): Likewise.
33         (tst-ftell-partial-wide-ENV): Likewise.
34         (tst-ftell-active-handler-ENV): Likewise.
35         (tst-ftell-append-ENV): Likewise.
36         * posix/Makefile (tst-fnmatch-ENV): Likewise.
37         (tst-regexloc-ENV): Likewise.
38         (bug-regex1-ENV): Likewise.
39         (tst-regex-ENV): Likewise.
40         (tst-regex2-ENV): Likewise.
41         (bug-regex5-ENV): Likewise.
42         (bug-regex6-ENV): Likewise.
43         (bug-regex17-ENV): Likewise.
44         (bug-regex18-ENV): Likewise.
45         (bug-regex19-ENV): Likewise.
46         (bug-regex20-ENV): Likewise.
47         (bug-regex22-ENV): Likewise.
48         (bug-regex23-ENV): Likewise.
49         (bug-regex25-ENV): Likewise.
50         (bug-regex26-ENV): Likewise.
51         (bug-regex30-ENV): Likewise.
52         (bug-regex32-ENV): Likewise.
53         (bug-regex33-ENV): Likewise.
54         (bug-regex34-ENV): Likewise.
55         (bug-regex35-ENV): Likewise.
56         (tst-rxspencer-ENV): Likewise.
57         (tst-rxspencer-no-utf8-ENV): Likewise.
58         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
59         (tst-sscanf-ENV): Likewise.
60         (tst-swprintf-ENV): Likewise.
61         (tst-swscanf-ENV): Likewise.
62         (test-vfprintf-ENV): Likewise.
63         (scanf13-ENV): Likewise.
64         (bug14-ENV): Likewise.
65         (tst-grouping-ENV): Likewise.
66         * stdlib/Makefile (tst-strtod-ENV): Likewise.
67         (tst-strtod3-ENV): Likewise.
68         (tst-strtod4-ENV): Likewise.
69         (tst-strtod5-ENV): Likewise.
70         (testmb2-ENV): Likewise./
71         * string/Makefile (tst-strxfrm-ENV): Likewise.
72         (tst-strxfrm2-ENV): Likewise.
73         (bug-strcoll1-ENV): Likewise.
74         (test-strcasecmp-ENV): Likewise.
75         (test-strncasecmp-ENV): Likewise.
76         * time/Makefile (tst-strptime-ENV): Likewise.
77         (tst-ftime_l-ENV): Likewise.
78         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
79         (tst-mbrtowc-ENV): Likewise.
80         (tst-wcrtomb-ENV): Likewise.
81         (tst-mbrtowc2-ENV): Likewise.
82         (tst-c16c32-1-ENV): Likewise.
83         (tst-mbsnrtowcs-ENV): Likewise.
84
85 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
86
87         * manual/resource.texi (How to get information about the memory
88         subsystem?): Fix typo.
89         Reported by Peon de la Parra Ivan <peon@keba.com>
90
91 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
92
93         [BZ #16882]
94         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
95         (pthread_spin_lock): Branch out of spin loop to proper location.
96         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
97         (pthread_spin_lock): Likewise.
98
99         * nptl/tst-spin4.c: New test.
100         * nptl/Makefile (tests): Add tst-spin4.
101
102 2014-06-03  Andreas Schwab  <schwab@suse.de>
103
104         [BZ #15946]
105         * resolv/res_send.c (send_dg): Reload file descriptor after
106         calling reopen.
107
108 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
109
110         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
111
112 2014-06-03  Richard Henderson  <rth@redhat.com>
113
114         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
115         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
116         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
117         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
118         in the SAVE_PID block.
119         (__libc_vfork): New alias.
120         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
121
122         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
123         child in registers, not on the stack.  Remove RESET_PID conditionals.
124         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
125
126 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
127
128         * sysdeps/aarch64/libm-test-ulps: Regenerate.
129
130 2014-06-03  Wilco  <wdijkstr@arm.com>
131
132         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
133         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
134         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
135         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
136         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
137         Likewise.
138
139 2014-06-03  Wilco  <wdijkstr@arm.com>
140
141         * sysdeps/aarch64/fpu/math_private.h
142         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
143         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
144         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
145         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
146         Fix declarations.
147
148 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
149
150         * crypt/crypt-private.h: Include ufc-crypt.h.
151         (__b64_from_24bit): Declare extern.
152         * crypt/crypt_util.c(__b64_from_24bit): New function.
153         (b64t): New static const variable.
154         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
155         (b64t): Remove variable.
156         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
157         * crypt/sha256-crypt.c: Include crypt-private.h.
158         (b64t): Remove variable.
159         (__sha256_crypt_r): Remove b64_from_24bit and replace
160         with __b64_from_24bit.
161         * crypt/sha512-crypt.c: Likewise.
162
163 2014-06-02  Roland McGrath  <roland@hack.frob.com>
164
165         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
166         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
167         Label the code __libc_vfork rather than __vfork.
168         [!NOT_IN_libc] (vfork): Define as weak alias.
169         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
170         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
171         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
172
173 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
174
175         * malloc/malloc.c (malloc_info): Fix format specifier for
176         n_mmaps.
177
178 2014-06-02  Wilco  <wdijkstr@arm.com>
179
180         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
181         FPCR write.
182
183 2014-06-02  Wilco  <wdijkstr@arm.com>
184
185         [BZ #17009]
186         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
187         Rewrite to reduce FPCR/FPSR accesses.
188
189 2014-06-01  David S. Miller  <davem@davemloft.net>
190
191         * sysdeps/sparc/fpu/libm-test-ulps: Update.
192
193 2014-05-31  David S. Miller  <davem@davemloft.net>
194
195         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
196         to occur in round to nearest mode when |x| >= 2.0
197
198 2014-05-30  Richard Henderson  <rth@twiddle.net>
199
200         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
201         (PSEUDO_RET_NOERRNO): Remove.
202         (ret): Don't redefine.
203         (ret_NOERRNO): Define in terms of ret.
204         (ret_ERRVAL): Likewise.
205
206         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
207         use of PSEUDO_RET; perform the error check directly.
208
209 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
210
211         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
212         with __int128_t.
213
214 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
215
216         * malloc/malloc (malloc_info): Fix formatting.
217
218 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
219             Roland McGrath  <roland@hack.frob.com>
220
221         * malloc/malloc (malloc_info): Also print mmapped statistics.
222
223 2014-05-30  Roland McGrath  <roland@hack.frob.com>
224
225         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
226         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
227
228 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
229
230         * malloc/malloc.c (malloc_info): Inline mi_arena.
231
232 2014-05-29  Richard Henderson  <rth@twiddle.net>
233
234         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
235         Remove comma before expanding ASM_ARGS_##nr.
236         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
237         Make _x0 a strict output; make _x8 a strict input; adjust expansion
238         of ASM_ARGS_##nr.
239         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
240         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
241         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
242         (ASM_ARGS_1): Add leading comma.
243
244         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
245         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
246         to __errno_location.
247         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
248         Remove the expected plt for __errno_location.
249
250         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
251         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
252         call to __read_tp.
253
254         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
255         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
256         it and break it down.
257         (DOCARGS_0, DOCARGS_1): Do nothing.
258         (DOCARGS_2): Update to store into the new stack frame.
259         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
260         (UNDOCARGS_1): Update to restore from the new stack frame.
261         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
262         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
263
264         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
265         (SINGLE_THREAD_P): New parameter for result regno.
266         (PSEUDO): Update to match; use cbz instead of beq.
267
268         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
269         Use ENTRY to define the _nocancel entry point.  Share the syscall
270         and syscall error check paths with the cancel path.
271         (PSEUDO_END): New.
272
273         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
274         whitespace; tabs before and after asm mnemonics.
275
276 2014-05-29  Eric Wong  <normalperson@yhbt.net>
277
278         [BZ #15132]
279         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
280         Call fstat64 or stat64 internally, depending on arguments passed.
281         Replace stat buffer argument with file descriptor argument.
282         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
283         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
284         Pass fd to __internal_statvfs instead of calling fstat64.
285         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
286         Pass fd to __internal_statvfs64 instead of calling fstat64.
287         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
288         Pass -1 to __internal_statvfs instead of calling stat64.
289         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
290         Pass -1 to __internal_statvfs64 instead of calling stat64.
291
292 2014-05-28  Roland McGrath  <roland@hack.frob.com>
293
294         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
295         that was previously under [RESET_PID].
296         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
297
298         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
299         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
300
301 2014-05-27  Roland McGrath  <roland@hack.frob.com>
302
303         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
304
305         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
306         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
307
308 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
309
310         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
311
312 2014-05-27  Andreas Schwab  <schwab@suse.de>
313
314         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
315         TLS_INIT_TP macro.
316         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
317         * elf/rtld.c (init_tls, dl_main): Likewise.
318         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
319         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
320         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
321         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
322         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
323         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
324         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
325         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
326         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
327         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
328         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
329         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
330         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
331         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
332         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
333         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
334         * sysdeps/generic/tls.h: Update description.
335
336 2014-05-27  Will Newton  <will.newton@linaro.org>
337
338         [BZ #16990]
339         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
340         and restore r2 rather than just restoring.
341
342 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
343
344         [BZ #16724]
345         * libio/tst-ftell-append.c: New test case.
346         * libio/Makefile (tests): Add test case.
347         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
348         append mode.
349         * libio/wfileops.c (do_ftell_wide): Likewise.
350
351 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
352
353         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
354
355         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
356         ...
357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
359         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
360         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
361         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
362         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
363         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
364         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
365         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
366         Moved ...
367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
368         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
369         Moved ...
370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
371         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
372         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
373         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
374         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
375         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
376         ...
377         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
378         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
379         Moved ...
380         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
381         here.
382         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
383         ...
384         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
385         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
386         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
387
388         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
389         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
390         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
391         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
392
393         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
394         merge into ...
395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
396         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
397         ...
398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
399         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
400         ...
401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
402         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
403         Moved ...
404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
405         here.
406         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
407         Moved ...
408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
409         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
410         Moved ...
411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
412
413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
414         conditional [RESET_PID].
415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
416         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
417         removed.
418         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
419         removed.
420
421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
422         <tcb-offsets.h>.
423         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
424         (__libc_vfork): New strong alias.
425         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
426         removed.
427         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
428         Removed.
429
430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
431         <tcb-offsets.h>.
432         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
433         (__libc_vfork): New strong alias.
434         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
435         removed.
436         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
437         removed.
438
439 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
440
441         * malloc/malloc.c (mi_arena): New function.
442         (malloc_info): Remove nested function mi_arena. Call non-nosted
443         function mi_arena.
444
445 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
446
447         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
448         by insrwi.
449         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
450         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
451         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
452         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
453         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
454         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
455         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
456
457 2014-05-26  Andreas Schwab  <schwab@suse.de>
458
459         [BZ #16984]
460         * locale/programs/repertoire.c (repertoire_read): Add slash
461         between I18NPATH element and file name.
462         * locale/programs/locfile.c (locfile_read): Likewise.
463
464 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
465
466         * nptl/pthread_mutexattr_settype.c
467         (__pthread_mutexattr_settype):
468         Disable lock elision for PTHREAD_MUTEX_NORMAL.
469
470 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
471
472         * nptl/tst-mutex5 (do_test):
473         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
474
475 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
476
477         * benchtests/README: Document 'init' directive.
478         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
479         BENCH_INIT.
480         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
481         (parse_file): Recognize 'init' directive.
482
483 2014-05-26  Kyle McMartin  <kyle@redhat.com>
484
485         [BZ #16796]
486         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
487         alignment of struct pthread.
488
489 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
490
491         [BZ #16878]
492         * nscd/netgroupcache.c (addgetnetgrentX): Look for
493         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
494         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
495         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
496
497 2014-05-25  Richard Henderson  <rth@twiddle.net>
498
499         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
500         (SINGLE_THREAD_P_PIC): Remove.
501         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
502         (SINGLE_THREAD_P_PIC): Remove.
503
504         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
505         branch to syscall error ...
506         (PSEUDO): ... here.
507         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
508         from __local_syscall_error to .Lsyscall_error.
509         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
510         (SYSCALL_ERROR): Update label name.
511
512         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
513         Do not use DOARGS/UNDOARGS.
514         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
515         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
516         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
517         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
518         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
519
520         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
521         block comment.
522
523         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
524         define if !NOT_IN_libc.
525         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
526         define with non-default symbol versions.
527
528 2014-05-23  Richard Henderson  <rth@twiddle.net>
529
530         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
531         (vfork, __vfork): Define via compat_symbol.
532
533         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
534         [!HAVE_IFUNC] (vfork_compat): Remove.
535         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
536
537 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
538
539         [BZ #16978]
540         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
541         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
542         variable.
543
544 2014-05-23  Richard Henderson  <rth@twiddle.net>
545
546         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
547         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
548         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
549         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
550
551         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
552         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
553         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
554         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
555         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
556         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
557         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
558         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
559         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
560         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
561         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
562         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
563         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
564         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
565         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
566         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
567         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
568         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
569         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
570         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
571         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
572         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
573         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
574         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
575         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
576         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
577         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
578         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
579         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
580         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
581         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
582         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
583         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
584         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
585         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
586         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
587         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
588         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
589         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
590         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
591         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
592         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
593         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
594         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
595         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
596         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
597         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
598         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
599         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
600         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
601         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
602         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
603         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
604         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
605         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
606         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
607
608         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
609         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
610         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
611         before exiting on error.
612         (__libc_vfork): New strong alias.
613         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
614         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
615
616         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
617         that was previously under [RESET_PID].
618         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
619
620         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
621
622 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
623
624         [BZ #16977]
625         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
626         value when x - 1 is zero.
627         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
628         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
629         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
630         0.0L for an argument of 1.0L.
631         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
632         Likewise.
633         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
634         value when x - 1 is zero.
635         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
636         * sysdeps/i386/fpu/libm-test-ulps: Update.
637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
638
639 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
640
641         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
642         alphasort and versionsort.
643
644 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
645
646         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
647         macro.
648         [copysignf]: Likewise.
649
650 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
651
652         * crypt/md5-crypt.c: Fix formatting.
653
654 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
655
656         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
657         (b64_from_24bit): New function.
658
659 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
660
661         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
662         libc_hidden_builtin_def to ifunc.
663         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
664         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
665
666 2014-05-21  Roland McGrath  <roland@hack.frob.com>
667
668         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
669         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
670
671 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
672
673         * nscd/Depend (linuxthreads): Remove.
674         (nptl): Add.
675         * resolv/Depend (linuxthreads): Remove.
676         * rt/Depend (linuxthreads): Remove.
677
678         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
679         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
680         $(common-objpfx)elf/.
681         (link-libc-before-gnulib): Likewise.
682         (elfobjdir): Remove variable.
683         * Makefile (install): Use $(elf-objpfx) instead of
684         $(common-objpfx)elf/.
685         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
686         $(elfobjdir)/.
687         (link-libc-deps): Likewise.
688         ($(common-objpfx)libc.so): Likewise.
689         ($(common-objpfx)linkobj/libc.so): Likewise.
690         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
691         instead of $(common-objpfx)elf/.
692         (symbolic-link-list): Likewise.
693         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
694         [$(cross-compiling) = no]: Likewise.
695         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
696         $(elfobjdir)/.
697         (static-gnulib-arch): Likewise.
698         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
699         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
700         $(common-objpfx)elf/.
701
702 2014-05-21  Richard Henderson  <rth@redhat.com>
703
704         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
705         (SINGLE_THREAD_P): Use the correct width load.  Fold
706         into the ldr offset.
707
708         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
709         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
710
711 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
712
713         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
714         (libgcc_s_resume): Use __attribute_used__.
715         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
716         Likewise.
717
718 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
719
720         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
721         optimization when used with float constants.
722
723         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
724
725 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
726
727         [BZ #16915]
728         * locale/nl_langinfo_l.c: Make direct reference to every
729         _nl_current_CATEGORY symbol.
730         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
731         (tests-static): Add tst-langinfo-static.
732         (tests-special): Add tst-langinfo-static.out.
733         ($(objpfx)tst-langinfo.out): Redirect output.
734         ($(objpfx)tst-langinfo-static.out): New.
735         * localedata/tst-langinfo.sh: Send output to stdout.
736         * localedata/tst-langinfo-static.c: New file.
737
738         [BZ #16965]
739         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
740         when the shift amount is modulo the limb size.
741
742 2014-05-20  Richard Henderson  <rth@redhat.com>
743
744         [BZ #16967]
745         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
746         Change type of sa_flags from unsigned int to int.
747
748         [BZ #16966]
749         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
750
751         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
752
753 2014-05-20  Will Newton  <will.newton@linaro.org>
754
755         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
756         Test the return value of the system call in the nocancel case.
757
758 2014-05-20  Will Newton  <will.newton@linaro.org>
759             Yvan Roux  <yvan.roux@linaro.org>
760
761         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
762         #include of asm/ptrace.h.
763         (PTRACE_GET_THREAD_AREA): Remove #undef.
764         (PTRACE_GETHBPREGS): Likewise.
765         (PTRACE_SETHBPREGS): Likewise.
766         (struct user_regs_struct): New structure.
767         (struct user_fpsimd_struct): New structure.
768         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
769         #include of asm/ptrace.h and second #include of sys/user.h.
770         (PTRACE_GET_THREAD_AREA): Remove #undef.
771         (PTRACE_GETHBPREGS): Likewise.
772         (PTRACE_SETHBPREGS): Likewise.
773         (ELF_NGREG): Use new struct user_regs_struct.
774         (elf_fpregset_t): Use new struct user_fpsimd_struct.
775
776 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
777
778         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
779         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
780
781 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
782
783         [BZ #16958]
784         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
785         membar to avoid block loads/stores to overlap previous stores.
786
787 2014-05-17  Richard Henderson  <rth@redhat.com>
788
789         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
790         Create the __##syscall_name##_nocancel entry point.
791         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
792         Remove; let the sysdep-cancel.h code create it.
793
794 2014-05-17  David S. Miller  <davem@davemloft.net>
795
796         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
797         Protect with __USE_GNU.
798         (TIOCSET_TEMPT): Likewise.
799         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
800         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
801         these are already provided in bits/ioctl-types.h
802
803 2014-05-16  Roland McGrath  <roland@hack.frob.com>
804
805         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
806         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
807
808         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
809         Use wait4 regardless of [__NR_waitpid].
810
811 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
812
813         PR libgcc/60166
814         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
815         (_FP_NANSIGN_Q): Set the quiet bit.
816
817 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
818
819         * benchtests/Makefile
820         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
821         not $(common-objpfx)math/libm.so.
822         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
823         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
824         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
825         $(common-objpfx)dlfcn/libdl.so.
826         ($(objpfx)tst-audit8): Depend on $(libm), not
827         $(common-objpfx)math/libm.so.
828         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
829         not $(common-objpfx)dlfcn/libdl.so.
830         * math/Makefile
831         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
832         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
833         [$(build-shared) = yes].
834         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
835         $(common-objpfx)nptl/libpthread.so.
836         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
837         $(common-objpfx)math/libm.so$(libm.so-version) or
838         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
839         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
840         $(common-objpfx)dlfcn/libdl.so.
841         * setjmp/Makefile (link-libm): Remove variable.
842         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
843         * stdio-common/Makefile (link-libm): Remove variable.
844         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
845         * stdlib/Makefile (link-libm): Remove variable.
846         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
847         ($(objpfx)tst-strtod-round): Likewise.
848         ($(objpfx)tst-tininess): Likewise.
849         ($(objpfx)tst-strtod-underflow): Likewise.
850         ($(objpfx)tst-strtod6): Likewise.
851         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
852         $(libdl), not $(common-objpfx)nptl/libpthread.so and
853         $(common-objpfx)dlfcn/libdl.so.
854
855 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
856
857         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
858         BSD terminal modes definitions.
859
860 2014-05-16  Roland McGrath  <roland@hack.frob.com>
861
862         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
863         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
864
865         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
866         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
867         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
868         Don't do #include_next.
869         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
870         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
871         Don't do #include_next.
872         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
873         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
874         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
875         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
876
877 2014-05-16  Allan McRae  <allan@archlinux.org>
878
879         * po/sv.po: Update Swedish translation from translation project.
880
881         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
882         in sed expression.
883
884 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
885
886         [BZ #16917]
887         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
888         errno if the TIOCGPTN ioctl fails with an error different than
889         EINVAL.
890         * login/tst-ptsname.c: New file.
891         * login/Makefile (tests): Add tst-ptsname.
892
893         [BZ #16943]
894         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
895         and prlimit64.
896
897 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
898
899         [BZ #16849]
900         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
901         herrno to return EAI_AGAIN.
902
903 2014-05-14  Roland McGrath  <roland@hack.frob.com>
904
905         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
906         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
907         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
908         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
909         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
910         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
911         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
912         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
913         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
914         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
915         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
916         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
917         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
918         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
919         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
920         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
921         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
922         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
923         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
924         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
925         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
926         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
927         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
928         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
929         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
930         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
931         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
932         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
933         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
934         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
935         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
936         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
937         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
938         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
939         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
940         Moved ...
941         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
942         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
943         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
944         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
945         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
946         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
947         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
948         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
949         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
950         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
951         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
952         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
953         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
954         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
955         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
956         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
957         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
958         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
959         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
960         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
961         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
962         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
963         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
964         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
965         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
966         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
967         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
968         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
969         Moved ...
970         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
971         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
972         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
973         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
974         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
975         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
976         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
977         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
978         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
979         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
980         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
981         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
982         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
983         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
984         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
985         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
986         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
987         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
988         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
989         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
990         Moved ...
991         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
992         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
993         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
994
995         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
996         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
997         (libpthread-sysdep_routines): Add elision-related stuff here instead.
998         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
999         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
1000         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
1001         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
1002         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
1003         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
1004         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
1005         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
1006         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
1007         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
1008         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
1009         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
1010         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
1011         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
1012         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
1013         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
1014         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
1015         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
1016         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
1017         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
1018         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
1019         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
1020         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
1021         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
1022         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
1023         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
1024         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
1025         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
1026
1027         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
1028         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
1029
1030         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
1031         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
1032         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
1033         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
1034         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
1035         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
1036         Moved ...
1037         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
1038         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
1039         Moved ...
1040         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
1041         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
1042         Moved ...
1043         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
1044         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
1045         Moved ...
1046         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
1047         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
1048         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
1049         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
1050         Moved ...
1051         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
1052         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
1053         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
1054         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
1055         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
1056         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
1057         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
1058         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
1059         Moved ...
1060         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
1061         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
1062         Moved ...
1063         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
1064         ... here.
1065         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
1066         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
1067         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
1068         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
1069         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
1070         Moved ...
1071         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
1072         ... here.
1073         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
1074         Moved ...
1075         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
1076         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
1077         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
1078         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
1079         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
1080         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
1081         Moved ...
1082         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
1083         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
1084         Moved ...
1085         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
1086         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
1087         Moved ...
1088         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
1089         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
1090         Moved ...
1091         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
1092         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
1093         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
1094         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
1095         Moved ...
1096         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
1097         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
1098         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
1099         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
1100         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
1101         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
1102         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
1103         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
1104         Moved ...
1105         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
1106         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1107         Moved ...
1108         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
1109         ... here.
1110         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
1111         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
1112         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
1113         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
1114         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1115         Moved ...
1116         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
1117         ... here.
1118         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
1119         Moved ...
1120         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
1121         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
1122         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
1123         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
1124         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
1125         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
1126         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
1127         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
1128         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
1129         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
1130         Moved ...
1131         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
1132         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
1133         Moved ...
1134         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
1135         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
1136         Moved ...
1137         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
1138         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
1139         Moved ...
1140         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
1141         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
1142         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
1143         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
1144         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
1145         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
1146         Moved ...
1147         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
1148         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
1149         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
1150         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
1151         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
1152         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
1153         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
1154         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
1155         Moved ...
1156         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
1157         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
1158         Moved ...
1159         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
1160         ... here.
1161         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
1162         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
1163         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
1164         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
1165         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
1166         Moved ...
1167         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
1168         ... here.
1169         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
1170         Moved ...
1171         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
1172         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
1173         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
1174         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
1175         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
1176         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
1177         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
1178         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
1179         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
1180         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
1181         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
1182
1183         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
1184         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
1185
1186         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
1187         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
1188
1189         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
1190         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
1191         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
1192         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
1193         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
1194         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
1195         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
1196         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
1197         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
1198         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
1199         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
1200         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
1201         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
1202         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
1203         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
1204         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
1205         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
1206         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
1207         Moved ...
1208         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
1209         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
1210         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
1211         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
1212         Moved ...
1213         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
1214         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
1215         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
1216         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
1217         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
1218         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
1219         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
1220         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
1221         Moved ...
1222         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
1223         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
1224         Moved ...
1225         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
1226         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
1227         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
1228         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
1229         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
1230         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
1231         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
1232         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
1233         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
1234         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
1235         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
1236         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
1237         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
1238         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
1239         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
1240         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
1241         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
1242
1243         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
1244         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
1245         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
1246         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
1247         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
1248
1249         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
1250         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
1251         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
1252         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
1253         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
1254         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
1255         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
1256         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
1257         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
1258         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
1259
1260         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
1261         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
1262
1263         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
1264         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
1265         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
1266         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
1267         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
1268         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
1269         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
1270         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
1271         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
1272         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
1273         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
1274         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
1275         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
1276         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
1277         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
1278         Update #include.
1279         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
1280         Likewise.
1281         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
1282         Likewise.
1283         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
1284         Likewise.
1285         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
1286         Likewise.
1287         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
1288         Likewise.
1289         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
1290         Likewise.
1291         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
1292         Likewise.
1293         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
1294         Likewise.
1295         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
1296         Likewise.
1297         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
1298         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
1299         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
1300         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
1301         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
1302         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
1303         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
1304         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
1305         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
1306         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
1307         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
1308         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
1309         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
1310         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
1311         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
1312
1313         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
1314         that was previously under [RESET_PID].
1315         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1316         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
1317         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
1318
1319         * sysdeps/i386/nptl/Implies: New file.
1320         * sysdeps/x86_64/nptl/Implies: New file.
1321         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
1322         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
1323         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
1324         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
1325
1326         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
1327         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1328         (__libc_vfork): New strong alias.
1329         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
1330         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
1331
1332         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
1333         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1334         (__libc_vfork): New strong alias.
1335         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
1336         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
1337
1338         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
1339         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1340         (__libc_vfork): New strong alias.
1341         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
1342         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
1343         * nptl/pt-vfork.c: New file.
1344         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
1345         (libpthread: GLIBC_2.20): New version set (empty).
1346
1347 2014-05-14  Will Newton  <will.newton@linaro.org>
1348
1349         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
1350         rather than #if.
1351
1352 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
1353
1354         [BZ #16564]
1355         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
1356         arguments with exponent 65 or above.
1357         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
1358         arguments 0x1p113L or above.
1359         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
1360         to arguments 0x1p107L or above.
1361         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
1362         positive arguments with exponent 65 or above.
1363         * math/auto-libm-test-in: Add more tests of log1p.
1364         * math/auto-libm-test-out: Regenerated.
1365
1366         [BZ #16928]
1367         * math/s_cacos.c (__cacos): Ensure zero real part of result from
1368         non-finite arguments is +0.
1369         * math/s_cacosf.c (__cacosf): Likewise.
1370         * math/s_cacosl.c (__cacosl): Likewise.
1371         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
1372         * sysdeps/i386/fpu/libm-test-ulps: Update.
1373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1374
1375         [BZ #16927]
1376         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
1377         value.
1378         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
1379         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
1380         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
1381         for explicit high bit of mantissa when testing for argument equal
1382         to 1.
1383         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
1384         * sysdeps/i386/fpu/libm-test-ulps: Update.
1385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1386
1387         [BZ #16516]
1388         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
1389         (__erf): Scale by 16 instead of 8 in potentially underflowing
1390         case.  Ensure exception if result actually underflows.
1391         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
1392         (__erff): Scale by 16 instead of 8 in potentially underflowing
1393         case.  Ensure exception if result actually underflows.
1394         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
1395         (efx8): Remove variable.
1396         (__erfl): Scale by 16 instead of 8 in potentially underflowing
1397         case.  Ensure exception if result actually underflows.
1398         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
1399         (efx8): Remove variable.
1400         (__erfl): Scale by 16 instead of 8 in potentially underflowing
1401         case.  Ensure exception if result actually underflows.
1402         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
1403         (efx8): Remove variable.
1404         (__erfl): Scale by 16 instead of 8 in potentially underflowing
1405         case.  Ensure exception if result actually underflows.
1406         * math/auto-libm-test-in: Add more tests of erf.
1407         * math/auto-libm-test-out: Regenerated.
1408
1409 2014-05-14  Andreas Schwab  <schwab@suse.de>
1410
1411         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
1412         Remove code conditionalized on USE___THREAD.
1413
1414         * config.h.in (HAVE_PT_CHOWN): Define as 0.
1415         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
1416         not definedness.
1417
1418 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
1419
1420         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
1421         Define unconditionally.
1422         (__ASSUME_O_CLOEXEC): Likewise.
1423         (__ASSUME_SOCK_CLOEXEC): Likewise.
1424         (__ASSUME_IN_NONBLOCK): Likewise.
1425         (__ASSUME_PIPE2): Likewise.
1426         (__ASSUME_EVENTFD2): Likewise.
1427         (__ASSUME_SIGNALFD4): Likewise.
1428         (__ASSUME_DUP3): Likewise.
1429         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
1430         (__ASSUME_DUP3): Do not define.
1431         (__ASSUME_EVENTFD2): Likewise.
1432         (__ASSUME_IN_NONBLOCK): Likewise.
1433         (__ASSUME_O_CLOEXEC): Likewise.
1434         (__ASSUME_PIPE2): Likewise.
1435         (__ASSUME_SIGNALFD4): Likewise.
1436         (__ASSUME_SOCK_CLOEXEC): Likewise.
1437         (__ASSUME_UTIMES): Undefine.
1438         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1439         (__ASSUME_UTIMES): Do not define.
1440         (__ASSUME_O_CLOEXEC): Likewise.
1441         (__ASSUME_SOCK_CLOEXEC): Likewise.
1442         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
1443         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
1444         0x020621].
1445         (__ASSUME_PIPE2): Likewise.
1446         (__ASSUME_EVENTFD2): Likewise.
1447         (__ASSUME_SIGNALFD4): Likewise.
1448         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
1449         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
1450         Do not define.
1451         (__ASSUME_EVENTFD2): Likewise.
1452         (__ASSUME_SIGNALFD4): Likewise.
1453         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1454         (__ASSUME_32BITUIDS): Likewise.
1455         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
1456         (__ASSUME_IPC64): Likewise.
1457         (__ASSUME_ST_INO_64_BIT): Likewise.
1458         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
1459         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
1460         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1461         (__ASSUME_UTIMES): Do not define.
1462         (__ASSUME_PSELECT): Likewise.
1463         (__ASSUME_PPOLL): Likewise.
1464         (__ASSUME_O_CLOEXEC): Likewise.
1465         (__ASSUME_SOCK_CLOEXEC): Likewise.
1466         (__ASSUME_IN_NONBLOCK): Likewise.
1467         (__ASSUME_PIPE2): Likewise.
1468         (__ASSUME_EVENTFD2): Likewise.
1469         (__ASSUME_SIGNALFD4): Likewise.
1470         (__ASSUME_DUP3): Likewise.
1471         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1472         (__ASSUME_UTIMES): Likewise.
1473         (__ASSUME_O_CLOEXEC): Likewise.
1474         (__ASSUME_SOCK_CLOEXEC): Likewise.
1475         (__ASSUME_IN_NONBLOCK): Likewise.
1476         (__ASSUME_PIPE2): Likewise.
1477         (__ASSUME_EVENTFD2): Likewise.
1478         (__ASSUME_SIGNALFD4): Likewise.
1479         (__ASSUME_DUP3): Likewise.
1480         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1481         (__ASSUME_UTIMES): Likewise.
1482         (__ASSUME_O_CLOEXEC): Likewise.
1483         (__ASSUME_SOCK_CLOEXEC): Likewise.
1484         (__ASSUME_IN_NONBLOCK): Likewise.
1485         (__ASSUME_PIPE2): Likewise.
1486         (__ASSUME_EVENTFD2): Likewise.
1487         (__ASSUME_SIGNALFD4): Likewise.
1488         (__ASSUME_DUP3): Likewise.
1489         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
1490         Likewise.
1491         (__ASSUME_UTIMES): Likewise.
1492         (__ASSUME_EVENTFD2): Likewise.
1493         (__ASSUME_SIGNALFD4): Likewise.
1494         * sysdeps/unix/sysv/linux/tile/kernel-features.h
1495         (__ASSUME_O_CLOEXEC): Likewise.
1496         (__ASSUME_SOCK_CLOEXEC): Likewise.
1497         (__ASSUME_IN_NONBLOCK): Likewise.
1498         (__ASSUME_PIPE2): Likewise.
1499         (__ASSUME_EVENTFD2): Likewise.
1500         (__ASSUME_SIGNALFD4): Likewise.
1501         (__ASSUME_DUP3): Likewise.
1502         (__ASSUME_UTIMES): Undefine.
1503
1504         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
1505         feclearexcept.  Remove symbol versioning code.
1506         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
1507         symbol versioning code.
1508         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
1509         symbol versioning code.
1510         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
1511         feupdateenv.  Remove symbol versioning code.
1512         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
1513         fegetexceptflag.  Remove symbol versioning code.
1514         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
1515         fesetexceptflag.  Remove symbol versioning code.
1516         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
1517         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
1518         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
1519         (__posix_fadvise64_l32): Remove prototype.
1520         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
1521         code.
1522
1523 2014-05-13  Roland McGrath  <roland@hack.frob.com>
1524
1525         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
1526         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
1527         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
1528         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
1529
1530 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
1531
1532         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
1533         current working directory
1534
1535 2014-05-13  Roland McGrath  <roland@hack.frob.com>
1536
1537         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
1538         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
1539         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
1540         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
1541         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
1542         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
1543         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
1544         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
1545         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
1546         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
1547         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
1548         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
1549         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
1550         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
1551         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
1552         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
1553         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
1554         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
1555         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
1556         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
1557         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
1558         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
1559         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
1560         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
1561         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
1562         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
1563         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
1564         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
1565         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
1566         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
1567         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
1568         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
1569         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
1570         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
1571         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
1572         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
1573         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
1574         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
1575         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
1576         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
1577         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
1578         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
1579
1580         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
1581         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
1582
1583         * sysdeps/unix/sysv/linux/arm/Makefile
1584         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
1585         Add rt-aeabi_unwind_cpp_pr1.
1586         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
1587         Add nptl-aeabi_unwind_cpp_pr1.
1588         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
1589         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
1590         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
1591         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
1592         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
1593         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
1594
1595         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
1596         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
1597         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
1598         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
1599
1600         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
1601         Deconditionalize the code that was previously under [RESET_PID].
1602         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
1603
1604         * sysdeps/generic/exit-thread.h: New file.
1605         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
1606         * include/unistd.h (__exit_thread): Remove declaration.
1607         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
1608         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
1609         * csu/libc-start.c: Include <exit-thread.h>.
1610         (LIBC_START_MAIN): Pass no argument to __exit_thread.
1611         * nptl/pthread_create.c: Include <exit-thread.h>.
1612         (start_thread): Call __exit_thread in place of __exit_thread_inline.
1613         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
1614         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
1615         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
1616         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
1617         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
1618         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
1619         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
1620         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
1621         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
1622         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
1623         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
1624         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
1625         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
1626         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
1627         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
1628         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
1629
1630 2014-05-13  Andreas Schwab  <schwab@suse.de>
1631
1632         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
1633
1634 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
1635
1636         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
1637         (__ASSUME_UTIMES): Do not condition on kernel version.
1638         (__ASSUME_PSELECT): Define unconditionally.
1639         (__ASSUME_PPOLL): Likewise.
1640         (__ASSUME_ATFCTS): Likewise.
1641         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
1642         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
1643         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
1644         (__ASSUME_UTIMENSAT): Define unconditionally.
1645         (__ASSUME_PRIVATE_FUTEX): Likewise.
1646         (__ASSUME_FALLOCATE): Likewise.
1647         (__ASSUME_O_CLOEXEC): Likewise.
1648         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
1649         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
1650         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
1651         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
1652         (__ASSUME_IN_NONBLOCK): Likewise.
1653         (__ASSUME_PIPE2): Likewise.
1654         (__ASSUME_EVENTFD2): Likewise.
1655         (__ASSUME_SIGNALFD4): Likewise.
1656         (__ASSUME_DUP3): Likewise.
1657         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
1658         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
1659         (__ASSUME_AT_RANDOM): Likewise.
1660         (__ASSUME_PREADV): Likewise.
1661         (__ASSUME_PWRITEV): Likewise.
1662         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
1663         (__ASSUME_F_GETOWN_EX): Define unconditionally.
1664         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
1665         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1666         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
1667         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1668         (__ASSUME_O_CLOEXEC): Define unconditionally.
1669         (__ASSUME_PSELECT): Do not undefine conditionally.
1670         (__ASSUME_PPOLL): Likewise.
1671         (__ASSUME_ATFCTS): Likewise.
1672         (__ASSUME_SET_ROBUST_LIST): Likewise.
1673         (__ASSUME_UTIMENSAT): Likewise.
1674         (__ASSUME_FDATASYNC): Define unconditionally.
1675         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1676         (__ASSUME_SIGFRAME_V2): Likewise.
1677         )__ASSUME_EVENTFD2): Likewise.
1678         (__ASSUME_SIGNALFD4): Likewise.
1679         (__ASSUME_PSELECT): Do not undefine conditionally.
1680         (__ASSUME_PPOLL): Likewise.
1681         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1682         (__ASSUME_PSELECT): Define unconditionally.
1683         (__ASSUME_PPOLL): Likewise.
1684         (__ASSUME_O_CLOEXEC): Likewise.
1685         (__ASSUME_SOCK_CLOEXEC): Likewise.
1686         (__ASSUME_IN_NONBLOCK): Likewise.
1687         (__ASSUME_PIPE2): Likewise.
1688         (__ASSUME_EVENTFD2): Likewise.
1689         (__ASSUME_SIGNALFD4): Likewise.
1690         (__ASSUME_DUP3): Likewise.
1691         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1692         (__ASSUME_O_CLOEXEC): Likewise.
1693         (__ASSUME_SOCK_CLOEXEC): Likewise.
1694         (__ASSUME_IN_NONBLOCK): Likewise.
1695         (__ASSUME_PIPE2): Likewise.
1696         (__ASSUME_EVENTFD2): Likewise.
1697         (__ASSUME_SIGNALFD4): Likewise.
1698         (__ASSUME_DUP3): Likewise.
1699         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1700         (__ASSUME_EVENTFD2): Likewise.
1701         (__ASSUME_SIGNALFD4): Likewise.
1702         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
1703
1704 2014-05-12  Andreas Schwab  <schwab@suse.de>
1705
1706         [BZ #16932]
1707         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
1708         (_nss_nis_gethostbyname4_r): Return error if item length is larger
1709         than maximum RPC packet size.
1710         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
1711         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
1712         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
1713         (_nss_nis_getservbyport_r): Likewise.
1714
1715 2014-05-12  Will Newton  <will.newton@linaro.org>
1716
1717         * malloc/Makefile (tests): Add tst-mallopt.
1718         * malloc/tst-mallopt.c: New file.
1719
1720 2014-05-09  Roland McGrath  <roland@hack.frob.com>
1721
1722         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
1723         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
1724
1725 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1726
1727         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
1728         (tst-tlsmod6.so): Likewise.
1729
1730 2014-05-09  Roland McGrath  <roland@hack.frob.com>
1731
1732         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
1733
1734 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
1735
1736         [BZ #16064]
1737         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
1738         and <dl-procinfo.h>.
1739         (__fegetenv): Save SSE state in envp->__eip if supported.
1740         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
1741         envp->__eip if supported.
1742         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
1743         and <dl-procinfo.h>.
1744         (__fesetenv): Always set __eip, __cs_selector, __opcode,
1745         __data_offset and __data_selector in environment to 0.  Set SSE
1746         state if supported.
1747         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
1748         test-fenv-sse.
1749         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
1750         -mfpmath=sse.
1751         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
1752
1753 2014-05-09  Will Newton  <will.newton@linaro.org>
1754
1755         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
1756         and libc_relro_required for ARM.
1757         * sysdeps/arm/preconfigure: Regenerate.
1758
1759 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1760             Stefan Liebler  <stli@linux.vnet.ibm.com>
1761
1762         * config.make.in (enable-lock-elision): New Makefile variable.
1763         * configure.ac: Likewise.
1764         * configure: Regenerate.
1765         * sysdeps/s390/configure.ac:
1766         Add check for gcc transactions support.
1767         * sysdeps/s390/configure: Regenerate.
1768         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
1769         Build elision files if enabled.
1770         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
1771         Add lock elision support for s390.
1772         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
1773         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
1774         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
1775         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
1776         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
1777         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
1778         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
1779         Likewise.
1780         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
1781         Likewise.
1782         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
1783         Likewise.
1784         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
1785         Likewise.
1786         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
1787         (__lll_timedlock_elision, __lll_lock_elision)
1788         (__lll_unlock_elision, __lll_trylock_elision)
1789         (lll_timedlock_elision, lll_lock_elision)
1790         (lll_unlock_elision, lll_trylock_elision): Add.
1791         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
1792         (pthread_mutex_t): Add lock elision support for s390.
1793
1794 2014-05-14  Wilco  <wdijkstr@arm.com>
1795
1796         * sysdeps/arm/fclrexcpt.c: Cleanup.
1797         * sysdeps/arm/fedisblxcpt.c: Cleanup.
1798         * sysdeps/arm/feenablxcpt.c: Cleanup.
1799         * sysdeps/arm/fegetenv.c: Cleanup.
1800         * sysdeps/arm/fegetexcept.c: Cleanup.
1801         * sysdeps/arm/fegetround.c: Cleanup.
1802         * sysdeps/arm/feholdexcpt.c: Cleanup.
1803         * sysdeps/arm/fesetenv.c: Cleanup.
1804         * sysdeps/arm/fesetround.c: Cleanup.
1805         * sysdeps/arm/feupdateenv.c: Cleanup.
1806         * sysdeps/arm/fgetexcptflg.c: Cleanup.
1807         * sysdeps/arm/fraiseexcpt.c: Cleanup.
1808         * sysdeps/arm/fsetexcptflg.c: Cleanup.
1809         * sysdeps/arm/ftestexcept.c: Cleanup.
1810         * sysdeps/arm/get-rounding-mode.h: Cleanup.
1811         * sysdeps/arm/setfpucw.c: Cleanup.
1812
1813 2014-05-09  Will Newton  <will.newton@linaro.org>
1814
1815         * sysdeps/arm/armv7/strcmp.S: New file.
1816         * NEWS: Mention addition of ARMv7 optimized strcmp.
1817
1818 2014-05-08  Roland McGrath  <roland@hack.frob.com>
1819
1820         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
1821         look for %.ac rather than %.in.
1822
1823         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
1824         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
1825         * sysdeps/mach/hurd/configure: Regenerated.
1826         * sysdeps/unix/sysv/linux/configure: Regenerated.
1827
1828         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
1829
1830 2014-05-07  Steve Ellcey  <sellcey@mips.com>
1831
1832         [BZ# 16922]
1833         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
1834         (LONG_SUB): Ditto.
1835         (PTR_SUB): Ditto.
1836
1837 2014-05-07  Andreas Schwab  <schwab@suse.de>
1838
1839         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
1840         when skipping over non-matching result from nscd.
1841
1842 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
1843
1844         [BZ #16876]
1845         * nptl/sockperf.c (client): Check socket return value.
1846
1847         [BZ #16877]
1848         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
1849         nscd security class.
1850
1851 2014-05-06  Roland McGrath  <roland@hack.frob.com>
1852
1853         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
1854         * sysdeps/arm/unwind.h: ... here.
1855
1856 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
1857
1858         [BZ# 16916]
1859         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
1860         Define.
1861
1862 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1863
1864         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
1865         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
1866         multiarch strncpy for PPC64.
1867         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
1868         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
1869         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
1870         multiarch optimizations.
1871         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1872         (__libc_ifunc_impl_list): Likewise.
1873         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
1874         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
1875         multiarch stpncpy for PPC64.
1876         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
1877         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
1878
1879 2014-05-06  Andreas Schwab  <schwab@suse.de>
1880
1881         [BZ #16912]
1882         * gmon/mcount.c (_MCOUNT_DECL): Use
1883         atomic_compare_and_exchange_bool_acq instead of
1884         catomic_compare_and_exchange_bool_acq.
1885
1886 2014-05-05  Roland McGrath  <roland@hack.frob.com>
1887
1888         * elf/Makefile (others, install-bin): Remove pldd.
1889         (pldd-modules): Variable removed.
1890         ($(objpfx)pldd): Target removed.
1891         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
1892         (others, install-bin): Append pldd here.
1893         ($(objpfx)pldd): New target.
1894
1895         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
1896         to 0, so the first #if test emitted later doesn't see it undefined.
1897         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
1898         * sysdeps/gnu/errlist.c: Regenerated.
1899
1900 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1901
1902         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
1903         [libc_hidden_builtin_def]: Define to empty value.
1904         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
1905         [libc_hidden_builtin_def]: Likewise.
1906         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
1907         [libc_hidden_builtin_def]: Likewise.
1908         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
1909         [libc_hidden_builtin_def]: Likewise.
1910         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
1911         __redirect_memcpy and define ifunc as default hidden symbol.
1912         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
1913         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
1914
1915 2014-05-04  Adam Conrad  <adconrad@0c3.net>
1916
1917         * locale/iso-4217.def: Reintroduce XDR currency.
1918
1919 2014-05-04  Allan McRae  <allan@archlinux.org>
1920
1921         * po/eo.po: Update Esperanto translation from translation project.
1922
1923 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
1924
1925         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
1926         and FEATURE_INDEX_MAX to 1.
1927         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
1928
1929 2014-05-01  Steve Ellcey  <sellcey@mips.com>
1930
1931         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
1932         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
1933         * iconvdata/big5.c (ONE_DIRECTION): Define.
1934         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
1935         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
1936         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
1937         * iconvdata/cp932.c (ONE_DIRECTION): Define.
1938         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
1939         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
1940         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
1941         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
1942         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
1943         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
1944         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
1945         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
1946         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
1947         * iconvdata/gbk.c (ONE_DIRECTION): Define.
1948         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
1949         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
1950         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
1951         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
1952         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
1953         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
1954         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
1955         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
1956         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
1957         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
1958         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
1959         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
1960         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
1961         * iconvdata/iso646.c (ONE_DIRECTION): Define.
1962         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
1963         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
1964         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
1965         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
1966         * iconvdata/johab.c (ONE_DIRECTION): Define.
1967         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
1968         * iconvdata/sjis.c (ONE_DIRECTION): Define.
1969         * iconvdata/t.61.c (ONE_DIRECTION): Define.
1970         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
1971         * iconvdata/tscii.c (ONE_DIRECTION): Define.
1972         * iconvdata/uhc.c (ONE_DIRECTION): Define.
1973         * iconvdata/unicode.c (ONE_DIRECTION): Define.
1974         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
1975         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
1976         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
1977
1978 2014-05-01  Roland McGrath  <roland@hack.frob.com>
1979
1980         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
1981         (_IO_JUMPS_OFFSET): Define to 0.
1982
1983         * nptl/sysdeps/pthread/bits/libc-lock.h
1984         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
1985         (__libc_lock_define_initialized_recursive): Always define using
1986         initializer.  Modern compilers treat uninitialized (implicit zero) and
1987         explicit zero initializers the same (i.e. put the datum in bss).
1988
1989 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
1990
1991         * nscd/nscd-client.h: Include <string.h>.
1992
1993 2014-05-01  David S. Miller  <davem@davemloft.net>
1994
1995         [BZ #16885]
1996         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
1997         multiple zero bytes exist at the end of a string.
1998         Reported by Aurelien Jarno <aurelien@aurel32.net>
1999
2000         * string/test-strcmp.c (check): Add explicit test for situations where
2001         there are multiple zero bytes after the first.
2002
2003 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2004
2005         [BZ #16890]
2006         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
2007         when compiling wprintf.
2008         * stdio-common/tstdiomisc.c (t3): New function.
2009         (main): Call it.
2010
2011 2014-05-01  Steve Ellcey  <sellcey@mips.com>
2012
2013         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
2014         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
2015         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
2016         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
2017
2018 2014-05-01  Steve Ellcey  <sellcey@mips.com>
2019
2020         * stdlib/longlong.h: Updated from GCC.
2021
2022 2014-05-01  Will Newton  <will.newton@linaro.org>
2023             Bernard Ogden  <bernie.ogden@linaro.org>
2024
2025         * NEWS: Update fixed bug list.
2026
2027         [BZ #15119]
2028         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
2029
2030 2014-04-30  David S. Miller  <davem@davemloft.net>
2031
2032         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
2033         (libc_feholdexcept_setround_sparc_ctx): New function.
2034         (libc_fesetenv_sparc_ctx): Likewise.
2035         (libc_feupdateenv_sparc_ctx): Likewise.
2036         (libc_feholdsetround_sparc_ctx): Likewise.
2037         (libc_feholdexcept_setround_ctx): Define.
2038         (libc_feholdexcept_setroundf_ctx): Likewise.
2039         (libc_feholdexcept_setroundl_ctx): Likewise.
2040         (libc_fesetenv_ctx): Likewise.
2041         (libc_fesetenvf_ctx): Likewise.
2042         (libc_fesetenvl_ctx): Likewise.
2043         (libc_feupdateenv_ctx): Likewise.
2044         (libc_feupdateenvf_ctx): Likewise.
2045         (libc_feupdateenvl_ctx): Likewise.
2046         (libc_feresetround_ctx): Likewise.
2047         (libc_feresetroundf_ctx): Likewise.
2048         (libc_feresetroundl_ctx): Likewise.
2049         (libc_feholdsetround_ctx): Likewise.
2050         (libc_feholdsetroundf_ctx): Likewise.
2051         (libc_feholdsetroundl_ctx): Likewise.
2052
2053         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
2054         with __USE_GNU instead of XOPEN cpp guards.
2055
2056         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
2057         0.
2058
2059         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
2060         with XOPEN cpp guards.
2061
2062 2014-04-30  Julian Brown  <julian@codesourcery.com>
2063
2064         [BZ #16888]
2065         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
2066         handling.
2067
2068 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
2069
2070         [BZ #9894]
2071         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
2072         Change to 2.6.32.
2073         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
2074         * sysdeps/unix/sysv/linux/configure: Regenerated.
2075         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
2076         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
2077         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
2078         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
2079         * README: Update reference to required Linux kernel version.
2080         * manual/install.texi (Linux): Update reference to required Linux
2081         kernel headers version.
2082         * INSTALL: Regenerated.
2083
2084         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
2085         header inclusion.
2086         [POSIX] (limits.h): Likewise.
2087         [POSIX] (math.h): Likewise.
2088         [POSIX] (sys/wait.h): Likewise.
2089         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
2090         function.
2091         [POSIX] (stddef.h): Do not allow header inclusion.
2092
2093 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2094
2095         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
2096
2097 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
2098
2099         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
2100         Return immediately after lll_futex_wake.
2101
2102 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2103
2104         [BZ #16791]
2105         * nscd/nscd-client.h (datahead_init_common): Initialize entire
2106         structure.
2107         (datahead_init_pos): Call datahead_init_common early.
2108         (datahead_init_neg): Likewise.
2109
2110         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
2111         datahead_init_neg): New functions.
2112         * nscd/aicache.c (addhstaiX): Use them.
2113         * nscd/grpcache.c (cache_addgr): Likewise.
2114         * nscd/hstcache.c (cache_addhst): Likewise.
2115         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2116         * nscd/netgroupcache.c (do_notfound): Likewise.
2117         (addgetnetgrentX): Likewise.
2118         (addinnetgrX): Likewise.
2119         * nscd/pwdcache.c (cache_addpw): Likewise.
2120         * nscd/servicescache.c (cache_addserv): Likewise.
2121
2122 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2123             Atsushi Onoe  <atsushi@onoe.org>
2124
2125         [BZ #14308]
2126         [BZ #12994]
2127         [BZ #13651]
2128         * resolv/res_query.c (__libc_res_nsearch): Return if at least
2129         one response is valid.
2130         * resolv/res_send.c (send_dg): Check for validity of other
2131         response if the current response is a referral.
2132
2133 2014-04-29  Steve Ellcey  <sellcey@mips.com>
2134
2135         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
2136
2137 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
2138
2139         [BZ #16823]
2140         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
2141         Always divide by positive zero when computing -Inf result.
2142         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
2143         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
2144
2145 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2146
2147         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
2148         FPSCR if value do not change.
2149         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2150         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
2151         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
2152         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
2153         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
2154         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
2155         function.
2156
2157 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
2158
2159         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
2160         * sysdeps/unix/sysv/linux/hppa: Move directory from
2161         ports/systeps/unix/sysv/linux/hppa.
2162         * README: Update listing for hppa-*-linux-gnu.
2163
2164 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
2165
2166         [BZ #16754]
2167         * manual/stdio.texi (Hook functions): Fix types of stream hook
2168         functions.
2169         [BZ #16854]
2170         * socket/sys/socket.h: Fix typo in comment.
2171
2172 2014-04-28  Wilco  <wdijkstr@arm.com>
2173
2174         * sysdeps/arm/fenv_private.h: New file.
2175         * sysdeps/arm/math_private.h: New file.
2176         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
2177
2178 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
2179
2180         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
2181         with __int128_t.
2182         (La_x86_64_retval): Likewise.
2183
2184 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
2185
2186         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
2187         fpsr if value didn't change.
2188         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
2189         to fpcr if value didn't change.
2190         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
2191         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
2192         fpsr or fpcr if value didn't change.
2193         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
2194         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
2195         fpcr if value didn't change.
2196         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
2197         to fpsr if value didn't change.
2198
2199 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2200
2201         * nptl/tst-sem3.c: Use test-skeleton.c
2202         (main): Rename to do_test.  Use return instead of
2203         exit.
2204         * nptl/tst-sem4.c: Use test-skeleton.c
2205         (main): Rename to do_test.
2206
2207 2014-04-22  David S. Miller  <davem@davemloft.net>
2208
2209         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
2210         (struct sigaction): New struct member __glibc_reserved0, change
2211         type of sa_flags to int.
2212
2213 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
2214
2215         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
2216         (COUNT_LEADING_ZEROS_0): Define for AArch64.
2217
2218 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2219
2220         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
2221         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
2222
2223 2014-04-22  Will Newton  <will.newton@linaro.org>
2224             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
2225
2226         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
2227         (__longjmp): Add longjmp and longjmp_target SystemTap
2228         probes.
2229         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
2230         (__sigsetjmp): Add setjmp SystemTap probe.
2231
2232 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
2233
2234         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
2235         match manual order.
2236
2237 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2238
2239         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
2240
2241         * sysdeps/powerpc/fpu/fenv_private.h
2242         (libc_feholdexcept_setroundl_ctx): Define to
2243         libc_feholdexcept_setround_ppc_ctx.
2244         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
2245         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
2246         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
2247         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
2248
2249 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
2250
2251         * sysdeps/aarch64/math-tests.h: New file.
2252
2253 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
2254
2255         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
2256         New.
2257         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2258         Check and set bit_AVX2_Usable.
2259         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
2260         macro.
2261         (bit_AVX2): Likewise.
2262         (index_AVX2_Usable): Likewise.
2263         (CPUID_AVX2): Likewise.
2264         (HAS_AVX2): Likewise.
2265
2266 2014-04-17  Will Newton  <will.newton@linaro.org>
2267
2268         * manual/setjmp.texi (System V contexts): Add note that
2269         calling setcontext on a context created by a call to a
2270         signal handler is undefined.  Update text to note that
2271         setcontext from a signal handler is possible but not
2272         recommended.
2273
2274         [BZ #16629]
2275         * stdlib/tst-setcontext.c: Include signal.h.
2276         (main): Check that the signal stack before and
2277         after swapcontext is the same.
2278
2279         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
2280         Re-implement to restore registers in user code and avoid
2281         rt_sigreturn system call.
2282
2283 2014-04-17  Wilco  <wdijkstr@arm.com>
2284
2285         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
2286         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
2287         * math/test-fenv.c: Skip exception trap tests on targets which only
2288         support non-stop mode.
2289
2290 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
2291             Wilco Dijkstra  <wilco.dijkstra@arm.com>
2292
2293         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
2294         (libc_feholdsetround_aarch64_ctx)
2295         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
2296         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
2297         (libc_feresetround_ctx, libc_feresetroundf_ctx)
2298         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
2299         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
2300         (libc_feresetround_noexl_ctx): Define.
2301
2302 2014-04-16  Richard Henderson  <rth@redhat.com>
2303
2304         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
2305
2306         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
2307         unwind tables.
2308
2309         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
2310         const from the non-libc, non-ldso copy.
2311
2312         * sysdeps/alpha/libm-test-ulps: Regenerate.
2313
2314 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
2315             Wilco Dijkstra  <wilco.dijkstra@arm.com>
2316
2317         * sysdeps/aarch64/fpu/math_private.h: New file.
2318
2319 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2320
2321         * sysdeps/aarch64/libm-test-ulps: Regenerate.
2322
2323 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
2324
2325         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
2326         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
2327         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2328         Intel MPX bound registers before _dl_profile_fixup.
2329         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
2330         registers after _dl_profile_fixup.  Save and restore bound
2331         registers bnd0/bnd1 when calling _dl_call_pltexit.
2332         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
2333         (LR_BND_OFFSET): Likewise.
2334         (LRV_BND0_OFFSET): Likewise.
2335         (LRV_BND1_OFFSET): Likewise.
2336
2337 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2338
2339         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
2340         to...
2341         * sysdeps/mach/hurd/i386/tls.h: ... here.
2342         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
2343         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
2344         fields.
2345
2346 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2347
2348         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
2349
2350 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
2351
2352         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
2353
2354 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
2355
2356         [BZ #14770]
2357         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
2358         * sysdeps/s390/configure: Regenerate.
2359
2360         [BZ #16824]
2361         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
2362         Set round-to-nearest internally to reduce error accumulation.
2363
2364 2014-04-16  Alan Modra  <amodra@gmail.com>
2365
2366         [BZ #16740]
2367         [BZ #16619]
2368         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
2369         * math/libm-test.inc (frexp_test_data): Add tests.
2370         * NEWS: Update fixed bug list.
2371
2372 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2373
2374         * benchtests/Makefile: Depend on libraries in build directory.
2375         (bench-math): Separate out math tests.
2376         (bench-pthread): Separate out pthread tests.
2377         (bench): Include math and pthread tests.
2378
2379 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
2380
2381         [BZ #16831]
2382         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
2383         _dl_debug_initialize.
2384
2385         * configure.ac: Remove SELinux header check.
2386         * configure: Regenerate.
2387         * nscd/selinux.c (perms): Array of const char* to permission names.
2388         (nscd_request_avc_has_perm): Call security_deny_unknown to find
2389         default policy. Call string_to_security_class and string_to_av_perm to
2390         translate strings. Enforce default policy and call avs_has_perm with
2391         results of translated strings.
2392
2393 2014-04-13  David S. Miller  <davem@davemloft.net>
2394
2395         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2396
2397 2014-04-12  Allan McRae  <allan@archlinux.org>
2398
2399         [BZ #16838]
2400         * manual/string.texi (Collation Functions): Fix qsort argument
2401         order in example.
2402         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
2403
2404 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
2405
2406         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
2407         Make the test a no-op if there are no exceptions defined.
2408
2409 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
2410
2411         * elf/Makefile (tests): make tst-dlopen-aout conditional on
2412         enable-hardcoded-path-in-tests
2413
2414 2014-04-11  Will Newton  <will.newton@linaro.org>
2415
2416         * benchtests/Makefile (extra-objs): Add json-lib.o.
2417         (bench-func): Tidy up JSON output.
2418         * benchtests/bench-skeleton.c: Include json-lib.h.
2419         (main): Use JSON library functions to do output of
2420         benchmark results.
2421         * benchtests/bench-timing-type.c (main): Output the
2422         timing type simply, leaving formatting to the user.
2423         * benchtests/json-lib.c: New file.
2424         * benchtests/json-lib.h: Likewise.
2425
2426 2014-04-11  Torvald Riegel  <triegel@redhat.com>
2427
2428         [BZ #15215]
2429         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
2430         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
2431         memory barriers.  Add comments.
2432         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
2433         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
2434         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
2435         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
2436         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
2437         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
2438
2439 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2440
2441         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
2442         * sysdeps/s390/s390-64/configure.ac: ... this ...
2443         * sysdeps/s390/configure.ac: ... to here.
2444         * sysdeps/s390/s390-32/configure: Delete file.
2445         * sysdeps/s390/s390-64/configure: Delete file.
2446         * sysdeps/s390/configure: Regenerate.
2447
2448 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
2449
2450         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
2451
2452 2014-04-11  Will Newton  <will.newton@linaro.org>
2453
2454         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
2455         to zero if it is not defined elsewhere.  (mtrim): Test
2456         the value of MALLOC_DEBUG with #if rather than #ifdef.
2457
2458 2014-04-10 Torvald Riegel  <triegel@redhat.com>
2459
2460         * benchtests/pthread_once-inputs: New file.
2461         * benchtests/pthread_once-source.c: New file.
2462         * benchtests/README: Update documentation.
2463
2464 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
2465             H.J. Lu  <hongjiu.lu@intel.com>
2466
2467         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
2468         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
2469         * sysdeps/x86_64/configure: Regenerated.
2470         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
2471         macro.
2472         (REGISTER_SAVE_RAX): Likewise.
2473         (REGISTER_SAVE_RCX): Likewise.
2474         (REGISTER_SAVE_RDX): Likewise.
2475         (REGISTER_SAVE_RSI): Likewise.
2476         (REGISTER_SAVE_RDI): Likewise.
2477         (REGISTER_SAVE_R8): Likewise.
2478         (REGISTER_SAVE_R9): Likewise.
2479         (REGISTER_SAVE_BND0): Likewise.
2480         (REGISTER_SAVE_BND1): Likewise.
2481         (REGISTER_SAVE_BND2): Likewise.
2482         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
2483         bound registers when calling _dl_fixup.
2484
2485 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2486
2487         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
2488         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
2489         of its definition.
2490         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
2491         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
2492         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
2493         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
2494         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
2495         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
2496         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
2497
2498 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
2499
2500         [BZ #15514]
2501         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
2502         pathconf(_PC_NAME_MAX).
2503
2504 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2505
2506         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
2507         Remove macro usage.
2508         (__PTHREAD_SPINS): Move definition to ...
2509         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
2510         (__PTHREAD_SPINS): ... here.
2511         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2512         (__PTHREAD_SPIN): Likewise.
2513         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
2514         (__PTHREAD_SPIN): Likewise.
2515         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
2516         (__PTHREAD_SPIN): Likewise.
2517         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
2518         (__PTHREAD_SPIN): Likewise.
2519         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
2520         (__PTHREAD_SPIN): Likewise.
2521         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
2522         (__PTHREAD_SPIN): Likewise.
2523         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
2524         (__PTHREAD_SPIN): Likewise.
2525         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
2526         (__PTHREAD_SPIN): Likewise.
2527         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
2528         (__PTHREAD_SPIN): Likewise.
2529         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
2530         (__PTHREAD_SPIN): Likewise.
2531         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
2532         (__PTHREAD_SPIN): Likewise.
2533         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
2534         (__PTHREAD_SPIN): Likewise.
2535
2536         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2537         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
2538         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
2539         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
2540         imply folder.
2541         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
2542         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2543         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
2544         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
2545         correct imply path.
2546         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
2547         strlen symbol for non multi-arch builds.
2548         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
2549         missing hidden_def and weak_alias.
2550
2551 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
2552
2553         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
2554
2555 2014-04-07  Will Newton  <will.newton@linaro.org>
2556
2557         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
2558         and contents.  [!_LIBC] Remove #ifndef and contents.
2559         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
2560         * string/memccpy.c (__memccpy): Use ANSI prototype.
2561         * string/memfrob.c (memfrob): Likewise.
2562         * string/strcoll.c (STRCOLL): Likewise.
2563         * string/strlen.c (strlen): Likewise.
2564         * string/strtok.c (STRTOK): Likewise.
2565         * string/strcat.c: Remove unused #include of memcopy.h.
2566         (strcat): Use ANSI prototype.
2567         * string/strchr.c: Remove unused #include of memcopy.h.
2568         (strchr): Use ANSI prototype.
2569         * string/strcmp.c: Remove unused #include of memcopy.h.
2570         (strcmp): Use ANSI prototype.
2571         * string/strcpy.c: Remove unused #include of memcopy.h.
2572         (strcpy): Use ANSI prototype.
2573
2574 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2575
2576         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
2577         * config.make.in (config-extra-cppflags): Set it from
2578         libc_extra_cppflags.
2579         * configure.ac (libc_extra_cflags): Make it accumulate over
2580         configure fragments.
2581         (libc_extra_cppflags): New flag.
2582         * configure. Regenerate.
2583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
2584         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
2585         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
2586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
2587
2588         [BZ #16815]
2589         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
2590         result for FE_DOWNWARD rounding mode.
2591         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
2592         Likewise.
2593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2594
2595 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
2596
2597         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
2598         in function argument name.
2599
2600 2014-04-03  David Svoboda  <svoboda@cert.org>
2601
2602         [BZ #5666]
2603         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
2604         explicitly.
2605
2606 2014-04-03  Roland McGrath  <roland@hack.frob.com>
2607
2608         * elf/dl-unmap-segments.h: New file.
2609         * sysdeps/generic/ldsodefs.h
2610         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
2611         * elf/dl-close.c: Include <dl-unmap-segments.h>.
2612         * elf/dl-fptr.c: Likewise.
2613         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
2614         * sysdeps/aarch64/tlsdesc.c: Likewise.
2615         * sysdeps/arm/tlsdesc.c: Likewise.
2616         * sysdeps/i386/tlsdesc.c: Likewise.
2617         * sysdeps/tile/dl-runtime.c: Likewise.
2618         * sysdeps/x86_64/tlsdesc.c: Likewise.
2619         * elf/dl-load.h: New file.
2620         * elf/dl-load.c: Include it.
2621         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
2622         Macros moved to dl-load.h.
2623         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
2624         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
2625         Use _dl_unmap_segments in place of __munmap.
2626         Break out segment-mapping loop into ...
2627         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
2628
2629 2014-04-03  Will Newton  <will.newton@linaro.org>
2630
2631         * elf/dl-lookup.c (do_lookup_x): Remove comment
2632         referring to nested function and move variable
2633         declarations down to before first use.
2634
2635 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
2636
2637         [BZ #16799]
2638         [BZ #16800]
2639         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
2640         with 0 numerator.
2641         * math/s_catanf.c (__catanf): Likewise.
2642         * math/s_catanh.c (__catanh): Likewise.
2643         * math/s_catanhf.c (__catanhf): Likewise.
2644         * math/s_catanhl.c (__catanhl): Likewise.
2645         * math/s_catanl.c (__catanl): Likewise.
2646         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
2647         by positive zero when computing -Inf result.
2648         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
2649         (catanh_test): Likewise.
2650         * sysdeps/i386/fpu/libm-test-ulps: Update.
2651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2652
2653         [BZ #16789]
2654         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
2655         instead of using underflowing value in computing result.
2656         * math/s_clog10.c (__clog10): Likewise.
2657         * math/s_clog10f.c (__clog10f): Likewise.
2658         * math/s_clog10l.c (__clog10l): Likewise.
2659         * math/s_clogf.c (__clogf): Likewise.
2660         * math/s_clogl.c (__clogl): Likewise.
2661         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
2662         (clog10_test): Likewise.
2663         * sysdeps/i386/fpu/libm-test-ulps: Update.
2664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2665
2666 2014-04-02  Alan Modra  <amodra@gmail.com>
2667
2668         [BZ #16739]
2669         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
2670         output when value is near a power of two.  Use int64_t for lx and
2671         remove casts.  Use decimal rather than hex exponent constants.
2672         Don't use long double multiplication when double will suffice.
2673         * math/libm-test.inc (nextafter_test_data): Add tests.
2674         * NEWS: Add 16739 and 16786 to bug list.
2675
2676         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
2677
2678         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
2679
2680 2014-04-01  Will Newton  <will.newton@linaro.org>
2681
2682         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
2683         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
2684
2685 2014-04-01  Florian Weimer  <fweimer@redhat.com>
2686
2687         [BZ #13347]
2688         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
2689         * nptl/tst-setuid2.c: New file.
2690         * nptl/Makefile (xtests): Add tst-setuid2.
2691
2692 2014-04-01  Alan Modra  <amodra@gmail.com>
2693
2694         [BZ #16786]
2695         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
2696
2697 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
2698
2699         [BZ #6803]
2700         [BZ #6804]
2701         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
2702         set errno as appropriate.
2703         * math/w_scalbf.c (__scalbf): Likewise.
2704         * math/w_scalbl.c (__scalbl): Likewise.
2705         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
2706         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
2707         * math/libm-test.inc (scalb_test_data): Add errno expectations.
2708         Add more NaN tests.
2709
2710         [BZ #16349]
2711         * math/w_atan2.c: Include <errno.h>.
2712         (__atan2): Set errno for result underflowing to zero.
2713         * math/w_atan2f.c: Include <errno.h>.
2714         (__atan2f): Set errno for result underflowing to zero.
2715         * math/w_atan2l.c: Include <errno.h>.
2716         (__atan2l): Set errno for result underflowing to zero.
2717         * math/auto-libm-test-in: Don't allow missing errno for some atan2
2718         tests.
2719         * math/auto-libm-test-out: Regenerated.
2720
2721 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2722
2723         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
2724         Encode instruction correctly in little endian.
2725         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
2726         Likewise.
2727         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
2728         Likewise.
2729         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
2730         Likewise.
2731         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
2732         Likewise.
2733
2734 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
2735
2736         [BZ #9894]
2737         * sysdeps/unix/sysv/linux/kernel-features.h
2738         [__sparc__ && !__arch64__ && !__sparc_v9__]
2739         (__ASSUME_SET_ROBUST_LIST): Do not define.
2740         [__sparc__ && !__arch64__ && !__sparc_v9__]
2741         (__ASSUME_FUTEX_LOCK_PI): Likewise.
2742         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
2743         Likewise.
2744         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2745         (__ASSUME_FUTEX_LOCK_PI): Undefine.
2746         (__ASSUME_REQUEUE_PI): Likewise.
2747         (__ASSUME_SET_ROBUST_LIST): Likewise.
2748         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2749         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
2750         Undefine.
2751         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2752         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
2753         Likewise.
2754         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
2755         Likewise.
2756         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
2757         Likewise.
2758         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2759         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
2760         Undefine.
2761         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
2762         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
2763         Likewise.
2764
2765         [BZ #16648]
2766         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2767         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
2768         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
2769
2770 2014-03-31  Will Newton  <will.newton@linaro.org>
2771
2772         * benchtests/Makefile (bench): Add ffs and ffsll to list
2773         of tests.
2774         * benchtests/ffs-inputs: New file.
2775         * benchtests/ffsll-inputs: Likewise.
2776
2777 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
2778
2779         [BZ #16770]
2780         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
2781         too large before casting to int.
2782         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
2783         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
2784         * math/libm-test.inc (scalb_test_data): Add more tests.
2785
2786 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2787
2788         * benchtests/Makefile (DETAILED_OPT): New make option.
2789         (bench-func): Run benchmark program with -d if DETAILED_OPT is
2790         set.
2791         * benchtests/bench-skeleton.c: Include stdbool.h.
2792         (main): Store and print timings per input.
2793         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
2794         member to each argument value.
2795         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
2796         (_print_arg_data): Initialize per-input timing to 0.
2797
2798         * benchtests/Makefile (timing-type): New binary.
2799         (bench-clean): Also remove bench-timing-type.
2800         (bench): New target for timing-type.
2801         (bench-func): Print output in JSON format.
2802         * benchtests/bench-skeleton.c (main): Print output in JSON
2803         format.
2804         * benchtests/bench-timing-type.c: New file.
2805         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
2806         (TIMING_PRINT_STATS): Remove.
2807         * benchtests/scripts/bench.py (_print_arg_data): Store variant
2808         name separately.
2809
2810         * benchtests/bench-modf.c: Remove.
2811         * benchtests/modf-inputs: New inputs file.
2812
2813 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
2814
2815         [BZ #16362]
2816         * math/s_clog10.c (M_PI_LOG10E): New macro.
2817         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
2818         imaginary parts are 0.
2819         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
2820         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
2821         imaginary parts are 0.
2822         * math/s_clog10l.c (M_PI_LOG10El): New macro.
2823         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
2824         imaginary parts are 0.
2825         * math/libm-test.inc (clog10_test_data): Update expected results
2826         for when real and imaginary parts are 0.
2827
2828 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
2829
2830         * elf/dl-load.c: Finish conversion of __builtin_expect into
2831         __glibc_{un}likely.
2832
2833 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
2834
2835         [BZ #16348]
2836         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
2837         1+x for argument with exponent below -67.
2838         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
2839         Likewise.
2840         * math/auto-libm-test-in: Add more tests of exp.
2841         * math/auto-libm-test-out: Regenerated.
2842
2843 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2844
2845         [BZ #16759]
2846         * inet/getnetgrent_r.c (get_nonempty_val): New function.
2847         (nscd_getnetgrent): Use it.
2848
2849         [BZ #16760]
2850         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
2851         of stpcpy.
2852
2853 2014-03-27  Andi Kleen  <ak@linux.intel.com>
2854
2855         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
2856         (lll_robust_lock, lll_cond_lock, lll_timedlock)
2857         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
2858         (lll_robust_unlock): Remove out of line section. Use cfi
2859         intrinsics.
2860         (LLL_STUB_UNWIND_INFO*): Remove.
2861         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
2862         (lll_robust_lock, lll_cond_lock, lll_timedlock)
2863         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
2864         (lll_robust_unlock): Remove out of line section. Use cfi
2865         intrinsics.
2866         (LLL_STUB_UNWIND_INFO*): Remove.
2867
2868 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2869
2870         [BZ #16758]
2871         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
2872         blank values.
2873
2874 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
2875
2876         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
2877
2878 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
2879
2880         [BZ #16198]
2881         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
2882         fnstenv.
2883         * math/test-fenv-preserve.c: New file.
2884         * math/Makefile (tests): Add test-fenv-preserve.
2885
2886 2014-03-26  Will Newton <will.newton@linaro.org>
2887
2888         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
2889
2890 2014-03-25  Roland McGrath  <roland@hack.frob.com>
2891
2892         * scripts/versionlist.awk: Partition the version sets and emit all
2893         GLIBC_* (sorted) before all others (sorted).
2894
2895 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
2896
2897         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
2898         GLIBC_2.2.5 version.
2899
2900 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2901
2902         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
2903         calls.
2904
2905         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
2906         previous change.
2907
2908         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2909
2910 2014-03-25  Andreas Schwab  <schwab@suse.de>
2911
2912         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
2913         label to be used after in6ailist is initialized.
2914
2915 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2916
2917         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
2918         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
2919
2920 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
2921
2922         [BZ #16357]
2923         [BZ #16599]
2924         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
2925         min_plus_half.
2926         (fp_formats): Update initializers.
2927         (init_fp_formats): Initialize new field.
2928         (output_for_one_input_case): Allow underflow for results up to
2929         min_plus_half.
2930         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
2931         * math/auto-libm-test-in: Don't mark some underflows from asin and
2932         atanh as spurious.
2933         * math/auto-libm-test-out: Regenerated.
2934         * sysdeps/i386/fpu/libm-test-ulps: Update.
2935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2936
2937 2014-03-25  Andreas Schwab  <schwab@suse.de>
2938
2939         * libio/Makefile (tst-ftell-partial-wide-ENV)
2940         (tst-ftell-active-handler-ENV): Define.
2941
2942 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
2943
2944         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
2945
2946 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
2947
2948         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
2949
2950 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
2951
2952         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
2953         * sysdeps/x86_64/fpu/multiarch/e_exp.c
2954         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
2955
2956 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
2957
2958         [BZ #16634]
2959         * elf/dl-load.c (open_verify): Add mode parameter.
2960         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
2961         (open_path): Change from boolean 'secure' to complete flag 'mode'
2962         (_dl_map_object): Adjust.
2963         * elf/Makefile (tests): Add tst-dlopen-aout.
2964         * elf/tst-dlopen-aout.c: New test.
2965
2966 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
2967
2968         [BZ #16714]
2969         * sysdeps/unix/sysv/linux/s390/bits/stat.h
2970         (struct stat): Rename member pad0 to __glibc_reserved0.
2971
2972         [BZ #16712]
2973         * sysdeps/s390/s390-32/bits/wordsize.h
2974         (__WORDSIZE32_SIZE_ULONG): New define.
2975         * sysdeps/s390/s390-64/bits/wordsize.h
2976         (__WORDSIZE32_SIZE_ULONG): Likewise.
2977         * sysdeps/generic/stdint.h (SIZE_MAX):
2978         Define as UL if __WORDSIZE32_SIZE_ULONG.
2979
2980         [BZ #16713]
2981         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
2982         (__glibc_reserved0): New variable.
2983         (sa_flags): Change type to int.
2984
2985         * posix/Makefile (before-compile): Use += before-compile instead
2986         of a :=.
2987
2988         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2989         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
2990
2991 2014-03-20  Andreas Schwab  <schwab@suse.de>
2992
2993         [BZ #16743]
2994         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
2995         non-matching result from nscd.
2996
2997 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2998
2999         * scripts/bench.py: Moved to ...
3000         * benchtests/scripts/bench.py: ... here.
3001         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
3002
3003 2014-03-24  Andreas Schwab  <schwab@suse.de>
3004
3005         [BZ #16002]
3006         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
3007         alloca_account and account alloca use for struct in6ailist.
3008
3009 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
3010
3011         [BZ #16284]
3012         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
3013         rounding mode to recompute results that overflow to infinity or
3014         underflow to zero.
3015         * math/auto-libm-test-in: Don't mark tests as expected to fail for
3016         bug 16284.
3017         * math/auto-libm-test-out: Regenerated.
3018         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
3019         (ccosh_test): Likewise.
3020         (csin_test_data): Use plus_oflow.
3021         (csin_test): Use ALL_RM_TEST.
3022         (csinh_test_data): Use plus_oflow.
3023         (csinh_test): Use ALL_RM_TEST.
3024         * sysdeps/i386/fpu/libm-test-ulps: Update.
3025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3026
3027 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
3028
3029         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
3030         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
3031         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
3032
3033         [BZ #16731]
3034         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
3035         when x - 1 is zero.
3036         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
3037         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
3038         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
3039         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
3040         argument is 1.
3041         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
3042         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
3043         zero.
3044         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
3045         * sysdeps/i386/fpu/libm-test-ulps: Update.
3046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3047
3048 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3049
3050         * scripts/bench.pl: Remove file.
3051         * scripts/bench.py: New benchmark script.
3052         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
3053         * benchtests/README: Mention python dependency.
3054         * scripts/pylintrc: New file.
3055         * scripts/pylint: New file.
3056
3057         * bits/mathdef.h: Use #ifdef instead of #if.
3058         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
3059         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
3060         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
3061         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
3062         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
3063         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
3064
3065 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3066             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3067
3068         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
3069         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
3070         and strpbrk-ppc64 objects.
3071         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3072         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
3073         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
3074         multiarch strpbrk for POWER7.
3075         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
3076         multiarch strpbrk for PPC64.
3077         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
3078         ifunc selector.
3079         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
3080         strpbrk for POWER7.
3081
3082 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
3083
3084         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
3085         (atan_test): Likewise.
3086         (atanh_test_data): Use NO_TEST_INLINE for two tests.
3087         (atanh_test): Use ALL_RM_TEST.
3088         (atan2_test_data): Likewise.
3089         (cabs_test): Likewise.
3090         (cacosh_test): Likewise.
3091         (carg_test): Likewise.
3092         (casin_test): Likewise.
3093         (casinh_test): Likewise.
3094         (cbrt_test): Likewise.
3095         (csqrt_test): Likewise.
3096         (erf_test): Likewise.
3097         (erfc_test): Likewise.
3098         (pow10_test): Likewise.
3099         (exp2_test): Likewise.
3100         (hypot_test): Likewise.
3101         (j0_test): Likewise.
3102         (j1_test): Likewise.
3103         (lgamma_test): Likewise.
3104         (gamma_test): Likewise.
3105         (sincos_test): Likewise.
3106         (tanh_test): Likewise.
3107         (y0_test): Likewise.
3108         (y1_test): Likewise.
3109         * sysdeps/i386/fpu/libm-test-ulps: Update.
3110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3111
3112 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3113
3114         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
3115         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
3116         and strcspn-ppc64 objects.
3117         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3118         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
3119         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
3120         multiarch strcspn for POWER7.
3121         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
3122         multiarch strcspn for PPC64.
3123         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
3124         ifunc selector.
3125         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
3126         strcspn for POWER7.
3127
3128 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
3129
3130         * math/gen-libm-test.pl (generate_testfile): Expect only function
3131         name as argument to AUTO_TESTS_* and pass results for all rounding
3132         modes to parse_args.
3133         (parse_auto_input): Separate inputs of automatic tests from
3134         outputs before storing in %auto_tests.
3135         * math/libm-test.inc (acos_test_data): Update call to
3136         AUTO_TESTS_f_f.
3137         (acos_test): Use ALL_RM_TEST.
3138         (acos_tonearest_test_data): Remove.
3139         (acos_test_tonearest): Likewise.
3140         (acos_towardzero_test_data): Likewise.
3141         (acos_test_towardzero): Likewise.
3142         (acos_downward_test_data): Likewise.
3143         (acos_test_downward): Likewise.
3144         (acos_upward_test_data): Likewise.
3145         (acos_test_upward): Likewise.
3146         (acosh_test_data): Update call to AUTO_TESTS_f_f.
3147         (asin_test_data): Likewise.
3148         (asin_test): Use ALL_RM_TEST.
3149         (asin_tonearest_test_data): Remove.
3150         (asin_test_tonearest): Likewise.
3151         (asin_towardzero_test_data): Likewise.
3152         (asin_test_towardzero): Likewise.
3153         (asin_downward_test_data): Likewise.
3154         (asin_test_downward): Likewise.
3155         (asin_upward_test_data): Likewise.
3156         (asin_test_upward): Likewise.
3157         (asinh_test_data): Update call to AUTO_TESTS_f_f.
3158         (atan_test_data): Likewise.
3159         (atanh_test_data): Likewise.
3160         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
3161         (cabs_test_data): Update call to AUTO_TESTS_c_f.
3162         (carg_test_data): Likewise.
3163         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
3164         (ccos_test_data): Update call to AUTO_TESTS_c_c.
3165         (ccosh_test_data): Likewise.
3166         (cexp_test_data): Likewise.
3167         (clog_test_data): Likewise.
3168         (clog10_test_data): Likewise.
3169         (cos_test_data): Update call to AUTO_TESTS_f_f.
3170         (cos_test): Use ALL_RM_TEST.
3171         (cos_tonearest_test_data): Remove.
3172         (cos_test_tonearest): Likewise.
3173         (cos_towardzero_test_data): Likewise.
3174         (cos_test_towardzero): Likewise.
3175         (cos_downward_test_data): Likewise.
3176         (cos_test_downward): Likewise.
3177         (cos_upward_test_data): Likewise.
3178         (cos_test_upward): Likewise.
3179         (cosh_test_data): Update call to AUTO_TESTS_f_f.
3180         (cosh_test): Use ALL_RM_TEST.
3181         (cosh_tonearest_test_data): Remove.
3182         (cosh_test_tonearest): Likewise.
3183         (cosh_towardzero_test_data): Likewise.
3184         (cosh_test_towardzero): Likewise.
3185         (cosh_downward_test_data): Likewise.
3186         (cosh_test_downward): Likewise.
3187         (cosh_upward_test_data): Likewise.
3188         (cosh_test_upward): Likewise.
3189         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
3190         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
3191         (ctan_test_data): Likewise.
3192         (ctan_test): Use ALL_RM_TEST.
3193         (ctan_tonearest_test_data): Remove.
3194         (ctan_test_tonearest): Likewise.
3195         (ctan_towardzero_test_data): Likewise.
3196         (ctan_test_towardzero): Likewise.
3197         (ctan_downward_test_data): Likewise.
3198         (ctan_test_downward): Likewise.
3199         (ctan_upward_test_data): Likewise.
3200         (ctan_test_upward): Likewise.
3201         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
3202         (ctanh_test): Use ALL_RM_TEST.
3203         (ctanh_tonearest_test_data): Remove.
3204         (ctanh_test_tonearest): Likewise.
3205         (ctanh_towardzero_test_data): Likewise.
3206         (ctanh_test_towardzero): Likewise.
3207         (ctanh_downward_test_data): Likewise.
3208         (ctanh_test_downward): Likewise.
3209         (ctanh_upward_test_data): Likewise.
3210         (ctanh_test_upward): Likewise.
3211         (erf_test_data): Update call to AUTO_TESTS_f_f.
3212         (erfc_test_data): Likewise.
3213         (exp_test_data): Likewise.
3214         (exp_test): Use ALL_RM_TEST.
3215         (exp_tonearest_test_data): Remove.
3216         (exp_test_tonearest): Likewise.
3217         (exp_towardzero_test_data): Likewise.
3218         (exp_test_towardzero): Likewise.
3219         (exp_downward_test_data): Likewise.
3220         (exp_test_downward): Likewise.
3221         (exp_upward_test_data): Likewise.
3222         (exp_test_upward): Likewise.
3223         (exp10_test_data): Update call to AUTO_TESTS_f_f.
3224         (exp10_test): Use ALL_RM_TEST.
3225         (exp10_tonearest_test_data): Remove.
3226         (exp10_test_tonearest): Likewise.
3227         (exp10_towardzero_test_data): Likewise.
3228         (exp10_test_towardzero): Likewise.
3229         (exp10_downward_test_data): Likewise.
3230         (exp10_test_downward): Likewise.
3231         (exp10_upward_test_data): Likewise.
3232         (exp10_test_upward): Likewise.
3233         (exp2_test_data): Update call to AUTO_TESTS_f_f.
3234         (expm1_test_data): Likewise.
3235         (expm1_test): Use ALL_RM_TEST.
3236         (expm1_tonearest_test_data): Remove.
3237         (expm1_test_tonearest): Likewise.
3238         (expm1_towardzero_test_data): Likewise.
3239         (expm1_test_towardzero): Likewise.
3240         (expm1_downward_test_data): Likewise.
3241         (expm1_test_downward): Likewise.
3242         (expm1_upward_test_data): Likewise.
3243         (expm1_test_upward): Likewise.
3244         (fma_test_data): Update call to AUTO_TESTS_fff_f.
3245         (fma_test): Use ALL_RM_TEST.
3246         (fma_towardzero_test_data): Remove.
3247         (fma_test_towardzero): Likewise.
3248         (fma_downward_test_data): Likewise.
3249         (fma_test_downward): Likewise.
3250         (fma_upward_test_data): Likewise.
3251         (fma_test_upward): Likewise.
3252         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
3253         (j0_test_data): Update call to AUTO_TESTS_f_f.
3254         (j1_test_data): Likewise.
3255         (jn_test_data): Update call to AUTO_TESTS_if_f.
3256         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
3257         (log_test_data): Update call to AUTO_TESTS_f_f.
3258         (log10_test_data): Likewise.
3259         (log1p_test_data): Likewise.
3260         (log2_test_data): Likewise.
3261         (pow_test_data): Update call to AUTO_TESTS_ff_f.
3262         (pow_tonearest_test_data): Likewise.
3263         (sin_test_data): Update call to AUTO_TESTS_f_f.
3264         (sin_test): Use ALL_RM_TEST.
3265         (sin_tonearest_test_data): Remove.
3266         (sin_test_tonearest): Likewise.
3267         (sin_towardzero_test_data): Likewise.
3268         (sin_test_towardzero): Likewise.
3269         (sin_downward_test_data): Likewise.
3270         (sin_test_downward): Likewise.
3271         (sin_upward_test_data): Likewise.
3272         (sin_test_upward): Likewise.
3273         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
3274         (sinh_test_data): Update call to AUTO_TESTS_f_f.
3275         (sinh_test): Use ALL_RM_TEST.
3276         (sinh_tonearest_test_data): Remove.
3277         (sinh_test_tonearest): Likewise.
3278         (sinh_towardzero_test_data): Likewise.
3279         (sinh_test_towardzero): Likewise.
3280         (sinh_downward_test_data): Likewise.
3281         (sinh_test_downward): Likewise.
3282         (sinh_upward_test_data): Likewise.
3283         (sinh_test_upward): Likewise.
3284         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
3285         (sqrt_test): Use ALL_RM_TEST.
3286         (sqrt_tonearest_test_data): Remove.
3287         (sqrt_test_tonearest): Likewise.
3288         (sqrt_towardzero_test_data): Likewise.
3289         (sqrt_test_towardzero): Likewise.
3290         (sqrt_downward_test_data): Likewise.
3291         (sqrt_test_downward): Likewise.
3292         (sqrt_upward_test_data): Likewise.
3293         (sqrt_test_upward): Likewise.
3294         (tan_test_data): Update call to AUTO_TESTS_f_f.
3295         (tan_test): Use ALL_RM_TEST.
3296         (tan_tonearest_test_data): Remove.
3297         (tan_test_tonearest): Likewise.
3298         (tan_towardzero_test_data): Likewise.
3299         (tan_test_towardzero): Likewise.
3300         (tan_downward_test_data): Likewise.
3301         (tan_test_downward): Likewise.
3302         (tan_upward_test_data): Likewise.
3303         (tan_test_upward): Likewise.
3304         (tanh_test_data): Update call to AUTO_TESTS_f_f.
3305         (tgamma_test_data): Likewise.
3306         (y0_test_data): Likewise.
3307         (y1_test_data): Likewise.
3308         (yn_test_data): Update call to AUTO_TESTS_if_f.
3309         (main): Do not call removed functions.
3310
3311 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
3312
3313         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
3314         (ldexp_test_data): Remove.
3315         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
3316         scalbn_test_data.
3317         (scalb_test): Use ALL_RM_TEST.
3318
3319 2014-03-19  Andreas Schwab  <schwab@suse.de>
3320
3321         * nscd/nscd.service: Also invalidate netgroup cache on reload.
3322
3323 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
3324
3325         [BZ #16649]
3326         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3327         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
3328         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
3329         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3330         (__ASSUME_PREADV): Undefine.
3331         (__ASSUME_PWRITEV): Likewise.
3332
3333 2014-03-18  Roland McGrath  <roland@hack.frob.com>
3334
3335         * bits/mman-linux.h: Add comment about non-Linux use.
3336         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
3337         bits/mman-linux.h resting place.
3338
3339         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
3340         * bits/mman-linux.h: ... here.
3341
3342 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3343
3344         * conform/conformtest.pl: Add standard definition when calling C
3345         preprocessor on data files.
3346         (checknamespace): Remove unused variable.
3347
3348 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
3349
3350         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
3351         minus_oflow, plus_uflow and minus_uflow in expected results.
3352         * math/libm-test.inc (scalbn_test_data): Add more tests of
3353         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
3354         minus_uflow.
3355         (scalbn_test): Use ALL_RM_TEST.
3356         (scalbln_test_data): Add more tests of negative arguments.  Use
3357         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
3358         (scalbln_test): Use ALL_RM_TEST.
3359
3360 2014-03-18  Roland McGrath  <roland@hack.frob.com>
3361
3362         * scripts/abilist.awk: Ignore symbols marked with .hidden.
3363
3364 2014-03-18  Will Newton  <will.newton@linaro.org>
3365
3366         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
3367         inaccurate comment.
3368
3369 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
3370
3371         * Makerules [!subdir] (check-abi): Exit with error status if a
3372         test failed.
3373
3374 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
3375
3376         * math/libm-test.inc (nearbyint_test_data): Include all tests used
3377         for rint.  Include results for all rounding modes.
3378         (nearbyint_test): Use ALL_RM_TEST.
3379         (rint_test_data): Include all tests used for nearbyint.
3380
3381 2014-03-17  Will Newton  <will.newton@linaro.org>
3382
3383         * nptl/sysdeps/pthread/pthread.h: Revert previous
3384         change.
3385
3386         * sysdeps/generic/ldsodefs.h: Revert previous
3387         change.
3388
3389         * libio/genops.c: Revert previous change.
3390         * libio/libioP.h: Likewise.
3391         * stdio-common/vfprintf.c: Likewise.
3392
3393         * sysdeps/generic/math_private.h: Revert previous
3394         change.
3395
3396         * sysdeps/generic/math_private.h: Check whether
3397         HAVE_RM_CTX is defined with #ifdef rather
3398         than #if.
3399
3400         * argp/argp-fmtstream.h: Check whether
3401         __STRICT_ANSI__ is defined with #ifdef rather
3402         than #if.
3403         * argp/argp.h: Likewise.
3404
3405         * libio/genops.c: Check whether
3406         _IO_JUMPS_OFFSET is defined with #ifdef rather
3407         than #if.
3408         * libio/libioP.h: Likewise.
3409         * stdio-common/vfprintf.c: Likewise.
3410
3411         * sysdeps/generic/ldsodefs.h: Check whether
3412         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
3413         than #if.
3414
3415         * nptl/sysdeps/pthread/pthread.h: Check
3416         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
3417         its value.
3418
3419 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
3420
3421         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
3422         setting O_APPEND.
3423         * libio/tst-ftell-active-handler.c (do_append_test): Add a
3424         test case.
3425
3426         [BZ #16680]
3427         * libio/fileops.c (_IO_file_open): Seek to end of file but
3428         don't cache the offset.
3429         (get_file_offset): Remove function.
3430         (do_ftell): Use cached offset when available.
3431         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
3432         don't cache the offset.
3433         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
3434         case.
3435         (do_one_test): Call it.
3436         (do_ftell_test): Fix up expected old offset for a+ mode.
3437         * libio/wfileops.c (do_ftell_wide): Used cached offset when
3438         available.
3439
3440         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
3441         up test status with function return status.
3442         (do_write_test): Likewise.
3443         (do_append_test): Likewise.
3444
3445         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
3446         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
3447         Remove.
3448
3449 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
3450
3451         * math/gen-libm-test.pl (parse_args): Handle results specified for
3452         each rounding mode separately.
3453         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
3454         tests and results from lrint_tonearest_test_data,
3455         lrint_towardzero_test_data, lrint_downward_test_data and
3456         lrint_upward_test_data.
3457         (lrint_test): Use ALL_RM_TEST.
3458         (lrint_tonearest_test_data): Remove.
3459         (lrint_test_tonearest): Likewise.
3460         (lrint_towardzero_test_data): Likewise.
3461         (lrint_test_towardzero): Likewise.
3462         (lrint_downward_test_data): Likewise.
3463         (lrint_test_downward): Likewise.
3464         (lrint_upward_test_data): Likewise.
3465         (lrint_test_upward): Likewise.
3466         (llrint_test_data): Merge in per-rounding-mode tests and results
3467         from llrint_tonearest_test_data, llrint_towardzero_test_data,
3468         llrint_downward_test_data and llrint_upward_test_data.
3469         (llrint_test): Use ALL_RM_TEST.
3470         (llrint_tonearest_test_data): Remove.
3471         (llrint_test_tonearest): Likewise.
3472         (llrint_towardzero_test_data): Likewise.
3473         (llrint_test_towardzero): Likewise.
3474         (llrint_downward_test_data): Likewise.
3475         (llrint_test_downward): Likewise.
3476         (llrint_upward_test_data): Likewise.
3477         (llrint_test_upward): Likewise.
3478         (rint_test_data): Merge in per-rounding-mode tests and results
3479         from rint_tonearest_test_data, rint_towardzero_test_data,
3480         rint_downward_test_data and rint_upward_test_data.  Add
3481         per-rounding-mode results for tests not in those arrays.
3482         (rint_test): Use ALL_RM_TEST.
3483         (rint_tonearest_test_data): Remove.
3484         (rint_test_tonearest): Likewise.
3485         (rint_towardzero_test_data): Likewise.
3486         (rint_test_towardzero): Likewise.
3487         (rint_downward_test_data): Likewise.
3488         (rint_test_downward): Likewise.
3489         (rint_upward_test_data): Likewise.
3490         (rint_test_upward): Likewise.
3491         (main): Don't call removed functions.
3492
3493 2014-03-14  Roland McGrath  <roland@hack.frob.com>
3494
3495         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
3496         "Compiled on ..." crapola.  It is anti-useful.
3497
3498 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
3499
3500         * scripts/evaluate-test.sh: Handle fourth argument to determine
3501         whether test run should stop on failure.
3502         * Makeconfig (stop-on-test-failure): New variable.
3503         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
3504         $(stop-on-test-failure).
3505         * Makefile (tests): Give a summary of results from testing and
3506         exit with failure status if they include an ERROR or FAIL.
3507         (xtests): Likewise.
3508         * manual/install.texi (Configuring and compiling): Mention
3509         stop-on-test-failure=y.
3510         * INSTALL: Regenerated.
3511
3512 2014-03-14  Roland McGrath  <roland@hack.frob.com>
3513
3514         * scripts/versionlist.awk: New file.
3515         * Makerules [$(build-shared) = yes]
3516         (postclean-generated): Add Versions.def, not Versions.def.v and
3517         Versions.def.v.i.
3518         ($(common-objpfx)Versions.def.v.i): Target removed.
3519         ($(common-objpfx)Versions.def): New target.
3520         ($(common-objpfx)Versions.all): Depend on that rather that
3521         $(common-objpfx)Versions.def.v.
3522         * Versions.def: File removed.
3523
3524         * Makeconfig (+gccwarn): Add -Wundef.
3525         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
3526         a dl-sysdep.h breaking its contract.
3527         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
3528         * include/stackinfo.h: New file.
3529         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
3530         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
3531         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
3532         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
3533         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
3534         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
3535         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3536         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3537         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3538         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3539         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3540         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
3541         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3542         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3543         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
3544
3545 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3546
3547         [BZ #16707]
3548         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
3549         implementation.
3550         * math/libm-test.inc (round_test_data): Add more tests.
3551
3552         [BZ #16706]
3553         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
3554         implementation.
3555         * math/libm-test.inc (nearbyint_test_data): Add more tests.
3556
3557         [BZ #16701]
3558         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
3559         implementation.
3560         * math/libm-test.inc (ceil_test_data): Add more tests.
3561
3562         * math/libm-test.inc (trunc_test_data): Add more tests related to
3563         BZ#16414.
3564
3565 2014-03-14  Roland McGrath  <roland@hack.frob.com>
3566
3567         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
3568         with #if rather than #ifdef.
3569         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
3570
3571 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
3572
3573         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
3574         first.  Disable AVX-512 GCC support if assembler doesn't support
3575         it.
3576         * sysdeps/x86_64/configure: Regenerated.
3577
3578 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
3579
3580         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
3581         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
3582         (__old_pthread_attr_setstack): Likewise.
3583         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
3584         [!_STACK_GROWS_DOWN]: Likewise.
3585
3586 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
3587
3588         * config.make.in (have-bash2): Delete.
3589         * configure.ac (libc_cv_have_bash2): Delete.
3590         * configure: Regenerate.
3591         * elf/Makefile (common-ldd-rewrite): Rename to ...
3592         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
3593         (sh-ldd-rewrite): Delete.
3594         (bash-ldd-rewrite): Delete.
3595         (have-bash2): Delete checks.
3596         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
3597         ldd-rewrite.
3598
3599         * config.make.in (have-ksh): Delete.
3600         (KSH): Delete.
3601         * configure.ac (libc_cv_have_ksh): Delete.
3602         * configure: Regenerate.
3603
3604         * elf/Makefile: Delete $(have-ksh) check.
3605         ($(objpfx)sotruss): Change KSH to BASH.
3606         * elf/sotruss.ksh: Rename to ...
3607         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
3608         function style to match POSIX.  Drop ksh vim mode setting.
3609
3610         * manual/time.texi (Specifying the Time Zone with TZ): Change
3611         Tuesday to Thursday.
3612
3613         * debug/tst-longjmp_chk2.c: Update header comment.
3614         (stackoverflow_handler): Add comment.  Call assert on pass value.
3615
3616 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
3617
3618         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
3619         (HAVE_AVX512_ASM_SUPPORT): Likewise.
3620         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
3621         (La_x86_64_vector): Add zmm.
3622         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
3623         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
3624         ($(objpfx)tst-audit10): New target.
3625         ($(objpfx)tst-audit10.out): Likewise.
3626         (tst-audit10-ENV): New.
3627         (AVX512-CFLAGS): Likewise.
3628         (CFLAGS-tst-audit10.c): Likewise.
3629         (CFLAGS-tst-auditmod10a.c): Likewise.
3630         (CFLAGS-tst-auditmod10b.c): Likewise.
3631         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
3632         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
3633         * sysdeps/x86_64/configure: Regenerated.
3634         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
3635         AVX-512 zmm register support.
3636         (_dl_x86_64_save_sse): Likewise.
3637         (_dl_x86_64_restore_sse): Likewise.
3638         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
3639         size vector registers.
3640         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
3641         (ZMM_SIZE): Likewise.
3642         * sysdeps/x86_64/tst-audit10.c: New file.
3643         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
3644         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
3645
3646 2014-03-13  Roland McGrath  <roland@hack.frob.com>
3647
3648         * configure.ac (HAVE_EHDR_START): New check.
3649         * configure: Regenerated.
3650         * config.h.in (HAVE_EHDR_START): New #undef.
3651         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
3652         assuming the lowest-addressed segment maps the start of the file.
3653
3654 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
3655
3656         * INSTALL: Regenerated.
3657
3658 2014-03-13  Will Newton  <will.newton@linaro.org>
3659
3660         * manual/setjmp.texi (System V contexts): Improve
3661         clarity and grammar of documentation.
3662
3663 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
3664
3665         [BZ #16381]
3666         * elf/Makefile (tests): Add tst-pie2.
3667         (tests-pie): Add tst-pie2.
3668         * elf/tst-pie2.c: New file.
3669         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
3670         for ET_EXEC.
3671         * elf/rtld.c (map_doit): Load executable as lt_executable.
3672         (dl_main): Likewise.
3673
3674 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
3675
3676         [BZ #16642]
3677         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3678         (__ASSUME_PSELECT): Undefine.
3679
3680 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3681
3682         [BZ #16689]
3683         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
3684         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
3685         static build.
3686         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
3687         selector for static builds.
3688
3689 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
3690
3691         [BZ #16695]
3692         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
3693         key in the buffer.
3694
3695 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3696
3697         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
3698         IFUNC selector for static builds.
3699
3700 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
3701
3702         * sysdeps/mips/math_private.h [__mips_hard_float]
3703         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
3704         libc_feresetround_mips_ctx.
3705         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
3706         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
3707         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
3708
3709         [BZ #16677]
3710         * math/s_nextafter.c (__nextafter): Do not return value from
3711         overflowing computation.
3712         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
3713         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
3714         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
3715         Likewise.
3716         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
3717         Likewise.
3718         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
3719         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
3720
3721 2014-03-11  Roland McGrath  <roland@hack.frob.com>
3722
3723         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
3724         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
3725         Move sfi_sp use from the load-multiple (that no longer sets sp) to
3726         the new mov targetting sp.
3727
3728 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3729
3730         [BZ #16683]
3731         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
3732         Define it for static builds as well.
3733         (NO_BZERO_IMPL): Likewise.
3734
3735 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3736
3737         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
3738         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
3739         multiarch strspn for PPC64.
3740         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
3741         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
3742         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3743         (__libc_ifunc_impl_list): Likewise.
3744         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
3745         multiarch optimizations
3746         * string/strspn.c (strspn): Using macro to redefine symbol name.
3747
3748 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3749             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3750
3751         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
3752         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
3753         multiarch strncat for PPC64.
3754         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
3755         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
3756         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3757         (__libc_ifunc_impl_list): Likewise.
3758         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
3759         multiarch optimizations
3760
3761 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3762
3763         [BZ #16639]
3764         * nscd/nscd.service: Make service type forking.
3765
3766 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3767
3768         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
3769         sign in non default rounding modes.
3770         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3771
3772 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
3773
3774         * math/libm-test.inc (ALL_RM_TEST): New macro.
3775         (ceil_test): Use ALL_RM_TEST.
3776         (cimag_test): Likewise.
3777         (conj_test): Likewise.
3778         (copysign_test): Likewise.
3779         (cproj_test): Likewise.
3780         (creal_test): Likewise.
3781         (fabs_test): Likewise.
3782         (floor_test): Likewise.
3783         (fmax_test): Likewise.
3784         (fmin_test): Likewise.
3785         (fmod_test): Likewise.
3786         (fpclassify_test): Likewise.
3787         (frexp_test): Likewise.
3788         (ilogb_test): Likewise.
3789         (isfinite_test): Likewise.
3790         (finite_test): Likewise.
3791         (isgreater_test): Likewise.
3792         (isgreaterequal_test): Likewise.
3793         (isinf_test): Likewise.
3794         (isless_test): Likewise.
3795         (islessequal_test): Likewise.
3796         (islessgreater_test): Likewise.
3797         (isnan_test): Likewise.
3798         (isnormal_test): Likewise.
3799         (issignaling_test): Likewise.
3800         (isunordered_test): Likewise.
3801         (logb_test): Likewise.
3802         (logb_downward_test_data): Remove.
3803         (logb_test_downward): Likewise.
3804         (lround_test): Use ALL_RM_TEST.
3805         (llround_test): Likewise.
3806         (modf_test): Likewise.
3807         (nexttoward_test): Likewise.
3808         (remainder_test): Likewise.
3809         (drem_test): Likewise.
3810         (remainder_tonearest_test_data): Likewise.
3811         (remainder_test_tonearest): Likewise.
3812         (drem_test_tonearest): Likewise.
3813         (remainder_towardzero_test_data): Likewise.
3814         (remainder_test_towardzero): Likewise.
3815         (drem_test_towardzero): Likewise.
3816         (remainder_downward_test_data): Likewise.
3817         (remainder_test_downward): Likewise.
3818         (drem_test_downward): Likewise.
3819         (remainder_upward_test_data): Likewise.
3820         (remainder_test_upward): Likewise.
3821         (drem_test_upward): Likewise.
3822         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
3823         (round_test): Use ALL_RM_TEST.
3824         (signbit_test): Likewise.
3825         (trunc_test): Likewise.
3826         (significand_test): Likewise.
3827         (main): Don't call removed functions.
3828
3829 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
3830
3831         [BZ #16674]
3832         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
3833         || __USE_XOPEN2K8].
3834         (ILL_ILLOPN): Likewise.
3835         (ILL_ILLADR): Likewise.
3836         (ILL_ILLTRP): Likewise.
3837         (ILL_PRVOPC): Likewise.
3838         (ILL_PRVREG): Likewise.
3839         (ILL_COPROC): Likewise.
3840         (ILL_BADSTK): Likewise.
3841         (FPE_INTDIV): Likewise.
3842         (FPE_INTOVF): Likewise.
3843         (FPE_FLTDIV): Likewise.
3844         (FPE_FLTOVF): Likewise.
3845         (FPE_FLTUND): Likewise.
3846         (FPE_FLTRES): Likewise.
3847         (FPE_FLTINV): Likewise.
3848         (FPE_FLTSUB): Likewise.
3849         (SEGV_MAPERR): Likewise.
3850         (SEGV_ACCERR): Likewise.
3851         (BUS_ADRALN): Likewise.
3852         (BUS_ADRERR): Likewise.
3853         (BUS_OBJERR): Likewise.
3854         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3855         (TRAP_TRACE): Likewise.
3856         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3857         __USE_XOPEN2K8].
3858         (CLD_KILLED): Likewise.
3859         (CLD_DUMPED): Likewise.
3860         (CLD_TRAPPED): Likewise.
3861         (CLD_STOPPED): Likewise.
3862         (CLD_CONTINUED): Likewise.
3863         (POLL_IN): Likewise.
3864         (POLL_OUT): Likewise.
3865         (POLL_MSG): Likewise.
3866         (POLL_ERR): Likewise.
3867         (POLL_PRI): Likewise.
3868         (POLL_HUP): Likewise.
3869         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
3870         Likewise.
3871         (ILL_ILLOPN): Likewise.
3872         (ILL_ILLADR): Likewise.
3873         (ILL_ILLTRP): Likewise.
3874         (ILL_PRVOPC): Likewise.
3875         (ILL_PRVREG): Likewise.
3876         (ILL_COPROC): Likewise.
3877         (ILL_BADSTK): Likewise.
3878         (FPE_INTDIV): Likewise.
3879         (FPE_INTOVF): Likewise.
3880         (FPE_FLTDIV): Likewise.
3881         (FPE_FLTOVF): Likewise.
3882         (FPE_FLTUND): Likewise.
3883         (FPE_FLTRES): Likewise.
3884         (FPE_FLTINV): Likewise.
3885         (FPE_FLTSUB): Likewise.
3886         (SEGV_MAPERR): Likewise.
3887         (SEGV_ACCERR): Likewise.
3888         (BUS_ADRALN): Likewise.
3889         (BUS_ADRERR): Likewise.
3890         (BUS_OBJERR): Likewise.
3891         (BUS_MCEERR_AR): Likewise.
3892         (BUS_MCEERR_AO): Likewise.
3893         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3894         (TRAP_TRACE): Likewise.
3895         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3896         __USE_XOPEN2K8].
3897         (CLD_KILLED): Likewise.
3898         (CLD_DUMPED): Likewise.
3899         (CLD_TRAPPED): Likewise.
3900         (CLD_STOPPED): Likewise.
3901         (CLD_CONTINUED): Likewise.
3902         (POLL_IN): Likewise.
3903         (POLL_OUT): Likewise.
3904         (POLL_MSG): Likewise.
3905         (POLL_ERR): Likewise.
3906         (POLL_PRI): Likewise.
3907         (POLL_HUP): Likewise.
3908         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
3909         (ILL_ILLOPN): Likewise.
3910         (ILL_ILLADR): Likewise.
3911         (ILL_ILLTRP): Likewise.
3912         (ILL_PRVOPC): Likewise.
3913         (ILL_PRVREG): Likewise.
3914         (ILL_COPROC): Likewise.
3915         (ILL_BADSTK): Likewise.
3916         (FPE_INTDIV): Likewise.
3917         (FPE_INTOVF): Likewise.
3918         (FPE_FLTDIV): Likewise.
3919         (FPE_FLTOVF): Likewise.
3920         (FPE_FLTUND): Likewise.
3921         (FPE_FLTRES): Likewise.
3922         (FPE_FLTINV): Likewise.
3923         (FPE_FLTSUB): Likewise.
3924         (SEGV_MAPERR): Likewise.
3925         (SEGV_ACCERR): Likewise.
3926         (BUS_ADRALN): Likewise.
3927         (BUS_ADRERR): Likewise.
3928         (BUS_OBJERR): Likewise.
3929         (BUS_MCEERR_AR): Likewise.
3930         (BUS_MCEERR_AO): Likewise.
3931         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3932         (TRAP_TRACE): Likewise.
3933         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3934         __USE_XOPEN2K8].
3935         (CLD_KILLED): Likewise.
3936         (CLD_DUMPED): Likewise.
3937         (CLD_TRAPPED): Likewise.
3938         (CLD_STOPPED): Likewise.
3939         (CLD_CONTINUED): Likewise.
3940         (POLL_IN): Likewise.
3941         (POLL_OUT): Likewise.
3942         (POLL_MSG): Likewise.
3943         (POLL_ERR): Likewise.
3944         (POLL_PRI): Likewise.
3945         (POLL_HUP): Likewise.
3946         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
3947         Likewise.
3948         (ILL_ILLOPN): Likewise.
3949         (ILL_ILLADR): Likewise.
3950         (ILL_ILLTRP): Likewise.
3951         (ILL_PRVOPC): Likewise.
3952         (ILL_PRVREG): Likewise.
3953         (ILL_COPROC): Likewise.
3954         (ILL_BADSTK): Likewise.
3955         (ILL_BADIADDR): Likewise.
3956         (ILL_BREAK): Likewise.
3957         (FPE_INTDIV): Likewise.
3958         (FPE_INTOVF): Likewise.
3959         (FPE_FLTDIV): Likewise.
3960         (FPE_FLTOVF): Likewise.
3961         (FPE_FLTUND): Likewise.
3962         (FPE_FLTRES): Likewise.
3963         (FPE_FLTINV): Likewise.
3964         (FPE_FLTSUB): Likewise.
3965         (FPE_DECOVF): Likewise.
3966         (FPE_DECDIV): Likewise.
3967         (FPE_DECERR): Likewise.
3968         (FPE_INVASC): Likewise.
3969         (FPE_INVDEC): Likewise.
3970         (SEGV_MAPERR): Likewise.
3971         (SEGV_ACCERR): Likewise.
3972         (SEGV_PSTKOVF): Likewise.
3973         (BUS_ADRALN): Likewise.
3974         (BUS_ADRERR): Likewise.
3975         (BUS_OBJERR): Likewise.
3976         (BUS_MCEERR_AR): Likewise.
3977         (BUS_MCEERR_AO): Likewise.
3978         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
3979         (TRAP_TRACE): Likewise.
3980         (TRAP_BRANCH): Likewise.
3981         (TRAP_HWBKPT): Likewise.
3982         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
3983         __USE_XOPEN2K8].
3984         (CLD_KILLED): Likewise.
3985         (CLD_DUMPED): Likewise.
3986         (CLD_TRAPPED): Likewise.
3987         (CLD_STOPPED): Likewise.
3988         (CLD_CONTINUED): Likewise.
3989         (POLL_IN): Likewise.
3990         (POLL_OUT): Likewise.
3991         (POLL_MSG): Likewise.
3992         (POLL_ERR): Likewise.
3993         (POLL_PRI): Likewise.
3994         (POLL_HUP): Likewise.
3995         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
3996         (ILL_ILLOPN): Likewise.
3997         (ILL_ILLADR): Likewise.
3998         (ILL_ILLTRP): Likewise.
3999         (ILL_PRVOPC): Likewise.
4000         (ILL_PRVREG): Likewise.
4001         (ILL_COPROC): Likewise.
4002         (ILL_BADSTK): Likewise.
4003         (FPE_INTDIV): Likewise.
4004         (FPE_INTOVF): Likewise.
4005         (FPE_FLTDIV): Likewise.
4006         (FPE_FLTOVF): Likewise.
4007         (FPE_FLTUND): Likewise.
4008         (FPE_FLTRES): Likewise.
4009         (FPE_FLTINV): Likewise.
4010         (FPE_FLTSUB): Likewise.
4011         (SEGV_MAPERR): Likewise.
4012         (SEGV_ACCERR): Likewise.
4013         (BUS_ADRALN): Likewise.
4014         (BUS_ADRERR): Likewise.
4015         (BUS_OBJERR): Likewise.
4016         (BUS_MCEERR_AR): Likewise.
4017         (BUS_MCEERR_AO): Likewise.
4018         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4019         (TRAP_TRACE): Likewise.
4020         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4021         __USE_XOPEN2K8].
4022         (CLD_KILLED): Likewise.
4023         (CLD_DUMPED): Likewise.
4024         (CLD_TRAPPED): Likewise.
4025         (CLD_STOPPED): Likewise.
4026         (CLD_CONTINUED): Likewise.
4027         (POLL_IN): Likewise.
4028         (POLL_OUT): Likewise.
4029         (POLL_MSG): Likewise.
4030         (POLL_ERR): Likewise.
4031         (POLL_PRI): Likewise.
4032         (POLL_HUP): Likewise.
4033         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
4034         (ILL_ILLOPN): Likewise.
4035         (ILL_ILLADR): Likewise.
4036         (ILL_ILLTRP): Likewise.
4037         (ILL_PRVOPC): Likewise.
4038         (ILL_PRVREG): Likewise.
4039         (ILL_COPROC): Likewise.
4040         (ILL_BADSTK): Likewise.
4041         (FPE_INTDIV): Likewise.
4042         (FPE_INTOVF): Likewise.
4043         (FPE_FLTDIV): Likewise.
4044         (FPE_FLTOVF): Likewise.
4045         (FPE_FLTUND): Likewise.
4046         (FPE_FLTRES): Likewise.
4047         (FPE_FLTINV): Likewise.
4048         (FPE_FLTSUB): Likewise.
4049         (SEGV_MAPERR): Likewise.
4050         (SEGV_ACCERR): Likewise.
4051         (BUS_ADRALN): Likewise.
4052         (BUS_ADRERR): Likewise.
4053         (BUS_OBJERR): Likewise.
4054         (BUS_MCEERR_AR): Likewise.
4055         (BUS_MCEERR_AO): Likewise.
4056         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4057         (TRAP_TRACE): Likewise.
4058         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4059         __USE_XOPEN2K8].
4060         (CLD_KILLED): Likewise.
4061         (CLD_DUMPED): Likewise.
4062         (CLD_TRAPPED): Likewise.
4063         (CLD_STOPPED): Likewise.
4064         (CLD_CONTINUED): Likewise.
4065         (POLL_IN): Likewise.
4066         (POLL_OUT): Likewise.
4067         (POLL_MSG): Likewise.
4068         (POLL_ERR): Likewise.
4069         (POLL_PRI): Likewise.
4070         (POLL_HUP): Likewise.
4071         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
4072         (ILL_ILLOPN): Likewise.
4073         (ILL_ILLADR): Likewise.
4074         (ILL_ILLTRP): Likewise.
4075         (ILL_PRVOPC): Likewise.
4076         (ILL_PRVREG): Likewise.
4077         (ILL_COPROC): Likewise.
4078         (ILL_BADSTK): Likewise.
4079         (FPE_INTDIV): Likewise.
4080         (FPE_INTOVF): Likewise.
4081         (FPE_FLTDIV): Likewise.
4082         (FPE_FLTOVF): Likewise.
4083         (FPE_FLTUND): Likewise.
4084         (FPE_FLTRES): Likewise.
4085         (FPE_FLTINV): Likewise.
4086         (FPE_FLTSUB): Likewise.
4087         (SEGV_MAPERR): Likewise.
4088         (SEGV_ACCERR): Likewise.
4089         (BUS_ADRALN): Likewise.
4090         (BUS_ADRERR): Likewise.
4091         (BUS_OBJERR): Likewise.
4092         (BUS_MCEERR_AR): Likewise.
4093         (BUS_MCEERR_AO): Likewise.
4094         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4095         (TRAP_TRACE): Likewise.
4096         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4097         __USE_XOPEN2K8].
4098         (CLD_KILLED): Likewise.
4099         (CLD_DUMPED): Likewise.
4100         (CLD_TRAPPED): Likewise.
4101         (CLD_STOPPED): Likewise.
4102         (CLD_CONTINUED): Likewise.
4103         (POLL_IN): Likewise.
4104         (POLL_OUT): Likewise.
4105         (POLL_MSG): Likewise.
4106         (POLL_ERR): Likewise.
4107         (POLL_PRI): Likewise.
4108         (POLL_HUP): Likewise.
4109         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
4110         (ILL_ILLOPN): Likewise.
4111         (ILL_ILLADR): Likewise.
4112         (ILL_ILLTRP): Likewise.
4113         (ILL_PRVOPC): Likewise.
4114         (ILL_PRVREG): Likewise.
4115         (ILL_COPROC): Likewise.
4116         (ILL_BADSTK): Likewise.
4117         (ILL_DBLFLT): Likewise.
4118         (ILL_HARDWALL): Likewise.
4119         (FPE_INTDIV): Likewise.
4120         (FPE_INTOVF): Likewise.
4121         (FPE_FLTDIV): Likewise.
4122         (FPE_FLTOVF): Likewise.
4123         (FPE_FLTUND): Likewise.
4124         (FPE_FLTRES): Likewise.
4125         (FPE_FLTINV): Likewise.
4126         (FPE_FLTSUB): Likewise.
4127         (SEGV_MAPERR): Likewise.
4128         (SEGV_ACCERR): Likewise.
4129         (BUS_ADRALN): Likewise.
4130         (BUS_ADRERR): Likewise.
4131         (BUS_OBJERR): Likewise.
4132         (BUS_MCEERR_AR): Likewise.
4133         (BUS_MCEERR_AO): Likewise.
4134         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4135         (TRAP_TRACE): Likewise.
4136         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4137         __USE_XOPEN2K8].
4138         (CLD_KILLED): Likewise.
4139         (CLD_DUMPED): Likewise.
4140         (CLD_TRAPPED): Likewise.
4141         (CLD_STOPPED): Likewise.
4142         (CLD_CONTINUED): Likewise.
4143         (POLL_IN): Likewise.
4144         (POLL_OUT): Likewise.
4145         (POLL_MSG): Likewise.
4146         (POLL_ERR): Likewise.
4147         (POLL_PRI): Likewise.
4148         (POLL_HUP): Likewise.
4149         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
4150         (ILL_ILLOPN): Likewise.
4151         (ILL_ILLADR): Likewise.
4152         (ILL_ILLTRP): Likewise.
4153         (ILL_PRVOPC): Likewise.
4154         (ILL_PRVREG): Likewise.
4155         (ILL_COPROC): Likewise.
4156         (ILL_BADSTK): Likewise.
4157         (FPE_INTDIV): Likewise.
4158         (FPE_INTOVF): Likewise.
4159         (FPE_FLTDIV): Likewise.
4160         (FPE_FLTOVF): Likewise.
4161         (FPE_FLTUND): Likewise.
4162         (FPE_FLTRES): Likewise.
4163         (FPE_FLTINV): Likewise.
4164         (FPE_FLTSUB): Likewise.
4165         (SEGV_MAPERR): Likewise.
4166         (SEGV_ACCERR): Likewise.
4167         (BUS_ADRALN): Likewise.
4168         (BUS_ADRERR): Likewise.
4169         (BUS_OBJERR): Likewise.
4170         (BUS_MCEERR_AR): Likewise.
4171         (BUS_MCEERR_AO): Likewise.
4172         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4173         (TRAP_TRACE): Likewise.
4174         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4175         __USE_XOPEN2K8].
4176         (CLD_KILLED): Likewise.
4177         (CLD_DUMPED): Likewise.
4178         (CLD_TRAPPED): Likewise.
4179         (CLD_STOPPED): Likewise.
4180         (CLD_CONTINUED): Likewise.
4181         (POLL_IN): Likewise.
4182         (POLL_OUT): Likewise.
4183         (POLL_MSG): Likewise.
4184         (POLL_ERR): Likewise.
4185         (POLL_PRI): Likewise.
4186         (POLL_HUP): Likewise.
4187         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
4188         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
4189
4190         [BZ #16670]
4191         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
4192         before #include of <time.h>.
4193         [!__USE_XOPEN2K] (__need_timespec): Likewise.
4194         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
4195         (test-xfail-UNIX98/sched.h/conform): Likewise.
4196
4197 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4198
4199         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
4200         error absence of trapping exception support.
4201         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
4202
4203 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
4204
4205         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
4206         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
4207         * timezone/Makefile (testdata): Move definition above include of
4208         Rules.
4209         (test-zones): New variable.
4210         (tests-special): Add zone files.
4211         (build-testdata): Use $(evaluate-test).
4212
4213         * elf/Makefile (tests-special): Rename tests to end with .out.
4214         ($(objpfx)noload-mem): Likewise.
4215         ($(objpfx)tst-leaks1-mem): Likewise.
4216         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
4217         * iconv/Makefile (xtests-special): Change test-iconvconfig to
4218         $(objpfx)test-iconvconfig.out.
4219         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
4220         set -e inside subshell and redirect output to file.
4221         * iconvdata/Makefile (generated): Rename tests to end with .out.
4222         Correct type.
4223         (tests-special): Rename tests to end with .out.
4224         ($(objpfx)mtrace-tst-loading): Likewise.
4225         * intl/Makefile (generated): Likewise.
4226         (tests-special): Likewise.
4227         ($(objpfx)mtrace-tst-gettext): Likewise.
4228         * misc/Makefile (generated): Likewise.
4229         (tests-special): Likewise.
4230         ($(objpfx)tst-error1-mem): Likewise.
4231         * nptl/Makefile (tests-special): Likewise.
4232         ($(objpfx)tst-stack3-mem): Likewise.
4233         (generated): Likewise.
4234         * posix/Makefile (generated): Likewise.
4235         (tests-special): Likewise.
4236         (xtests-special): Likewise.
4237         ($(objpfx)tst-fnmatch-mem): Likewise.
4238         ($(objpfx)bug-regex2-mem): Likewise.
4239         ($(objpfx)bug-regex14-mem): Likewise.
4240         ($(objpfx)bug-regex21-mem): Likewise.
4241         ($(objpfx)bug-regex31-mem): Likewise.
4242         ($(objpfx)tst-vfork3-mem): Likewise.
4243         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
4244         ($(objpfx)tst-pcre-mem): Likewise.
4245         ($(objpfx)tst-boost-mem): Likewise.
4246         ($(objpfx)bug-ga2-mem): Likewise.
4247         ($(objpfx)bug-glob2-mem): Likewise.
4248         * resolv/Makefile (generate): Likewise.
4249         (tests-special): Likewise.
4250         (xtests-special): Likewise.
4251         (generated): Likewise.
4252         ($(objpfx)mtrace-tst-leaks): Likewise.
4253         ($(objpfx)mtrace-tst-leaks2): Likewise.
4254
4255         * scripts/merge-test-results.sh: New file.
4256         * Makefile (tests-special-notdir): New variable.
4257         (tests): Run merge-test-results.sh.
4258         (xtests): Likewise.
4259         * Rules (tests-special-notdir): New variable.
4260         (xtests-special-notdir): Likewise.
4261         (tests): Run merge-test-results.sh
4262         (xtests): Likewise.
4263
4264         * Makeconfig (test-xfail-name): New variable.
4265         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
4266         compute variable name for expected failures.
4267         * conform/Makefile (conformtest-headers-data): New variable.
4268         (conformtest-standards): Likewise.
4269         (conformtest-headers-ISO): Likewise.
4270         (conformtest-headers-ISO99): Likewise.
4271         (conformtest-headers-ISO11): Likewise.
4272         (conformtest-headers-POSIX): Likewise.
4273         (conformtest-headers-XPG3): Likewise.
4274         (conformtest-headers-XPG4): Likewise.
4275         (conformtest-headers-UNIX98): Likewise.
4276         (conformtest-headers-XOPEN2K): Likewise.
4277         (conformtest-headers-POSIX2008): Likewise.
4278         (conformtest-headers-XOPEN2K8): Likewise.
4279         (conformtest-header-list-base): Likewise.
4280         (conformtest-header-list-tests): Likewise.
4281         (conformtest-header-base): Likewise.
4282         (conformtest-header-tests): Likewise.
4283         (tests-special): Add $(conformtest-header-list-tests).  If
4284         [$(fast-check) && !$(cross-compiling)], add
4285         $(conformtest-header-tests) instead of
4286         $(objpfx)run-conformtest.out.
4287         (generated): Add $(conformtest-header-list-base).  If
4288         [$(fast-check) && !$(cross-compiling)], add
4289         $(conformtest-header-base).  Remove previous setting.
4290         ($(conformtest-header-list-tests)): New target.
4291         (test-xfail-run-conformtest): Remove variable.
4292         ($(objpfx)run-conformtest.out): Remove target.
4293         (test-xfail-ISO11/complex.h/conform): New variable.
4294         (test-xfail-ISO11/stdalign.h/conform): Likewise.
4295         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
4296         (test-xfail-XPG3/varargs.h/conform): Likewise.
4297         (test-xfail-XPG4/varargs.h/conform): Likewise.
4298         (test-xfail-UNIX98/varargs.h/conform): Likewise.
4299         (test-xfail-XPG4/ndbm.h/conform): Likewise.
4300         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
4301         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
4302         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
4303         (test-xfail-XPG3/fcntl.h/conform): Likewise.
4304         (test-xfail-XPG3/ftw.h/conform): Likewise.
4305         (test-xfail-XPG3/grp.h/conform): Likewise.
4306         (test-xfail-XPG3/langinfo.h/conform): Likewise.
4307         (test-xfail-XPG3/limits.h/conform): Likewise.
4308         (test-xfail-XPG3/pwd.h/conform): Likewise.
4309         (test-xfail-XPG3/search.h/conform): Likewise.
4310         (test-xfail-XPG3/signal.h/conform): Likewise.
4311         (test-xfail-XPG3/stdio.h/conform): Likewise.
4312         (test-xfail-XPG3/stdlib.h/conform): Likewise.
4313         (test-xfail-XPG3/string.h/conform): Likewise.
4314         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
4315         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
4316         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
4317         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
4318         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
4319         (test-xfail-XPG3/sys/types.h/conform): Likewise.
4320         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
4321         (test-xfail-XPG3/termios.h/conform): Likewise.
4322         (test-xfail-XPG3/time.h/conform): Likewise.
4323         (test-xfail-XPG3/unistd.h/conform): Likewise.
4324         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
4325         (test-xfail-XPG4/fcntl.h/conform): Likewise.
4326         (test-xfail-XPG4/langinfo.h/conform): Likewise.
4327         (test-xfail-XPG4/netdb.h/conform): Likewise.
4328         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
4329         (test-xfail-XPG4/signal.h/conform): Likewise.
4330         (test-xfail-XPG4/stdio.h/conform): Likewise.
4331         (test-xfail-XPG4/stdlib.h/conform): Likewise.
4332         (test-xfail-XPG4/stropts.h/conform): Likewise.
4333         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
4334         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
4335         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
4336         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
4337         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
4338         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
4339         (test-xfail-XPG4/sys/time.h/conform): Likewise.
4340         (test-xfail-XPG4/sys/types.h/conform): Likewise.
4341         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
4342         (test-xfail-XPG4/termios.h/conform): Likewise.
4343         (test-xfail-XPG4/ucontext.h/conform): Likewise.
4344         (test-xfail-XPG4/unistd.h/conform): Likewise.
4345         (test-xfail-XPG4/utmpx.h/conform): Likewise.
4346         (test-xfail-POSIX/sched.h/conform): Likewise.
4347         (test-xfail-POSIX/signal.h/conform): Likewise.
4348         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
4349         (test-xfail-POSIX/tar.h/conform): Likewise.
4350         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
4351         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
4352         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
4353         (test-xfail-UNIX98/netdb.h/conform): Likewise.
4354         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
4355         (test-xfail-UNIX98/sched.h/conform): Likewise.
4356         (test-xfail-UNIX98/signal.h/conform): Likewise.
4357         (test-xfail-UNIX98/stdio.h/conform): Likewise.
4358         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
4359         (test-xfail-UNIX98/stropts.h/conform): Likewise.
4360         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
4361         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
4362         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
4363         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
4364         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
4365         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
4366         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
4367         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
4368         (test-xfail-UNIX98/unistd.h/conform): Likewise.
4369         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
4370         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
4371         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
4372         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
4373         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
4374         (test-xfail-XOPEN2K/math.h/conform): Likewise.
4375         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
4376         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
4377         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
4378         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
4379         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
4380         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
4381         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
4382         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
4383         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
4384         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
4385         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
4386         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
4387         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
4388         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
4389         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
4390         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
4391         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
4392         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
4393         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
4394         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
4395         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
4396         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
4397         (test-xfail-POSIX2008/signal.h/conform): Likewise.
4398         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
4399         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
4400         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
4401         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
4402         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
4403         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
4404         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
4405         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
4406         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
4407         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
4408         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
4409         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
4410         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
4411         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
4412         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
4413         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
4414         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
4415         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
4416         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
4417         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
4418         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
4419         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
4420         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
4421         (conformtest-cc-flags): Likewise.
4422         ($(conformtest-header-tests): New target.
4423         * conform/check-header-lists.sh: New file.
4424         * conform/run-conformtest.sh: Remove.
4425
4426         * conform/conformtest.pl: Allow ' and \ in values given for
4427         constants.
4428         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
4429         inclusion.
4430         [POSIX] (sys/types.h): Likewise.
4431         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
4432         inclusion.
4433         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
4434         inclusion.
4435         * conform/data/signal.h-data (SIGIO): Remove expectation.
4436         [XPG3] (SIGBUS): Do not expect.
4437         [POSIX || XPG3] (SIGPOLL): Likewise.
4438         [POSIX || XPG3] (SIGPROF): Likewise.
4439         [POSIX || XPG3] (SIGSYS): Likewise.
4440         [XPG3] (SIGTRAP): Likewise.
4441         [POSIX || XPG3] (SIGURG): Likewise.
4442         [POSIX || XPG3] (SIGVTALRM): Likewise.
4443         [POSIX || XPG3] (SIGXCPU): Likewise.
4444         [POSIX || XPG3] (SIGXFSZ): Likewise.
4445         [POSIX] (SA_SIGINFO): Expect.
4446         [XPG3] (siginfo_t): Do not expect type or contents.
4447         [POSIX] (si_pid): Do not expect element.
4448         [POSIX] (si_uid): Likewise.
4449         [POSIX] (si_addr): Likewise.
4450         [POSIX] (si_status): Likewise.
4451         [POSIX] (si_band): Likewise.
4452         [XPG4] (si_value): Likewise.
4453         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
4454         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
4455         [POSIX || XPG3] (ILL_ILLADR): Likewise.
4456         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
4457         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
4458         [POSIX || XPG3] (ILL_PRVREG): Likewise.
4459         [POSIX || XPG3] (ILL_COPROC): Likewise.
4460         [POSIX || XPG3] (ILL_BADSTK): Likewise.
4461         [POSIX || XPG3] (FPE_INTDIV): Likewise.
4462         [POSIX || XPG3] (FPE_INTOVF): Likewise.
4463         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
4464         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
4465         [POSIX || XPG3] (FPE_FLTUND): Likewise.
4466         [POSIX || XPG3] (FPE_FLTRES): Likewise.
4467         [POSIX || XPG3] (FPE_FLTINV): Likewise.
4468         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
4469         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
4470         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
4471         [POSIX || XPG3] (BUS_ADRALN): Likewise.
4472         [POSIX || XPG3] (BUS_ADRERR): Likewise.
4473         [POSIX || XPG3] (BUS_OBJERR): Likewise.
4474         [POSIX || XPG3] (CLD_EXITED): Likewise.
4475         [POSIX || XPG3] (CLD_KILLED): Likewise.
4476         [POSIX || XPG3] (CLD_DUMPED): Likewise.
4477         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
4478         [POSIX || XPG3] (CLD_STOPPED): Likewise.
4479         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
4480         [POSIX || XPG3] (POLL_IN): Likewise.
4481         [POSIX || XPG3] (POLL_OUT): Likewise.
4482         [POSIX || XPG3] (POLL_MSG): Likewise.
4483         [POSIX || XPG3] (POLL_ERR): Likewise.
4484         [POSIX || XPG3] (POLL_PRI): Likewise.
4485         [POSIX || XPG3] (POLL_HUP): Likewise.
4486         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
4487         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
4488         (SIG*): Do not allow.
4489         [XPG3] (si_*): Likewise.
4490         [XPG3] (SI_*): Likewise.
4491         [XPG3 || XPG4] (sigev_*): Likewise.
4492         [XPG3 || XPG4] (SIGEV_*): Likewise.
4493         [XPG3 || XPG4] (sival_*): Likewise.
4494         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
4495         [POSIX || XPG3] (BUS_*): Likewise.
4496         [POSIX || XPG3] (CLD_*): Likewise.
4497         [POSIX || XPG3] (FPE_*): Likewise.
4498         [POSIX || XPG3] (ILL_*): Likewise.
4499         [POSIX || XPG3] (POLL_*): Likewise.
4500         [POSIX || XPG3] (SEGV_*): Likewise.
4501         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
4502         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
4503         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
4504         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
4505         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
4506         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
4507         Specify type and value.
4508         (TVERSLEN): Likewise.
4509         (REGTYPE): Likewise.
4510         (AREGTYPE): Likewise.
4511         (LNKTYPE): Likewise.
4512         (SYMTYPE): Likewise.
4513         (CHRTYPE): Likewise.
4514         (BLKTYPE): Likewise.
4515         (DIRTYPE): Likewise.
4516         (FIFOTYPE): Likewise.
4517         (CONTTYPE): Likewise.
4518         (TSUID): Likewise.
4519         (TSGID): Likewise.
4520         (TSVTX): Likewise.
4521         (TUREAD): Likewise.
4522         (TUWRITE): Likewise.
4523         (TUEXEC): Likewise.
4524         (TGREAD): Likewise.
4525         (TGWRITE): Likewise.
4526         (TGEXEC): Likewise.
4527         (TOREAD): Likewise.
4528         (TOWRITE): Likewise.
4529         (TOEXEC): Likewise.
4530         [POSIX] (TSVTX): Expect constant.
4531
4532 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
4533
4534         * Makefile (tests): Change dependencies to ....
4535         (tests-special): ... additions to this variable.
4536         (tests): Depend on $(tests-special).
4537         * Makerules (check-abi-list): New variable.
4538         (check-abi): Depend on $(check-abi-list).
4539         [$(subdir) = elf] (tests-special): Add
4540         $(objpfx)check-abi-libc.out.
4541         [$(build-shared) = yes && subdir] (tests-special): Add
4542         $(check-abi-list).
4543         [$(build-shared) = yes && subdir] (tests): Do not depend on
4544         check-abi.
4545         * Rules (tests): Depend on $(tests-special).
4546         (xtests): Depend on $(xtests-special).
4547         * catgets/Makefile (tests): Change dependencies to ....
4548         (tests-special): ... additions to this variable.
4549         * conform/Makefile (tests): Change dependencies to ....
4550         (tests-special): ... additions to this variable.
4551         * elf/Makefile (tests): Change dependencies to ....
4552         (tests-special): ... additions to this variable.
4553         * grp/Makefile (tests): Change dependencies to ....
4554         (tests-special): ... additions to this variable.
4555         * iconv/Makefile (xtests): Change dependencies to ....
4556         (xtests-special): ... additions to this variable.
4557         * iconvdata/Makefile (tests): Change dependencies to ....
4558         (tests-special): ... additions to this variable.
4559         * intl/Makefile (tests): Change dependencies to ....
4560         (tests-special): ... additions to this variable.  Also add
4561         $(objpfx)tst-gettext.out.
4562         * io/Makefile (tests): Change dependencies to ....
4563         (tests-special): ... additions to this variable.
4564         * libio/Makefile (tests): Change dependencies to ....
4565         (tests-special): ... additions to this variable.
4566         * malloc/Makefile (tests): Change dependencies to ....
4567         (tests-special): ... additions to this variable.
4568         * misc/Makefile (tests): Change dependencies to ....
4569         (tests-special): ... additions to this variable.
4570         * nptl/Makefile (tests): Change dependencies to ....
4571         (tests-special): ... additions to this variable.
4572         * nptl_db/Makefile (tests): Change dependencies to ....
4573         (tests-special): ... additions to this variable.
4574         * posix/Makefile (tests): Change dependencies to ....
4575         (tests-special): ... additions to this variable.
4576         (xtests): Change dependencies to ....
4577         (xtests-special): ... additions to this variable.
4578         * resolv/Makefile (tests): Change dependencies to ....
4579         (tests-special): ... additions to this variable.
4580         (xtests): Change dependencies to ....
4581         (xtests-special): ... additions to this variable.
4582         * stdio-common/Makefile (tests): Change dependencies to ....
4583         (tests-special): ... additions to this variable.
4584         (do-tst-unbputc): Remove target.
4585         (do-tst-printf): Likewise.
4586         * stdlib/Makefile (tests): Change dependencies to ....
4587         (tests-special): ... additions to this variable.
4588         * string/Makefile (tests): Change dependencies to ....
4589         (tests-special): ... additions to this variable.
4590         * sysdeps/x86/Makefile (tests): Change dependencies to ....
4591         (tests-special): ... additions to this variable.
4592
4593         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
4594         whole file.
4595         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
4596         whole file.
4597         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
4598         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
4599
4600         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
4601         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
4602         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
4603         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
4604         * conform/data/libgen.h-data [XPG3]: Likewise.
4605         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
4606         * conform/data/ndbm.h-data [XPG3]: Likewise.
4607         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
4608         * conform/data/netdb.h-data [XPG3]: Likewise.
4609         * conform/data/netinet/in.h-data [XPG3]: Likewise.
4610         * conform/data/poll.h-data [XPG3]: Likewise.
4611         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
4612         * conform/data/strings.h-data [XPG3]: Likewise.
4613         * conform/data/stropts.h-data [XPG3]: Likewise.
4614         * conform/data/sys/mman.h-data [XPG3]: Likewise.
4615         * conform/data/sys/resource.h-data [XPG3]: Likewise.
4616         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
4617         Likewise.
4618         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
4619         * conform/data/sys/time.h-data [XPG3]: Likewise.
4620         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
4621         * conform/data/sys/uio.h-data [XPG3]: Likewise.
4622         * conform/data/sys/un.h-data [XPG3]: Likewise.
4623         * conform/data/syslog.h-data [XPG3]: Likewise.
4624         * conform/data/ucontext.h-data [XPG3]: Likewise.
4625         * conform/data/utmpx.h-data [XPG3]: Likewise.
4626         * conform/data/varargs.h-data [UNIX98]: Enable file.
4627
4628         * manual/Makefile (INSTALL_INFO): Remove variable setting.
4629
4630         * math/libm-test.inc (struct test_f_f_data): Move expected results
4631         into structure for each rounding mode.
4632         (struct test_ff_f_data): Likewise.
4633         (struct test_ff_f_data_nexttoward): Likewise.
4634         (struct test_fi_f_data): Likewise.
4635         (struct test_fl_f_data): Likewise.
4636         (struct test_if_f_data): Likewise.
4637         (struct test_fff_f_data): Likewise.
4638         (struct test_c_f_data): Likewise.
4639         (struct test_f_f1_data): Likewise.
4640         (struct test_fF_f1_data): Likewise.
4641         (struct test_ffI_f1_data): Likewise.
4642         (struct test_c_c_data): Likewise.
4643         (struct test_cc_c_data): Likewise.
4644         (struct test_f_i_data): Likewise.
4645         (struct test_ff_i_data): Likewise.
4646         (struct test_f_l_data): Likewise.
4647         (struct test_f_L_data): Likewise.
4648         (struct test_fFF_11_data): Likewise.
4649         (RM_): New macro.
4650         (RM_FE_DOWNWARD): Likewise.
4651         (RM_FE_TONEAREST): Likewise.
4652         (RM_FE_TOWARDZERO): Likewise.
4653         (RM_FE_UPWARD): Likewise.
4654         (RUN_TEST_LOOP_f_f): Update references to expected results.
4655         (RUN_TEST_LOOP_2_f): Likewise.
4656         (RUN_TEST_LOOP_fff_f): Likewise.
4657         (RUN_TEST_LOOP_c_f): Likewise.
4658         (RUN_TEST_LOOP_f_f1): Likewise.
4659         (RUN_TEST_LOOP_fF_f1): Likewise.
4660         (RUN_TEST_LOOP_fI_f1): Likewise.
4661         (RUN_TEST_LOOP_ffI_f1): Likewise.
4662         (RUN_TEST_LOOP_c_c): Likewise.
4663         (RUN_TEST_LOOP_cc_c): Likewise.
4664         (RUN_TEST_LOOP_f_i): Likewise.
4665         (RUN_TEST_LOOP_f_i_tg): Likewise.
4666         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4667         (RUN_TEST_LOOP_f_b): Likewise.
4668         (RUN_TEST_LOOP_f_b_tg): Likewise.
4669         (RUN_TEST_LOOP_f_l): Likewise.
4670         (RUN_TEST_LOOP_f_L): Likewise.
4671         (RUN_TEST_LOOP_fFF_11): Likewise.
4672         * math/gen-libm-test.pl (parse_args): Output four copies of
4673         expected results for each test.
4674
4675         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
4676         (__ASSUME_UTIMES): Remove.
4677         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4678         (__ASSUME_UTIMES): Likewise.
4679
4680         * math/gen-auto-libm-tests.c: Update comment on output format.
4681         (output_for_one_input_case): Generate before-rounding and
4682         after-rounding information as conditions on output flags not
4683         floating-point format.
4684         * math/auto-libm-test-out: Regenerated.
4685         * math/gen-libm-test.pl (cond_value): New function.
4686         (or_cond_value): Use cond_value.
4687         (generate_testfile): Handle conditional exceptions.
4688
4689 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
4690
4691         * math/libm-test.inc (max_valid_error): New variable.
4692         (init_max_error): Take new argument specifying whether function
4693         results are exactly determined.  Set max_valid_error and bound
4694         other variables for errors based on this argument.
4695         (set_max_error): Do not record results above max_valid_error.
4696         (check_float_internal): Only accept errors of up to 0.5ulps if
4697         also at most max_valid_error.
4698         (START): Take new argument EXACT and pass it to init_max_error.
4699         (acos_test): Update call to START.
4700         (acos_test_tonearest): Likewise.
4701         (acos_test_towardzero): Likewise.
4702         (acos_test_downward): Likewise.
4703         (acos_test_upward): Likewise.
4704         (acosh_test): Likewise.
4705         (asin_test): Likewise.
4706         (asin_test_tonearest): Likewise.
4707         (asin_test_towardzero): Likewise.
4708         (asin_test_downward): Likewise.
4709         (asin_test_upward): Likewise.
4710         (asinh_test): Likewise.
4711         (atan_test): Likewise.
4712         (atanh_test): Likewise.
4713         (atan2_test): Likewise.
4714         (cabs_test): Likewise.
4715         (cacos_test): Likewise.
4716         (cacosh_test): Likewise.
4717         (carg_test): Likewise.
4718         (casin_test): Likewise.
4719         (casinh_test): Likewise.
4720         (catan_test): Likewise.
4721         (catanh_test): Likewise.
4722         (cbrt_test): Likewise.
4723         (ccos_test): Likewise.
4724         (ccosh_test): Likewise.
4725         (ceil_test): Likewise.
4726         (cexp_test): Likewise.
4727         (cimag_test): Likewise.
4728         (clog_test): Likewise.
4729         (clog10_test): Likewise.
4730         (conj_test): Likewise.
4731         (copysign_test): Likewise.
4732         (cos_test): Likewise.
4733         (cos_test_tonearest): Likewise.
4734         (cos_test_towardzero): Likewise.
4735         (cos_test_downward): Likewise.
4736         (cos_test_upward): Likewise.
4737         (cosh_test): Likewise.
4738         (cosh_test_tonearest): Likewise.
4739         (cosh_test_towardzero): Likewise.
4740         (cosh_test_downward): Likewise.
4741         (cosh_test_upward): Likewise.
4742         (cpow_test): Likewise.
4743         (cproj_test): Likewise.
4744         (creal_test): Likewise.
4745         (csin_test): Likewise.
4746         (csinh_test): Likewise.
4747         (csqrt_test): Likewise.
4748         (ctan_test): Likewise.
4749         (ctan_test_tonearest): Likewise.
4750         (ctan_test_towardzero): Likewise.
4751         (ctan_test_downward): Likewise.
4752         (ctan_test_upward): Likewise.
4753         (ctanh_test): Likewise.
4754         (ctanh_test_tonearest): Likewise.
4755         (ctanh_test_towardzero): Likewise.
4756         (ctanh_test_downward): Likewise.
4757         (ctanh_test_upward): Likewise.
4758         (erf_test): Likewise.
4759         (erfc_test): Likewise.
4760         (exp_test): Likewise.
4761         (exp_test_tonearest): Likewise.
4762         (exp_test_towardzero): Likewise.
4763         (exp_test_downward): Likewise.
4764         (exp_test_upward): Likewise.
4765         (exp10_test): Likewise.
4766         (exp10_test_tonearest): Likewise.
4767         (exp10_test_towardzero): Likewise.
4768         (exp10_test_downward): Likewise.
4769         (exp10_test_upward): Likewise.
4770         (pow10_test): Likewise.
4771         (exp2_test): Likewise.
4772         (expm1_test): Likewise.
4773         (expm1_test_tonearest): Likewise.
4774         (expm1_test_towardzero): Likewise.
4775         (expm1_test_downward): Likewise.
4776         (expm1_test_upward): Likewise.
4777         (fabs_test): Likewise.
4778         (fdim_test): Likewise.
4779         (floor_test): Likewise.
4780         (fma_test): Likewise.
4781         (fma_test_towardzero): Likewise.
4782         (fma_test_downward): Likewise.
4783         (fma_test_upward): Likewise.
4784         (fmax_test): Likewise.
4785         (fmin_test): Likewise.
4786         (fmod_test): Likewise.
4787         (fpclassify_test): Likewise.
4788         (frexp_test): Likewise.
4789         (hypot_test): Likewise.
4790         (ilogb_test): Likewise.
4791         (isfinite_test): Likewise.
4792         (finite_test): Likewise.
4793         (isgreater_test): Likewise.
4794         (isgreaterequal_test): Likewise.
4795         (isinf_test): Likewise.
4796         (isless_test): Likewise.
4797         (islessequal_test): Likewise.
4798         (islessgreater_test): Likewise.
4799         (isnan_test): Likewise.
4800         (isnormal_test): Likewise.
4801         (issignaling_test): Likewise.
4802         (isunordered_test): Likewise.
4803         (j0_test): Likewise.
4804         (j1_test): Likewise.
4805         (jn_test): Likewise.
4806         (ldexp_test): Likewise.
4807         (lgamma_test): Likewise.
4808         (gamma_test): Likewise.
4809         (lrint_test): Likewise.
4810         (lrint_test_tonearest): Likewise.
4811         (lrint_test_towardzero): Likewise.
4812         (lrint_test_downward): Likewise.
4813         (lrint_test_upward): Likewise.
4814         (llrint_test): Likewise.
4815         (llrint_test_tonearest): Likewise.
4816         (llrint_test_towardzero): Likewise.
4817         (llrint_test_downward): Likewise.
4818         (llrint_test_upward): Likewise.
4819         (log_test): Likewise.
4820         (log10_test): Likewise.
4821         (log1p_test): Likewise.
4822         (log2_test): Likewise.
4823         (logb_test): Likewise.
4824         (logb_test_downward): Likewise.
4825         (lround_test): Likewise.
4826         (llround_test): Likewise.
4827         (modf_test): Likewise.
4828         (nearbyint_test): Likewise.
4829         (nextafter_test): Likewise.
4830         (nexttoward_test): Likewise.
4831         (pow_test): Likewise.
4832         (pow_test_tonearest): Likewise.
4833         (pow_test_towardzero): Likewise.
4834         (pow_test_downward): Likewise.
4835         (pow_test_upward): Likewise.
4836         (remainder_test): Likewise.
4837         (drem_test): Likewise.
4838         (remainder_test_tonearest): Likewise.
4839         (drem_test_tonearest): Likewise.
4840         (remainder_test_towardzero): Likewise.
4841         (drem_test_towardzero): Likewise.
4842         (remainder_test_downward): Likewise.
4843         (drem_test_downward): Likewise.
4844         (remainder_test_upward): Likewise.
4845         (drem_test_upward): Likewise.
4846         (remquo_test): Likewise.
4847         (rint_test): Likewise.
4848         (rint_test_tonearest): Likewise.
4849         (rint_test_towardzero): Likewise.
4850         (rint_test_downward): Likewise.
4851         (rint_test_upward): Likewise.
4852         (round_test): Likewise.
4853         (scalb_test): Likewise.
4854         (scalbn_test): Likewise.
4855         (scalbln_test): Likewise.
4856         (signbit_test): Likewise.
4857         (sin_test): Likewise.
4858         (sin_test_tonearest): Likewise.
4859         (sin_test_towardzero): Likewise.
4860         (sin_test_downward): Likewise.
4861         (sin_test_upward): Likewise.
4862         (sincos_test): Likewise.
4863         (sinh_test): Likewise.
4864         (sinh_test_tonearest): Likewise.
4865         (sinh_test_towardzero): Likewise.
4866         (sinh_test_downward): Likewise.
4867         (sinh_test_upward): Likewise.
4868         (sqrt_test): Likewise.
4869         (sqrt_test_tonearest): Likewise.
4870         (sqrt_test_towardzero): Likewise.
4871         (sqrt_test_downward): Likewise.
4872         (sqrt_test_upward): Likewise.
4873         (tan_test): Likewise.
4874         (tan_test_tonearest): Likewise.
4875         (tan_test_towardzero): Likewise.
4876         (tan_test_downward): Likewise.
4877         (tan_test_upward): Likewise.
4878         (tanh_test): Likewise.
4879         (tgamma_test): Likewise.
4880         (trunc_test): Likewise.
4881         (y0_test): Likewise.
4882         (y1_test): Likewise.
4883         (yn_test): Likewise.
4884         (significand_test): Likewise.
4885
4886         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
4887         individual tests in comment.
4888         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
4889         (prev_max_error): New variable.
4890         (prev_real_max_error): Likewise.
4891         (prev_imag_max_error): Likewise.
4892         (compare_ulp_data): Don't refer to test names in comment.
4893         (find_test_ulps): Remove function.
4894         (find_function_ulps): Likewise.
4895         (find_complex_function_ulps): Likewise.
4896         (init_max_error): Take function name as argument.  Look up ulps
4897         for that function.
4898         (print_ulps): Remove function.
4899         (print_max_error): Use prev_max_error instead of calling
4900         find_function_ulps.
4901         (print_complex_max_error): Use prev_real_max_error and
4902         prev_imag_max_error instead of calling find_complex_function_ulps.
4903         (check_float_internal): Take max_ulp parameter instead of calling
4904         find_test_ulps.  Don't call print_ulps.
4905         (check_float): Update call to check_float_internal.
4906         (check_complex): Update calls to check_float_internal.
4907         (START): Pass argument to init_max_error.
4908         * math/gen-libm-test.pl (%results): Don't include "kind"
4909         information.
4910         (parse_ulps): Don't handle ulps of individual tests.
4911         (print_ulps_file): Likewise.
4912         (output_ulps): Likewise.
4913         * math/README.libm-test: Update.
4914         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
4915         individual tests.
4916         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
4917         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
4918         * sysdeps/arm/libm-test-ulps: Likewise.
4919         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
4920         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
4921         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
4922         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
4923         * sysdeps/microblaze/libm-test-ulps: Likewise.
4924         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4925         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4926         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4927         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4928         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4929         * sysdeps/sh/libm-test-ulps: Likewise.
4930         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4931         * sysdeps/tile/libm-test-ulps: Likewise.
4932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4933
4934 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
4935
4936         * math/libm-test.inc (print_complex_max_error): Check separately
4937         whether real and imaginary errors are within allowed range and
4938         pass 0 to print_complex_function_ulps instead of value within
4939         allowed range.
4940
4941 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4942
4943         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
4944         formatting.
4945         (get_handles_fopen): Likewise.
4946         (do_write_test): Likewise.
4947
4948         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
4949
4950         * libio/fileops.c (do_ftell): Use cached offset when
4951         available.
4952         * libio/iofwide.c (do_ftell_wide): Likewise.
4953         * libio/iofdopen.c (_IO_new_fdopen): Don't use
4954         _IO_file_attach.
4955         * libio/wfileops.c (_IO_fwide): Don't cache offset.
4956
4957         [BZ #16532]
4958         * libio/libioP.h (get_file_offset): New function.
4959         * libio/fileops.c (get_file_offset): Likewise.
4960         (do_ftell): Likewise.
4961         (_IO_new_file_seekoff): Split out ftell logic.
4962         * libio/wfileops.c (do_ftell_wide): Likewise.
4963         (_IO_wfile_seekoff): Split out ftell logic.
4964         * libio/tst-ftell-active-handler.c: New test case.
4965         * libio/Makefile (tests): Add it.
4966
4967 2014-03-03  Roland McGrath  <roland@hack.frob.com>
4968
4969         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
4970         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
4971
4972 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
4973
4974         [BZ #16639]
4975         * nscd/connections.c (nscd_init): Call do_exit.
4976         (start_threads): Call do_exit and notify_parent.
4977         (begin_drop_privileges): Call do_exit.
4978         (finish_drop_privileges): Likewise.
4979         * nscd/selinux.c (preserve_capabilities): Likewise.
4980         (install_real_capabilities): Likewise.
4981         (nscd_selinux_enabled): Likewise.
4982         (avc_create_thread): Likewise.
4983         (avc_alloc_lock): Likewise.
4984         (nscd_avc_init): Likewise.
4985         * nscd/nscd.c (parent_fd): New static variable.
4986         (main): Create a pipe between parent and child processes.
4987         Skip closing parent_fd.
4988         (monitor_child): New function.
4989         (do_exit): Likewise.
4990         (notify_parent): Likewise.
4991         * nscd/nscd.h (notify_parent): Likewise.
4992         (do_exit): Likewise.
4993
4994 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
4995
4996         * malloc/malloc.c (__libc_calloc): Revert last change.
4997
4998 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4999
5000         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5001
5002 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
5003
5004         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
5005         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
5006         implementation.
5007         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5008         (__libc_ifunc_impl_list): Likewise.
5009         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
5010         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
5011         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
5012         * string/strrchr.c: Define STRRCHR.
5013
5014 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
5015
5016         * benchtest/bench-strtok.c (simple_strtok): Delete.
5017         (strtok_string): Use as benchmark.
5018         * string/strtok (STRTOK): New macro.
5019
5020 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
5021
5022         * manual/threads.texi: Add header and standard comments to all
5023         functions.
5024
5025         * elf/dl-lookup.c (check_match): New function.
5026         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
5027         (do_lookup_x): Remove nested function check_match. Use non-nested
5028         function check_match.
5029
5030 2014-02-28  Roland McGrath  <roland@hack.frob.com>
5031
5032         * csu/Makefile (generated, before-compile): Use += rather than =.
5033         * catgets/Makefile (generated, generated-dirs): Likewise.
5034         * debug/Makefile (generated): Likewise.
5035         * dlfcn/Makefile (generated): Likewise.
5036         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
5037         * iconvdata/Makefile (before-compile, generated): Likewise.
5038         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
5039         * libio/Makefile (generated): Likewise.
5040         * malloc/Makefile (generated): Likewise.
5041         * manual/Makefile (generated, generated-dirs): Likewise.
5042         * misc/Makefile (generated): Likewise.
5043         * posix/Makefile (generated): Likewise.
5044         * resolv/Makefile (generated): Likewise.
5045         * sunrpc/Makefile (generated, generated-dirs): Likewise.
5046         * timezone/Makefile (generated, generated-dirs): Likewise.
5047
5048         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
5049
5050 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5051
5052         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
5053         power8 implementation.
5054         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
5055         file: POWER8 llround ifunc implementation.
5056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
5057         (__lllround): Add POWER8 implementation.
5058         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
5059         POWER8 llround implementation.
5060
5061         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
5062         power8 implementation.
5063         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
5064         file: POWER8 llrint ifunc implementation.
5065         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
5066         Add POWER8 implementation.
5067         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
5068         POWER8 llrint implementation.
5069
5070         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
5071         power8 implementation.
5072         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
5073         file: POWER8 finite ifunc implementation.
5074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
5075         Add POWER8 implementation.
5076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
5077         Likewise.
5078         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
5079         POWER8 finite implementation.
5080         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
5081
5082         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
5083         power8 implementation.
5084         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
5085         file: POWER8 isinf ifunc implementation.
5086         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
5087         POWER8 implementation.
5088         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
5089         Likewise.
5090         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
5091         isinf implementation.
5092         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
5093
5094         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
5095         (INIT_ARCH): Add hwcap2 initialization.
5096         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
5097         power8 implementation.
5098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
5099         file: POWER8 isnan ifunc implementation.
5100         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
5101         POWER8 implementation.
5102         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
5103         Likewise.
5104         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
5105         isnan implementation.
5106         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
5107
5108 2014-02-27  Joey Ye  <joey.ye@arm.com>
5109
5110         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
5111         (_FP_NANFRAC_Q): Set to zero.
5112
5113 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5114
5115         [BZ #16623]
5116         * math/auto-libm-test-in: New test inputs.
5117         * math/auto-libm-test-out: Regenerate.
5118         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
5119         and DA.
5120         (__cos): Likewise.
5121         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
5122
5123 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
5124
5125         * scripts/evaluate-test.sh: Take new argument indicating whether
5126         failure is expected.
5127         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
5128         indicating whether failure is expected.
5129         * conform/Makefile (test-xfail-run-conformtest): New variable.
5130         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
5131         level.
5132         * posix/Makefile (test-xfail-annexc): New variable.
5133         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
5134
5135 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
5136
5137         * argp/Makefile: Include Makeconfig immediately after defining
5138         subdir.
5139         * assert/Makefile: Likewise.
5140         * benchtests/Makefile: Likewise.
5141         * catgets/Makefile: Likewise.
5142         * conform/Makefile: Likewise.
5143         * crypt/Makefile: Likewise.
5144         * csu/Makefile: Likewise.
5145         (all): Remove target.
5146         * ctype/Makefile: Include Makeconfig immediately after defining
5147         subdir.
5148         * debug/Makefile: Likewise.
5149         * dirent/Makefile: Likewise.
5150         * dlfcn/Makefile: Likewise.
5151         * gmon/Makefile: Likewise.
5152         * gnulib/Makefile: Likewise.
5153         * grp/Makefile: Likewise.
5154         * gshadow/Makefile: Likewise.
5155         * hesiod/Makefile: Likewise.
5156         * hurd/Makefile: Likewise.
5157         (all): Remove target.
5158         * iconvdata/Makefile: Include Makeconfig immediately after
5159         defining subdir.
5160         * inet/Makefile: Likewise.
5161         * intl/Makefile: Likewise.
5162         * io/Makefile: Likewise.
5163         * libio/Makefile: Likewise.
5164         (all): Remove target.
5165         * locale/Makefile: Include Makeconfig immediately after defining
5166         subdir.
5167         * login/Makefile: Likewise.
5168         * mach/Makefile: Likewise.
5169         (all): Remove target.
5170         * malloc/Makefile: Include Makeconfig immediately after defining
5171         subdir.
5172         (all): Remove target.
5173         * manual/Makefile: Include Makeconfig immediately after defining
5174         subdir.
5175         * math/Makefile: Likewise.
5176         * misc/Makefile: Likewise.
5177         * nis/Makefile: Likewise.
5178         * nss/Makefile: Likewise.
5179         * po/Makefile: Likewise.
5180         (all): Remove target.
5181         * posix/Makefile: Include Makeconfig immediately after defining
5182         subdir.
5183         * pwd/Makefile: Likewise.
5184         * resolv/Makefile: Likewise.
5185         * resource/Makefile: Likewise.
5186         * rt/Makefile: Likewise.
5187         * setjmp/Makefile: Likewise.
5188         * shadow/Makefile: Likewise.
5189         * signal/Makefile: Likewise.
5190         * socket/Makefile: Likewise.
5191         * soft-fp/Makefile: Likewise.
5192         * stdio-common/Makefile: Likewise.
5193         * stdlib/Makefile: Likewise.
5194         * streams/Makefile: Likewise.
5195         * string/Makefile: Likewise.
5196         * sunrpc/Makefile: Likewise.
5197         (all): Remove target.
5198         * sysvipc/Makefile: Include Makeconfig immediately after defining
5199         subdir.
5200         * termios/Makefile: Likewise.
5201         * time/Makefile: Likewise.
5202         * timezone/Makefile: Likewise.
5203         (all): Remove target.
5204         * wcsmbs/Makefile: Include Makeconfig immediately after defining
5205         subdir.
5206         * wctype/Makefile: Likewise.
5207
5208 2014-02-26  Steve Ellcey  <sellcey@mips.com>
5209
5210         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
5211         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
5212         (libc_feholdexcept_setround_mips): Ditto.
5213         (libc_feholdsetround): New.
5214         (libc_feholdsetroundf): New.
5215         (libc_feholdsetroundl): New.
5216         (libc_feupdateenv_test_mips): New.
5217         (libc_feupdateenv_test): New.
5218         (libc_feupdateenv_testf): New.
5219         (libc_feupdateenv_testl): New.
5220         (libc_feresetround): New.
5221         (libc_feresetroundf): New.
5222         (libc_feresetroundl): New.
5223         (libc_fetestexcept_mips): New.
5224         (libc_fetestexcept): New.
5225         (libc_fetestexceptf): New.
5226         (libc_fetestexceptl): New.
5227         (HAVE_RM_CTX): New.
5228         (libc_feholdexcept_setround_mips_ctx): New.
5229         (libc_feholdexcept_setround_ctx): New.
5230         (libc_feholdexcept_setroundf_ctx): New.
5231         (libc_feholdexcept_setroundl_ctx): New.
5232         (libc_fesetenv_mips_ctx): New.
5233         (libc_fesetenv_ctx): New.
5234         (libc_fesetenv_ctxf): New.
5235         (libc_fesetenv_ctxl): New.
5236         (libc_feupdateenv_mips_ctx): New.
5237         (libc_feupdateenv_ctx): New.
5238         (libc_feupdateenvf_ctx): New.
5239         (libc_feupdateenvl_ctx): New.
5240         (libc_feholdsetround_mips_ctx): New.
5241         (libc_feholdsetround_ctx): New.
5242         (libc_feholdsetroundf_ctx): New.
5243         (libc_feholdsetroundl_ctx): New.
5244         (libc_feresetround_mips_ctx): New.
5245         (libc_feresetround_ctx): New.
5246         (libc_feresetroundf_ctx): New.
5247         (libc_feresetroundl_ctx): New.
5248
5249 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
5250
5251         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
5252
5253         * manual/ipc.texi: New file.
5254         * manual/Makefile (chapters): Add ipc.
5255         * manual/job.texi: Add "Inter-Process Communication" to next.
5256         * manual/process.texi: Add "Inter-Process Communication" to prev.
5257
5258 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5259
5260         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5261
5262 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
5263
5264         * malloc/malloc.c (__libc_calloc): Simplify implementation.
5265
5266         * manual/arith.texi: Fix spaces after sentences.
5267         * manual/charset.texi: Likewise.
5268         * manual/errno.texi: Likewise.
5269         * manual/install.texi: Likewise.
5270         * manual/llio.texi: Likewise.
5271         * manual/locale.texi: Likewise.
5272         * manual/maint.texi: Likewise.
5273         * manual/math.texi: Likewise.
5274         * manual/memory.texi: Likewise.
5275         * manual/message.texi: Likewise.
5276         * manual/probes.texi: Likewise.
5277         * manual/resource.texi: Likewise.
5278         * manual/signal.texi: Likewise.
5279         * manual/socket.texi: Likewise.
5280         * manual/stdio.texi: Likewise.
5281         * manual/string.texi: Likewise.
5282         * manual/time.texi: Likewise.
5283         * manual/users.texi: Likewise.
5284
5285 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
5286
5287         [BZ #16632]
5288         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
5289         _DEFAULT_SOURCE is defined.
5290
5291 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
5292             Carlos O'Donell  <carlos@redhat.com>
5293
5294         [BZ #16613]
5295         * elf/dl-tls.c (_dl_count_modids): New function.
5296         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
5297         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
5298         audit library and increment generation counter.
5299         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
5300         * elf/tst-audit9.c: New file.
5301         * elf/tst-auditmod9a.c: New file.
5302         * elf/tst-auditmod9b.c: New file.
5303         * elf/Makefile: Add rules to build and run tst-audit9.
5304
5305 2014-02-25  Florian Weimer  <fweimer@redhat.com>
5306
5307         [BZ #15347]
5308         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
5309
5310 2014-02-25  Will Newton  <will.newton@linaro.org>
5311
5312         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
5313         (__longjmp): Restore sp and lr before restoring callee
5314         saved registers.  Add longjmp and longjmp_target
5315         SystemTap probe point.
5316         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
5317         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
5318         Define to zero to match jmpbuf layout.
5319         * sysdeps/arm/setjmp.S: Include stap-probe.h.
5320         (__sigsetjmp): Save sp and lr before saving callee
5321         saved registers.  Add setjmp SystemTap probe point.
5322
5323 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
5324
5325         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
5326
5327 2014-02-24  Andreas Schwab  <schwab@suse.de>
5328
5329         [BZ #15804]
5330         * elf/pldd.c (wait_for_ptrace_stop): New function.
5331         (main): Call it after attaching.
5332
5333 2014-02-22  Roland McGrath  <roland@hack.frob.com>
5334
5335         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
5336         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
5337         Versions files is now verboten.
5338         * hurd/Versions (libc: GLIBC_2.0):
5339         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
5340         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
5341         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
5342         * mach/Versions: Likewise.
5343
5344         * csu/Versions: Remove unused %include.
5345         * resolv/Versions: Likewise.
5346
5347 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
5348
5349         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
5350         ($(objpfx)check-local-headers.out): Likewise.
5351         ($(objpfx)begin-end-check.out): Likewise.
5352         * Makerules (check-abi-%.out): Likewise.
5353         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
5354         ($(objpfx)test2.cat): Likewise.
5355         ($(objpfx)de/libc.cat): Likewise.
5356         ($(objpfx)test-gencat.out): Likewise.
5357         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
5358         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
5359         ($(objpfx)noload-mem): Likewise.
5360         ($(objpfx)tst-pathopt.out): Likewise.
5361         ($(objpfx)tst-rtld-load-self.out): Likewise.
5362         ($(objpfx)tst-array1-cmp.out): Likewise.
5363         ($(objpfx)tst-array1-static-cmp.out): Likewise.
5364         ($(objpfx)tst-array2-cmp.out): Likewise.
5365         ($(objpfx)tst-array3-cmp.out): Likewise.
5366         ($(objpfx)tst-array4-cmp.out): Likewise.
5367         ($(objpfx)tst-array5-cmp.out): Likewise.
5368         ($(objpfx)tst-array5-static-cmp.out): Likewise.
5369         ($(objpfx)check-textrel.out): Likewise.
5370         ($(objpfx)check-execstack.out): Likewise.
5371         ($(objpfx)check-localplt.out): Likewise.
5372         ($(objpfx)order2-cmp.out): Likewise.
5373         ($(objpfx)tst-leaks1-mem): Likewise.
5374         ($(objpfx)tst-leaks1-static-mem): Likewise.
5375         ($(objpfx)tst-initorder-cmp.out): Likewise.
5376         ($(objpfx)tst-initorder2-cmp.out): Likewise.
5377         ($(objpfx)tst-unused-dep.out): Likewise.
5378         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
5379         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
5380         * iconv/Makefile (test-iconvconfig): Likewise.
5381         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
5382         ($(objpfx)iconv-test.out): Likewise.
5383         ($(objpfx)tst-tables.out): Likewise.
5384         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
5385         ($(objpfx)tst-gettext.out): Likewise.
5386         ($(objpfx)tst-translit.out): Likewise.
5387         ($(objpfx)tst-gettext2.out): Likewise.
5388         ($(objpfx)tst-gettext4.out): Likewise.
5389         ($(objpfx)tst-gettext6.out): Likewise.
5390         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
5391         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
5392         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
5393         ($(objpfx)tst-fopenloc-mem.out): Likewise.
5394         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
5395         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
5396         * posix/Makefile ($(objpfx)globtest.out): Likewise.
5397         ($(objpfx)wordexp-tst.out): Likewise.
5398         ($(objpfx)annexc.out): Likewise.
5399         ($(objpfx)tst-fnmatch-mem): Likewise.
5400         ($(objpfx)bug-regex2-mem): Likewise.
5401         ($(objpfx)bug-regex14-mem): Likewise.
5402         ($(objpfx)bug-regex21-mem): Likewise.
5403         ($(objpfx)bug-regex31-mem): Likewise.
5404         ($(objpfx)tst-vfork3-mem): Likewise.
5405         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
5406         ($(objpfx)tst-pcre-mem): Likewise.
5407         ($(objpfx)tst-boost-mem): Likewise.
5408         ($(objpfx)tst-getconf.out): Likewise.
5409         ($(objpfx)bug-ga2-mem): Likewise.
5410         ($(objpfx)bug-glob2-mem): Likewise.
5411         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
5412         ($(objpfx)mtrace-tst-leaks2): Likewise.
5413         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
5414         ($(objpfx)tst-printf.out): Likewise.
5415         ($(objpfx)tst-setvbuf1.out): Likewise.
5416         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
5417         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
5418         ($(objpfx)tst-fmtmsg.out): Likewise.
5419         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
5420         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
5421
5422         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
5423         * bits/sigaction.h [__USE_MISC]: Likewise.
5424         * bits/waitstatus.h: Update #endif comments.
5425         * ctype/ctype.h: Likewise.
5426         * dirent/dirent.h: Likewise.
5427         [__USE_MISC]: Remove redundant conditionals.
5428         * grp/grp.h: Update #endif comments.
5429         [__USE_GNU]: Remove redundant conditionals.
5430         [__USE_MISC]: Likewise.
5431         * inet/netinet/in.h [__USE_GNU]: Likewise.
5432         * io/sys/stat.h [__USE_MISC]: Likewise.
5433         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
5434         * libio/bits/stdio.h: Update #endif comments.
5435         [__USE_MISC]: Remove redundant conditionals.
5436         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
5437         * libio/stdio.h: Update #endif comments.
5438         [__USE_MISC]: Remove redundant conditionals.
5439         * math/bits/math-finite.h [__USE_MISC]: Likewise.
5440         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
5441         * math/math.h: Update #else and #endif comments.
5442         [__USE_MISC]: Remove redundant conditionals.
5443         * misc/sys/uio.h: Update #endif comments.
5444         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
5445         * posix/glob.h [__USE_MISC]: Likewise.
5446         * posix/sys/types.h: Update #endif comments.
5447         [__USE_MISC]: Remove redundant conditionals.
5448         * posix/sys/wait.h: Update #endif comments.
5449         [__USE_MISC]: Remove redundant conditionals.
5450         * posix/unistd.h: Update #endif comments.
5451         [__USE_MISC]: Remove redundant conditionals.
5452         * pwd/pwd.h [__USE_GNU]: Likewise.
5453         [__USE_MISC]: Likewise.
5454         * resolv/netdb.h [__USE_GNU]: Likewise.
5455         * signal/signal.h: Update #endif comments.
5456         [__USE_MISC]: Remove redundant conditionals.
5457         * stdlib/stdlib.h: Update #else and #endif comments.
5458         [__USE_MISC]: Remove redundant conditionals.
5459         [__USE_GNU]: Likewise.
5460         * string/bits/string2.h [__USE_MISC]: Likewise.
5461         * string/string.h: Update #endif comments.
5462         [__USE_MISC]: Remove redundant conditionals.
5463         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
5464         Likewise.
5465         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
5466         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
5467         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
5468         Likewise.
5469         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
5470         Likewise.
5471         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
5472         comments.
5473         [__USE_MISC]: Remove redundant conditionals.
5474         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
5475         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
5476         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
5477         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
5478         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
5479         Likewise.
5480         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
5481         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
5482         Likewise.
5483         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
5484         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
5485         Likewise.
5486         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
5487         Likewise.
5488         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
5489         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
5490         Likewise.
5491         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
5492         Likewise.
5493         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
5494         * sysdeps/x86/bits/string.h: Update #endif comments.
5495         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
5496         conditionals.
5497         * time/sys/time.h: Update #endif comments.
5498         * time/time.h: Likewise.
5499         [__USE_MISC]: Remove redundant conditionals.
5500
5501 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
5502
5503         [BZ #16600]
5504         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
5505
5506 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
5507
5508         * Versions.def (librt): Add GLIBC_2.17.
5509
5510 2014-02-21  Adam Conrad  <adconrad@0c3.net>
5511
5512         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
5513         synonym for _SYS_AUXV_H to allow direct inclusion.
5514         * sysdeps/sparc/bits/hwcap.h: Likewise.
5515         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
5516         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
5517         * sysdeps/sparc/sysdep.h: Likewise.
5518
5519 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5520
5521         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
5522
5523 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5524
5525         * benchtests/bench-strrchr.c: Print length instead of position.
5526
5527 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
5528
5529         [BZ #16611]
5530         * sysdeps/unix/sysv/linux/kernel-features.h
5531         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
5532         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
5533         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
5534         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
5535         Likewise.
5536         [__i386__ || __powerpc__ || __sh__ || __sparc__]
5537         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
5538         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
5539         (__ASSUME_SENDMMSG): Define instead of using previous
5540         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
5541         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
5542         (__ASSUME_SENDMMSG_SYSCALL): Define.
5543         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5544         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
5545         Likewise.
5546         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5547         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
5548         Likewise.
5549         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5550         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
5551         Likewise.
5552         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
5553         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
5554         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
5555         [__ASSUME_SENDMMSG]: Change conditionals to
5556         [__ASSUME_SENDMMSG_SOCKETCALL].
5557         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5558         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
5559         Define.
5560         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5561         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
5562         Likewise.
5563         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
5564         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
5565         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
5566         [!__ASSUME_SENDMMSG]: Change conditional to
5567         [!__ASSUME_SENDMMSG_SOCKETCALL].
5568         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5569         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
5570         Define.
5571
5572         [BZ #16610]
5573         * sysdeps/unix/sysv/linux/kernel-features.h
5574         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
5575         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
5576         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
5577         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
5578         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
5579         [__i386__ || __sparc__]
5580         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
5581         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
5582         (__ASSUME_RECVMMSG): Define instead of using previous
5583         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
5584         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
5585         (__ASSUME_RECVMMSG_SYSCALL): Define.
5586         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5587         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5588         Likewise.
5589         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5590         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5591         Likewise.
5592         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5593         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5594         Likewise.
5595         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
5596         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
5597         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
5598         [__ASSUME_RECVMMSG]: Change condition to
5599         [__ASSUME_RECVMMSG_SOCKETCALL].
5600         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5601         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5602         Define.
5603         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
5604         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5605         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
5606         Likewise.
5607         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
5608         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
5609         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
5610         [!__ASSUME_RECVMMSG]: Change condition to
5611         [!__ASSUME_RECVMMSG_SOCKETCALL].
5612         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5613         (__ASSUME_RECVMMSG_SYSCALL): Define.
5614
5615         [BZ #16609]
5616         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
5617         __powerpc__ || __s390__ || __sh__ || __sparc__]
5618         (__ASSUME_SOCKETCALL): Define.
5619         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
5620         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
5621         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
5622         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
5623         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
5624         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
5625         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
5626         (__ASSUME_ACCEPT4): Define instead of using previous
5627         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
5628         __powerpc__ || __sparc__ || __s390__)] condition.
5629         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
5630         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
5631         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
5632         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
5633         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
5634         [!__ASSUME_ACCEPT4]: Change condition to
5635         [!__ASSUME_ACCEPT4_SOCKETCALL].
5636         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5637         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
5638         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
5639         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5640         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
5641         __ASSUME_ACCEPT4_SYSCALL.
5642         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
5643         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
5644         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5645         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
5646         __ASSUME_ACCEPT4_SYSCALL.
5647         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
5648         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
5649         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
5650         [__ASSUME_ACCEPT4]: Change condition to
5651         [__ASSUME_ACCEPT4_SOCKETCALL].
5652         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5653         (__ASSUME_SOCKETCALL): Define.
5654         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
5655         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5656         (__ASSUME_SOCKETCALL): Define.
5657         (__ASSUME_ACCEPT4): Remove.
5658         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
5659         Define.
5660         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5661         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
5662         Likewise.
5663         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5664         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
5665
5666         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
5667         macro.
5668         (HWCAP_ARM_LPAE): Likewise.
5669         (HWCAP_ARM_EVTSTRM): Likewise.
5670         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
5671         Add vpfd32, lpae and evtstrm.
5672         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5673         Increase to 22.
5674
5675 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
5676
5677         * math/auto-libm-test-in: Add tests of clog10.
5678         * math/auto-libm-test-out: Regenerated.
5679         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
5680         * sysdeps/i386/fpu/libm-test-ulps: Update.
5681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5682
5683 2014-02-18  Andreas Schwab  <schwab@suse.de>
5684
5685         [BZ #16574]
5686         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
5687         Store non-zero if the second buffer was newly allocated.
5688         (send_dg): Likewise.
5689         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
5690         to send_vc and send_dg.
5691         (res_nsend): Pass NULL for ansp2_malloced.
5692         * resolv/res_query.c (__libc_res_nquery): Add parameter
5693         answerp2_malloced and pass it down to __libc_res_nsend.
5694         (res_nquery): Pass additional NULL to __libc_res_nquery.
5695         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
5696         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
5697         second answer buffer if answerp2_malloced was set.
5698         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
5699         (__libc_res_nquerydomain): Add parameter
5700         answerp2_malloced and pass it down to __libc_res_nquery.
5701         (res_nquerydomain): Pass additional NULL to
5702         __libc_res_nquerydomain.
5703         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
5704         additional NULL to __libc_res_nsend and __libc_res_nquery.
5705         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
5706         additional NULL to __libc_res_nsearch.
5707         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
5708         parameter of __libc_res_nsearch to check for separately allocated
5709         second buffer.
5710         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
5711         __libc_res_nquery.
5712         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
5713         additional NULL to __libc_res_nquery.
5714         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
5715         __libc_res_nsearch.
5716         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
5717         * include/resolv.h: Update prototypes of __libc_res_nquery,
5718         __libc_res_nsearch, __libc_res_nsend.
5719
5720 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
5721
5722         * math/auto-libm-test-in: Add tests of fma.
5723         * math/auto-libm-test-out: Regenerated.
5724         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
5725         (fma_towardzero_test_data): Likewise.
5726         (fma_downward_test_data): Likewise.
5727         (fma_upward_test_data): Likewise.
5728         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
5729         mpc_mode.
5730         (rounding_modes): Add values for new field.
5731         (func_calc_method): Add value mpfr_fff_f.
5732         (func_calc_desc): Add mpfr_fff_f union field.
5733         (test_function): Add field exact_args.
5734         (FUNC): Add macro argument EXACT_ARGS.
5735         (FUNC_mpfr_f_f): Update call to FUNC.
5736         (FUNC_mpfr_f_f): Likewise.
5737         (FUNC_mpfr_ff_f): Likewise.
5738         (FUNC_mpfr_if_f): Likewise.
5739         (FUNC_mpc_c_f): Likewise.
5740         (FUNC_mpc_c_c): Likewise.
5741         (test_functions): Add fma.  Update calls to FUNC.
5742         (handle_input_arg): Add argument exact_args.
5743         (add_test): Update call to handle_input_arg.
5744         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
5745         (output_for_one_input_case): Update call to calc_generic_results.
5746         Recalculate exact zero results in each rounding mode.
5747
5748         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
5749         non-negative before setting low bit.
5750         * math/auto-libm-test-in: Mark one asin test possibly having
5751         spurious underflow.
5752         * math/auto-libm-test-out: Regenerated.
5753         * sysdeps/i386/fpu/libm-test-ulps: Update.
5754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5755
5756 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
5757
5758         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
5759         * sysdeps/unix/sysv/linux/microblaze: Move directory from
5760         ports/sysdeps/unix/sysv/linux/microblaze.
5761         * README: Add missing listing for microblaze*-*-linux-gnu.
5762
5763 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
5764
5765         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
5766         * sysdeps/unix/sysv/linux/ia64: Move directory from
5767         ports/sysdeps/unix/sysv/linux/ia64.
5768         * README: Update listing for ia64-*-linux-gnu.
5769
5770 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
5771             Joseph Myers  <joseph@codesourcery.com>
5772
5773         * Makeconfig (test-name): New variable.
5774         (evaluate-test): Likewise.
5775         * Makerules (do-test-clean): Remove .test-result files.
5776         (common-mostlyclean): Likewise.
5777         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
5778         * scripts/evaluate-test.sh: New file.
5779
5780 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
5781
5782         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
5783         separate $(objpfx)tst-fopenloc-cmp.out and
5784         $(objpfx)tst-fopenloc-mem.out targets.
5785         (tests): Update dependencies.
5786         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
5787         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
5788         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
5789         (tst-rxspencer-no-utf8-ARGS): New variable.
5790         (tst-rxspencer-no-utf8-ENV): Likewise.
5791         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
5792         instead of $(objpfx)tst-rxspencer-mem.
5793         ($(objpfx)tst-rxspencer-mem): Change target to
5794         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
5795         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
5796         * posix/tst-rxspencer-no-utf8.c: New file.
5797
5798         * elf/Makefile ($(objpfx)order.out): Remove rule.
5799         [$(run-built-tests) = yes] (tests): Depend on
5800         $(objpfx)order-cmp.out.
5801         ($(objpfx)order-cmp.out): New rule.
5802         [$(run-built-tests) = yes] (tests): Depend on
5803         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
5804         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
5805         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
5806         $(objpfx)tst-array5-static-cmp.out.
5807         ($(objpfx)tst-array1.out): Remove rule.
5808         ($(objpfx)tst-array1-cmp.out): New rule.
5809         ($(objpfx)tst-array1-static.out): Remove rule.
5810         ($(objpfx)tst-array1-static-cmp.out): New rule.
5811         ($(objpfx)tst-array2.out): Remove rule.
5812         ($(objpfx)tst-array2-cmp.out): New rule.
5813         ($(objpfx)tst-array3.out): Remove rule.
5814         ($(objpfx)tst-array3-cmp.out): New rule.
5815         ($(objpfx)tst-array4.out): Remove rule.
5816         ($(objpfx)tst-array4-cmp.out): New rule.
5817         ($(objpfx)tst-array5.out): Remove rule.
5818         ($(objpfx)tst-array5-cmp.out): New rule.
5819         ($(objpfx)tst-array5-static.out): Remove rule.
5820         ($(objpfx)tst-array5-static-cmp.out): New rule.
5821         [$(run-built-tests) = yes] (tests): Depend on
5822         $(objpfx)order2-cmp.out.
5823         ($(objpfx)order2.out): Remove rule.
5824         ($(objpfx)order2-cmp.out): New rule.
5825         ($(objpfx)tst-initorder.out): Remove rule.
5826         [$(run-built-tests) = yes] (tests): Depend on
5827         $(objpfx)tst-initorder-cmp.out.
5828         ($(objpfx)tst-initorder-cmp.out): New rule.
5829         ($(objpfx)tst-initorder2.out): Remove rule.
5830         [$(run-built-tests) = yes] (tests): Depend on
5831         $(objpfx)tst-initorder2-cmp.out.
5832         ($(objpfx)tst-initorder2-cmp.out): New rule.
5833         [$(run-built-tests) = yes] (tests): Depend on
5834         $(objpfx)tst-unused-dep-cmp.out.
5835         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
5836         ($(objpfx)tst-unused-dep-cmp.out): New rule.
5837         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
5838         on $(objpfx)tst-setvbuf1-cmp.out.
5839         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
5840         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
5841         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
5842         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
5843         ($(objpfx)tst-svc.out): Remove rule.
5844         ($(objpfx)tst-svc-cmp.out): New rule.
5845
5846 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
5847
5848         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
5849         * ctype/ctype.h [__USE_MISC]: Likewise.
5850         * dirent/dirent.h [__USE_MISC]: Likewise.
5851         * grp/grp.h [__USE_MISC]: Likewise.
5852         * io/fcntl.h [__USE_MISC]: Likewise.
5853         * io/sys/stat.h [__USE_MISC]: Likewise.
5854         * libio/stdio.h [__USE_MISC]: Likewise.
5855         * posix/unistd.h [__USE_MISC]: Likewise.
5856         * pwd/pwd.h [__USE_MISC]: Likewise.
5857         * stdlib.h [__USE_MISC]: Likewise.
5858         * string/bits/string2.h [__USE_MISC]: Likewise.
5859         * string/string.h [__USE_MISC]: Likewise.
5860         * time/time.h [__USE_MISC]: Likewise.
5861
5862 2014-02-13  Andreas Schwab  <schwab@suse.de>
5863
5864         [BZ #16574]
5865         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
5866         second answer buffer if it was separately allocated.
5867
5868 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
5869
5870         * sysdeps/mips/math-tests.h: Include <features.h>.
5871         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
5872         (ROUNDING_TESTS_long_double): Do not define.
5873         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
5874         (EXCEPTION_TESTS_long_double): Likewise.
5875         * sysdeps/mips/mips64/libm-test-ulps: Update.
5876
5877         * include/features.h (__USE_BSD): Remove macro definitions.
5878         (__USE_SVID): Likewise.
5879         (_BSD_SOURCE): Likewise.
5880         (_SVID_SOURCE): Likewise.
5881         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
5882         from definition of _DEFAULT_SOURCE.
5883         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
5884         [_DEFAULT_SOURCE].
5885         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
5886         * bits/mman.h [__USE_BSD]: Likewise.
5887         * bits/termios.h [__USE_BSD]: Likewise.
5888         * bits/waitstatus.h [__USE_BSD]: Likewise.
5889         * ctype/ctype.h [__USE_SVID]: Likewise.
5890         * dirent/dirent.h [__USE_BSD]: Likewise.
5891         * grp/grp.h [__USE_SVID]: Likewise.
5892         [__USE_BSD]: Likewise.
5893         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
5894         * io/fcntl.h [__USE_BSD]: Likewise.
5895         * io/ftw.h [__USE_BSD]: Likewise.
5896         * io/sys/stat.h [__USE_BSD]: Likewise.
5897         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
5898         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
5899         * libio/stdio.h [__USE_SVID]: Likewise.
5900         [__USE_BSD]: Likewise.
5901         * math/math.h [__USE_SVID]: Likewise.
5902         [__USE_BSD]: Likewise.
5903         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
5904         * misc/bits/syslog.h [__USE_BSD]: Likewise.
5905         * misc/search.h [__USE_SVID]: Likewise.
5906         * misc/sys/mman.h [__USE_BSD]: Likewise.
5907         * misc/sys/syslog.h [__USE_BSD]: Likewise.
5908         * misc/sys/uio.h [__USE_BSD]: Likewise.
5909         * posix/bits/unistd.h [__USE_BSD]: Likewise.
5910         * posix/glob.h [__USE_BSD]: Likewise.
5911         * posix/regex.h [__USE_BSD]: Likewise.
5912         * posix/sys/types.h [__USE_BSD]: Likewise.
5913         [__USE_SVID]: Likewise.
5914         * posix/sys/utsname.h [__USE_SVID]: Likewise.
5915         * posix/sys/wait.h [__USE_BSD]: Likewise.
5916         [__USE_SVID]: Likewise.
5917         * posix/unistd.h [__USE_BSD]: Likewise.
5918         [__USE_SVID]: Likewise.
5919         * pwd/pwd.h [__USE_SVID]: Likewise.
5920         * resolv/netdb.h [__USE_BSD]: Likewise.
5921         * setjmp/setjmp.h [__USE_BSD]: Likewise.
5922         * signal/signal.h [__USE_BSD]: Likewise.
5923         [__USE_SVID]: Likewise.
5924         * socket/sys/socket.h [__USE_BSD]: Likewise.
5925         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
5926         * stdlib/stdlib.h [__USE_BSD]: Likewise.
5927         [__USE_SVID]: Likewise.
5928         * string/bits/string2.h [__USE_BSD]: Likewise.
5929         [__USE_SVID]: Likewise.
5930         * string/bits/string3.h [__USE_BSD]: Likewise.
5931         * string/endian.h [__USE_BSD]: Likewise.
5932         * string/string.h [__USE_SVID]: Likewise.
5933         [__USE_BSD]: Likewise.
5934         * string/strings.h [__USE_BSD]: Likewise.
5935         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
5936         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
5937         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
5938         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
5939         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
5940         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
5941         Likewise.
5942         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
5943         Likewise.
5944         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
5945         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
5946         Likewise.
5947         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
5948         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
5949         Likewise.
5950         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
5951         Likewise.
5952         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
5953         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
5954         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
5955         Likewise.
5956         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
5957         Likewise.
5958         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
5959         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
5960         * termios/termios.h [__USE_BSD]: Likewise.
5961         * time/sys/time.h [__USE_BSD]: Likewise.
5962         * time/time.h [__USE_BSD]: Likewise.
5963         [__USE_SVID]: Likewise.
5964
5965         * Makefile (subdir_targets): Remove subdir_lint.out.
5966
5967         * stdio-common/Makefile (do-tst-unbputc): Remove target.
5968         (do-tst-printf): Likewise.
5969         (tests): Depend directly on $(objpfx)tst-unbputc.out and
5970         $(objpfx)tst-printf.out.
5971
5972         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
5973
5974         * Makerules (check-abi-%): Change target to
5975         $(objpfx)check-abi-%.out.
5976         (check-abi target): Update dependencies.
5977         (check-abi-pattern variable): Redirect output of diff to $@.
5978         (check-abi variable): Likewise.
5979         * elf/Makefile (check-abi): Update dependencies.
5980
5981         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
5982         unused.
5983         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
5984         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
5985         subnormal range.
5986         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
5987         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
5988         value has largest subnormal exponent.
5989         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
5990         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
5991         * sysdeps/aarch64/soft-fp/sfp-machine.h
5992         (_FP_TININESS_AFTER_ROUNDING): New macro.
5993         * sysdeps/alpha/soft-fp/sfp-machine.h
5994         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5995         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
5996         Likewise.
5997         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
5998         (_FP_TININESS_AFTER_ROUNDING): Likewise.
5999         * sysdeps/mips/soft-fp/sfp-machine.h
6000         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6001         * sysdeps/powerpc/soft-fp/sfp-machine.h
6002         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6003         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
6004         Likewise.
6005         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6006         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6007         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6008         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6009         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
6010         Likewise.
6011
6012 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
6013
6014         [BZ #16545]
6015         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
6016         model 1.
6017
6018 2014-02-12  Richard Henderson  <rth@redhat.com>
6019
6020         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
6021         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
6022         * sysdeps/unix/sysv/linux/alpha: Move directory from
6023         ports/sysdeps/unix/sysv/linux/alpha.
6024         * README: Update listing for alpha-*-linux-gnu.
6025
6026 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
6027
6028         * include/features.h: Update comment documenting feature test
6029         macros.
6030         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
6031         _DEFAULT_SOURCE.
6032         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
6033         (_SVID_SOURCE): Likewise.
6034         (_DEFAULT_SOURCE): Update description of default features.
6035         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
6036         with _GNU_SOURCE.
6037         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
6038         (S_ISVTX): Likewise.
6039         * manual/math.texi (Mathematical Constants): Likewise.
6040         * manual/signal.texi (Interrupted Primitives): Likewise.
6041         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
6042         * math/test-matherr.c (_SVID_SOURCE): Do not define.
6043         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
6044         Don't refer to _SVID_SOURCE in warning text.
6045
6046         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6047
6048         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
6049         already defined.
6050         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
6051         * sysdeps/mips/dl-lookup.c: Remove.
6052         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
6053
6054 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
6055
6056         [BZ #16447]
6057         * math/auto-libm-test-in: Add testcase for expl.
6058         * math/auto-libm-test-out: Regenerate.
6059         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
6060         calculation of unsafe.
6061         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
6062
6063 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6064
6065         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
6066         * sysdeps/unix/sysv/linux/aarch64: Move directory from
6067         ports/sysdeps/unix/sysv/linux/aarch64.
6068         * README: Update listing for aarch64*-*-linux-gnu.
6069
6070 2014-02-11  Will Newton  <will.newton@linaro.org>
6071
6072         * manual/probes.texi (Mathematical Function Probes): Use
6073         "triggered" instead of "hit".
6074
6075         * manual/probes.texi (Internal Probes): Add documentation
6076         of setjmp, longjmp and longjmp_target probes.
6077
6078         * include/stap-probe.h: Add comment about probe argument
6079         format.
6080
6081         * malloc/mtrace.c (attribute_hidden): Remove unused macro
6082         definition.  (tr_where, tr_freehook, tr_mallochook,
6083         tr_reallochook, tr_memalignhook): Use ANSI protoype.
6084
6085 2014-02-11  David S. Miller  <davem@davemloft.net>
6086
6087         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
6088         processing int_tests.
6089
6090 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
6091
6092         * sysdeps/mips: Move directory from ports/sysdeps/mips.
6093         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
6094         * sysdeps/unix/sysv/linux/mips: Move directory from
6095         ports/sysdeps/unix/sysv/linux/mips.
6096         * README: Update listing for mips-*-linux-gnu and
6097         mips64-*-linux-gnu.
6098
6099 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
6100
6101         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
6102         * sysdeps/unix/sysv/linux/m68k: Move directory from
6103         ports/sysdeps/unix/sysv/linux/m68k.
6104         * README: Update listing for m68k-*-linux-gnu.
6105
6106 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
6107
6108         * sysdeps/tile: Move directory from ports/sysdeps/tile.
6109         * sysdeps/unix/sysv/linux/generic: Move directory from
6110         ports/sysdeps/unix/sysv/linux/generic.
6111         * sysdeps/unix/sysv/linux/tile: Move directory from
6112         ports/sysdeps/unix/sysv/linux/tile.
6113         * README: Update listing for tile*-*-linux-gnu.
6114
6115 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
6116
6117         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
6118         __builtin_expect.
6119         * benchtests/bench-memmem.c (simple_memmem): Likewise.
6120         * catgets/open_catalog.c (__open_catalog): Likewise.
6121         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
6122         * debug/confstr_chk.c: Likewise.
6123         * debug/fread_chk.c (__fread_chk): Likewise.
6124         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
6125         * debug/getgroups_chk.c: Likewise.
6126         * debug/mbsnrtowcs_chk.c: Likewise.
6127         * debug/mbsrtowcs_chk.c: Likewise.
6128         * debug/mbstowcs_chk.c: Likewise.
6129         * debug/memcpy_chk.c: Likewise.
6130         * debug/memmove_chk.c: Likewise.
6131         * debug/mempcpy_chk.c: Likewise.
6132         * debug/memset_chk.c: Likewise.
6133         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
6134         * debug/strcat_chk.c (__strcat_chk): Likewise.
6135         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
6136         * debug/strncat_chk.c (__strncat_chk): Likewise.
6137         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
6138         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
6139         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
6140         * debug/wcpncpy_chk.c: Likewise.
6141         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
6142         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
6143         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
6144         * debug/wcsncpy_chk.c: Likewise.
6145         * debug/wcsnrtombs_chk.c: Likewise.
6146         * debug/wcsrtombs_chk.c: Likewise.
6147         * debug/wcstombs_chk.c: Likewise.
6148         * debug/wmemcpy_chk.c: Likewise.
6149         * debug/wmemmove_chk.c: Likewise.
6150         * debug/wmempcpy_chk.c: Likewise.
6151         * debug/wmemset_chk.c: Likewise.
6152         * dirent/scandirat.c (SCANDIRAT): Likewise.
6153         * dlfcn/dladdr1.c (dladdr1): Likewise.
6154         * dlfcn/dladdr.c (dladdr): Likewise.
6155         * dlfcn/dlclose.c (dlclose_doit): Likewise.
6156         * dlfcn/dlerror.c (__dlerror): Likewise.
6157         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6158         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
6159         * dlfcn/dlopen.c (dlopen_doit): Likewise.
6160         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
6161         * dlfcn/dlsym.c (dlsym_doit): Likewise.
6162         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
6163         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
6164         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
6165         Likewise.
6166         * elf/dl-conflict.c: Likewise.
6167         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
6168         * elf/dl-dst.h: Likewise.
6169         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
6170         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
6171         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
6172         * elf/dl-init.c (call_init, _dl_init): Likewise.
6173         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
6174         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
6175         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
6176         Likewise.
6177         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
6178         Likewise.
6179         * elf/dl-minimal.c (__libc_memalign): Likewise.
6180         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
6181         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6182         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
6183         * elf/dl-sym.c (do_sym): Likewise.
6184         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
6185         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
6186         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
6187         * elf/dl-writev.h (_dl_writev): Likewise.
6188         * elf/ldconfig.c (search_dir): Likewise.
6189         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
6190         (dl_main): Likewise.
6191         * elf/setup-vdso.h (setup_vdso): Likewise.
6192         * grp/compat-initgroups.c (compat_call): Likewise.
6193         * grp/fgetgrent.c (fgetgrent): Likewise.
6194         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
6195         * grp/putgrent.c (putgrent): Likewise.
6196         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
6197         Likewise.
6198         * hurd/hurdinit.c: Likewise.
6199         * iconvdata/8bit-gap.c (struct): Likewise.
6200         * iconvdata/ansi_x3.110.c : Likewise.
6201         * iconvdata/big5.c : Likewise.
6202         * iconvdata/big5hkscs.c : Likewise.
6203         * iconvdata/cp1255.c: Likewise.
6204         * iconvdata/cp1258.c : Likewise.
6205         * iconvdata/cp932.c : Likewise.
6206         * iconvdata/euc-cn.c: Likewise.
6207         * iconvdata/euc-jisx0213.c : Likewise.
6208         * iconvdata/euc-jp.c: Likewise.
6209         * iconvdata/euc-jp-ms.c : Likewise.
6210         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
6211         * iconvdata/gb18030.c : Likewise.
6212         * iconvdata/gbbig5.c (const): Likewise.
6213         * iconvdata/gbgbk.c: Likewise.
6214         * iconvdata/gbk.c : Likewise.
6215         * iconvdata/ibm1364.c : Likewise.
6216         * iconvdata/ibm930.c : Likewise.
6217         * iconvdata/ibm932.c: Likewise.
6218         * iconvdata/ibm933.c : Likewise.
6219         * iconvdata/ibm935.c : Likewise.
6220         * iconvdata/ibm937.c : Likewise.
6221         * iconvdata/ibm939.c : Likewise.
6222         * iconvdata/ibm943.c: Likewise.
6223         * iconvdata/iso_11548-1.c: Likewise.
6224         * iconvdata/iso-2022-cn.c : Likewise.
6225         * iconvdata/iso-2022-cn-ext.c : Likewise.
6226         * iconvdata/iso-2022-jp-3.c: Likewise.
6227         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
6228         * iconvdata/iso-2022-kr.c : Likewise.
6229         * iconvdata/iso646.c (gconv_end): Likewise.
6230         * iconvdata/iso_6937-2.c : Likewise.
6231         * iconvdata/iso_6937.c : Likewise.
6232         * iconvdata/iso8859-1.c: Likewise.
6233         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
6234         * iconvdata/shift_jisx0213.c : Likewise.
6235         * iconvdata/sjis.c : Likewise.
6236         * iconvdata/t.61.c : Likewise.
6237         * iconvdata/tcvn5712-1.c : Likewise.
6238         * iconvdata/tscii.c: Likewise.
6239         * iconvdata/uhc.c : Likewise.
6240         * iconvdata/unicode.c (gconv_end): Likewise.
6241         * iconvdata/utf-16.c (gconv_end): Likewise.
6242         * iconvdata/utf-32.c (gconv_end): Likewise.
6243         * iconvdata/utf-7.c (base64): Likewise.
6244         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6245         * iconv/gconv_close.c (__gconv_close): Likewise.
6246         * iconv/gconv_open.c (__gconv_open): Likewise.
6247         * iconv/gconv_simple.c (internal_ucs4_loop_single)
6248         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
6249         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
6250         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
6251         (ucs4le_internal_loop_single): Likewise.
6252         * iconv/iconv.c (iconv): Likewise.
6253         * iconv/iconv_close.c: Likewise.
6254         * iconv/loop.c (SINGLE): Likewise.
6255         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
6256         * include/atomic.h: Likewise.
6257         * inet/inet6_option.c (option_alloc): Likewise.
6258         * intl/bindtextdom.c (set_binding_values): Likewise.
6259         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
6260         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
6261         * intl/localealias.c (read_alias_file): Likewise.
6262         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
6263         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
6264         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
6265         * libio/fmemopen.c (fmemopen): Likewise.
6266         * libio/iofgets.c (_IO_fgets): Likewise.
6267         * libio/iofgets_u.c (fgets_unlocked): Likewise.
6268         * libio/iofgetws.c (fgetws): Likewise.
6269         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
6270         * libio/iogetdelim.c (_IO_getdelim): Likewise.
6271         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
6272         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
6273         * locale/findlocale.c (_nl_find_locale): Likewise.
6274         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6275         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
6276         Likewise.
6277         * locale/setlocale.c (setlocale): Likewise.
6278         * login/programs/pt_chown.c (main): Likewise.
6279         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
6280         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
6281         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
6282         (mmap, mmap64, mremap, munmap): Likewise.
6283         * math/e_exp2l.c: Likewise.
6284         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
6285         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
6286         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
6287         * math/s_catan.c (__catan): Likewise.
6288         * math/s_catanf.c (__catanf): Likewise.
6289         * math/s_catanh.c (__catanh): Likewise.
6290         * math/s_catanhf.c (__catanhf): Likewise.
6291         * math/s_catanhl.c (__catanhl): Likewise.
6292         * math/s_catanl.c (__catanl): Likewise.
6293         * math/s_ccosh.c (__ccosh): Likewise.
6294         * math/s_ccoshf.c (__ccoshf): Likewise.
6295         * math/s_ccoshl.c (__ccoshl): Likewise.
6296         * math/s_cexp.c (__cexp): Likewise.
6297         * math/s_cexpf.c (__cexpf): Likewise.
6298         * math/s_cexpl.c (__cexpl): Likewise.
6299         * math/s_clog10.c (__clog10): Likewise.
6300         * math/s_clog10f.c (__clog10f): Likewise.
6301         * math/s_clog10l.c (__clog10l): Likewise.
6302         * math/s_clog.c (__clog): Likewise.
6303         * math/s_clogf.c (__clogf): Likewise.
6304         * math/s_clogl.c (__clogl): Likewise.
6305         * math/s_csin.c (__csin): Likewise.
6306         * math/s_csinf.c (__csinf): Likewise.
6307         * math/s_csinh.c (__csinh): Likewise.
6308         * math/s_csinhf.c (__csinhf): Likewise.
6309         * math/s_csinhl.c (__csinhl): Likewise.
6310         * math/s_csinl.c (__csinl): Likewise.
6311         * math/s_csqrt.c (__csqrt): Likewise.
6312         * math/s_csqrtf.c (__csqrtf): Likewise.
6313         * math/s_csqrtl.c (__csqrtl): Likewise.
6314         * math/s_ctan.c (__ctan): Likewise.
6315         * math/s_ctanf.c (__ctanf): Likewise.
6316         * math/s_ctanh.c (__ctanh): Likewise.
6317         * math/s_ctanhf.c (__ctanhf): Likewise.
6318         * math/s_ctanhl.c (__ctanhl): Likewise.
6319         * math/s_ctanl.c (__ctanl): Likewise.
6320         * math/w_pow.c: Likewise.
6321         * math/w_powf.c: Likewise.
6322         * math/w_powl.c: Likewise.
6323         * math/w_scalb.c (sysv_scalb): Likewise.
6324         * math/w_scalbf.c (sysv_scalbf): Likewise.
6325         * math/w_scalbl.c (sysv_scalbl): Likewise.
6326         * misc/error.c (error_tail): Likewise.
6327         * misc/pselect.c (__pselect): Likewise.
6328         * nis/nis_callback.c (__nis_create_callback): Likewise.
6329         * nis/nis_call.c (__nisfind_server): Likewise.
6330         * nis/nis_creategroup.c (nis_creategroup): Likewise.
6331         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
6332         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6333         * nis/nis_getservlist.c (nis_getservlist): Likewise.
6334         * nis/nis_lookup.c (nis_lookup): Likewise.
6335         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
6336         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
6337         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
6338         * nis/nis_xdr.c (xdr_endpoint): Likewise.
6339         * nis/nss_compat/compat-grp.c (getgrent_next_file)
6340         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
6341         * nis/nss_compat/compat-initgroups.c (add_group)
6342         (internal_getgrent_r): Likewise.
6343         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
6344         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
6345         * nis/nss_compat/compat-spwd.c (getspent_next_file)
6346         (internal_getspnam_r): Likewise.
6347         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
6348         (_nss_nis_getaliasbyname_r): Likewise.
6349         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
6350         (_nss_nis_getntohost_r): Likewise.
6351         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
6352         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
6353         (_nss_nis_getgrgid_r): Likewise.
6354         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
6355         (internal_nis_gethostent_r, internal_gethostbyname2_r)
6356         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
6357         (_nss_nis_gethostbyname4_r): Likewise.
6358         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
6359         (initgroups_netid): Likewise.
6360         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
6361         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
6362         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
6363         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
6364         (_nss_nis_getprotobynumber_r): Likewise.
6365         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
6366         (_nss_nis_getsecretkey): Likewise.
6367         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
6368         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
6369         (_nss_nis_getpwuid_r): Likewise.
6370         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
6371         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
6372         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
6373         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
6374         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
6375         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
6376         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
6377         Likewise.
6378         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
6379         (_nss_nisplus_getntohost_r): Likewise.
6380         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
6381         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
6382         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
6383         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
6384         Likewise.
6385         * nis/nss_nisplus/nisplus-initgroups.c
6386         (_nss_nisplus_initgroups_dyn): Likewise.
6387         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
6388         (_nss_nisplus_getnetbyaddr_r): Likewise.
6389         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
6390         (_nss_nisplus_getprotobynumber_r): Likewise.
6391         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
6392         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
6393         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
6394         Likewise.
6395         * nis/nss_nisplus/nisplus-service.c
6396         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
6397         (_nss_nisplus_getservbyport_r): Likewise.
6398         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
6399         (_nss_nisplus_getspnam_r): Likewise.
6400         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
6401         Likewise.
6402         * nscd/aicache.c (addhstaiX): Likewise.
6403         * nscd/cache.c (cache_search, prune_cache): Likewise.
6404         * nscd/connections.c (register_traced_file, send_ro_fd)
6405         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
6406         (main_loop_epoll): Likewise.
6407         * nscd/grpcache.c (addgrbyX): Likewise.
6408         * nscd/hstcache.c (addhstbyX): Likewise.
6409         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6410         * nscd/mem.c (gc, mempool_alloc): Likewise.
6411         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
6412         (addinnetgrX): Likewise.
6413         * nscd/nscd-client.h (__nscd_acquire_maplock)
6414         (__nscd_drop_map_ref): Likewise.
6415         * nscd/nscd_getai.c (__nscd_getai): Likewise.
6416         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6417         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
6418         Likewise.
6419         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6420         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6421         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
6422         (__nscd_get_map_ref): Likewise.
6423         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
6424         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
6425         Likewise.
6426         * nscd/pwdcache.c (addpwbyX): Likewise.
6427         * nscd/selinux.c (preserve_capabilities): Likewise.
6428         * nscd/servicescache.c (addservbyX): Likewise.
6429         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
6430         * posix/fnmatch.c (fnmatch): Likewise.
6431         * posix/getopt.c (_getopt_internal_r): Likewise.
6432         * posix/glob.c (glob, glob_in_dir): Likewise.
6433         * posix/wordexp.c (exec_comm_child): Likewise.
6434         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
6435         (getanswer_r, gaih_getanswer_slice): Likewise.
6436         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
6437         * resolv/res_init.c: Likewise.
6438         * resolv/res_mkquery.c (res_nmkquery): Likewise.
6439         * resolv/res_query.c (__libc_res_nquery): Likewise.
6440         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
6441         Likewise.
6442         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
6443         * stdio-common/perror.c (perror): Likewise.
6444         * stdio-common/printf_fp.c (___printf_fp): Likewise.
6445         * stdio-common/tmpnam.c (tmpnam): Likewise.
6446         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
6447         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
6448         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
6449         Likewise.
6450         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
6451         * stdlib/putenv.c (putenv): Likewise.
6452         * stdlib/setenv.c (__add_to_environ): Likewise.
6453         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
6454         * stdlib/strtol_l.c (INTERNAL): Likewise.
6455         * string/memmem.c (memmem): Likewise.
6456         * string/strerror.c (strerror): Likewise.
6457         * string/strnlen.c (__strnlen): Likewise.
6458         * string/test-memmem.c (simple_memmem): Likewise.
6459         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
6460         * sunrpc/pm_getport.c (__get_socket): Likewise.
6461         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
6462         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6463         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
6464         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
6465         Likewise.
6466         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6467         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
6468         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
6469         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
6470         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
6471         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
6472         Likewise.
6473         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
6474         Likewise.
6475         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
6476         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
6477         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6478         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
6479         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6480         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
6481         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
6482         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
6483         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
6484         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6485         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6486         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
6487         Likewise.
6488         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
6489         Likewise.
6490         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
6491         Likewise.
6492         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
6493         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6494         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
6495         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
6496         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6497         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
6498         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6499         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
6500         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
6501         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
6502         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
6503         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6504         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
6505         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
6506         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6507         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6508         Likewise.
6509         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
6510         Likewise.
6511         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
6512         Likewise.
6513         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
6514         Likewise.
6515         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
6516         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6517         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
6518         Likewise.
6519         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
6520         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
6521         * sysdeps/posix/opendir.c (__opendirat): Likewise.
6522         * sysdeps/posix/sleep.c: Likewise.
6523         * sysdeps/posix/tempname.c: Likewise.
6524         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
6525         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6526         Likewise.
6527         * sysdeps/powerpc/powerpc32/dl-machine.h
6528         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
6529         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
6530         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
6531         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
6532         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
6533         Likewise.
6534         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
6535         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
6536         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
6537         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
6538         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
6539         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
6540         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
6541         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
6542         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6543         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
6544         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
6545         (elf_machine_lazy_rel): Likewise.
6546         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
6547         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
6548         (elf_machine_lazy_rel): Likewise.
6549         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
6550         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
6551         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
6552         * sysdeps/unix/grantpt.c (grantpt): Likewise.
6553         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
6554         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
6555         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
6556         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6557         Likewise.
6558         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
6559         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
6560         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
6561         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
6562         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
6563         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
6564         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
6565         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
6566         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
6567         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
6568         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
6569         Likewise.
6570         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
6571         (__posix_fallocate64_l64): Likewise.
6572         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
6573         (posix_fallocate): Likewise.
6574         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
6575         Likewise.
6576         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6577         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
6578         (getifaddrs_internal): Likewise.
6579         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
6580         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
6581         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
6582         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
6583         * sysdeps/unix/sysv/linux/posix_fallocate64.c
6584         (__posix_fallocate64_l64): Likewise.
6585         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
6586         Likewise.
6587         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
6588         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
6589         (__get_clockfreq): Likewise.
6590         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
6591         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
6592         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
6593         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6594         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6595         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
6596         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
6597         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
6598         Likewise.
6599         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
6600         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
6601         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
6602         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
6603         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
6604         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
6605         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
6606         Likewise.
6607         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6608         (posix_fallocate): Likewise.
6609         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6610         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
6611         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
6612         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
6613         (elf_machine_rela, elf_machine_rela_relative)
6614         (elf_machine_lazy_rel): Likewise.
6615         * time/asctime.c (asctime_internal): Likewise.
6616         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
6617         * time/tzset.c (__tzset_parse_tz): Likewise.
6618         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
6619         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
6620         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
6621         * wcsmbs/wcsmbsload.h: Likewise.
6622
6623         [BZ #15894]
6624         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
6625
6626         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
6627         (arena_get2): Remove THREAD_STATS conditionals.
6628         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
6629         (__malloc_stats, int): Likewise.
6630
6631 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
6632
6633         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
6634         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
6635
6636         * manual/setjmp.texi: Fix typos/grammar errors.
6637
6638         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
6639         Only return early when n is <= 0.  Delete unused return statement.
6640
6641         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
6642         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
6643         * debug/tst-longjmp_chk3.c: New file.
6644
6645         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
6646         (test_main): Replace code with set_fortify_handler call.
6647         * debug/test-strcpy_chk.c: Likewise.
6648         * debug/tst-chk1.c: Likewise.
6649         * debug/tst-longjmp_chk.c: Likewise.
6650         * test-skeleton.c: Include fcntl.h & paths.h
6651         (set_fortify_handler): Define.
6652
6653         * debug/tst-longjmp_chk.c: Add header comment and include
6654         ../test-skeleton.c.
6655         (do_test): Mark static.
6656         (TEST_FUNCTION): Define.
6657
6658         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
6659         (IP_PMTUDISC_INTERFACE): Likewise.
6660         (IP_MULTICAST_IF): Likewise.
6661         (IP_MULTICAST_TTL): Likewise.
6662         (IP_MULTICAST_LOOP): Likewise.
6663         (IP_ADD_MEMBERSHIP): Likewise.
6664         (IP_DROP_MEMBERSHIP): Likewise.
6665         (IP_UNBLOCK_SOURCE): Likewise.
6666         (IP_BLOCK_SOURCE): Likewise.
6667         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
6668         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
6669         (IP_MSFILTER): Likewise.
6670         (MCAST_JOIN_GROUP): Likewise.
6671         (MCAST_BLOCK_SOURCE): Likewise.
6672         (MCAST_UNBLOCK_SOURCE): Likewise.
6673         (MCAST_LEAVE_GROUP): Likewise.
6674         (MCAST_JOIN_SOURCE_GROUP): Likewise.
6675         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
6676         (MCAST_MSFILTER): Likewise.
6677         (IP_MULTICAST_ALL): Likewise.
6678         (IP_UNICAST_IF): Likewise.
6679
6680         * timezone/Makefile: Delete $(have-ksh) check.
6681         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
6682         * timezone/tzselect.ksh: Add +x mode bits.
6683
6684         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
6685         (ANON_INODE_FS_MAGIC): Likewise.
6686         (BDEVFS_MAGIC): Likewise.
6687         (BINFMTFS_MAGIC): Likewise.
6688         (BTRFS_TEST_MAGIC): Likewise.
6689         (CRAMFS_MAGIC_WEND): Likewise.
6690         (DEBUGFS_MAGIC): Likewise.
6691         (ECRYPTFS_SUPER_MAGIC): Likewise.
6692         (EXT3_SUPER_MAGIC): Likewise.
6693         (EXT4_SUPER_MAGIC): Likewise.
6694         (FUTEXFS_SUPER_MAGIC): Likewise.
6695         (HOSTFS_SUPER_MAGIC): Likewise.
6696         (HUGETLBFS_MAGIC): Likewise.
6697         (MINIX3_SUPER_MAGIC): Likewise.
6698         (MTD_INODE_FS_MAGIC): Likewise.
6699         (NILFS_SUPER_MAGIC): Likewise.
6700         (OPENPROM_SUPER_MAGIC): Likewise.
6701         (PIPEFS_MAGIC): Likewise.
6702         (PSTOREFS_MAGIC): Likewise.
6703         (QNX6_SUPER_MAGIC): Likewise.
6704         (RAMFS_MAGIC): Likewise.
6705         (REISERFS_SUPER_MAGIC_STRING): Likewise.
6706         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
6707         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
6708         (SECURITYFS_MAGIC): Likewise.
6709         (SELINUX_MAGIC): Likewise.
6710         (SMACK_MAGIC): Likewise.
6711         (SOCKFS_MAGIC): Likewise.
6712         (SQUASHFS_MAGIC): Likewise.
6713         (STACK_END_MAGIC): Likewise.
6714         (TMPFS_MAGIC): Likewise.
6715         (USBDEVICE_SUPER_MAGIC): Likewise.
6716         (V9FS_MAGIC): Likewise.
6717         (XENFS_SUPER_MAGIC): Likewise.
6718         (CRAMFS_MAGIC): Fix typo in comment.
6719         (EXT2_SUPER_MAGIC): Update comment.
6720         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
6721
6722 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
6723
6724         * sysdeps/arm: Move directory from ports/sysdeps/arm.
6725         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
6726         * sysdeps/unix/sysv/linux/arm: Move directory from
6727         ports/sysdeps/unix/sysv/linux/arm.
6728         * README: Update listing for arm-*-linux-gnueabi.
6729
6730         * README: Remove mention of am33.
6731
6732 2014-02-07  Roland McGrath  <roland@hack.frob.com>
6733
6734         * bits/sigset.h (__sigemptyset): Use a statement expression rather
6735         than the comma operator, to avoid "rhs of comma has no effect"
6736         compiler warnings.
6737         (__sigfillset, __sigandset, __sigorset): Likewise.
6738         * include/signal.h (__sigemptyset): Likewise.
6739         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
6740
6741 2014-02-07  Allan McRae  <allan@archlinux.org>
6742
6743         * version.h (RELEASE): Set to "development".
6744         (VERSION): Set to "2.19.90"
6745         * NEWS: Add 2.20 section.
6746
6747 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
6748
6749         [BZ #16529]
6750         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
6751
6752 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6753
6754         * manual/contrib.texi: Update entry for Carlos O'Donell,
6755         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
6756
6757 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
6758
6759         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
6760
6761         * sysdeps/unix/sysv/linux/kernel-features.h
6762         [__LINUX_KERNEL_VERSION >= 0x020621]
6763         (__ASSUME_PROC_PID_TASK_COMM): Define.
6764
6765 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6766
6767         [BZ #16398]
6768         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
6769         conversion when destination buffer does not have enough space.
6770         * libio/tst-ftell-partial-wide.c: New test case.
6771         * libio/Makefile (tests): Add tst-ftell-partial-wide.
6772
6773         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
6774         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
6775         Leonard and Allan McRae.
6776
6777 2014-02-04  David S. Miller  <davem@davemloft.net>
6778
6779         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
6780         32-bit.
6781
6782 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6783
6784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
6785         New file
6786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
6787         New file
6788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
6789         New file.
6790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
6791         New file.
6792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
6793         New file.
6794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
6795         New file.
6796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
6797         New file.
6798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
6799         New file.
6800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
6801         New file.
6802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
6803         New file.
6804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
6805         New file.
6806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
6807         New file.
6808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
6809         New file.
6810
6811 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6812
6813         * nptl/shlib-versions: Change powerpc*le start to 2.17.
6814         * shlib-versions: Likewise.
6815
6816 2014-02-04  Roland McGrath  <roland@hack.frob.com>
6817             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6818
6819         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
6820         (abilist-pattern): New variable, set to %-le.abilist.
6821
6822         * Makerules (abilist-pattern): New variable.
6823         (vpath): Use $(abilist-pattern) in place of %.abilist.
6824         (check-abi-% pattern rule): Likewise.
6825         (check-abi, update-abi): Likewise.
6826
6827 2014-02-04  Eric Wong  <normalperson@yhbt.net>
6828
6829         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6830
6831 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
6832
6833         * manual/startup.texi: Add next, previous, and top entries for
6834         the `Program Arguments' and `Environment Variables' nodes.
6835
6836 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
6837
6838         * manual/macros.texi: Add comments before MTASC-safety macros.
6839
6840         * manual/users.texi: Document MTASC-safety properties.
6841
6842         * manual/threads.texi (pthread_key_create, pthread_key_delete)
6843         (pthread_getspecific, pthread_setspecific): Format with
6844         @deftypefun, and add @safety note.
6845         * manual/signal.texi: Move comments that analyze the above
6846         functions to their home place.
6847
6848 2014-02-03  Allan McRae  <allan@archlinux.org>
6849
6850         * po/sl.po: Update Slovenian translation from translation project.
6851
6852 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
6853
6854         * manual/time.texi (timegm): Add missing blank after @c.
6855         Reported by Joseph Myers <joseph@codesourcery.com>.
6856
6857 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
6858
6859         * manual/check-safety.sh: New.
6860         * manual/Makefile ($(objpfx)stamp-summary): Run it.
6861
6862         * manual/terminal.texi: Document MTASC-safety properties.
6863
6864         * manual/filesys.texi: Document MTASC-safety properties.
6865
6866         * manual/errno.texi: Document MTASC-safety properties.
6867
6868         * manual/intro.texi: Document safety identifiers and
6869         conditionals.
6870
6871         * manual/string.texi (wcstok): Fix prototype.
6872         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
6873
6874         * manual/time.texi: Document MTASC-safety properties.
6875
6876         * manual/string.texi: Document MTASC-safety properties.
6877
6878         * manual/threads.texi: Document MTASC-safety properties.
6879
6880         * manual/stdio.texi: Document MTASC-safety properties.
6881
6882         * manual/syslog.texi: Document MTASC-safety properties.
6883
6884         * manual/sysinfo.texi: Document MTASC-safety properties.
6885
6886         * manual/startup.texi: Document MTASC-safety properties.
6887
6888         * manual/socket.texi: Document MTASC-safety properties.
6889
6890         * manual/signal.texi: Document MTASC-safety properties.
6891
6892 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
6893
6894         * manual/setjmp.texi: Document MTASC-safety properties.
6895
6896         * manual/search.texi: Document MTASC-safety properties.
6897
6898         * manual/resource.texi: Document MTASC-safety properties.
6899
6900         * manual/process.texi: Document MTASC-safety properties.
6901
6902         * manual/platform.texi: Document MTASC-safety properties.
6903
6904         * manual/pipe.texi: Document MTASC-safety properties.
6905
6906         * manual/pattern.texi: Document MTASC-safety properties.
6907
6908         * manual/message.texi: Document MTASC-safety properties.
6909
6910         [BZ #12751]
6911         * manual/memory.texi: Document MTASC-safety properties.
6912
6913         * manual/math.texi: Document MTASC-safety properties.
6914
6915         * manual/locale.texi: Document MTASC-safety properties.
6916
6917         * manual/llio.texi: Document MTASC-safety properties.
6918
6919         * manual/libdl.texi: New.
6920
6921         * manual/lang.texi: Document MTASC-safety properties.
6922
6923         * manual/job.texi: Document MTASC-safety properties.
6924
6925         * manual/getopt.texi: Document MTASC-safety properties.
6926
6927         * manual/ctype.texi: Document MTASC-safety properties.
6928
6929 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
6930
6931         [BZ #16046]
6932         * csu/libc-tls.c (static_map): Remove variable.
6933         (__libc_setup_tls): Use main executable's link map for TLS data.
6934         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
6935         casing for LM_ID_BASE and GL(dl_nns).
6936         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
6937         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
6938         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
6939         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
6940         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
6941         member.
6942         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
6943         l_phnum members.
6944
6945 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
6946
6947         * manual/debug.texi: Document MTASC-safety properties.
6948
6949 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
6950
6951         [BZ #16510]
6952         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
6953         of __x86_64__ when disabling x87 inline functions.
6954
6955 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
6956
6957         * manual/charset.texi: Document MTASC-safety properties.
6958
6959         * manual/crypt.texi: Document MTASC-safety properties.
6960
6961         * manual/conf.texi: Document MTASC-safety properties.
6962
6963         * manual/arith.texi: Document MTASC-safety properties.
6964
6965         * manual/argp.texi: Document MTASC-safety properties.
6966
6967         * manual/macros.texi: Introduce macros to document multi
6968         thread, asynchronous signal and asynchronous cancellation
6969         safety properties.
6970         * manual/intro.texi: Introduce the properties themselves.
6971
6972 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6973
6974         * sysdeps/sh/sh4/Makefile: New file.
6975
6976 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
6977
6978         * math/gen-libm-test.pl ($srcdir): New variable.
6979         ($auto_input): Use it.
6980
6981 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6982
6983         [BZ #16506]
6984         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
6985         access beyond array bounds when parsing netgroups file.
6986
6987         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
6988         the old buffer before realloc.
6989
6990 2014-01-27  Allan McRae  <allan@archlinux.org>
6991
6992         * po/fr.po: Update French translation from translation project.
6993
6994 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6995
6996         * sysdeps/sh/libm-test-ulps: Regenerate.
6997
6998 2014-01-24  David S. Miller  <davem@davemloft.net>
6999
7000         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
7001
7002 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7003
7004         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
7005         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
7006
7007 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7008
7009         [BZ #16474]
7010         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
7011         string pointers after reallocation.
7012
7013 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7014
7015         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
7016         __SH4A__ instead of __SH_FPU_ANY__.
7017
7018 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7019
7020         * sysdeps/sh/fpu_control.h: New file.
7021         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
7022         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
7023         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
7024         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
7025         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
7026         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
7027         * sysdeps/sh/sys/ucontext.h: Remove.
7028         * sysdeps/sh/sys: Remove directory.
7029
7030 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7031
7032         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
7033         s390/sys/ucontext.h.
7034         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7035         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
7036
7037 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
7038
7039         [BZ #15605]
7040         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
7041
7042 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7043
7044         [BZ#16431]
7045         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
7046         Adjust the vDSO correctly for internal calls.
7047         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
7048
7049 2014-01-20  Allan McRae  <allan@archlinux.org>
7050
7051         * po/ca.po: Update Catalan translation from translation project.
7052
7053 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
7054
7055         * sysdeps/s390/sotruss-lib.c: New file.
7056
7057 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7058
7059         [BZ#16430]
7060         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
7061         (__GI___gettimeofday): Alias for a different internal symbol to avoid
7062         local calls issues by not having a PLT stub required for IFUNC calls.
7063         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
7064
7065 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
7066
7067         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
7068         * math/test-fpucw-static.c: Likewise.
7069
7070 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7071
7072         [BZ #16453]
7073         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
7074
7075 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7076
7077         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
7078         implementation for powerpc.
7079
7080 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
7081
7082         [BZ #14782]
7083         * sysdeps/posix/system.c (__libc_system): Do not enable
7084         asynchronous cancellation.
7085
7086 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7087
7088         [BZ #16427]
7089         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
7090         handling only for numbers special also in the IEEE case.
7091
7092 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7093
7094         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7095
7096 2014-01-11  Allan McRae  <allan@archlinux.org>
7097
7098         * po/bg.po: Update Bulgarian translation from translation project.
7099
7100         * po/de.po: Update German translation from translation project.
7101
7102 2014-01-10  Roland McGrath  <roland@hack.frob.com>
7103
7104         * sysdeps/generic/gcc-compat.h: New file.
7105
7106 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7107
7108         * benchtests/asin-inputs: Correct slow inputs.
7109         * benchtests/acos-inputs: Likewise.
7110
7111 2014-01-10  Allan McRae  <allan@archlinux.org>
7112
7113         * po:sv.po: Update Swedish translation from translation project.
7114
7115         * po/vi.po: Update Vietnamese translation from translation project.
7116
7117         * po/eo.po: Update Esperanto translation from translation project.
7118
7119         * po/cs.po: Update Czech translation from translation project.
7120
7121         * po/nl.po: Update Dutch translation from translation project.
7122
7123         * po/pl.po: Update Polish translation from translation project.
7124
7125         * po/ru.po: Update Russian translation from translation project.
7126
7127         * po/uk.po: Update Ukrainian translation from translation project.
7128
7129 2014-01-08  Brooks Moses  <bmoses@google.com>
7130
7131         * elf/dl-load.c: Fix comment typo.
7132
7133 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
7134
7135         * po/header.pot: Rename to...
7136         * po/pot.header: ... this.
7137         * po/Makefile: Use pot.header.
7138
7139 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
7140             Maxim Kuvyrkov  <maxim@kugelworks.com>
7141
7142         [BZ #16394]
7143         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
7144         SRC and DEST against LEN.
7145
7146 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7147
7148         [BZ #16414]
7149         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
7150         implementation.
7151         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
7152
7153 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7154
7155         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7156
7157 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
7158
7159         [BZ #16408]
7160         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
7161         for large positive arguments.
7162
7163 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
7164
7165         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
7166
7167         * math/auto-libm-test-in: Mark various tests with
7168         xfail-rounding:ldbl-128ibm.
7169         * math/auto-libm-test-out: Regenerated.
7170
7171         [BZ #16407]
7172         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
7173         Increase overflow threshold.
7174
7175 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
7176
7177         [BZ #14286]
7178         * stdio-common/vfprintf.c: Check for integer overflow.
7179
7180 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7181
7182         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
7183         the first argument and return value of __tls_get_addr_internal.
7184
7185 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7186
7187         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
7188         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
7189
7190 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7191
7192         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
7193         * sysdeps/s390/rtld-global-offsets.sym: New file.
7194         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
7195         GLIBC_2.19 symbol.
7196         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
7197         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
7198         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
7199         ... this.
7200         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
7201         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
7202         ... this.
7203         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
7204         Regenerate.
7205         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
7206         Regenerate.
7207         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
7208         halfs of GPRs for high_gprs contexts.
7209         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
7210         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
7211         field.
7212         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
7213         uc_flags field.
7214         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
7215         64 bit versions:
7216         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
7217         for high GPRs (uc_high_gprs) and for future extensions
7218         (__reserved).
7219         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
7220         for future extensions (__reserved).
7221         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
7222         64 bit versions:
7223         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
7224         SC_HIGHGPRS offset definition.
7225         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
7226         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
7227
7228         * Versions.def: Add GLIBC_2.19 for libpthread.
7229         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
7230         siglongjmp for libpthread with GLIBC_2.19 symver.
7231         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
7232         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
7233         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
7234         * sysdeps/s390/__longjmp.c: New file.
7235         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
7236         * sysdeps/s390/longjmp.c: New file.
7237         * sysdeps/s390/setjmp.S: New file.
7238         * sysdeps/s390/sigjmp.S: New file.
7239         * sysdeps/s390/v1-longjmp.c: New file.
7240         * sysdeps/s390/v1-setjmp.h: New file.
7241         * sysdeps/s390/v1-sigjmp.c: New file.
7242         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
7243         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
7244         GLIBC_2.19 version.
7245         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
7246         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
7247         versioned symbols for ____longjmp_chk.
7248         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
7249         Likewise.
7250         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
7251         Regenerate.
7252         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7253         Regenerate.
7254         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
7255         Regenerate.
7256         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7257         Regenerate.
7258         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
7259         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
7260         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
7261         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
7262         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
7263         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
7264         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
7265         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
7266         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
7267         * sysdeps/s390/rtld-__longjmp.c: New file.
7268         * sysdeps/s390/rtld-setjmp.S: New file.
7269
7270 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
7271
7272         [BZ #16400]
7273         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7274         Return -__logl (x) for small positive arguments without evaluating
7275         a polynomial.
7276
7277 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
7278
7279         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
7280         Rename to ...
7281         (__ptrace_peeksiginfo_args): ... this.
7282         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7283         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7284         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7285
7286 2014-01-06  Allan McRae  <allan@archlinux.org>
7287
7288         * inet/netinet/in.h: Fix typo in comment.
7289
7290 2014-01-05  Andreas Jaeger  <aj@suse.de>
7291
7292         * sysdeps/i386/fpu/libm-test-ulps: Update.
7293
7294 2014-01-05  Allan McRae  <allan@archlinux.org>
7295
7296         * po/libc.pot: Regenerated.
7297
7298         * malloc/memusagestat.c: Fix gettext call formatting.
7299
7300 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
7301
7302         * nscd/nscd.c: Improve usage() output.
7303
7304 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
7305
7306         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
7307         * sysdeps/unix/sysv/linux/configure: Regenerated.
7308         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
7309         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
7310
7311 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
7312
7313         [BZ #16390]
7314         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
7315         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
7316
7317 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7318
7319         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
7320         extra tokens at end of #undef directive.
7321         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
7322         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
7323         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
7324
7325 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
7326
7327         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
7328
7329         * math/auto-libm-test-in: Mark various tests with
7330         xfail-rounding:ldbl-128ibm.
7331         * math/auto-libm-test-out: Regenerated.
7332
7333 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
7334
7335         [BZ #16386]
7336         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
7337         numbers with subnormal high part when calculating exponent.
7338
7339         [BZ #16385]
7340         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
7341         fabs.
7342
7343         [BZ #16384]
7344         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
7345         M_LN2l.
7346         (__ieee754_acoshl): Use __log1pl not __log1p.
7347
7348 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
7349
7350         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
7351         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
7352         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
7353         (grow_heap, heap_trim, _int_new_arena, get_free_list)
7354         (reused_arena, arena_get2): Convert to GNU style.
7355         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
7356         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
7357         (memalign_check, __malloc_set_state): Likewise.
7358         * malloc/mallocbug.c (main): Likewise.
7359         * malloc/malloc.c (__malloc_assert, malloc_init_state)
7360         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
7361         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
7362         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
7363         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
7364         (__posix_memalign, malloc_info): Likewise.
7365         * malloc/malloc.h: Likewise.
7366         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
7367         (mallochook, memalignhook, reallochook, mabort): Likewise.
7368         * malloc/mcheck.h: Likewise.
7369         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
7370         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
7371         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
7372         * malloc/morecore.c (__default_morecore): Likewise.
7373         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
7374         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
7375         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
7376         (print_and_abort): Likewise.
7377         * malloc/obstack.h: Likewise.
7378         * malloc/set-freeres.c (__libc_freeres): Likewise.
7379         * malloc/tst-mallocstate.c (main): Likewise.
7380         * malloc/tst-mtrace.c (main): Likewise.
7381         * malloc/tst-realloc.c (do_test): Likewise.
7382
7383 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
7384
7385         [BZ #16366]
7386         * nscd/netgroupcache.c (do_notfound): New function.
7387         (addgetnetgrentX): Use it.
7388
7389         [BZ # 16365]
7390         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
7391         NSS_STATUS_NOTFOUND.
7392
7393 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
7394
7395         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
7396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7397
7398 2014-01-01  Allan McRae  <allan@archlinux.org>
7399
7400         * scripts/update-copyrights: Update configure input file suffix.
7401
7402         * NEWS: Update copyright year.
7403         * catgets/gencat.c: Likewise.
7404         * csu/version.c: Likewise.
7405         * debug/catchsegv.sh: Likewise.
7406         * debug/pcprofiledump.c: Likewise.
7407         * debug/xtrace.sh: Likewise.
7408         * elf/ldconfig.c: Likewise.
7409         * elf/ldd.bash.in: Likewise.
7410         * elf/pldd.c: Likewise.
7411         * elf/sotruss.ksh: Likewise.
7412         * elf/sprof.c: Likewise.
7413         * iconv/iconv_prog.c: Likewise.
7414         * iconv/iconvconfig.c: Likewise.
7415         * locale/programs/locale.c: Likewise.
7416         * locale/programs/localedef.c: Likewise.
7417         * login/programs/pt_chown.c: Likewise.
7418         * malloc/memusage.sh: Likewise.
7419         * malloc/memusagestat.c: Likewise.
7420         * malloc/mtrace.pl: Likewise.
7421         * manual/libc.texinfo: Likewise.
7422         * nscd/nscd.c: Likewise.
7423         * nss/getent.c: Likewise.
7424         * nss/makedb.c: Likewise.
7425         * posix/getconf.c: Likewise.
7426         * scripts/test-installation.pl: Likewise.
7427
7428         * All files with FSF copyright notices: Update copyright dates
7429         using scripts/update-copyrights.
7430         * intl/plural.c: Regenerated.
7431         * locale/programs/charmap-kw.h: Likewise.
7432         * locale/programs/locfile-kw.h: Likewise.
7433
7434 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
7435
7436         * sysdeps/unix/sysv/linux/configure: Regenerated.
7437         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
7438         the linux/fanotify.h header.
7439         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
7440         HAVE_LINUX_FANOTIFY_H is defined.
7441
7442 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
7443
7444         * benchtests/cos-inputs: New inputs.
7445         * benchtests/sin-inputs: Likewise.
7446
7447         * benchtests/atan-inputs: New inputs. Fix name of multiple
7448         precision fallback inputs.
7449
7450         * benchtests/atanh-inputs: New inputs.
7451         * benchtests/tanh-inputs: Likewise.
7452
7453         * benchtests/acosh-inputs: New inputs.
7454         * benchtests/asinh-inputs: Likewise.
7455
7456         * benchtests/cosh-inputs: New inputs.
7457         * benchtests/sinh-inputs: Likewise.
7458
7459         * benchtests/acos-inputs: Add more inputs.
7460         * benchtests/asin-inputs: Likewise.
7461
7462 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
7463
7464         [BZ #16375]
7465         * manual/arith.texi: Fix spelling.
7466         * manual/charset.texi: Likewise.
7467         * manual/errno.texi: Likewise.
7468         * manual/filesys.texi: Likewise.
7469         * manual/lang.texi: Likewise.
7470         * manual/llio.texi: Likewise.
7471         * manual/locale.texi: Likewise.
7472         * manual/message.texi: Likewise.
7473         * manual/resource.texi: Likewise.
7474         * manual/search.texi: Likewise.
7475         * manual/setjmp.texi: Likewise.
7476         * manual/stdio.texi: Likewise.
7477         * manual/string.texi: Likewise.
7478         * manual/sysinfo.texi: Likewise.
7479         * manual/time.texi: Likewise.
7480
7481 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
7482
7483         * po/sl.po: New file.
7484
7485 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
7486
7487         * .gitignore: Add core/.gdbinit/.gdb_history.
7488
7489 2013-12-27  Allan McRae  <allan@archlinux.org>
7490
7491         [BZ #16369]
7492         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
7493         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
7494
7495 2013-12-24  Brooks Moses  <bmoses@google.com>
7496
7497         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
7498         all compilers that claim C++98 compliance, not just GCC.
7499         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
7500         Likewise.
7501
7502 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
7503
7504         * NEWS: Restore accidentally deleted bug-fix entries.
7505
7506 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
7507             Ondřej Bílka  <neleai@seznam.cz>
7508
7509         [BZ #15073]
7510         * malloc/malloc.c (_int_free): Perform sanity check only if we
7511         have_lock.
7512
7513 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
7514
7515         [BZ #12986]
7516         * manual/stdio.texi (String Input Conversions): Clarify that character
7517         classes are not supported.
7518
7519 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7520
7521         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7522
7523 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
7524
7525         [BZ #16337]
7526         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7527         Calculate results for small negative arguments directly rather
7528         than using reflection formula with special underflow handling.
7529
7530         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
7531         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
7532         sysdeps/unix/bsd/bsd4.4/syscalls.list.
7533         (fchflags): Likewise.
7534         (revoke): Likewise.
7535         (setlogin): Likewise.
7536         (sigaltstack): Likewise.
7537         (wait4): Likewise.
7538         (sigblock): Remove.
7539         (sigsetmask): Likewise.
7540         (wait3): Likewise.
7541         (waitpid): Likewise.
7542         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
7543         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
7544         file.
7545         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
7546         * sysdeps/unix/bsd/Makefile: ... here.
7547         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
7548         * sysdeps/unix/bsd/Versions: ... here.
7549         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
7550         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
7551         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
7552         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
7553         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
7554         * sysdeps/unix/bsd/sigblock.c: ... here.
7555         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
7556         * sysdeps/unix/bsd/sigsetmask.c: ... here.
7557         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
7558         * sysdeps/unix/bsd/sigvec.c: ... here.
7559         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
7560         * sysdeps/unix/bsd/tcdrain.c: ... here.
7561         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
7562         * sysdeps/unix/bsd/tcgetattr.c: ... here.
7563         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
7564         * sysdeps/unix/bsd/tcsetattr.c: ... here.
7565         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
7566         * sysdeps/unix/bsd/wait.c: ... here.
7567         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
7568         * sysdeps/unix/bsd/wait3.c: ... here.
7569         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
7570         * sysdeps/unix/bsd/waitpid.c: ... here.
7571
7572 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
7573
7574         [BZ #16356]
7575         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
7576         round-to-nearest for [!USE_AS_EXPM1L].
7577         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
7578         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
7579         more tests of exp and exp10.  Expect some exp10 tests to miss
7580         exceptions or fail in directed rounding modes.
7581         * math/auto-libm-test-out: Regenerated.
7582         * math/libm-test.inc (exp10_tonearest_test_data): New array.
7583         (exp10_test_tonearest): New function.
7584         (exp10_towardzero_test_data): New array.
7585         (exp10_test_towardzero): New function.
7586         (exp10_downward_test_data): New array.
7587         (exp10_test_downward): New function.
7588         (exp10_upward_test_data): New array.
7589         (exp10_test_upward): New function.
7590         (main): Call the new functions.
7591         * sysdeps/i386/fpu/libm-test-ulps: Update.
7592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7593
7594 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
7595
7596         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
7597         asinh, atan, atan2, atanh, cbrt, cos and cosh.
7598         * math/auto-libm-test-out: Regenerated.
7599         * math/libm-test.inc (acosh_test_data): Add more tests.
7600         (atanh_test_data): Likewise.
7601         (ceil_test_data): Likewise.
7602         (copysign_test_data): Likewise.
7603         * sysdeps/i386/fpu/libm-test-ulps: Update.
7604         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7605
7606         * timezone/checktab.awk: Update from tzcode 2013i.
7607         * timezone/private.h: Likewise.
7608         * timezone/scheck.c: Likewise.
7609         * timezone/tzfile.h: Likewise.
7610         * timezone/tzselect.ksh: Likewise.
7611         * timezone/zdump.c: Likewise.
7612         * timezone/zic.c: Likewise.
7613
7614         * math/auto-libm-test-in: Add tests of cpow.
7615         * math/auto-libm-test-out: Regenerated.
7616         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
7617         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7618         mpc_cc_c.
7619         (func_calc_desc): Add mpc_cc_c union field.
7620         (test_functions): Add cpow.
7621         (special_fill_2pi): New function.
7622         (special_real_inputs): Add 2pi.
7623         (calc_generic_results): Handle mpc_cc_c.
7624         * sysdeps/i386/fpu/libm-test-ulps: Update.
7625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7626
7627         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
7628         csqrt, ctan and ctanh.
7629         * math/auto-libm-test-out: Regenerated.
7630         * math/libm-test.inc (TEST_COND_x86_64): New macro.
7631         (TEST_COND_x86): Likewise.
7632         (ccos_test_data): Use AUTO_TESTS_c_c.
7633         (ccosh_test_data): Likewise.
7634         (cexp_test_data): Likewise.
7635         (clog_test_data): Likewise.
7636         (csqrt_test_data): Likewise.
7637         (ctan_test_data): Likewise.
7638         (ctan_tonearest_test_data): Likewise.
7639         (ctan_towardzero_test_data): Likewise.
7640         (ctan_downward_test_data): Likewise.
7641         (ctan_upward_test_data): Likewise.
7642         (ctanh_test_data): Likewise.
7643         (ctanh_tonearest_test_data): Likewise.
7644         (ctanh_towardzero_test_data): Likewise.
7645         (ctanh_downward_test_data): Likewise.
7646         (ctanh_upward_test_data): Likewise.
7647         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7648         mpc_c_c.
7649         (func_calc_desc): Add mpc_c_c union field.
7650         (FUNC_mpc_c_c): New macro.
7651         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
7652         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
7653         ctanh.
7654         (special_fill_min_subnorm_p120): New function.
7655         (special_real_inputs): Add min_subnorm_p120.
7656         (calc_generic_results): Handle mpc_c_c.
7657         * sysdeps/i386/fpu/libm-test-ulps: Update.
7658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7659
7660 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
7661
7662         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
7663         (do_sin_slow): New functions.
7664         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
7665         (cslow2, csloww1, csloww2): Use the new functions.
7666
7667         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
7668         Use M to change sign of result instead of X.  Assume X is
7669         positive.
7670         (csloww1): Likewise.
7671         (__sin): Adjust.
7672         (__cos): Adjust.
7673
7674         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
7675         arguments A and DA.
7676         (__sin): Adjust.
7677         (__cos): Likewise.
7678
7679         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
7680         (__cos): Likewise.
7681         (sloww1): Don't adjust sign of DX.
7682         (csloww1): Likewise.
7683         (sloww2): Use X directly and don't adjust sign of DX.
7684         (csloww2): Likewise.
7685
7686 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
7687
7688         * math/auto-libm-test-in: Add tests of cabs and carg.
7689         * math/auto-libm-test-out: Regenerated.
7690         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
7691         (carg_test_data): Likewise.
7692         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7693         mpc_c_f.
7694         (func_calc_desc): Add mpc_c_f union field.
7695         (test_functions): Add cabs and carg.
7696         (calc_generic_results): Handle mpc_c_f.
7697
7698         * sysdeps/powerpc/powerpc32/libgcc-compat.S
7699         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
7700         as a macro and a compat symbol.
7701         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
7702         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
7703         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
7704         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
7705         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
7706         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
7707         not use .hidden.
7708         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
7709         Likewise.
7710         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
7711         Likewise.
7712         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
7713         Likewise.
7714         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
7715         Likewise.
7716         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
7717         Likewise.
7718         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
7719         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
7720         from GLIBC_2.3.2.
7721
7722 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7723
7724         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7725
7726 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
7727
7728         * manual/texinfo.tex: Update to version 2013-11-26.10 with
7729         trailing whitespace removed.
7730         * scripts/config.guess: Update to version 2013-11-29.
7731         * scripts/config.sub: Update to version 2013-10-01.
7732
7733         * math/auto-libm-test-in: Add tests of sincos.
7734         * math/auto-libm-test-out: Regenerated.
7735         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
7736         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7737         mpfr_f_11.
7738         (func_calc_desc): Add mpfr_f_11 union field.
7739         (test_functions): Add sincos.
7740         (calc_generic_results): Handle mpfr_f_11.
7741         * sysdeps/i386/fpu/libm-test-ulps: Update.
7742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7743
7744 2013-12-19  Andreas Schwab  <schwab@suse.de>
7745
7746         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
7747         CALL_MCOUNT.
7748         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
7749         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
7750         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
7751
7752 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
7753
7754         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
7755         * sysdeps/i386/fpu/libm-test-ulps: Update.
7756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7757
7758         [BZ #16293]
7759         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
7760         round-to-nearest mode when using frndint.
7761         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
7762         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
7763         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
7764         Likewise.
7765         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
7766         sinh test to fail.
7767         * math/auto-libm-test-out: Regenerated.
7768         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
7769         (TEST_COND_x86): Likewise.
7770         (expm1_tonearest_test_data): New array.
7771         (expm1_test_tonearest): New function.
7772         (expm1_towardzero_test_data): New array.
7773         (expm1_test_towardzero): New function.
7774         (expm1_downward_test_data): New array.
7775         (expm1_test_downward): New function.
7776         (expm1_upward_test_data): New array.
7777         (expm1_test_upward): New function.
7778         (main): Run the new test functions.
7779         * sysdeps/i386/fpu/libm-test-ulps: Update.
7780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7781
7782         * include/features.h: Update comment documenting feature test
7783         macros.  Mention _DEFAULT_SOURCE in comment.
7784         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
7785         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
7786         _BSD_SOURCE and _SVID_SOURCE.
7787         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
7788         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
7789         !_SVID_SOURCE]: Likewise.
7790         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
7791         (__USE_POSIX_IMPLICITLY): Define.
7792         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
7793         (_POSIX_SOURCE): Undefine and redefine.
7794         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
7795         (_POSIX_C_SOURCE): Likewise.
7796         * manual/creature.texi (_DEFAULT_SOURCE): Document.
7797         (Feature Test Macros): Update documentation of default features.
7798
7799 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7800
7801         * benchtests/Makefile: Add bench-strtok.
7802         * benchtests/bench-strtok.c: New file: strtok benchtest.
7803
7804 2013-12-19  Allan McRae  <allan@archlinux.org>
7805
7806         * manual/install.texi: Suppress menu for plain text output.
7807         * INSTALL: Regenerated.
7808
7809 2013-12-18  Brooks Moses  <bmoses@google.com>
7810
7811         [BZ #15846]
7812         * misc/getauxval.c: Include errno.h.
7813         (__getauxval): Set errno to ENOENT if the requested type is not
7814         found.
7815         * misc/sys/auxv.h (getauxval): Document that it may set errno;
7816         don't declare with __attribute_const__.
7817         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
7818         * manual/startup.texi: Document that getauxval sets errno.
7819
7820 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
7821
7822         * math/auto-libm-test-in: Add tests of jn and yn.
7823         * math/auto-libm-test-out: Regenerated.
7824         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
7825         (yn_test_data): Likewise.
7826         * math/gen-auto-libm-tests.c (func_calc_method): Add value
7827         mpfr_if_f.
7828         (func_calc_desc): Add mpfr_if_f union field.
7829         (FUNC_mpfr_if_f): New macro.
7830         (test_functions): Add jn and yn.
7831         (calc_generic_results): Assert type of second input for
7832         mpfr_ff_f.  Handle mpfr_if_f.
7833         (output_for_one_input_case): Disable all checking for arguments
7834         fitting floating-point types in case of an integer argument.
7835         * sysdeps/i386/fpu/libm-test-ulps: Update.
7836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7837
7838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
7839         Don't expect fegetround reference in libm.so.
7840
7841 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7842
7843         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
7844         $(config-cflags-nofma).
7845
7846 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
7847
7848         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
7849         * math/auto-libm-test-out: Regenerated.
7850
7851         [BZ #16338]
7852         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
7853         to determine exponent and adjust argument to have exponent of -1.
7854         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7855         log2.
7856         * math/auto-libm-test-out: Regenerated.
7857         * sysdeps/i386/fpu/libm-test-ulps: Update.
7858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7859
7860 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
7861
7862         * manual/probes.texi: Remove cases when per-thread arenas are
7863         disabled.
7864
7865 2013-12-18  Andreas Schwab  <schwab@suse.de>
7866
7867         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
7868         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
7869         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
7870         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
7871         * sysdeps/i386/i686/multiarch/Makefile: Update.
7872         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
7873
7874 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
7875
7876         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
7877         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
7878
7879 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7880
7881         [BZ #15968]
7882         Support TZ transition times < 00:00:00.
7883         This is needed for version-3 tz-format files; it supports time
7884         stamps past 2037 for America/Godthab (the only entry in the tz
7885         database for which this change is relevant).
7886         * manual/time.texi (TZ Variable): Document transition times
7887         from -167:59:59 through -00:00:01.
7888         * time/tzset.c (tz_rule): Time of day is now signed.
7889         (__tzset_parse_tz): Parse negative time of day.
7890
7891         Document TZ transition times >= 25:00:00.
7892         * manual/time.texi (TZ Variable): Document transition times from
7893         25:00:00 through 167:59:59.  These are already supported, and this
7894         support will help with version-3 tz-format files.
7895
7896         * manual/time.texi (TZ Variable): Modernize North America example
7897         to reflect current (i.e., 2007-and-later) daylight saving rules.
7898
7899         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
7900
7901 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
7902
7903         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
7904         * sysdeps/unix/bsd/bits/stat.h: Likewise.
7905         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
7906         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7907         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
7908         * sysdeps/unix/bsd/bsdstat.h: Likewise.
7909         * sysdeps/unix/bsd/clock.c: Likewise.
7910         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
7911         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
7912         * sysdeps/unix/bsd/init-posix.c: Likewise.
7913         * sysdeps/unix/bsd/poll.c: Likewise.
7914         * sysdeps/unix/bsd/ptsname.c: Likewise.
7915         * sysdeps/unix/bsd/seekdir.c: Likewise.
7916         * sysdeps/unix/bsd/setegid.c: Likewise.
7917         * sysdeps/unix/bsd/seteuid.c: Likewise.
7918         * sysdeps/unix/bsd/setgid.c: Likewise.
7919         * sysdeps/unix/bsd/setrgid.c: Likewise.
7920         * sysdeps/unix/bsd/setruid.c: Likewise.
7921         * sysdeps/unix/bsd/setsid.c: Likewise.
7922         * sysdeps/unix/bsd/setuid.c: Likewise.
7923         * sysdeps/unix/bsd/sigaction.c: Likewise.
7924         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
7925         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
7926         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
7927         * sysdeps/unix/bsd/telldir.c: Likewise.
7928         * sysdeps/unix/bsd/times.c: Likewise.
7929         * sysdeps/unix/bsd/usleep.c: Likewise.
7930
7931         * misc/Makefile (install-lib): Remove libbsd-compat.a.
7932         ($(objpfx)libbsd-compat.a): Remove rule.
7933
7934         * include/features.h (__FAVOR_BSD): Do not define.
7935         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
7936         features conflicting with POSIX.
7937         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
7938         (_BSD_SOURCE): Remove description of not being a subset of other
7939         feature test macros.
7940         * manual/job.texi (getpgrp): Do not document BSD version.
7941         (getpgid): Do not document by reference to BSD getpgrp.
7942         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
7943         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
7944         * signal/signal.h [__FAVOR_BSD]: Likewise.
7945         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
7946         instead of making contents conditional on [__FAVOR_BSD].
7947         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
7948
7949 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7950
7951         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7952
7953 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
7954
7955         [BZ #16314]
7956         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
7957         values below 2**-450, not 2**-500.
7958         * math/auto-libm-test-in: Don't allow spurious underflow from
7959         hypot.
7960         * math/auto-libm-test-out: Regenerated.
7961
7962         [BZ #16316]
7963         [BZ #16330]
7964         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
7965         values of ha and hb and sort them after adjusting subnormal
7966         arguments.
7967         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
7968         Likewise.
7969         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
7970         values of ea and eb and sort them after adjusting subnormal
7971         arguments.
7972         * math/auto-libm-test-in: Do not expect some hypot tests of
7973         subnormals to fail.  Add more hypot tests.
7974         * math/auto-libm-test-out: Regenerated.
7975
7976 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7977
7978         [BZ #13304]
7979         * sysdeps/sh/s_fma.c: New file.
7980         * sysdeps/sh/s_fmaf.c: New file.
7981         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
7982         version.
7983         * sysdeps/sh/Implies: Add sh/soft-fp.
7984
7985 2013-12-16  Roland McGrath  <roland@hack.frob.com>
7986
7987         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
7988         level of indirection to members `objname', `errstring', `malloced'.
7989         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
7990         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
7991         it as the __longjmp argument (just pass 1 instead).
7992         (_dl_catch_error): Initialize C with argument pointers and address of
7993         volatile local ERRCODE rather than copying values out of C at return.
7994
7995 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
7996
7997         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
7998         * math/auto-libm-test-out: Regenerated.
7999         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
8000         (hypot_test_data): Likewise.
8001         (pow_test_data): Likewise.
8002         (pow_tonearest_test_data): Likewise.
8003         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8004         mpfr_ff_f.
8005         (func_calc_desc): Add mpfr_ff_f union field.
8006         (FUNC_mpfr_ff_f): New macro.
8007         (test_functions): Add atan2, hypot and pow.
8008         (special_fill_min): New function.
8009         (special_fill_minus_min): Likewise.
8010         (special_fill_min_subnorm): Likewise.
8011         (special_fill_minus_min_subnorm): Likewise.
8012         (special_real_inputs): Add min, -min, min_subnorm and
8013         -min_subnorm.
8014         (calc_generic_results): Handle mpfr_ff_f.
8015         * sysdeps/i386/fpu/libm-test-ulps: Update.
8016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8017
8018 2013-12-16  Will Newton  <will.newton@linaro.org>
8019
8020         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
8021         (Aligned Memory Blocks): Add documentation for aligned_alloc
8022         and suggest it as an alternative to posix_memalign.
8023         (Hooks for Malloc): Document __memalign_hook is also called
8024         for aligned_alloc.  (Summary of Malloc): Add summary for
8025         aligned alloc.  Document __memalign_hook is also called
8026         for aligned_alloc.
8027
8028 2013-12-16  Will Newton  <will.newton@linaro.org>
8029
8030         * manual/memory.texi (Malloc Examples): Clarify default
8031         alignment documentation.  Suggest posix_memalign rather
8032         than memalign or valloc.
8033         (Aligned Memory Blocks): Remove suggestion to use memalign
8034         or valloc.  Remove obsolete comment about BSD.
8035         Document memalign errno values and mark the function obsolete.
8036         Document posix_memalign returned error codes.  Mark valloc
8037         as obsolete.  (Hooks for Malloc): __memalign_hook is also
8038         called for posix_memalign and valloc.
8039         (Summary of Malloc): Add posix_memalign to function summary.
8040         __memalign_hook is also called for posix_memalign and valloc.
8041
8042 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8043
8044         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
8045         TAYLOR_SIN.
8046         (__sin): Adjust.
8047         (__cos): Likewise.
8048         (sloww): Use mynumber union.  Expand ternary operator into
8049         if-else statements.
8050         (cslow): use mynumber union.
8051
8052 2013-12-16  Allan McRae  <allan@archlinux.org>
8053
8054         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
8055         * configure: Regenerated.
8056
8057         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
8058
8059         [BZ #14120]
8060         * configure.ac: Added --enable-maintainer-mode. Check for
8061         autoconf when enabled.
8062         * configure: Regenerated.
8063
8064         * nscd/nscd.service: New file.
8065         * nscd/nscd.tmpfiles: New file.
8066
8067 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
8068
8069         [BZ #12100]
8070         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
8071         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
8072         * sysdeps/x86_64/multiarch/strstr.c: ... here.
8073         (strstr): Add __strstr_sse2_unaligned ifunc.
8074         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
8075         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
8076         (strcasestr): Remove __strcasestr_sse42 ifunc.
8077         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
8078         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
8079         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
8080
8081 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8082
8083         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
8084         * sysdeps/sh/bits/fenv.h: ... here.
8085         * sysdeps/sh/sh4/fpu/bits: Remove directory.
8086
8087 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8088
8089         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
8090
8091         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
8092         hypotf multiarch implementations.
8093         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
8094         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
8095         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
8096         multiarch hypot for PPC64.
8097         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
8098         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
8099         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
8100         multiarch hypotf for PPC64.
8101
8102         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
8103         modff multiarch implementations.
8104         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
8105         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
8106         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
8107         multiarch modf for PPC64.
8108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
8109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
8110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
8111         multiarch modff for PPC64.
8112
8113         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
8114         and logl multiarch implementations.
8115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
8116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
8117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
8118         multiarch logb for PPC64.
8119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
8120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
8121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
8122         multiarch logb for PPC64.
8123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
8124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
8125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
8126         multiarch logb for PPC64.
8127
8128         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
8129         isinff multiarch implementation.
8130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
8131         file.
8132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
8133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
8134         multiarch isinf for PPC64.
8135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
8136         file.
8137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
8138         multiarch isinff for PPC64.
8139
8140         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
8141         finitef multiarch implementation.
8142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
8143         file.
8144         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
8145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
8146         multiarch finite for PPC64.
8147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
8148         file.
8149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
8150         multiarch finitef for PPC64.
8151
8152         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
8153         lrint multiarch implementation.
8154         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
8155         file.
8156         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
8157         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
8158         multiarch llrint for PPC64.
8159         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
8160         multiarch lrint for PPC64.
8161
8162         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
8163         copysignf multiarch implementation.
8164         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
8165         file.
8166         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
8167         file.
8168         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
8169         multiarch copysign for PPC64.
8170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
8171         multiarch copysignf for PPC64.
8172
8173         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
8174         multiarch implementation.
8175         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
8176         file.
8177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
8178         file.
8179         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
8180         file.
8181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
8182         file.
8183         multiarch llround for PPC64.
8184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
8185         multiarch trunc for PPC64.
8186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
8187         multiarch truncf for PPC64.
8188
8189         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
8190         multiarch implementation.
8191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
8192         file.
8193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
8194         file.
8195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
8196         file.
8197         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
8198         file.
8199         multiarch llround for PPC64.
8200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
8201         multiarch round for PPC64.
8202         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
8203         multiarch roundf for PPC64.
8204
8205         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
8206         multiarch implementation.
8207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
8208         file.
8209         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
8210         file.
8211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
8212         file.
8213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
8214         file.
8215         multiarch llround for PPC64.
8216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
8217         multiarch floor for PPC64.
8218         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
8219         multiarch floorf for PPC64.
8220
8221         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
8222         multiarch implementation.
8223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
8224         file.
8225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
8226         file.
8227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
8228         file.
8229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
8230         file.
8231         multiarch llround for PPC64.
8232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
8233         multiarch ceil for PPC64.
8234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
8235         multiarch ceilf for PPC64.
8236
8237         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
8238         multiarch implementation.
8239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
8240         file.
8241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
8242         file.
8243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
8244         file.
8245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
8246         multiarch llround for PPC64.
8247         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
8248         multiarch lround for PPC64.
8249
8250         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
8251         multiarch implementation.
8252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
8253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
8254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
8255         file.
8256         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
8257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
8258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
8259         multiarch isnan for PPC64.
8260         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
8261         multiarch isnanf for PPC64.
8262
8263         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
8264         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
8265         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
8266         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
8267         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
8268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
8269
8270         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
8271         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
8272         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8273         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8274
8275         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
8276         multiarch implementations.
8277         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8278         (__libc_ifunc_impl_list): Likewise.
8279         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
8280         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
8281         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
8282         multiarch stpcpy for PPC64.
8283
8284         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
8285         multiarch implementations.
8286         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8287         (__libc_ifunc_impl_list): Likewise.
8288         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
8289         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
8290         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
8291         multiarch strcpy for PPC64.
8292
8293         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
8294         redefine function name.
8295         (_wordcopy_fwd_dest_aligned): Likewise.
8296         (_wordcopy_bwd_aligned): Likewise.
8297         (_wordcopy_bwd_dest_aligned): Likewise.
8298         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
8299         multiarch implementations.
8300         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8301         (__libc_ifunc_impl_list): Likewise.
8302         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
8303         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
8304         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
8305         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
8306         multiarch wcscpy for PPC64.
8307
8308         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
8309         multiarch implementations.
8310         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8311         (__libc_ifunc_impl_list): Likewise.
8312         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
8313         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
8314         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
8315         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
8316         multiarch wcscpy for PPC64.
8317
8318         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
8319         multiarch implementations.
8320         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8321         (__libc_ifunc_impl_list): Likewise.
8322         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
8323         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
8324         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
8325         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
8326         multiarch wcsrchr for PPC64.
8327
8328         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
8329         multiarch implementations.
8330         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8331         (__libc_ifunc_impl_list): Likewise.
8332         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
8333         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
8334         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
8335         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
8336         multiarch wcschr for PPC64.
8337
8338         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
8339         multiarch implementations.
8340         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8341         (__libc_ifunc_impl_list): Likewise.
8342         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
8343         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
8344         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
8345         multiarch strchrnul for PPC64.
8346
8347         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
8348         implementations.
8349         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8350         (__libc_ifunc_impl_list): Likewise.
8351         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
8352         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
8353         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
8354         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
8355         strchr for PPC64.
8356
8357         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
8358         implementations.
8359         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8360         (__libc_ifunc_impl_list): Likewise.
8361         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
8362         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
8363         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
8364         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
8365         strncmp for PPC64.
8366
8367         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
8368         multiarch implementations.
8369         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8370         (__libc_ifunc_impl_list): Likewise.
8371         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
8372         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
8373         strncasecmp for PPC64.
8374         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
8375         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
8376         multiarch strncasecmp_l for PPC64.
8377
8378         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
8379         multiarch implementations.
8380         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
8381         (__libc_ifunc_impl_list): Likewise.
8382         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
8383         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
8384         multiarch strcasecmp for PPC64.
8385         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
8386         file.
8387         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
8388         multiarch strcasecmp_l for PPC64.
8389
8390         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
8391         implementations.
8392         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8393         (__libc_ifunc_impl_list): Likewise.
8394         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
8395         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
8396         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
8397         strnlen for PPC64.
8398
8399         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
8400         implementations.
8401         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8402         (__libc_ifunc_impl_list): Likewise.
8403         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
8404         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
8405         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
8406         strlen for PPC64.
8407
8408         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
8409         implementations.
8410         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8411         (__libc_ifunc_impl_list): Likewise.
8412         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
8413         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
8414         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
8415         rawmemrchr for PPC64.
8416
8417         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
8418         implementation.
8419         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8420         (__libc_ifunc_impl_list): Likewise.
8421         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
8422         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
8423         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
8424         memrchr for PPC64.
8425
8426         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
8427         implementation.
8428         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8429         (__libc_ifunc_impl_list): Likewise.
8430         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
8431         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
8432         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
8433         memchr for PPC64.
8434
8435         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
8436         implementation.
8437         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8438         (__libc_ifunc_impl_list): Likewise.
8439         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
8440         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
8441         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
8442         mempcpy for PPC64.
8443
8444         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
8445         avoid cretion of __bzero symbol.
8446         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
8447         Likewise.
8448         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
8449         Likewise.
8450         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
8451         Likewise.
8452         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
8453         multiarch implementations.
8454         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8455         (__libc_ifunc_impl_list): Likewise.
8456         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
8457         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
8458         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
8459         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
8460         bzero for PPC32.
8461         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
8462         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
8463         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
8464         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
8465         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
8466         memset for PPC64.
8467         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
8468
8469         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
8470         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
8471         implementations.
8472         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8473         (__libc_ifunc_impl_list): Likewise.
8474         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
8475         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
8476         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
8477         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
8478         memcmp for PPC64.
8479
8480         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
8481         multiarch for POWER/PPC64.
8482         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
8483         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
8484         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
8485         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
8486         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
8487         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
8488         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
8489         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
8490         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
8491         memcpy for PPC64.
8492
8493         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
8494         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
8495         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
8496         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
8497         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
8498         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
8499         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
8500         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
8501         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
8502         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
8503         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
8504         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
8505         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
8506         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
8507         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
8508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
8509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
8510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
8511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
8512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
8513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
8514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
8515
8516 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8517
8518         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
8519
8520 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
8521
8522         * benchtests/Makefile (bench): Add exp2 and log2.
8523         (LDLIBS-bench-exp2): Add -lm.
8524         (LDLIBS-bench-log2): Likewise.
8525         * benchtests/exp2-inputs: New inputs file.
8526         * benchtests/log2-inputs: New inputs file.
8527         * benchtests/log-inputs: Add new inputs.
8528         * benchtests/tan-inputs: Likewise.
8529
8530 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
8531
8532         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
8533         definition...
8534         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
8535         (csloww2): ... from here.
8536
8537         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
8538         instead of structures.
8539         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
8540         (POLYNOMIAL): Likewise.
8541         (TAYLOR_SLOW): Likewise.
8542         (__sin): Likewise.
8543         (__cos): Likewise.
8544         (slow1): Likewise.
8545         (slow2): Likewise.
8546         (sloww): Likewise.
8547         (sloww1); Likewise.
8548         (sloww2): Likewise.
8549         (bsloww1): Likewise.
8550         (bsloww2): Likewise.
8551         (cslow2): Likewise.
8552         (csloww): Likewise.
8553         (csloww1): Likewise.
8554         (csloww2): Likewise.
8555
8556 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
8557
8558         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
8559         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
8560         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
8561         * malloc/hooks.c (realloc_check): Likewise.
8562
8563         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
8564         * malloc/arena.c: Remove PER_THREAD conditional.
8565         [!PER_THREAD]: Remove code.
8566         (ptmalloc_unlock_all2): Likewise.
8567         (ptmalloc_init): Likewise.
8568         (_int_new_arena): Likewise.
8569         (arena_get2): Likewise.
8570         * malloc/hooks.c (__malloc_get_state): Likewise.
8571         (__malloc_set_state): Likewise.
8572         * malloc/malloc.c: Likewise.
8573         (struct malloc_state): Likewise.
8574         (struct malloc_par): Likewise.
8575         (__libc_realloc): Likewise.
8576         (__libc_mallopt): Likewise.
8577
8578 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8579
8580         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
8581
8582 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
8583
8584         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
8585         macro to a function.  Check for zero perturb_byte.
8586         (_int_malloc, _int_free): Remove zero perturb_byte checks.
8587
8588         * malloc/malloc.c: (force_reg): Remove.
8589         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
8590         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
8591         force_reg by atomic_forced_read.
8592         * malloc/arena.c (ptmalloc_init): Likewise.
8593         * malloc/hooks.c (top_check): Likewise.
8594
8595 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8596
8597         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8598
8599 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
8600
8601         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8602
8603 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
8604
8605         * math/auto-libm-test-in: Add tests of lgamma.
8606         * math/auto-libm-test-out: Regenerated.
8607         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
8608         (M_LOG_2_SQRT_PIl): Likewise.
8609         (lgamma_test_data): Use AUTO_TESTS_f_f1.
8610         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8611         mpfr_f_f1.
8612         (func_calc_desc): Add mpfr_f_f1 union field.
8613         (ARGS1): New macro.
8614         (ARGS2): Likewise.
8615         (ARGS3): Likewise.
8616         (ARGS4): Likewise.
8617         (RET1): Likewise.
8618         (RET2): Likewise.
8619         (CALC): Likewise.
8620         (FUNC): Likewise.
8621         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
8622         (test_functions): Add lgamma.
8623         (calc_generic_results): Handle mpfr_f_f1.
8624         * sysdeps/i386/fpu/libm-test-ulps: Update.
8625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8626
8627 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8628
8629         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
8630         __mpn_add_n for PowerPC64/POWER7.
8631         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
8632         __mpn_sub_n for PowerPC64/POWER7.
8633
8634         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
8635         __mpn_addmul_1 for PowerPC64.
8636         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
8637         __mpn_submul_1 for PowerPC64.
8638         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
8639         for PowerPC64.
8640         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
8641         for PowerPC64.
8642
8643 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
8644
8645         [BZ #15089]
8646         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
8647
8648 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8649
8650         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
8651
8652         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
8653         add multiarch folders.
8654         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
8655         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
8656         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
8657         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
8658         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
8659         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
8660         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
8661         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
8662         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
8663         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
8664         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
8665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
8666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
8667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
8668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
8669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
8670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
8671
8672         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
8673         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
8674         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
8675         New file.
8676         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
8677         New file.
8678         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
8679         multiarch __ieee754_hypot for PowerPC32.
8680         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
8681         New file.
8682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
8683         New file.
8684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
8685         multiarch __ieee754_hypotf for PowerPC32.
8686
8687         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
8688         long_double_symbol only if __logbl is defined.
8689         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
8690         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
8691         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
8692         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
8693         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
8694         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
8695         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
8696         path for implementation.
8697         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
8698         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
8699         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
8700         logb, and logbl multiarch implementations for PowerPC32.
8701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
8702         file.
8703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
8704         file.
8705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
8706         multiarch logb for PowerPC32.
8707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
8708         file.
8709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
8710         file.
8711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
8712         multiarch logbf for PowerPC32.
8713         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
8714         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
8715         file.
8716         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
8717         multiarch logbl implementation for PowerPC32.
8718
8719         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
8720         and modff multiarch implementations.
8721         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
8722         New file.
8723         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
8724         New file.
8725         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
8726         multiarch modf for PowerPC32.
8727         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
8728         New file.
8729         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
8730         New file.
8731         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
8732         multiarch modff for PowerPC32.
8733
8734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
8735         and lrintf multiarch implementations.
8736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
8737         New file.
8738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
8739         New file.
8740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
8741         multiarch lrint for PowerPC32.
8742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
8743         file: multiarch lrintf for PowerPC32.
8744
8745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
8746         and lroundf multiarch implementations.
8747         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
8748         New file.
8749         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
8750         New file.
8751         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
8752         New file.
8753         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
8754         multiarch lround for PowerPC32.
8755         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
8756         file: multiarch lroundf for PowerPC32.
8757
8758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
8759         copysign and copysignf multiarch implementations.
8760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
8761         New file.
8762         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
8763         New file.
8764         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
8765         file: multiarch copysign for PowerPC32.
8766         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
8767         file: multiarch copysignf for PowerPC32.
8768
8769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
8770         and truncf multiarch implementations.
8771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
8772         New file.
8773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
8774         file.
8775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
8776         multiarch trunc for PowerPC32.
8777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
8778         New file.
8779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
8780         New file.
8781         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
8782         multiarch truncf for PowerPC32.
8783
8784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
8785         and roundf multiarch implementations.
8786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
8787         New file.
8788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
8789         file.
8790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
8791         multiarch round for PowerPC32.
8792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
8793         New file.
8794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
8795         New file.
8796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
8797         multiarch roundf for PowerPC32.
8798
8799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
8800         and floorf multiarch implementations.
8801         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
8802         New file.
8803         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
8804         file.
8805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
8806         multiarch floor for PowerPC32.
8807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
8808         New file.
8809         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
8810         New file.
8811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
8812         multiarch floorf for PowerPC32.
8813
8814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
8815         and ceilf multiarch implementations.
8816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
8817         New file.
8818         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
8819         file.
8820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
8821         multiarch ceil for PowerPC32.
8822         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
8823         New file.
8824         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
8825         file.
8826         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
8827         multiarch ceilf for PowerPC32.
8828
8829         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
8830         is defined.
8831         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
8832         FINITEF is defined.
8833         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
8834         and finitef multiarch implementations.
8835         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
8836         New file.
8837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
8838         file.
8839         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
8840         multiarch finite for PowerPC32.
8841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
8842         New file.
8843         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
8844         file: multiarch finitef for PowerPC32.
8845
8846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
8847         and isinff multiarch implementations.
8848         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
8849         file.
8850         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
8851         file.
8852         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
8853         multiarch isinf for PowerPC32.
8854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
8855         New file.
8856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
8857         multiarch isinff for PowerPC32.
8858
8859         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
8860         alias when __isnan is defined.
8861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
8862         and isnanf multiarch implementations.
8863         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
8864         file.
8865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
8866         file.
8867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
8868         file.
8869         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
8870         file.
8871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
8872         multiarch isnan for PowerPC32.
8873         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
8874         New file.
8875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
8876         New file.
8877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
8878         multiarch isnanf for PowerPC32.
8879
8880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
8881         and sqrtf multiarch implementations.
8882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
8883         file.
8884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
8885         file.
8886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
8887         multiarch sqrt for PowerPC32.
8888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
8889         file.
8890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
8891         file.
8892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
8893         multiarch sqrtf for PowerPC32.
8894
8895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
8896         and llroundf multiarch implementations.
8897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
8898         New file.
8899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
8900         New file.
8901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
8902         New file.
8903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
8904         file: multiarch llround for PowerPC32.
8905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
8906         file: multiarch llroundf for PowerPC32.
8907
8908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
8909         multiarch PowerPC32 fpu implementations.
8910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
8911         New file.
8912         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
8913         New file.
8914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
8915         multiarch llrint for PowerPC32.
8916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
8917         New file.
8918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
8919         New file.
8920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
8921         file.
8922
8923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
8924
8925         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
8926         file.
8927         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
8928         file.
8929         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
8930         file.
8931         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
8932         multiarch wordcopy for PPC32.
8933         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
8934         wordcopy objects.
8935         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8936         (__libc_ifunc_impl_list): Likewise.
8937         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
8938         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
8939         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
8940         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
8941         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
8942         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
8943
8944         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
8945         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
8946         file.
8947         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
8948         file.
8949         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
8950         file.
8951         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
8952         multiarch wcscpy for PPC32.
8953         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
8954         multiarch objects.
8955         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8956         (__libc_ifunc_impl_list): Likewise.
8957         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
8958         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
8959         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
8960         sysdeps/powerpc/power6/wcscpy.c.
8961
8962         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
8963         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
8964         file.
8965         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
8966         file.
8967         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
8968         file.
8969         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
8970         multiarch wcsrchr for PPC32.
8971         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
8972         multiarch objects.
8973         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8974         (__libc_ifunc_impl_list): Likewise.
8975         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
8976         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
8977         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
8978         sysdeps/powerpc/power6/wcsrchr.c.
8979
8980         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
8981         file.
8982         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
8983         file.
8984         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
8985         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
8986         multiarch wcschr for PPc32.
8987         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
8988         multiarch objects.
8989         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
8990         (__libc_ifunc_impl_list): Likewise.
8991         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
8992         * sysdeps/powerpc/power6/wcschr.c: ... to here.
8993         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
8994         sysdeps/powerpc/power6/wcschr.c.
8995
8996         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
8997         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
8998         file.
8999         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
9000         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
9001         file: multiarch strchr for PPC32.
9002         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
9003         multiarch objects.
9004         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9005         (__libc_ifunc_impl_list): Likewise.
9006
9007         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
9008         name.
9009         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
9010         file.
9011         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
9012         file.
9013         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
9014         multiarch strchrnul for PPC32.
9015         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
9016         multiarch objects.
9017         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9018         (__libc_ifunc_impl_list): Likewise.
9019
9020         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
9021         file.
9022         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
9023         multiarch strncasecmp for PPC32.
9024         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
9025         file.
9026         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
9027         multiarch strncasecmp_l for PPC32.
9028         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
9029         strncasecmp multiarch objects.
9030         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9031         (__libc_ifunc_impl_list): Likewise.
9032
9033         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
9034         file.
9035         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
9036         multiarch strncasecmp for PPC32.
9037         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
9038         New file.
9039         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
9040         multiarch strcasecmp_l for PPC32.
9041         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
9042         multiarch objects.
9043         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9044         (__libc_ifunc_impl_list): Likewise.
9045
9046         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
9047         file.
9048         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
9049         file.
9050         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
9051         multiarch strncmp for PPC32.
9052         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
9053         multiarch objects.
9054         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9055         (__libc_ifunc_impl_list): Likewise.
9056
9057         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
9058         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
9059         file.
9060         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
9061         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
9062         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
9063         multiarch objects.
9064         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9065         (__libc_ifunc_impl_list): Likewise.
9066
9067         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
9068         file.
9069         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
9070         file.
9071         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
9072         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
9073         multiarch objects.
9074         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9075         (__libc_ifunc_impl_list): Likewise.
9076
9077         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
9078         file.
9079         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
9080         file.
9081         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
9082         multiarch rawmemchr for PPC32.
9083         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
9084         multiarch objects.
9085         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9086         (__libc_ifunc_impl_list): Likewise.
9087
9088         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
9089         file.
9090         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
9091         file.
9092         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
9093         file: memrchr multiarch for PPC32.
9094         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
9095         multiarch objects.
9096         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9097         (__libc_ifunc_impl_list): Likewise.
9098
9099         * string/memchr.c (__memchr): Using macro to redefine symbol name.
9100         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
9101         file.
9102         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
9103         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
9104         multiarch memchr for PPC32.
9105         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
9106         multiarch objects.
9107         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
9108         (__libc_ifunc_impl_list): Likewise.
9109
9110         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
9111         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
9112         file.
9113         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
9114         file.
9115         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
9116         file: multiarch mempcpy for PPC32.
9117         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
9118         multiarch objects.
9119         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
9120         (__libc_ifunc_impl_list): Likewise.
9121
9122         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
9123         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
9124         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
9125         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
9126         multiarch bzero for PPC32.
9127         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
9128         file.
9129         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
9130         file.
9131         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
9132         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
9133         file: multiarch memset for PPC32.
9134         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
9135         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
9136         memset multiarch objects.
9137         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
9138         (__libc_ifunc_impl_list): Likewise.
9139
9140         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
9141         file.
9142         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
9143         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
9144         memcmp for PPC32.
9145         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
9146         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
9147         multiarch objects.
9148         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
9149         (__libc_ifunc_impl_list): Likewise.
9150
9151         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
9152         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
9153         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
9154         file.
9155         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
9156         file.
9157         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
9158         file.
9159         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
9160         multiarch memcpy for PPC32.
9161         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
9162         multiarch objects.
9163         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
9164         (__libc_ifunc_impl_list): Likewise.
9165
9166         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
9167         support multiarch for POWER/PPC32.
9168         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
9169         Likewise.
9170         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
9171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
9172         Implies file to make multiarch folder appers before the fpu and
9173         default folder for power4 configuration.
9174
9175 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
9176
9177         * scripts/bench.pl: Append volatile keyword to type.
9178
9179 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9180
9181         * sysdeps/sh/sotruss-lib.c: New file.
9182         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
9183
9184 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9185
9186         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9187
9188 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
9189
9190         [BZ #6810]
9191         * math/w_tgamma.c: Include <errno.h>.
9192         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
9193         * math/w_tgammaf.c: Include <errno.h>.
9194         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
9195         * math/w_tgammal.c: Include <errno.h>.
9196         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
9197         * math/auto-libm-test-in: Do not allow missing errno on tgamma
9198         underflow.  Add more tgamma tests.
9199         * math/auto-libm-test-out: Regenerated.
9200         * sysdeps/i386/fpu/libm-test-ulps: Update.
9201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9202
9203         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
9204         sin, sinh, tan, tanh, tgamma, y0 and y1.
9205         * math/auto-libm-test-out: Regenerated.
9206         * math/libm-test.inc (TEST_COND_x86_64): New macro.
9207         (TEST_COND_x86): Likewise.
9208         (M_E2l): Remove macro.
9209         (M_E3l): Likewise.
9210         (M_2_SQRT_PIl): Likewise.
9211         (M_SQRT_PIl): Likewise.
9212         (M_1_DIV_El): Likewise.
9213         (log_test_data): Use AUTO_TESTS_f_f.
9214         (log10_test_data): Likewise.
9215         (log1p_test_data): Likewise.
9216         (log2_test_data): Likewise.
9217         (sin_test_data): Likewise.
9218         (sin_tonearest_test_data): Likewise.
9219         (sin_towardzero_test_data): Likewise.
9220         (sin_downward_test_data): Likewise.
9221         (sin_upward_test_data): Likewise.
9222         (sinh_test_data): Likewise.
9223         (sinh_tonearest_test_data): Likewise.
9224         (sinh_towardzero_test_data): Likewise.
9225         (sinh_downward_test_data): Likewise.
9226         (sinh_upward_test_data): Likewise.
9227         (tan_test_data): Likewise.
9228         (tan_tonearest_test_data): Likewise.
9229         (tan_towardzero_test_data): Likewise.
9230         (tan_downward_test_data): Likewise.
9231         (tan_upward_test_data): Likewise.
9232         (tanh_test_data): Likewise.
9233         (tgamma_test_data): Likewise.
9234         (y0_test_data): Likewise.
9235         (y1_test_data): Likewise.
9236         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
9237         (special_real_inputs): Add pi/4.
9238         * sysdeps/i386/fpu/libm-test-ulps: Update.
9239         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9240
9241 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9242
9243         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
9244         "longjmp_target" static probes.
9245         (__longjmp): Rename to __longjmp_symbol.
9246         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
9247         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
9248         on which longjmp to generate.
9249         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
9250         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
9251         probe.
9252         (__sigsetjmp): Rename to __sigsetjmp_symbol.
9253         (__sigjmp_save): Rename to __sigjmp_save_symbol.
9254         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
9255         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
9256         and __sigjmp_save_symbol based on which sigsetjmp to generated.
9257         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
9258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
9259         __longjmp_symbol based on which __longjmp to generate.
9260         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
9261         probe.
9262         (setjmp): Rename to setjmp_symbol.
9263         (__sigsetjmp): Rename to __sigsetjmp_symbol.
9264         (_setjmp): Rename to _setjmp_symbol.
9265         (__sigsetjmp): Rename to __sigsetjmp_symbol.
9266         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
9267         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
9268         which setjmp to generate.
9269         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
9270         "longjmp_target" static probes.
9271
9272 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9273
9274         * benchtests/README: Add note about output arguments.
9275         * benchtests/bench-sincos.c: Remove file.
9276         * benchtests/sincos-inputs: New file.
9277         * scripts/bench.pl: Identify output arguments and define
9278         static variables for them.
9279
9280         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
9281
9282         [BZ #15941]
9283         * Makefile (INSTALL): Add install-plain.texi as the primary
9284         dependency.
9285         * manual/install-plain.texi: New file.
9286         * manual/install.texi: Include node directive only for
9287         non-plaintext output.
9288
9289 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
9290
9291         * stdlib/longlong.h: Update from GCC.
9292
9293         [BZ #6807]
9294         [BZ #15901]
9295         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
9296         * math/w_j0f.c (y0f): Likewise.
9297         * math/w_j0l.c (__y0l): Likewise.
9298         * math/w_j1.c (y1): Likewise.
9299         * math/w_j1f.c (y1f): Likewise.
9300         * math/w_j1l.c (__y1l): Likewise
9301         * math/w_jn.c (yn): Likewise.
9302         * math/w_jnf.c (ynf): Likewise.
9303         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
9304         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
9305         value for Bessel function domain errors outside _SVID_ mode.
9306         Adjust sign of return value for yn (negative integer, 0).
9307         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
9308         by zero in return for negative x and set sign appropriately for
9309         negative n.
9310         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
9311         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
9312         * math/libm-test.inc (y0_test_data): Add more tests and adjust
9313         expectations in error cases.
9314         (y1_test_data): Likewise.
9315         (yn_test_data): Likewise.
9316         * sysdeps/i386/fpu/libm-test-ulps: Update.
9317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9318
9319 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9320
9321         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
9322         "64" to "64-v1".  Add "64-v2".
9323         (abi-64-options): Rename to ...
9324         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
9325         (abi-64-condition): Rename to ...
9326         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
9327         (abi-64-ld-soname): Rename to ...
9328         (abi-64-v1-ld-soname): ... this.
9329         (abi-64-v2-options): Define.
9330         (abi-64-v2-condition): Likewise.
9331         (abi-64-v2-ld-soname): Likewise.
9332         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
9333         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
9334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
9335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
9336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
9337
9338 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9339             Alan Modra  <amodra@gmail.com>
9340
9341         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
9342         New versions for use with the ELFv2 ABI.
9343         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
9344         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
9345         declaration.
9346         (struct La_ppc64v2_retval): Likewise.
9347         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
9348         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
9349         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
9350         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
9351         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
9352         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
9353         Do not save or restore CR.
9354         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
9355         (_dl_profile_resolve): Do no save or restore CR.  Support extended
9356         return values for ELFv2 ABI.  Fix location of FPR return registers.
9357         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
9358         updated values for _CALL_ELF == 2.
9359         (La_regs, La_retval, int_retval): Likewise.
9360
9361 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9362
9363         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
9364         (FRAME_MIN_SIZE_PARM): Likewise.
9365         (FRAME_BACKCHAIN): Likewise.
9366         (FRAME_CR_SAVE): Likewise.
9367         (FRAME_LR_SAVE): Likewise.
9368         (FRAME_TOC_SAVE): Likewise.
9369         (FRAME_PARM_SAVE): Likewise.
9370         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
9371         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
9372         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
9373         (call_mcount_parm_offset): New macro.
9374         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
9375         (PROF): Use symbolic stack frame offsets.
9376         (TAIL_CALL_SYSCALL_ERROR): Likewise.
9377         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
9378         Redefine in terms of FRAME_MIN_SIZE.
9379         (_dl_runtime_resolve): Use symbolic stack frame offsets.
9380         (_dl_profile_resolve): Likewise.  Update comment.
9381         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
9382         symbols stack frame offsets.
9383         (__sigsetjmp): Likewise.
9384         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9385         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
9386         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
9387         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
9388
9389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
9390         (FRAME_BACKCHAIN): Remove.
9391         (FRAME_CR_SAVE): Likewise.
9392         (FRAME_LR_SAVE): Likewise.
9393         (FRAME_COMPILER_DW): Likewise.
9394         (FRAME_LINKER_DW): Likewise.
9395         (FRAME_TOC_SAVE): Likewise.
9396         (FRAME_PARM_SAVE): Likewise.
9397         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
9398         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
9399         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
9400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
9401         (CHECK_SP): Use symbolic stack frame offsets.
9402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
9403         zone" instead of caller's parameter save area for temp storage.
9404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
9405         Likewise.  Also, use symbolic stack frame offsets.
9406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
9407         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
9408         our own stack frame instead of the caller's.
9409         (__socket): Use symbolic stack frame offsets.
9410
9411 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9412             Alan Modra  <amodra@gmail.com>
9413
9414         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
9415         Define.
9416         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
9417         (PPC64_LOCAL_ENTRY_OFFSET): Define.
9418         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
9419         New function.
9420         (elf_machine_fixup_plt): Call it.
9421         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
9422         reloc arguments.
9423         (elf_machine_rela): Update call to elf_machine_plt_conflict.
9424         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
9425         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
9426         r2 before calling target.
9427
9428 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9429             Alan Modra  <amodra@gmail.com>
9430
9431         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
9432         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
9433         versions of macros to support ELFv2 ABI.
9434         (LOCALENTRY): New macro.
9435         (ENTRY, EALIGN): Use it.
9436         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
9437         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
9438         fall through into ENTRY entry point.
9439         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
9440         Only define if _CALL_ELF != 2.
9441
9442         (elf_machine_matches_host): Verify ABI version matches.
9443         (RTLD_START): Use LOCALENTRY.
9444         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
9445         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
9446         (PLT_ENTRY_WORDS): New macro.
9447         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
9448         (elf_machine_runtime_setup): Support ELFv2 ABI.
9449         (elf_machine_fixup_plt): Likewise.
9450         (elf_machine_plt_conflict): Likewise.
9451         (resolve_ifunc): Likewise.
9452         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
9453         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
9454         Likewise.
9455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9456         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
9457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9458         (makecontext): Support ELFv2 ABI.
9459         * elf/elf.h (EF_PPC64_ABI): Define.
9460
9461 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9462
9463         * sysdeps/powerpc/powerpc64/sysdep.h
9464         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
9465         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
9466         (ENTRY) [ASSEMBLER]: ... but instead here ...
9467         (EALIGN) [ASSEMBLER]: ... and here.
9468         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
9469         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
9470         (ENTRY_2) [!ASSEMBLER]: Use it.
9471         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
9472         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
9473         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
9474         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
9475         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
9476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
9477         Use PPC64_LOAD_FUNCPTR.
9478
9479         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
9480
9481 2013-12-04  Alan Modra  <amodra@gmail.com>
9482
9483         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
9484         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
9485         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
9486         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
9487
9488         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
9489         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
9490         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
9491         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
9492         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
9493         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
9494
9495 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9496
9497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9498         (__makecontext): Fix incorrect CFI when backtracing out of
9499         context created via makecontext.
9500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
9501         (__setcontext): Fix incorrect CFI during switch to new context.
9502         (__novec_setcontext): Likewise.
9503
9504 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
9505
9506         [BZ #4772]
9507         * time/strptime_l.c (__strptime_internal): Allow modifiers
9508         in strptime.
9509         * time/tst-strptime.c (day_tests): Add testcase.
9510
9511 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9512
9513         * scripts/bench.pl: Skip over blank lines.
9514
9515 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
9516
9517         [BZ #926]
9518         * manual/time.texi (Calendar Time): Clarify what timezone functions
9519         use.
9520
9521 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9522
9523         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9524
9525 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
9526
9527         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
9528         implementation.
9529         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9530         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9531         * debug/memset_chk.c (__memset_chk): Likewise.
9532         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
9533         * debug/strncpy_chk.c: Likewise.
9534
9535 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
9536
9537         [BZ #15268]
9538         [BZ #15425]
9539         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
9540         (__ieee754_exp): For possibly underflowing results, check size of
9541         result and force underflow exception if required.
9542         * math/auto-libm-test-in: Add more tests of exp.
9543         * math/auto-libm-test-out: Regenerated.
9544         * sysdeps/i386/fpu/libm-test-ulps: Update.
9545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9546
9547         [BZ #16283]
9548         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
9549         * math/w_exp2f.c (__exp2f): Likewise.
9550         * math/w_exp2l.c (__exp2l): Likewise.
9551         * math/auto-libm-test-in: Do not allow missing errno on exp2
9552         underflow.
9553         * math/auto-libm-test-out: Regenerated.
9554
9555 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
9556
9557         [BZ #16274]
9558         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
9559         handle filename validation.
9560         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
9561         (do_open): Delete.
9562
9563 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
9564
9565         [BZ #6786]
9566         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
9567         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
9568         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
9569         <float.h>.
9570         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
9571         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
9572         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
9573         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
9574         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
9575         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
9576         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
9577         * math/auto-libm-test-in: Don't allow missing errno from erfc.
9578         Add more erfc tests.
9579         * math/auto-libm-test-out: Regenerated.
9580         * sysdeps/i386/fpu/libm-test-ulps: Update.
9581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9582
9583         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
9584         exp2, expm1, j0 and j1.
9585         * math/auto-libm-test-out: Regenerated.
9586         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
9587         (erfc_test_data): Likewise.
9588         (exp_test_data): Likewise.
9589         (exp_tonearest_test_data): Likewise.
9590         (exp_towardzero_test_data): Likewise.
9591         (exp_downward_test_data): Likewise.
9592         (exp_upward_test_data): Likewise.
9593         (exp10_test_data): Likewise.
9594         (exp2_test_data): Likewise.
9595         (expm1_test_data): Likewise.
9596         (j0_test_data): Likewise.
9597         (j1_test_data): Likewise.
9598         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
9599         (input_flag_type): Add flag_xfail_rounding.
9600         (input_flags): Add xfail-rounding.
9601         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
9602         (output_for_one_input_case): Handle flag_xfail_rounding.
9603         * sysdeps/i386/fpu/libm-test-ulps: Update.
9604         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9605
9606 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
9607
9608         [BZ #16289]
9609         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
9610         division by 0.
9611
9612 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
9613
9614         [BZ #16195]
9615         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
9616         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
9617         (STAP_PROBE0): New macro.
9618         (STAP_PROBE1): Likewise.
9619         (STAP_PROBE2): Likewise.
9620         (STAP_PROBE3): Likewise.
9621         (STAP_PROBE4): Likewise.
9622
9623 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
9624
9625         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
9626
9627 2013-12-02  Steve Ellcey  <sellcey@mips.com>
9628
9629         * benchtests/Makefile (bench): Add sqrt.
9630         (LDLIBS-bench-sqrt): New.
9631         * benchtests/sqrt-input: New.
9632
9633 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
9634
9635         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
9636         (GAIH_EAI): Likewise.
9637         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
9638         (gaih_inet): Likewise.
9639         (getaddrinfo): Don't use GAIH_EAI.
9640
9641         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
9642         (struct gaih): Remove definition.
9643
9644 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9645
9646         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
9647         Use HERRNOP directly.
9648
9649 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9650
9651         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9652
9653 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
9654
9655         * math/gen-auto-libm-tests.c (test_functions): Add more
9656         single-argument functions.
9657         (special_fill_pi_2): New function.
9658         (special_fill_minus_pi_2): Likewise.
9659         (special_fill_pi_6): Likewise.
9660         (special_fill_minus_pi_6): Likewise.
9661         (special_fill_pi_3): Likewise.
9662         (special_fill_2pi_3): Likewise.
9663         (special_fill_e): Likewise.
9664         (special_fill_1_e): Likewise.
9665         (special_fill_e_minus_1): Likewise.
9666         (special_real_inputs): Add more special inputs.
9667         (output_for_one_input_case): Do not require ERANGE on underflow to
9668         zero if round-to-nearest result does not underflow to zero, unless
9669         exact results required.
9670         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
9671         atan, atanh, cbrt, cos and cosh.
9672         * math/auto-libm-test-out: Regenerated.
9673         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
9674         (acos_tonearest_test_data): Likewise.
9675         (acos_towardzero_test_data): Likewise.
9676         (acos_downward_test_data): Likewise.
9677         (acos_upward_test_data): Likewise.
9678         (acosh_test_data): Likewise.
9679         (asin_test_data): Likewise.
9680         (asin_tonearest_test_data): Likewise.
9681         (asin_towardzero_test_data): Likewise.
9682         (asin_upward_test_data): Likewise.
9683         (asinh_test_data): Likewise.
9684         (atan_test_data): Likewise.
9685         (atanh_test_data): Likewise.
9686         (cbrt_test_data): Likewise.
9687         (cos_test_data): Likewise.
9688         (cos_tonearest_test_data): Likewise.
9689         (cos_towardzero_test_data): Likewise.
9690         (cos_downward_test_data): Likewise.
9691         (cos_upward_test_data): Likewise.
9692         (cosh_test_data): Likewise.
9693         (cosh_tonearest_test_data): Likewise.
9694         (cosh_towardzero_test_data): Likewise.
9695         (cosh_downward_test_data): Likewise.
9696         (cosh_upward_test_data): Likewise.
9697         * sysdeps/i386/fpu/libm-test-ulps: Update.
9698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9699
9700 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
9701
9702         [BZ #6787]
9703         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
9704         * math/w_exp10f.c (__exp10f): Likewise.
9705         * math/w_exp10l.c (__exp10l): Likewise.
9706         * math/libm-test.inc (exp10_test_data): Add more tests and expect
9707         errno settings in existing tests.
9708
9709         [BZ #14032]
9710         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
9711         precision control set to double precision.
9712         * sysdeps/i386/fpu/w_sqrt.c: New file.
9713         * math/auto-libm-test-in: Add more tests.
9714         * math/auto-libm-test-out: Update.
9715
9716         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
9717         (sqrt_test_tonearest): New function.
9718         (sqrt_towardzero_test_data): New variable.
9719         (sqrt_test_towardzero): New function.
9720         (sqrt_downward_test_data): New variable.
9721         (sqrt_test_downward): New function.
9722         (sqrt_upward_test_data): New variable.
9723         (sqrt_test_upward): New function.
9724         (main): Call the new functions.
9725
9726         * math/gen-auto-libm-tests.c: New file.
9727         * math/auto-libm-test-in: Likewise.
9728         * math/auto-libm-test-out: New generated file.
9729         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
9730         variables.
9731         (%beautify): Add generated representations of zero.
9732         (top level): Set $auto_input and call parse_auto_input.
9733         (beautify): Remove trailing "f" from hex float constants.
9734         (parse_args): Handle XFAIL_TEST.
9735         (convert_condition): New function.
9736         (or_value): Likewise.
9737         (or_cond_value): Likewise.
9738         (generate_testfile): Handle AUTO_TESTS_* lines.
9739         (parse_auto_input): New function.
9740         * math/libm-test.inc (XFAIL_TEST): New macro.
9741         (ERRNO_UNCHANGED): Update value.
9742         (ERRNO_EDOM): Likewise.
9743         (ERRNO_ERANGE): Likewise.
9744         (IGNORE_RESULT): Likewise.
9745         (TEST_COND_flt_32): New macro.
9746         (TEST_COND_dbl_64): Likewise.
9747         (TEST_COND_ldbl_96_intel): Likewise.
9748         (TEST_COND_ldbl_96_m68k): Likewise.
9749         (TEST_COND_ldbl_128): Likewise.
9750         (TEST_COND_ldbl_128ibm): Likewise.
9751         (TEST_COND_long32): Likewise.
9752         (TEST_COND_long64): Likewise.
9753         (TEST_COND_before_rounding): Likewise.
9754         (TEST_COND_after_rounding): Likewise.
9755         (enable_test): Handle XFAIL_TEST flag.
9756         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
9757         with finite results.
9758         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
9759         auto-libm-test-out.
9760
9761 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9762             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9763
9764         [BZ #16214]
9765         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
9766         __tls_get_addr_internal instead of __tls_get_offset in order to
9767         avoid GOT pointer dependency.  Make rtld export
9768         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
9769         __tls_get_addr since we are a __tls_get_offset platform.
9770         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
9771         GOT pointer being set up before.
9772         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
9773
9774 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
9775
9776         * manual/math.texi (Errors in Math Functions): Document accuracy
9777         goals.
9778
9779         [BZ #15004]
9780         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
9781         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
9782         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9783         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9784         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9785         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9786         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9787         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9788         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9789         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9790         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9791         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9792         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9793         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9794         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9795         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9796
9797         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
9798         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
9799         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
9800         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
9801         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
9802         Likewise.
9803         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
9804         Likewise.
9805         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
9806         Likewise.
9807         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
9808         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
9809         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
9810         atomic-feupdateenv and flt-rounds.
9811         * sysdeps/powerpc/nofpu/Versions (libc): Add
9812         __atomic_feholdexcept, __atomic_feclearexcept,
9813         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
9814         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
9815         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
9816         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
9817         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
9818         here.
9819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
9820         Update.
9821
9822         * manual/arith.texi (FP Exceptions): Document that exceptions may
9823         not be raised when matherr is used.
9824         (Math Error Reporting): Document overflow in directed rounding
9825         modes.  Document that errno may not be set when finite values are
9826         returned on overflow.  Document intent to set errno on underflow
9827         only for underflow to zero.
9828
9829         [BZ #16271]
9830         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
9831         round-to-nearest then adjust result for other rounding modes.
9832         * include/fenv.h (fegetround): Use libm_hidden_proto.
9833         * math/fegetround.c (fegetround): Use libm_hidden_def.
9834         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
9835         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
9836         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
9837         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
9838         Likewise.
9839         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
9840         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
9841         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
9842         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
9843
9844 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9845
9846         [BZ #16077]
9847         * nss/Versions (libnss_files): Add
9848         _nss_files_gethostbyname3_r.
9849         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
9850         New function.
9851         (HOST_DB_LOOKUP): Remove macro.
9852         (_nss_files_gethostbyname_r): Implement function without the
9853         HOST_DB_LOOKUP macro.
9854         (_nss_files_gethostbyname2_r): Likewise.
9855
9856 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
9857
9858         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
9859
9860 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
9861
9862         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
9863         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
9864         warning.
9865
9866 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9867
9868         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
9869         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
9870         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
9871         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
9872         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
9873         __fe_nomask_env_priv and attribute_hidden.
9874         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
9875         (libc_feupdateenv_test_ppc): Likewise.
9876         (libc_feresetround_ppc): Likewise.
9877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
9878         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
9879         compat_symbol macro.
9880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
9881         (__fe_nomask_env): Likewise.
9882         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
9883
9884 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9885
9886         * string/Makefile: Remove ifunc tests.
9887         * string/test-string.h: Define TEST_IFUNC.
9888         * string/test-bcopy-ifunc.c: Remove.
9889         * string/test-bzero-ifunc.c: Likewise.
9890         * string/test-memccpy-ifunc.c: Likewise.
9891         * string/test-memchr-ifunc.c: Likewise.
9892         * string/test-memcmp-ifunc.c: Likewise.
9893         * string/test-memcpy-ifunc.c: Likewise.
9894         * string/test-memmem-ifunc.c: Likewise.
9895         * string/test-memmove-ifunc.c: Likewise.
9896         * string/test-mempcpy-ifunc.c: Likewise.
9897         * string/test-memrchr-ifunc.c: Likewise.
9898         * string/test-memset-ifunc.c: Likewise.
9899         * string/test-rawmemchr-ifunc.c: Likewise.
9900         * string/test-stpcpy-ifunc.c: Likewise.
9901         * string/test-stpncpy-ifunc.c: Likewise.
9902         * string/test-strcasecmp-ifunc.c: Likewise.
9903         * string/test-strcasestr-ifunc.c: Likewise.
9904         * string/test-strcat-ifunc.c: Likewise.
9905         * string/test-strchr-ifunc.c: Likewise.
9906         * string/test-strchrnul-ifunc.c: Likewise.
9907         * string/test-strcmp-ifunc.c: Likewise.
9908         * string/test-strcpy-ifunc.c: Likewise.
9909         * string/test-strcspn-ifunc.c: Likewise.
9910         * string/test-strlen-ifunc.c: Likewise.
9911         * string/test-strncasecmp-ifunc.c: Likewise.
9912         * string/test-strncat-ifunc.c: Likewise.
9913         * string/test-strncmp-ifunc.c: Likewise.
9914         * string/test-strncpy-ifunc.c: Likewise.
9915         * string/test-strnlen-ifunc.c: Likewise.
9916         * string/test-strpbrk-ifunc.c: Likewise.
9917         * string/test-strrchr-ifunc.c: Likewise.
9918         * string/test-strspn-ifunc.c: Likewise.
9919         * string/test-strstr-ifunc.c: Likewise.
9920
9921 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9922
9923         * benchtests/Makefile: Remove ifunc tests.
9924         * benchtests/bench-string.h: Define TEST_IFUNC.
9925         * benchtests/bench-bcopy-ifunc.c: Remove.
9926         * benchtests/bench-bzero-ifunc.c: Likewise.
9927         * benchtests/bench-memccpy-ifunc.c: Likewise.
9928         * benchtests/bench-memchr-ifunc.c: Likewise.
9929         * benchtests/bench-memcmp-ifunc.c: Likewise.
9930         * benchtests/bench-memcpy-ifunc.c: Likewise.
9931         * benchtests/bench-memmem-ifunc.c: Likewise.
9932         * benchtests/bench-memmove-ifunc.c: Likewise.
9933         * benchtests/bench-mempcpy-ifunc.c: Likewise.
9934         * benchtests/bench-memrchr-ifunc.c: Likewise.
9935         * benchtests/bench-memset-ifunc.c: Likewise.
9936         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
9937         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
9938         * benchtests/bench-stpcpy-ifunc.c: Likewise.
9939         * benchtests/bench-stpncpy-ifunc.c: Likewise.
9940         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
9941         * benchtests/bench-strcasestr-ifunc.c: Likewise.
9942         * benchtests/bench-strcat-ifunc.c: Likewise.
9943         * benchtests/bench-strchr-ifunc.c: Likewise.
9944         * benchtests/bench-strchrnul-ifunc.c: Likewise.
9945         * benchtests/bench-strcmp-ifunc.c: Likewise.
9946         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
9947         * benchtests/bench-strcpy-ifunc.c: Likewise.
9948         * benchtests/bench-strcspn-ifunc.c: Likewise.
9949         * benchtests/bench-strlen-ifunc.c: Likewise.
9950         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
9951         * benchtests/bench-strncat-ifunc.c: Likewise.
9952         * benchtests/bench-strncmp-ifunc.c: Likewise.
9953         * benchtests/bench-strncpy-ifunc.c: Likewise.
9954         * benchtests/bench-strnlen-ifunc.c: Likewise.
9955         * benchtests/bench-strpbrk-ifunc.c: Likewise.
9956         * benchtests/bench-strrchr-ifunc.c: Likewise.
9957         * benchtests/bench-strsep-ifunc.c: Likewise.
9958         * benchtests/bench-strspn-ifunc.c: Likewise.
9959         * benchtests/bench-strstr-ifunc.c: Likewise.
9960
9961 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9962
9963         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
9964
9965 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
9966
9967         * resolv/netdb.h: Use __glibc_reserved instead __unused.
9968         * rt/aio.h: Likewise.
9969         * sysdeps/gnu/bits/utmp.h: Likewise.
9970         * sysdeps/gnu/bits/utmpx.h: Likewise.
9971         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
9972         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
9973         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
9974         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
9975         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
9976         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9977         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
9978         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
9979         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
9980         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
9981         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
9982         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
9983         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
9984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
9985         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
9986         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
9987         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
9988         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
9989         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
9990         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9991         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
9992         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
9993         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
9994         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
9995         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
9996         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9997         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
9998         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
9999         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
10000         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
10001         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10002         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
10003         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
10004         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
10005         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
10006         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
10007         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
10008         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
10009         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
10010         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
10011         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
10012         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
10013
10014 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
10015
10016         [BZ #16245]
10017         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
10018         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
10019
10020 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
10021
10022         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
10023         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
10024         Likewise.
10025
10026 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10027
10028         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
10029         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
10030         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
10031         (__fesetround): Remove define.
10032         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
10033         rounding and exceptions handling.
10034         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
10035         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
10036         (__fe_nomask_env): Likewise.
10037         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
10038         __fegetround instead of fegetround.
10039         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
10040         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
10041
10042 2013-11-21  Roland McGrath  <roland@hack.frob.com>
10043
10044         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
10045         it's there.
10046
10047         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
10048
10049 2013-11-21  Meador Inge  <meadori@codesourcery.com>
10050
10051         [BZ #11157]
10052         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
10053         (encrypt_r): Likewise.
10054         * malloc/obstack.h (obstack_free): Likewise.
10055         * posix/unistd.h (encrypt): Likewise.
10056
10057 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
10058
10059         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
10060         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
10061         DL_CALL_DT_FINI() that call the functions directly.
10062         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
10063         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
10064         * elf/dl-fini.c: Likewise.
10065
10066 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
10067
10068         * malloc/hooks.c (memalign_check): Add alignment rounding.
10069         * malloc/malloc.c (_mid_memalign): New function.
10070         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
10071         Implement by calling _mid_memalign.
10072         * manual/probes.texi (Memory Allocation Probes): Remove
10073         memory_valloc_retry and memory_pvalloc_retry.
10074
10075 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
10076
10077         * locale/programs/locarchive.c (open_archive): Add const
10078         qualifier to ARCHIVEFNAME and copy default fname to
10079         DEFAULT_FNAME.
10080
10081         [BZ #15601]
10082         * libio/tst-widetext.input: Rename Oriya to Odia.
10083         * locale/iso-639.def: Likewise.
10084
10085         * manual/probes.texi (Mathematical Function Probes): Add
10086         documentation for sin, cos, asin and acos probes.
10087         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
10088         (__sin32): Add slowasin probe.
10089         (__cos32): Add slowacos probe.
10090         (__mpsin): Add slowsin probe.
10091         (__mpcos): Add slowcos probe.
10092
10093 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
10094
10095         [BZ #15483]
10096         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
10097         thread-local __sim_exceptions_thread and global
10098         __sim_exceptions_global.
10099         (__sim_disabled_exceptions): Change to thread-local
10100         __sim_disabled_exceptions_thread and global
10101         __sim_disabled_exceptions_global.
10102         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
10103         and global __sim_round_mode_global.
10104         (__simulate_exceptions): Use thread-local floating-point state and
10105         set global state from it as needed.
10106         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
10107         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
10108         __sim_round_mode_thread.
10109         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
10110         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
10111         and global __sim_exceptions_global.
10112         (__sim_disabled_exceptions): Change to thread-local
10113         __sim_disabled_exceptions_thread and global
10114         __sim_disabled_exceptions_global.
10115         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
10116         and global __sim_round_mode_global.
10117         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
10118         (SIM_SET_GLOBAL): Likewise.
10119         * sysdeps/powerpc/soft-fp/sfp-machine.h
10120         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
10121         __sim_round_mode_thread.
10122         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
10123         __sim_disabled_exceptions_thread.
10124         (__sim_exceptions): Change to __sim_exceptions_thread.
10125         (__sim_disabled_exceptions): Change to
10126         __sim_disabled_exceptions_thread.
10127         (__sim_round_mode): Change to __sim_round_mode_thread.
10128         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
10129         thread-local floating-point state and set global state from it as
10130         needed.
10131         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
10132         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
10133         (__sim_disabled_exceptions): Remove extern declaration.
10134         (feenableexcept): Use thread-local floating-point state and set
10135         global state from it as needed.
10136         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
10137         extern declaration.
10138         (__sim_disabled_exceptions): Likewise.
10139         (__sim_round_mode): Likewise.
10140         (__fegetenv): Use thread-local floating-point state.
10141         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
10142         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
10143         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
10144         floating-point state and set global state from it as needed.
10145         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
10146         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
10147         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
10148         Likewise.
10149         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
10150         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
10151         Likewise.
10152         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
10153         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
10154         Use __sim_round_mode_thread.
10155         * math/test-fenv-tls.c: New file.
10156         * math/Makefile (tests): Add test-fenv-tls.
10157         ($(objpfx)test-fenv-tls): Depend on
10158         $(common-objpfx)nptl/libpthread.so.
10159
10160 2013-11-19  Andreas Schwab  <schwab@suse.de>
10161
10162         * locale/programs/locale.c (show_info): Decode wordarray elements.
10163         * locale/categories.def (LC_MONETARY): Add element for
10164         _NL_MONETARY_CRNCYSTR.
10165         * locale/C-monetary.c (conversion_rate): New variable.
10166         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
10167         element.
10168
10169 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
10170
10171         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
10172         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
10173
10174 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10175
10176         * elf/Makefile (tst-auxv): New test.
10177         * elf/tst-auxv.c: New
10178         * elf/rtld.c (dl_main): Adjust AT_EXECFN
10179
10180 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
10181
10182         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
10183         (hidden_proto): Caller changed.
10184         (hidden_tls_proto): New macro.
10185         (libc_hidden_tls_proto): Likewise.
10186         (rtld_hidden_tls_proto): Likewise.
10187         (libm_hidden_tls_proto): Likewise.
10188         (libresolv_hidden_tls_proto): Likewise.
10189         (librt_hidden_tls_proto): Likewise.
10190         (libdl_hidden_tls_proto): Likewise.
10191         (libnss_files_hidden_tls_proto): Likewise.
10192         (libnsl_hidden_tls_proto): Likewise.
10193         (libnss_nisplus_hidden_tls_proto): Likewise.
10194         (libutil_hidden_tls_proto): Likewise.
10195
10196 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
10197
10198         [BZ #10253]
10199         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
10200         (decompose_rpath): Defer expansion to fillin_rpath.
10201         (_dl_init_paths): Pass linkmap to fillin_rpath.
10202
10203 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10204
10205         * benchtests/Makefile: Add strsep.
10206         * benchtests/bench-strsep.c: New file: strsep benchtest.
10207         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
10208
10209 2013-11-18  Andreas Schwab  <schwab@suse.de>
10210
10211         * locale/programs/locale.c (show_info) [case byte]: Check for
10212         '\377' instead of '\177'.
10213         * locale/C-monetary.c (not_available): Always use "\377".
10214         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
10215         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
10216         detect unavailable sign_posn locale elements.
10217         * locale/localeconv.c (__localeconv): For grouping and
10218         mon_grouping handle "\177" and "\377" like no grouping.
10219         (INT_ELEM): New macro.  Use it to set all numeric members.
10220         * locale/programs/ld-monetary.c (monetary_read)
10221         <tok_mon_grouping>: Normalize single -1 to the empty string.
10222         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
10223         Likewise.
10224
10225 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
10226
10227         [BZ #16055]
10228         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
10229         when we match (nil).
10230         * stdio-common/tst-sscanf.c (struct test): Add testcase.
10231
10232 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
10233
10234         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
10235         (NO_TEST_INLINE): Update value.
10236         (ERRNO_UNCHANGED): Likewise.
10237         (ERRNO_EDOM): Likewise.
10238         (ERRNO_ERANGE): Likewise.
10239         (IGNORE_RESULT): Likewise.
10240         (check_float_internal): Check signs of NaN results if
10241         TEST_NAN_SIGN used.
10242         (check_complex): Pass TEST_NAN_SIGN flag through to second
10243         check_float_internal call.
10244         (copysign_test_data): Add tests with quiet NaNs as second
10245         argument.  Use TEST_NAN_SIGN.
10246         (fabs_test_data): Add test of negative quiet NaN argument.  Use
10247         TEST_NAN_SIGN.
10248         (signbit_test_data): Add tests of quiet NaN argument.
10249         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
10250
10251         * math/gen-libm-test.pl (show_exceptions): Take extra argument
10252         $ignore_result.
10253         (parse_args): Handle function results specified as IGNORE.
10254         * math/libm-test.inc (IGNORE_RESULT): New macro.
10255         (check_float_internal): Do not check numerical result if flag
10256         IGNORE_RESULT set.
10257         (check_complex): Pass through IGNORE_RESULT to second
10258         check_float_internal call.
10259         (check_int): Do not check numerical result if flag IGNORE_RESULT
10260         set.
10261         (check_long): Likewise.
10262         (check_bool): Likewise.
10263         (check_longlong): Likewise.
10264         (lrint_test_data): Add tests of infinite and NaN arguments.
10265         (lrint_tonearest_test_data): Likewise.
10266         (lrint_towardzero_test_data): Likewise.
10267         (lrint_downward_test_data): Likewise.
10268         (lrint_upward_test_data): Likewise.
10269         (llrint_test_data): Likewise.
10270         (llrint_tonearest_test_data): Likewise.
10271         (llrint_towardzero_test_data): Likewise.
10272         (llrint_downward_test_data): Likewise.
10273         (llrint_upward_test_data): Likewise.
10274         (lround_test_data): Likewise.
10275         (llround_test_data): Likewise.
10276
10277         * math/libm-test.inc (NO_TEST_INLINE): New macro.
10278         (ERRNO_UNCHANGED): Update value.
10279         (ERRNO_EDOM): Likewise.
10280         (ERRNO_ERANGE): Likewise.
10281         (NO_TEST_INLINE_FLOAT): New macro.
10282         (NO_TEST_INLINE_DOUBLE): Likewise.
10283         (enable_test): New function.
10284         (RUN_TEST_f_f): Check enable_test before running test.
10285         (RUN_TEST_2_f): Likewise.
10286         (RUN_TEST_fff_f): Likewise.
10287         (RUN_TEST_c_f): Likewise.
10288         (RUN_TEST_f_f1): Likewise.
10289         (RUN_TEST_fF_f1): Likewise.
10290         (RUN_TEST_fI_f1): Likewise.
10291         (RUN_TEST_ffI_f1): Likewise.
10292         (RUN_TEST_c_c): Likewise.
10293         (RUN_TEST_cc_c): Likewise.
10294         (RUN_TEST_f_i): Likewise.
10295         (RUN_TEST_f_i_tg): Likewise.
10296         (RUN_TEST_ff_i_tg): Likewise.
10297         (RUN_TEST_f_b): Likewise.
10298         (RUN_TEST_f_b_tg): Likewise.
10299         (RUN_TEST_f_l): Likewise.
10300         (RUN_TEST_f_L): Likewise.
10301         (RUN_TEST_fFF_11): Likewise.
10302         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
10303         conditionals.
10304         (cosh_test_data): Likewise.
10305         (exp_test_data): Likewise.
10306         (expm1_test_data): Likewise.
10307         (hypot_test_data): Likewise.
10308         (pow_test_data): Likewise.
10309         (sinh_test_data): Likewise.
10310         (tanh_test_data): Likewise.
10311         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
10312         flags argument.
10313
10314         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
10315         tests with quiet NaN input and output.
10316         (acosh_test_data): Likewise.
10317         (asin_test_data): Likewise.
10318         (asinh_test_data): Likewise.
10319         (atan_test_data): Likewise.
10320         (atanh_test_data): Likewise.
10321         (atan2_test_data): Likewise.
10322         (cbrt_test_data): Likewise.
10323         (cos_test_data): Likewise.
10324         (cosh_test_data): Likewise.
10325         (erf_test_data): Likewise.
10326         (erfc_test_data): Likewise.
10327         (exp_test_data): Likewise.
10328         (exp10_test_data): Likewise.
10329         (exp2_test_data): Likewise.
10330         (expm1_test_data): Likewise.
10331         (hypot_test_data): Likewise.
10332         (j0_test_data): Likewise.
10333         (j1_test_data): Likewise.
10334         (jn_test_data): Likewise.
10335         (lgamma_test_data): Likewise.
10336         (log_test_data): Likewise.
10337         (log10_test_data): Likewise.
10338         (log1p_test_data): Likewise.
10339         (log2_test_data): Likewise.
10340         (pow_test_data): Likewise.
10341         (scalb_test_data): Likewise.
10342         (sin_test_data): Likewise.
10343         (sincos_test_data): Likewise.
10344         (sinh_test_data): Likewise.
10345         (tan_test_data): Likewise.
10346         (tanh_test_data): Likewise.
10347         (tgamma_test_data): Likewise.
10348         (y0_test_data): Likewise.
10349         (y1_test_data): Likewise.
10350         (yn_test_data): Likewise.
10351
10352         [BZ #16167]
10353         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
10354         argument being NaN and avoid computations with second argument in
10355         that case.
10356         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10357         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10358         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10359
10360 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
10361
10362         * locale/iso-639.def: Add Chitwani Tharu (the).
10363
10364 2013-11-14  Andreas Schwab  <schwab@suse.de>
10365
10366         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
10367         word instead of empty string.
10368
10369 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10370
10371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
10372         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
10373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
10374         (__fe_nomask_env): Likewise.
10375
10376 2013-11-13  Steve Ellcey  <sellcey@mips.com>
10377
10378         * benchtests/bench-timing.h: Include time.h.
10379
10380 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
10381
10382         [BZ #15997]
10383         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
10384         to 3.4.0 for x32.
10385         * sysdeps/unix/sysv/linux/configure: Regenerated.
10386
10387 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
10388
10389         [BZ #16151]
10390         * stdlib/strtod_l.c (round_and_return): Do not consider
10391         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
10392         exponent one less than half the least subnormal exponent.
10393         * stdlib/test-strtod-round-data: Add more tests.
10394         * stdlib/tst-strtod-round.c (tests): Regenerated.
10395
10396 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10397
10398         [BZ #14143]
10399         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
10400         (__fe_mask_env): Likewise.
10401         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
10402         libm_hidden_proto and add function prototype.
10403         (__fe_mask_env): Add function prototype.
10404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
10405         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
10406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
10407         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
10408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
10409         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
10410
10411 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10412
10413         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
10414         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
10415
10416 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10417
10418         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
10419         of htab_find_slot().
10420
10421 2013-11-11  David S. Miller  <davem@davemloft.net>
10422
10423         [BZ #16150]
10424         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
10425         symbol in the non-vis3 case in static builds.
10426         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
10427         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
10428         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
10429         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
10430
10431 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10432
10433         [BZ #387]
10434         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
10435         it is empty.
10436
10437 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10438
10439         * benchtests/Makefile: Add bench-strtod.
10440         * benchtests/bench-strtod.c: New file: strtod benchtest
10441
10442 2013-11-11  Andreas Schwab  <schwab@suse.de>
10443
10444         [BZ #16153]
10445         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
10446         terminating NUL in key length.
10447
10448 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10449
10450         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
10451         Add artificial ODP entry for vDSO symbol for PPC64.
10452         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
10453         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
10454
10455 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
10456
10457         [BZ #15374]
10458         * nss/getent.c (services_keys): Recognize services starting with digit.
10459
10460 2013-11-06  David S. Miller  <davem@davemloft.net>
10461
10462         [BZ #15985]
10463         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
10464         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
10465
10466 2013-11-06  Will Newton  <will.newton@linaro.org>
10467
10468         * manual/memory.texi (Malloc Examples): Remove register
10469         keyword from examples.
10470
10471 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
10472
10473         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
10474
10475 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
10476
10477         [BZ #6981]
10478         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
10479         depending on [__GCC_IEC_559 > 0].
10480         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
10481         depending on [__GCC_IEC_559_COMPLEX > 0].
10482
10483 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
10484
10485         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
10486         to iso-639.def.
10487
10488 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
10489
10490         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
10491
10492 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
10493
10494         [BZ #16112]
10495         * malloc/malloc (malloc_info): Do not handle first bin as
10496         special case.
10497
10498 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
10499
10500         * locale/iso-639.def: Add Central Nahuatl (nhn).
10501
10502 2013-11-01  Bruno Haible  <bruno@clisp.org>
10503
10504         [BZ #7003]
10505         * manual/math.texi (BSD Random): Specify range upper bound as
10506         in POSIX.
10507
10508 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
10509
10510         * locale/iso-639.def: Add Meadow Mari (mhr).
10511
10512 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
10513
10514         [BZ #14752], [BZ #15763]
10515         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
10516         Validate name.
10517         * rt/tst_shm.c: Add test for escaping directory.
10518
10519 2013-10-31  Andreas Schwab  <schwab@suse.de>
10520
10521         [BZ #15917]
10522         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
10523         followed by 'x' as part of digit sequence.
10524         * stdio-common/tst-sscanf.c (double_tests2): New tests.
10525
10526 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
10527
10528         [BZ #16037]
10529         * configure.ac: allow GNU Make 4.0 and greater.
10530         * configure: Regenerated.
10531
10532 2013-10-30  Will Newton  <will.newton@linaro.org>
10533
10534         [BZ #16038]
10535         * malloc/hooks.c (memalign_check): Limit alignment to the
10536         maximum representable power of two.
10537         * malloc/malloc.c (__libc_memalign): Likewise.
10538         * malloc/tst-memalign.c (do_test): Add test for very
10539         large alignment values.
10540         * malloc/tst-posix_memalign.c (do_test): Likewise.
10541
10542 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
10543
10544         [BZ #11087]
10545         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
10546         (munmap_chunk): Likewise.
10547         (mremap_chunk): Likewise.
10548
10549 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
10550
10551         [BZ #15799]
10552         * stdlib/div.c (div): Remove obsolete code.
10553         * stdlib/ldiv.c (ldiv): Likewise.
10554         * stdlib/lldiv.c (lldiv): Likewise.
10555
10556 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10557
10558         [BZ #16071]
10559         * nss/nss_files/files-XXX.c (get_contents_ret): New
10560         enumerator.
10561         (get_contents): New function.
10562         (internal_getent): Use it.  Expand size of LINEBUFLEN.
10563
10564 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
10565
10566         * configure.in: Moved to ...
10567         * configure.ac: ... here. Change reference to configure.in
10568         to configure.ac.
10569         * sysdeps/arm/preconfigure.ac: ... here.
10570         configure.in to configure.ac.
10571         * sysdeps/gnu/configure.in: Moved to ...
10572         * sysdeps/gnu/configure.ac: ... here.
10573         * sysdeps/i386/configure.in: Moved to ...
10574         * sysdeps/i386/configure.ac: ... here.
10575         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
10576         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
10577         * sysdeps/mach/configure.in: Moved to ...
10578         * sysdeps/mach/configure.ac: ... here.
10579         * sysdeps/mach/hurd/configure.in: Moved to ...
10580         * sysdeps/mach/hurd/configure.ac: ... here.
10581         * sysdeps/powerpc/configure.in: Moved to ...
10582         * sysdeps/powerpc/configure.ac: ... here.
10583         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
10584         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
10585         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
10586         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
10587         * sysdeps/s390/s390-32/configure.in: Moved to ...
10588         * sysdeps/s390/s390-32/configure.ac: ... here.
10589         * sysdeps/s390/s390-64/configure.in: Moved to ...
10590         * sysdeps/s390/s390-64/configure.ac: ... here.
10591         * sysdeps/sh/configure.in: Moved to ...
10592         * sysdeps/sh/configure.ac: ... here.
10593         * sysdeps/sparc/configure.in: Moved to ...
10594         * sysdeps/sparc/configure.ac: ... here.
10595         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
10596         * sysdeps/unix/sysv/linux/configure.ac: ... here.
10597         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
10598         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
10599         * sysdeps/x86_64/configure.in: Moved to ...
10600         * sysdeps/x86_64/configure.ac: ... here.
10601         * sysdeps/x86_64/preconfigure.in: Moved to ...
10602         * sysdeps/x86_64/preconfigure.ac: ... here.
10603         * aclocal.m4: Change reference to configure.in to configure.ac.
10604         * config.h.in: Likewise.
10605         * manual/install.texi: Likewise.
10606         * manual/maint.texi: Likewise.
10607         * Makefile: Likewise.
10608         * malloc/Makefile: Likewise.
10609         * nscd/Makefile: Likewise.
10610         * Makeconfig: Change reference to configure.in and
10611         preconfigure.in to configure.ac and preconfigure.ac
10612         respectively.
10613         * INSTALL: Regenerated.
10614         * configure: Likewise.
10615         * sysdeps/gnu/configure: Likewise.
10616         * sysdeps/i386/configure: Likewise.
10617         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
10618         * sysdeps/mach/configure: Likewise.
10619         * sysdeps/mach/hurd/configure: Likewise.
10620         * sysdeps/powerpc/configure: Likewise.
10621         * sysdeps/powerpc/powerpc32/configure: Likewise.
10622         * sysdeps/powerpc/powerpc64/configure: Likewise.
10623         * sysdeps/s390/s390-32/configure: Likewise.
10624         * sysdeps/s390/s390-64/configure: Likewise.
10625         * sysdeps/sh/configure: Likewise.
10626         * sysdeps/sparc/configure: Likewise.
10627         * sysdeps/unix/sysv/linux/configure: Likewise.
10628         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
10629         * sysdeps/x86_64/configure: Likewise.
10630         * sysdeps/x86_64/preconfigure: Likewise.
10631
10632 2013-10-29  Andreas Schwab  <schwab@suse.de>
10633
10634         * stdio-common/Makefile (tst-swscanf-ENV): Define.
10635
10636 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10637
10638         * benchtests/pow-inputs: Add new inputs.
10639
10640         * benchtests/exp-inputs: Add new inputs.
10641
10642         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
10643         conditional check for return value.
10644         (__cos32): Likewise.
10645
10646 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10647
10648         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
10649         to provide a boost for large inputs with word alignment.
10650         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
10651         implementation based on optimized PPC64 strcpy.
10652         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
10653         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
10654         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
10655         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
10656
10657 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
10658
10659         [BZ #2801]
10660         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
10661
10662 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
10663
10664         [BZ #14876]
10665         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
10666         * time/tst-strptime.c (day_tests): Add testcase.
10667
10668 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
10669
10670         [BZ #14029]
10671         * manual/pattern.texi: Acknowledge that fnmatch can fail.
10672
10673 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
10674
10675         [BZ #16074]
10676         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
10677         MAP_FAILED on error.
10678
10679 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10680
10681         [BZ #16072]
10682         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
10683         heap for large requests.
10684
10685 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
10686
10687         [BZ #9954]
10688         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
10689         result if the result has no associated interface.
10690         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
10691         interface for all 127.X.Y.Z addresses.
10692
10693 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
10694
10695         * locale/iso-639.def: Add Ligurian (lij)
10696
10697 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
10698
10699         [BZ #15825]
10700         * sunrpc/rpc_main.c: Document rpcgen -5.
10701
10702 2013-10-19  Michael Stahl  <mstahl@redhat.com>
10703
10704         * elf/rtld.c (do_preload): Print the reason why preloading failed.
10705
10706 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
10707
10708         [BZ #10278]
10709         * posix/glob.c: Match only directories when trailing slash is present.
10710         * posix/tst-gnuglob.c (my_opendir): Do not open files.
10711         (main): Add testcase.
10712
10713 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
10714
10715         [BZ #15670]
10716         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
10717
10718 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
10719
10720         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
10721         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
10722         AUTH_DES and cindex for FIPS 140-2.
10723         (DES Encryption): Add cindex FIPS 46-3.
10724
10725         * locale/locarchive.h (struct locarhandle): Add fname.
10726         * locale/programs/localedef.c (main): Pass ARGV[remaining]
10727         if an optional argument was specified to --list-archive,
10728         otherwise NULL.
10729         * locale/programs/locarchive.c (show_archive_content): Take new
10730         argument fname and pass it via ah.fname to open_archive.
10731         * locale/programs/localedef.h: Update decl.
10732         (open_archive): If AH->fname is non-null, open that file
10733         rather than the default file name, and don't ignore ENOENT.
10734         (create_archive): Set AH.fname to NULL.
10735         (delete_locales_from_archive): Likewise.
10736         (add_locales_to_archive): Likewise.
10737         * locale/programs/locfile.c (write_all_categories): Likewise.
10738
10739 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
10740             Aldy Hernandez  <aldyh@redhat.com>
10741
10742         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
10743         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
10744         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
10745         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
10746         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
10747         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
10748         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
10749         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
10750         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
10751         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
10752         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
10753         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
10754         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
10755         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
10756         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
10757         Likewise.
10758         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
10759         Likewise.
10760         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
10761         Likewise.
10762         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
10763         Likewise.
10764         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
10765         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
10766         Likewise.
10767         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
10768         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
10769         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
10770         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
10771         Likewise.
10772         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
10773         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
10774         * sysdeps/powerpc/preconfigure: Likewise.
10775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10776         Likewise.
10777         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
10778         Replace contents of file by #include of <fenv_libc.h>.
10779         * sysdeps/powerpc/soft-fp/sfp-machine.h
10780         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
10781         and <sys/prctl.h>.
10782         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
10783         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
10784         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
10785         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
10786         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
10787         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
10788         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
10789         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
10790         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
10791         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
10792         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
10793         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
10794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
10795         Allow copysignl PLT reference to be missing.
10796
10797 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
10798             Joseph Myers  <joseph@codesourcery.com
10799
10800         [BZ #15948]
10801         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
10802         single character.
10803         (add_to_tablewc): Assert sequence of wide characters is nonempty.
10804
10805 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
10806
10807         * elf/tst-tls-dlinfo.c: Don't include tls.h.
10808         * elf/tst-tls1.c: Likewise.
10809         * elf/tst-tls10.h: Likewise.
10810         * elf/tst-tls14.c: Likewise.
10811         * elf/tst-tls2.c: Likewise.
10812         * elf/tst-tls3.c: Likewise.
10813         * elf/tst-tls4.c: Likewise.
10814         * elf/tst-tls5.c: Likewise.
10815         * elf/tst-tls6.c: Likewise.
10816         * elf/tst-tls7.c: Likewise.
10817         * elf/tst-tls8.c: Likewise.
10818         * elf/tst-tls9.c: Likewise.
10819         * elf/tst-tlsmod1.c: Likewise.
10820         * elf/tst-tlsmod13.c: Likewise.
10821         * elf/tst-tlsmod13a.c: Likewise.
10822         * elf/tst-tlsmod14a.c: Likewise.
10823         * elf/tst-tlsmod16a.c: Likewise.
10824         * elf/tst-tlsmod16b.c: Likewise.
10825         * elf/tst-tlsmod2.c: Likewise.
10826         * elf/tst-tlsmod3.c: Likewise.
10827         * elf/tst-tlsmod4.c: Likewise.
10828         * elf/tst-tlsmod5.c: Likewise.
10829         * elf/tst-tlsmod6.c: Likewise.
10830
10831 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
10832
10833         [BZ #12486]
10834         * malloc/malloc.c: remove checks for statistics.
10835
10836 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
10837
10838         [BZ #15277]
10839         * inet/inet_net.c (inet_network): Detect additional invalid strings.
10840         * inet/tst-network.c: Add testcase.
10841
10842 2013-10-17  Andreas Schwab  <schwab@suse.de>
10843
10844         [BZ #15218]
10845         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
10846         to determine canonical name.
10847
10848 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
10849
10850         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
10851         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
10852         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10853         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10854         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10855         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10856         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10857         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10858         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10859         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10860         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10861         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10862         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10863         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10864         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10865         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10866         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10867         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10868         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10869         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10870         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10871         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10872         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10873         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
10874         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
10875         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10876         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10877         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
10878         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10879         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
10880         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10881         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10882         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10883         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10884         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10885         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10886         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10887         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10888         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10889         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10890         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10891         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10892         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10893         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10894         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10895         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10896         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10897         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10898         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10899         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10900         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10901         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10902         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10903         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10904         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10905         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10906         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10907         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10908
10909 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
10910
10911         [BZ #16041]
10912         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
10913         make result into a quiet NaN.
10914
10915 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
10916
10917         * soft-fp/adddf3.c: Fix horizontal whitespace.
10918         * soft-fp/addsf3.c: Likewise.
10919         * soft-fp/addtf3.c: Likewise.
10920         * soft-fp/divdf3.c: Likewise.
10921         * soft-fp/divsf3.c: Likewise.
10922         * soft-fp/divtf3.c: Likewise.
10923         * soft-fp/double.h: Likewise.
10924         * soft-fp/eqdf2.c: Likewise.
10925         * soft-fp/eqsf2.c: Likewise.
10926         * soft-fp/eqtf2.c: Likewise.
10927         * soft-fp/extenddftf2.c: Likewise.
10928         * soft-fp/extended.h: Likewise.
10929         * soft-fp/extendsfdf2.c: Likewise.
10930         * soft-fp/extendsftf2.c: Likewise.
10931         * soft-fp/extendxftf2.c: Likewise.
10932         * soft-fp/fixdfdi.c: Likewise.
10933         * soft-fp/fixdfsi.c: Likewise.
10934         * soft-fp/fixdfti.c: Likewise.
10935         * soft-fp/fixsfdi.c: Likewise.
10936         * soft-fp/fixsfsi.c: Likewise.
10937         * soft-fp/fixsfti.c: Likewise.
10938         * soft-fp/fixtfdi.c: Likewise.
10939         * soft-fp/fixtfsi.c: Likewise.
10940         * soft-fp/fixtfti.c: Likewise.
10941         * soft-fp/fixunsdfdi.c: Likewise.
10942         * soft-fp/fixunsdfsi.c: Likewise.
10943         * soft-fp/fixunsdfti.c: Likewise.
10944         * soft-fp/fixunssfdi.c: Likewise.
10945         * soft-fp/fixunssfsi.c: Likewise.
10946         * soft-fp/fixunssfti.c: Likewise.
10947         * soft-fp/fixunstfdi.c: Likewise.
10948         * soft-fp/fixunstfsi.c: Likewise.
10949         * soft-fp/fixunstfti.c: Likewise.
10950         * soft-fp/floatdidf.c: Likewise.
10951         * soft-fp/floatdisf.c: Likewise.
10952         * soft-fp/floatditf.c: Likewise.
10953         * soft-fp/floatsidf.c: Likewise.
10954         * soft-fp/floatsisf.c: Likewise.
10955         * soft-fp/floatsitf.c: Likewise.
10956         * soft-fp/floattidf.c: Likewise.
10957         * soft-fp/floattisf.c: Likewise.
10958         * soft-fp/floattitf.c: Likewise.
10959         * soft-fp/floatundidf.c: Likewise.
10960         * soft-fp/floatundisf.c: Likewise.
10961         * soft-fp/floatunditf.c: Likewise.
10962         * soft-fp/floatunsidf.c: Likewise.
10963         * soft-fp/floatunsisf.c: Likewise.
10964         * soft-fp/floatunsitf.c: Likewise.
10965         * soft-fp/floatuntidf.c: Likewise.
10966         * soft-fp/floatuntisf.c: Likewise.
10967         * soft-fp/floatuntitf.c: Likewise.
10968         * soft-fp/fmadf4.c: Likewise.
10969         * soft-fp/fmasf4.c: Likewise.
10970         * soft-fp/fmatf4.c: Likewise.
10971         * soft-fp/gedf2.c: Likewise.
10972         * soft-fp/gesf2.c: Likewise.
10973         * soft-fp/getf2.c: Likewise.
10974         * soft-fp/ledf2.c: Likewise.
10975         * soft-fp/lesf2.c: Likewise.
10976         * soft-fp/letf2.c: Likewise.
10977         * soft-fp/muldf3.c: Likewise.
10978         * soft-fp/mulsf3.c: Likewise.
10979         * soft-fp/multf3.c: Likewise.
10980         * soft-fp/negdf2.c: Likewise.
10981         * soft-fp/negsf2.c: Likewise.
10982         * soft-fp/negtf2.c: Likewise.
10983         * soft-fp/op-1.h: Likewise.
10984         * soft-fp/op-2.h: Likewise.
10985         * soft-fp/op-4.h: Likewise.
10986         * soft-fp/op-8.h: Likewise.
10987         * soft-fp/op-common.h: Likewise.
10988         * soft-fp/quad.h: Likewise.
10989         * soft-fp/single.h: Likewise.
10990         * soft-fp/soft-fp.h: Likewise.
10991         * soft-fp/sqrtdf2.c: Likewise.
10992         * soft-fp/sqrtsf2.c: Likewise.
10993         * soft-fp/sqrttf2.c: Likewise.
10994         * soft-fp/subdf3.c: Likewise.
10995         * soft-fp/subsf3.c: Likewise.
10996         * soft-fp/subtf3.c: Likewise.
10997         * soft-fp/truncdfsf2.c: Likewise.
10998         * soft-fp/trunctfdf2.c: Likewise.
10999         * soft-fp/trunctfsf2.c: Likewise.
11000         * soft-fp/trunctfxf2.c: Likewise.
11001         * soft-fp/unorddf2.c: Likewise.
11002         * soft-fp/unordsf2.c: Likewise.
11003         * soft-fp/unordtf2.c: Likewise.
11004
11005 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
11006
11007         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
11008         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
11009
11010 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
11011
11012         * elf/dl-libc.c: Clear initfini list after freeing.
11013
11014 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
11015
11016         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
11017         * soft-fp/addsf3.c: Likewise.
11018         * soft-fp/addtf3.c: Likewise.
11019         * soft-fp/divdf3.c: Likewise.
11020         * soft-fp/divsf3.c: Likewise.
11021         * soft-fp/divtf3.c: Likewise.
11022         * soft-fp/double.h: Likewise.
11023         * soft-fp/eqdf2.c: Likewise.
11024         * soft-fp/eqsf2.c: Likewise.
11025         * soft-fp/eqtf2.c: Likewise.
11026         * soft-fp/extenddftf2.c: Likewise.
11027         * soft-fp/extended.h: Likewise.
11028         * soft-fp/extendsfdf2.c: Likewise.
11029         * soft-fp/extendsftf2.c: Likewise.
11030         * soft-fp/extendxftf2.c: Likewise.
11031         * soft-fp/fixdfdi.c: Likewise.
11032         * soft-fp/fixdfsi.c: Likewise.
11033         * soft-fp/fixdfti.c: Likewise.
11034         * soft-fp/fixsfdi.c: Likewise.
11035         * soft-fp/fixsfsi.c: Likewise.
11036         * soft-fp/fixsfti.c: Likewise.
11037         * soft-fp/fixtfdi.c: Likewise.
11038         * soft-fp/fixtfsi.c: Likewise.
11039         * soft-fp/fixtfti.c: Likewise.
11040         * soft-fp/fixunsdfdi.c: Likewise.
11041         * soft-fp/fixunsdfsi.c: Likewise.
11042         * soft-fp/fixunsdfti.c: Likewise.
11043         * soft-fp/fixunssfdi.c: Likewise.
11044         * soft-fp/fixunssfsi.c: Likewise.
11045         * soft-fp/fixunssfti.c: Likewise.
11046         * soft-fp/fixunstfdi.c: Likewise.
11047         * soft-fp/fixunstfsi.c: Likewise.
11048         * soft-fp/fixunstfti.c: Likewise.
11049         * soft-fp/floatdidf.c: Likewise.
11050         * soft-fp/floatdisf.c: Likewise.
11051         * soft-fp/floatditf.c: Likewise.
11052         * soft-fp/floatsidf.c: Likewise.
11053         * soft-fp/floatsisf.c: Likewise.
11054         * soft-fp/floatsitf.c: Likewise.
11055         * soft-fp/floattidf.c: Likewise.
11056         * soft-fp/floattisf.c: Likewise.
11057         * soft-fp/floattitf.c: Likewise.
11058         * soft-fp/floatundidf.c: Likewise.
11059         * soft-fp/floatundisf.c: Likewise.
11060         * soft-fp/floatunsidf.c: Likewise.
11061         * soft-fp/floatunsisf.c: Likewise.
11062         * soft-fp/floatuntidf.c: Likewise.
11063         * soft-fp/floatuntisf.c: Likewise.
11064         * soft-fp/floatuntitf.c: Likewise.
11065         * soft-fp/fmadf4.c: Likewise.
11066         * soft-fp/fmasf4.c: Likewise.
11067         * soft-fp/fmatf4.c: Likewise.
11068         * soft-fp/gedf2.c: Likewise.
11069         * soft-fp/gesf2.c: Likewise.
11070         * soft-fp/getf2.c: Likewise.
11071         * soft-fp/ledf2.c: Likewise.
11072         * soft-fp/lesf2.c: Likewise.
11073         * soft-fp/letf2.c: Likewise.
11074         * soft-fp/muldf3.c: Likewise.
11075         * soft-fp/mulsf3.c: Likewise.
11076         * soft-fp/multf3.c: Likewise.
11077         * soft-fp/negdf2.c: Likewise.
11078         * soft-fp/negsf2.c: Likewise.
11079         * soft-fp/negtf2.c: Likewise.
11080         * soft-fp/op-1.h: Likewise.
11081         * soft-fp/op-2.h: Likewise.
11082         * soft-fp/op-4.h: Likewise.
11083         * soft-fp/op-8.h: Likewise.
11084         * soft-fp/op-common.h: Likewise.
11085         * soft-fp/quad.h: Likewise.
11086         * soft-fp/single.h: Likewise.
11087         * soft-fp/soft-fp.h: Likewise.
11088         * soft-fp/sqrtdf2.c: Likewise.
11089         * soft-fp/sqrtsf2.c: Likewise.
11090         * soft-fp/sqrttf2.c: Likewise.
11091         * soft-fp/subdf3.c: Likewise.
11092         * soft-fp/subsf3.c: Likewise.
11093         * soft-fp/subtf3.c: Likewise.
11094         * soft-fp/truncdfsf2.c: Likewise.
11095         * soft-fp/trunctfdf2.c: Likewise.
11096         * soft-fp/trunctfsf2.c: Likewise.
11097         * soft-fp/trunctfxf2.c: Likewise.
11098         * soft-fp/unorddf2.c: Likewise.
11099         * soft-fp/unordsf2.c: Likewise.
11100         * soft-fp/unordtf2.c: Likewise.
11101
11102 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
11103
11104         [BZ #15672]
11105         * misc/error.c (error_tail): Fix possible buffer overflow.
11106
11107 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
11108
11109         [BZ #13028]
11110         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
11111         address.
11112
11113 2013-10-14  P. J. McDermott  <pj@pehjota.net>
11114
11115         [BZ #832]
11116         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
11117         testing pipefail option.
11118
11119 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
11120
11121         * soft-fp/double.h: Indent preprocessor directives inside #if.
11122         * soft-fp/extended.h: Likewise.
11123         * soft-fp/op-2.h: Likewise.
11124         * soft-fp/op-4.h: Likewise.
11125         * soft-fp/op-common.h: Likewise.
11126         * soft-fp/quad.h: Likewise.
11127         * soft-fp/single.h: Likewise.
11128         * soft-fp/soft-fp.h: Likewise.
11129
11130 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
11131
11132         * iconv/iconv_prog.c: Fix typos.
11133         * stdio-common/psiginfo-data.h: Likewise.
11134
11135 2013-10-12   Reuben Thomas <rrt@sc3d.org>
11136
11137         [BZ #15764]
11138         * locale/setlocale.c: Fix typo.
11139
11140 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
11141
11142         [BZ #16036]
11143         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
11144         signaling NaN arguments.
11145         * soft-fp/unordsf2.c (__unordsf2): Likewise.
11146         * soft-fp/unordtf2.c (__unordtf2): Likewise.
11147
11148         [BZ #14910]
11149         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
11150         unordered operands.
11151         * soft-fp/gesf2.c (__gesf2): Likewise.
11152         * soft-fp/getf2.c (__getf2): Likewise.
11153         * soft-fp/ledf2.c (__ledf2): Likewise.
11154         * soft-fp/lesf2.c (__lesf2): Likewise.
11155         * soft-fp/letf2.c (__letf2): Likewise.
11156
11157         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
11158         * soft-fp/eqsf2.c (__eqsf2): Likewise.
11159         * soft-fp/eqtf2.c (__eqtf2): Likewise.
11160         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
11161         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
11162         * soft-fp/fixdfti.c (__fixdfti): Likewise.
11163         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
11164         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
11165         * soft-fp/fixsfti.c (__fixsfti): Likewise.
11166         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
11167         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
11168         * soft-fp/fixtfti.c (__fixtfti): Likewise.
11169         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
11170         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
11171         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
11172         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
11173         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
11174         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
11175         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
11176         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
11177         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
11178         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
11179         * soft-fp/floatdisf.c (__floatdisf): Likewise.
11180         * soft-fp/floatsisf.c (__floatsisf): Likewise.
11181         * soft-fp/floattidf.c (__floattidf): Likewise.
11182         * soft-fp/floattisf.c (__floattisf): Likewise.
11183         * soft-fp/floattitf.c (__floattitf): Likewise.
11184         * soft-fp/floatundidf.c (__floatundidf): Likewise.
11185         * soft-fp/floatundisf.c (__floatundisf): Likewise.
11186         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
11187         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
11188         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
11189         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
11190         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
11191         * soft-fp/gesf2.c (__gesf2): Likewise.
11192         * soft-fp/getf2.c (__getf2): Likewise.
11193         * soft-fp/ledf2.c (__ledf2): Likewise.
11194         * soft-fp/lesf2.c (__lesf2): Likewise.
11195         * soft-fp/letf2.c (__letf2): Likewise.
11196
11197         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
11198         Undefine and redefine.
11199         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
11200         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
11201         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
11202         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
11203         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
11204         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
11205         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
11206         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
11207         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
11208         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
11209         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
11210         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
11211         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
11212         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
11213         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
11214
11215         [BZ #16032]
11216         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
11217         without decrementing exponent if mantissa >= that for the
11218         denominator, not >.
11219         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
11220         denominator, not >.  Decrement exponent in < case instead of
11221         incrementing in >= case.
11222         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
11223         without decrementing exponent if mantissa >= that for the
11224         denominator, not >.
11225
11226         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
11227         computing saturated result for unsigned overflow.
11228
11229 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11230             Jeff Law  <law@redhat.com>
11231
11232         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
11233         (atan2Mp): Add systemtap probe marker.
11234         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
11235         (__ieee754_log): Add systemtap probe marker.
11236         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
11237         (atanMp): Add systemtap probe marker.
11238         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
11239         (tanMp): Add systemtap probe marker.
11240         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
11241         (__slowexp): Add systemtap probe marker.
11242         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
11243         (__slowpow): Add systemtap probe marker.
11244         * manual/probes.texi: Document probes.
11245
11246 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
11247
11248         [BZ #15362]
11249         * libio/fileops.c (_IO_new_file_write): Return count of bytes
11250         written.
11251         (_IO_new_file_xsputn): Don't return EOF if nothing has been
11252         written.
11253         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
11254         written to buffer but not flushed.
11255         * libio/iofwrite_u.c:  Likewise.
11256         * libio/iopadn.c:  Return bytes returned even if EOF was
11257         encountered.
11258         * libio/iowpadn.c:  Likewise.
11259         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
11260         if _IO_padn does not write the whole buffer.
11261         [!COMPILE_WPRINTF] (PAD): Likewise.
11262
11263 2013-10-10  David S. Miller  <davem@davemloft.net>
11264
11265         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
11266         directory block.
11267
11268 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
11269
11270         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
11271         instead of FSF address.
11272         * soft-fp/fixdfti.c: Likewise.
11273         * soft-fp/fixsfti.c: Likewise.
11274         * soft-fp/fixtfti.c: Likewise.
11275         * soft-fp/fixunsdfti.c: Likewise.
11276         * soft-fp/fixunssfti.c: Likewise.
11277         * soft-fp/fixunstfti.c: Likewise.
11278         * soft-fp/floattidf.c: Likewise.
11279         * soft-fp/floattisf.c: Likewise.
11280         * soft-fp/floattitf.c: Likewise.
11281         * soft-fp/floatuntidf.c: Likewise.
11282         * soft-fp/floatuntisf.c: Likewise.
11283         * soft-fp/floatuntitf.c: Likewise.
11284         * soft-fp/trunctfxf2.c: Likewise.
11285
11286         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
11287         * soft-fp/fixdfti.c: Likewise.
11288         * soft-fp/fixsfti.c: Likewise.
11289         * soft-fp/fixtfti.c: Likewise.
11290         * soft-fp/fixunsdfti.c: Likewise.
11291         * soft-fp/fixunssfti.c: Likewise.
11292         * soft-fp/fixunstfti.c: Likewise.
11293         * soft-fp/floattidf.c: Likewise.
11294         * soft-fp/floattisf.c: Likewise.
11295         * soft-fp/floattitf.c: Likewise.
11296         * soft-fp/floatuntidf.c: Likewise.
11297         * soft-fp/floatuntisf.c: Likewise.
11298         * soft-fp/floatuntitf.c: Likewise.
11299         * soft-fp/trunctfxf2.c: Likewise.
11300
11301 2013-10-10  David S. Miller  <davem@davemloft.net>
11302
11303         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11304
11305 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
11306
11307         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
11308         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
11309         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
11310         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
11311         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
11312         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
11313         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
11314
11315         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
11316         for NaNs before doing comparisons on argument.
11317         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
11318         Likewise.
11319
11320 2013-10-10  Will Newton  <will.newton@linaro.org>
11321
11322         * malloc/hooks.c (memalign_check): Ensure the value of bytes
11323         passed to _int_memalign does not overflow.
11324
11325 2013-10-10  Torvald Riegel  <triegel@redhat.com>
11326
11327         * scripts/bench.pl: Add include-sources directive.
11328         * benchtests/README: Update documentation.
11329
11330 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
11331
11332         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
11333         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
11334         instead of FP_INIT_ROUNDMODE.
11335         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
11336         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
11337
11338         [BZ #16034]
11339         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
11340         copy class of input value.
11341         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
11342         not handle exceptions.
11343         * soft-fp/negsf2.c (__negsf2): Likewise.
11344         * soft-fp/negtf2.c (__negtf2): Likewise.
11345         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
11346
11347 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
11348
11349         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
11350         semicolon.  From Linux kernel.
11351
11352 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
11353
11354         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
11355
11356 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
11357
11358         [BZ #156]
11359         * manual/socket.texi: Added statement about buffer
11360         for gethostbyname2_r.
11361
11362 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
11363
11364         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
11365         Use .p2align directive instead, throughout.
11366         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
11367         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
11368         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
11369         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
11370         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11371         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
11372         * sysdeps/x86_64/strchr.S: Likewise.
11373         * sysdeps/x86_64/strrchr.S: Likewise.
11374
11375 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11376
11377         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
11378
11379         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
11380
11381         * sysdeps/generic/math_private.h (__mpsin1): Remove
11382         declaration.
11383         (__mpcos1): Likewise.
11384         (__mpsin): New argument __range_reduce.
11385         (__mpcos): Likewise.
11386         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11387         (slow): Use __mpsin and __mpcos.
11388         (slow1): Likewise.
11389         (slow2): Likewise.
11390         (sloww): Likewise.
11391         (sloww1): Likewise.
11392         (sloww2): Likewise.
11393         (bsloww): Likewise.
11394         (bsloww1): Likewise.
11395         (bsloww2): Likewise.
11396         (cslow2): Likewise.
11397         (csloww): Likewise.
11398         (csloww1): Likewise.
11399         (csloww2): Likewise.
11400         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
11401         range_reduce.  Merge in __mpsin1.
11402         (__mpcos): Likewise.
11403         (__mpsin1): Remove.
11404         (__mpcos1): Likewise.
11405
11406 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
11407
11408         * locale/loadlocale.c (_nl_intern_locale_data): Use
11409         LOCFILE_ALIGNED_P.
11410         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
11411         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
11412         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
11413         obstack data is appropriately aligned.
11414         (obstack_int32_grow_fast): Likewise.
11415         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
11416         * locale/programs/locfile.c (add_locale_uint32): Likewise.
11417         (add_locale_uint32_array): Likewise.
11418
11419 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11420
11421         * benchtests/Makefile: Remove ARGLIST and RET variables.
11422         ($(objpfx)bench-%.c): Pass only function name to the script.
11423         * benchtests/README: Update documentation.
11424         * benchtests/acos-inputs: Add new directives.
11425         * benchtests/acosh-inputs: Likewise.
11426         * benchtests/asin-inputs: Likewise.
11427         * benchtests/asinh-inputs: Likewise.
11428         * benchtests/atan-inputs: Likewise.
11429         * benchtests/atanh-inputs: Likewise.
11430         * benchtests/cos-inputs: Likewise.
11431         * benchtests/cosh-inputs: Likewise.
11432         * benchtests/exp-inputs: Likewise.
11433         * benchtests/log-inputs: Likewise.
11434         * benchtests/pow-inputs: Likewise.
11435         * benchtests/rint-inputs: Likewise.
11436         * benchtests/sin-inputs: Likewise.
11437         * benchtests/sinh-inputs: Likewise.
11438         * benchtests/tan-inputs: Likewise.
11439         * benchtests/tanh-inputs: Likewise.
11440         * scripts/bench.pl: Add support for new directives.
11441
11442 2013-10-07  Alan Modra  <amodra@gmail.com>
11443
11444         * README: Fix careless merge.
11445
11446 2013-10-05  Alan Modra  <amodra@gmail.com>
11447
11448         * NEWS: Mention powerpc64le support and bugs fixed.
11449         * README: Both big-endian and little-endian powerpc64 supported.
11450
11451 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11452
11453         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
11454         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
11455         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
11456         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
11457
11458 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
11459
11460         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
11461         match prototype.
11462
11463 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
11464
11465         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
11466         Move -mhard-float appending from
11467         ports/sysdeps/powerpc/powerpc32/Makefile.
11468         [$(with-fp) = yes] (ASFLAGS): Likewise.
11469         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
11470         * sysdeps/powerpc/nofpu: Move directory from
11471         ports/sysdeps/powerpc/nofpu.
11472         * sysdeps/powerpc/soft-fp: Move directory from
11473         ports/sysdeps/powerpc/soft-fp.
11474         * sysdeps/powerpc/powerpc32/405: Move directory from
11475         ports/sysdeps/powerpc/powerpc32/405.
11476         * sysdeps/powerpc/powerpc32/440: Move directory from
11477         ports/sysdeps/powerpc/powerpc32/440.
11478         * sysdeps/powerpc/powerpc32/464: Move directory from
11479         ports/sysdeps/powerpc/powerpc32/464.
11480         * sysdeps/powerpc/powerpc32/476: Move directory from
11481         ports/sysdeps/powerpc/powerpc32/476.
11482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
11483         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
11484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
11485         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
11486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
11487         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
11488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
11489         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
11490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
11491         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
11492         * README: Update for powerpc-*-linux-gnu software floating point
11493         support in libc.
11494
11495         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
11496         case to powerpc/powerpc32*.
11497         * sysdeps/unix/sysv/linux/configure: Regenerated.
11498
11499         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
11500         (_FPU_MASK_OM): Define as 0x04.
11501         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
11502         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
11503         0x00c10080.
11504         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
11505         0x0000003c.
11506         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
11507
11508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
11509         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
11510         getcontext_e500.
11511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
11512         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
11513         setcontext_e500.
11514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
11515         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
11516         and setcontext_e500.
11517
11518 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
11519
11520         * locale/iso-3166.def: Update iso-1366.def and related occurrences
11521
11522 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11523
11524         * manual/threads.texi (Default Thread Attributes): Fix typo.
11525
11526 2013-10-04  Will Newton  <will.newton@linaro.org>
11527
11528         * malloc/Makefile: Add tst-memalign.
11529         * malloc/tst-memalign.c: New file.
11530
11531         * malloc/tst-posix_memalign.c: Add comments.
11532         (do_test): Add comments and call free on all potentially
11533         allocated pointers. Add space after cast.
11534
11535         * malloc/tst-pvalloc.c: Add comments.
11536         (do_test): Add comments and call free on all potentially
11537         allocated pointers. Remove duplicate check for NULL pointer.
11538         Add space after cast.
11539
11540         * malloc/tst-valloc.c: Add comments.
11541         (do_test): Add comments and call free on all potentially
11542         allocated pointers. Remove duplicate check for NULL pointer.
11543         Add space after cast.
11544
11545 2013-10-04  Alan Modra  <amodra@gmail.com>
11546
11547         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
11548         Use stdint types in rather than __attribute__((mode())).
11549         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
11550
11551 2013-10-04  Alan Modra  <amodra@gmail.com>
11552
11553         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
11554         Correct handling of unaligned relocs for little-endian.
11555         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
11556
11557 2013-10-04  Alan Modra  <amodra@gmail.com>
11558
11559         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
11560         * configure: Regenerate.
11561         * nptl/shlib-versions: Powerpc*le starts at 2.18.
11562         * shlib-versions: Likewise.
11563
11564 2013-10-04  Alan Modra  <amodra@gmail.com>
11565
11566         * string/tester.c (test_memrchr): Increment reported test cycle.
11567
11568 2013-10-04  Alan Modra  <amodra@gmail.com>
11569
11570         * string/test-memcpy.c (do_one_test): When reporting errors, print
11571         string address and don't overrun end of string.
11572
11573 2013-10-04  Alan Modra  <amodra@gmail.com>
11574
11575         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
11576         insrdi.  Make better use of reg selection to speed exit slightly.
11577         Schedule entry path a little better.  Remove useless "are we done"
11578         checks on entry to main loop.  Handle wrapping around zero address.
11579         Correct main loop count.  Handle single left-over word from main
11580         loop inline rather than by using loop_small.  Remove extra word
11581         case in loop_small caused by wrong loop count.  Add little-endian
11582         support.
11583         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
11584         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
11585         cache hint.
11586         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
11587         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
11588         support.  Avoid rlwimi.
11589         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
11590
11591 2013-10-04  Alan Modra  <amodra@gmail.com>
11592
11593         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
11594         insrdi.  Formatting.
11595         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
11596         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
11597         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
11598         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
11599         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
11600         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
11601
11602 2013-10-04  Alan Modra  <amodra@gmail.com>
11603
11604         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
11605         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
11606         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
11607         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
11608         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
11609         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
11610         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
11611         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
11612         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
11613         use of regs.  Use power7 mtocrf.  Tidy function tails.
11614
11615 2013-10-04  Alan Modra  <amodra@gmail.com>
11616
11617         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
11618         Formatting.  Consistently use rXXX register defines or rN defines.
11619         Use early exit labels that avoid restoring unused non-volatile regs.
11620         Make cr field use more consistent with rWORDn compares.  Rename
11621         regs used as shift registers for unaligned loop, using rN defines
11622         for short lifetime/multiple use regs.
11623         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
11624         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
11625         addi 1,1,64 to pop stack frame.  Simplify return value code.
11626         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
11627
11628 2013-10-04  Alan Modra  <amodra@gmail.com>
11629
11630         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
11631         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
11632         rather than rlwimi.
11633         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
11634         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
11635         little-endian support.  Correct typos.
11636         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
11637         rather than rlwimi.
11638         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
11639         in loop and entry code to keep "and." results.
11640         (strchr): Add little-endian support.  Comment.  Move cntlzd
11641         earlier in tail.
11642         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
11643
11644 2013-10-04  Alan Modra  <amodra@gmail.com>
11645
11646         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
11647         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
11648         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
11649         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
11650
11651 2013-10-04  Alan Modra  <amodra@gmail.com>
11652
11653         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
11654         (rTMP): Define as r11.
11655         (strcmp): Add little-endian support.  Optimise tail.
11656         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
11657         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
11658         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
11659         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
11660         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
11661         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11662         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
11663
11664 2013-10-04  Alan Modra  <amodra@gmail.com>
11665
11666         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
11667         little-endian support.  Remove unnecessary "are we done" tests.
11668         Handle "s" wrapping around zero and extremely large "size".
11669         Correct main loop count.  Handle single left-over word from main
11670         loop inline rather than by using small_loop.  Correct comments.
11671         Delete "zero" tail, use "end_max" instead.
11672         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
11673
11674 2013-10-04  Alan Modra  <amodra@gmail.com>
11675
11676         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
11677         support.  Don't branch over align.
11678         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
11679         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
11680         support.  Rearrange tmp reg use to suit.  Comment.
11681         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
11682
11683 2013-10-04  Alan Modra  <amodra@gmail.com>
11684
11685         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
11686
11687 2013-10-04  Alan Modra  <amodra@gmail.com>
11688
11689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
11690         conditional form of branch and link when obtaining pc.
11691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
11692
11693 2013-10-04  Alan Modra  <amodra@gmail.com>
11694
11695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
11696         HIWORD/LOWORD.
11697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
11698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
11699
11700 2013-10-04  Alan Modra  <amodra@gmail.com>
11701
11702         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
11703         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
11704         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
11705         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
11706         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11707         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
11708         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
11709         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
11710         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
11711         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
11712
11713 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11714             Alistair Popple <alistair@ozlabs.au.ibm.com>
11715             Alan Modra <amodra@gmail.com>
11716
11717         [BZ #15723]
11718         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
11719         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
11720         _dl_hwcap access for little-endian.
11721         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
11722         destroy vmx regs when saving unaligned.
11723         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
11724         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
11725         destroy vmx regs when saving unaligned.
11726
11727 2013-10-04  Alan Modra  <amodra@gmail.com>
11728
11729         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
11730         Don't use a union to pack hi/low value.
11731
11732 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11733
11734         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
11735         for little-endian.
11736         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
11737         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
11738         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11739         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
11740         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
11741
11742 2013-10-04  Alan Modra  <amodra@gmail.com>
11743
11744         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
11745         constants to usual value for .cst8 section, and remove redundant
11746         high address load.
11747         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
11748         constant for 0x1p52.  Load little-endian words of double from
11749         correct stack offsets.
11750
11751 2013-10-04  Alan Modra  <amodra@gmail.com>
11752
11753         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
11754         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
11755         words of double from correct stack offsets.
11756         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
11757         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
11758         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
11759         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
11760         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
11761         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
11762         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
11763         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
11764         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
11765         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
11766         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
11767         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
11768         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
11769         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
11770         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
11771         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
11772         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
11773
11774 2013-10-04  Alan Modra  <amodra@gmail.com>
11775
11776         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
11777         64-bit int/double union.
11778         (_FPU_SETCW): Likewise.
11779         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
11780         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
11781
11782 2013-10-04  Alan Modra  <amodra@gmail.com>
11783
11784         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
11785         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
11786
11787 2013-10-04  Alan Modra  <amodra@gmail.com>
11788
11789         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
11790         use vector int constants.
11791         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
11792
11793 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11794
11795         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
11796         array with long long.
11797         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
11798         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
11799         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
11800         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
11801         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
11802         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
11803         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
11804         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
11805         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
11806         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
11807         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
11808         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
11809         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
11810
11811 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
11812
11813         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
11814         (__signbit): Likewise.  Correct for little-endian.
11815         (__signbitl): Call __signbit.
11816         (lrint): Correct for little-endian.
11817         (lrintf): Call lrint.
11818
11819 2013-10-04  Alan Modra  <amodra@gmail.com>
11820
11821         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
11822         union 32-bit int array member with 64-bit int array.
11823         (t515, tm256): Double rather than long double.
11824         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
11825
11826 2013-10-04  Alan Modra  <amodra@gmail.com>
11827
11828         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
11829         Delete.
11830         (IEEE854_LONG_DOUBLE_BIAS): Delete.
11831         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
11832         version of math_ldbl.h.
11833
11834 2013-10-04  Alan Modra  <amodra@gmail.com>
11835
11836         [BZ #15734], [BZ #15735]
11837         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
11838         all uses of ieee875 long double macros and unions.  Simplify test
11839         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
11840         ldbl_extract_mantissa value for ix,iy exponents.  Properly
11841         normalize after ldbl_extract_mantissa, and don't add hidden bit
11842         already handled.  Don't treat low word of ieee854 mantissa like
11843         low word of IBM long double and mask off bit when testing for
11844         zero.
11845         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
11846         all uses of ieee875 long double macros and unions.  Simplify tests
11847         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
11848         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
11849         two1022, instead use their values.  Recognise that tests for large
11850         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
11851         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
11852         Rewrite all uses of ieee875 long double macros and unions.  Simplify
11853         test for 0.0L and nan.  Correct negation.
11854         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
11855         ieee875 long double macros and unions.  Correct output for large
11856         magnitude x.  Correct absolute value calculation.
11857         (__erfcl): Likewise.
11858         * math/libm-test.inc: Add tests for errors discovered in IBM long
11859         double versions of fmodl, remainderl, erfl and erfcl.
11860
11861 2013-10-04  Alan Modra  <amodra@gmail.com>
11862
11863         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
11864         all uses of ieee854 long double macros and unions.  Simplify tests
11865         for long doubles that are fully specified by the high double.
11866         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11867         Likewise.
11868         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
11869         Remove dead code too.
11870         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11871         (__ieee754_ynl): Likewise.
11872         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
11873         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
11874         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11875         Remove dead code too.
11876         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11877         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
11878         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
11879         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
11880         Simplify.
11881         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
11882         Simplify.
11883         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
11884         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
11885         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
11886         Comment on variable precision.
11887         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
11888         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11889         Likewise.
11890         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11891         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11892         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11893         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11894         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
11895
11896 2013-10-04  Alan Modra  <amodra@gmail.com>
11897
11898         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
11899         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
11900         all uses of ieee854 long double macros and unions.
11901         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
11902         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
11903         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
11904         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
11905         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
11906         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11907         Likewise.
11908         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
11909         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11910         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
11911         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11912         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11913         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11914         Simplify sign and nan test too.
11915         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
11916         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
11917         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
11918         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
11919         Likewise.
11920         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
11921         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
11922         Likewise.
11923         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11924         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11925         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
11926         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
11927         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
11928         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
11929
11930 2013-10-04  Alan Modra  <amodra@gmail.com>
11931
11932         * stdio-common/printf_size.c (__printf_size): Don't use
11933         union ieee854_long_double in fpnum union.
11934         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
11935         signbit macro to retrieve sign from long double.
11936         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
11937         retrieve sign from long double.
11938         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
11939         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
11940         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
11941         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11942         * math/test-misc.c (main): Don't use union ieee854_long_double.
11943
11944 2013-10-04  Alan Modra  <amodra@gmail.com>
11945
11946         [BZ #15680]
11947         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
11948         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
11949         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
11950         calculation.  Remove unnecessary test for denormal exponent.
11951         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
11952         Correct handling of denormals.  Avoid undefined shift behaviour.
11953         Correct normalisation of low mantissa when low double is denormal.
11954         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
11955         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
11956         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
11957         Correct normalisation of low mantissa.  Test for overflow of high
11958         mantissa and normalise.
11959         (ldbl_nearbyint): Use more readable constant for two52.
11960         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
11961         (__mpn_construct_long_double): Fix test for overflow of high
11962         mantissa and correct normalisation.  Avoid undefined shift.
11963
11964 2013-10-04  Alan Modra  <amodra@gmail.com>
11965
11966         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
11967         (union ibm_extended_long_double): Define as an array of ieee754_double.
11968         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
11969         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
11970         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
11971         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
11972         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11973         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
11974         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
11975         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
11976         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11977         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
11978         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
11979
11980 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
11981
11982         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
11983         page size instead of calling getpagesize.
11984
11985         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
11986         (LOCFILE_ALIGN_MASK): Likewise.
11987         (LOCFILE_ALIGN_UP): Likewise.
11988         (LOCFILE_ALIGNED_P): Likewise.
11989         * locale/programs/ld-collate.c (collate_output): Use the new
11990         macros instead of __alignof__ (int32_t).
11991         * locale/weight.h (findidx): Likewise.
11992
11993 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
11994
11995         [BZ #431]
11996         * manual/string.texi: Fix strncat and wcsncat.
11997
11998 2013-10-03  Brooks Moses  <bmoses@google.com>
11999
12000         [BZ #15915]
12001         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
12002         * Makerules: ...here, and adjust associated comments.
12003
12004 2013-10-02  Will Newton  <will.newton@linaro.org>
12005
12006         * malloc/Makefile: Add tst-pvalloc.
12007         * malloc/tst-pvalloc.c: New file.
12008
12009 2013-10-02  Will Newton  <will.newton@linaro.org>
12010
12011         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
12012         improve test coverage.
12013
12014 2013-10-02  Will Newton  <will.newton@linaro.org>
12015
12016         * malloc/Makefile: Add tst-posix_memalign.
12017         * malloc/tst-posix_memalign.c: New file.
12018
12019 2013-10-01  Eric Blake  <eblake@redhat.com>
12020
12021         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
12022         Use __THROWNL rather than __THROW on static functions.
12023
12024 2013-09-30  Petr Machata  <pmachata@redhat.com>
12025
12026         * elf/elf.h (R_AARCH64_ABS16): New macro.
12027         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
12028         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
12029         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
12030         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
12031         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
12032         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
12033         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
12034         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
12035         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
12036         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
12037         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
12038         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
12039         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
12040         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
12041         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
12042         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
12043         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
12044         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
12045         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
12046         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
12047         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
12048         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
12049         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
12050         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
12051         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
12052         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
12053         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
12054         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
12055         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
12056         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
12057         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
12058         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
12059         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
12060         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
12061         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
12062         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
12063         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
12064         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
12065         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
12066         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
12067         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
12068         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
12069         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
12070         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
12071         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
12072         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
12073         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
12074         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
12075         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
12076         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
12077         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
12078         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
12079         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
12080         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
12081         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
12082         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
12083         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
12084         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
12085         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
12086         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
12087         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
12088         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
12089         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
12090         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
12091         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
12092         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
12093         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
12094         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
12095         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
12096         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
12097         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
12098         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
12099         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
12100         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
12101         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
12102         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
12103         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
12104         (R_AARCH64_TLSDESC_LDR): Likewise.
12105         (R_AARCH64_TLSDESC_ADD): Likewise.
12106         (R_AARCH64_TLSDESC_CALL): Likewise.
12107
12108 2013-09-30  Andreas Schwab  <schwab@suse.de>
12109
12110         [BZ #15048]
12111         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
12112         the nss database lookup.
12113         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12114         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12115
12116 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
12117
12118         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
12119
12120 2013-09-28  P. J. McDermott  <pj@pehjota.net>
12121
12122         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
12123         ${Bash-specific parameter/pattern/string} parameter expansion.
12124         * sysdeps/unix/make-syscalls.sh: Likewise.
12125
12126 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12127
12128         * sysdeps/sh/stackguard-macros.h: New file.
12129
12130 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
12131
12132         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
12133         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
12134         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
12135         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
12136         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12137         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
12138
12139 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12140
12141         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
12142         Fix thread ID register.
12143
12144 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
12145
12146         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
12147         [POSIX || UNIX98]: Require rather than permitting all symbols from
12148         <time.h>.
12149         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
12150         element of struct sched_param.
12151         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
12152         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
12153         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
12154         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
12155         constant.
12156
12157 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
12158
12159         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
12160         argument calculation.
12161
12162 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
12163
12164         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
12165         Expect macro.
12166         [POSIX] (pthread_attr_t): Do not require type.
12167         [POSIX] (pthread_cond_t): Likewise.
12168         [POSIX] (pthread_condattr_t): Likewise.
12169         [POSIX] (pthread_key_t): Likewise.
12170         [POSIX] (pthread_mutex_t): Likewise.
12171         [POSIX] (pthread_mutexattr_t): Likewise.
12172         [POSIX] (pthread_once_t): Likewise.
12173         [POSIX] (pthread_t): Likewise.
12174         [POSIX-based standards] (pthread_atfork): Expect function.
12175
12176 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
12177             Richard Sandiford  <richard@codesourcery.com>
12178
12179         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
12180         (swap_endianness_p): New extern variable.
12181         (set_big_endian): New inline function.
12182         (maybe_swap_uint32): Likewise.
12183         (maybe_swap_uint32_array): Likewise.
12184         (maybe_swap_uint32_obstack): Likewise.
12185         * locale/programs/locfile.c: Include <stdbool.h>.
12186         (swap_endianness_p): New variable.
12187         (add_locale_uint32): Call maybe_swap_uint32.
12188         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
12189         (write_locale_data): Call maybe_swap_uint32_array.
12190         * locale/programs/ld-collate.c (obstack_int32_grow): Call
12191         maybe_swap_uint32.
12192         (obstack_int32_grow_fast): Likewise.
12193         (output_weightwc): Call maybe_swap_uint32_obstack.
12194         (collate_output): Likewise.
12195         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
12196         (OPT_LITTLE_ENDIAN): Likewise.
12197         (options): Add --little-endian and --big-endian options.
12198         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
12199         * locale/programs/locarchive.c: Include "locfile.h".
12200         (GET): New macro.
12201         (SET): Likewise.
12202         (INC): Likewise.
12203         (create_archive): Use the new macros to access fields of
12204         structures directly mapped from or written to locale archives.
12205         (oldlocrecentcmp): Likewise.
12206         (enlarge_archive): Likewise.
12207         (insert_name): Likewise.
12208         (add_alias): Likewise.
12209         (add_locale): Likewise.
12210         (delete_locales_from_archive): Likewise.
12211         (show_archive_content): Likewise.
12212         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
12213         locale data.
12214
12215 2013-09-24  Roland McGrath  <roland@hack.frob.com>
12216
12217         * manual/freemanuals.texi: Updated from (newly) canonical copy at
12218         http://www.gnu.org/doc/freemanuals.texi.
12219         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
12220
12221 2013-09-24  Will Newton  <will.newton@linaro.org>
12222
12223         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
12224         macro.
12225
12226 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
12227
12228         * locale/hashval.h (compute_hashval): Interpret bytes of key as
12229         unsigned char.
12230
12231 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
12232
12233         * manual/threads.texi (POSIX Threads): Fix a typo.
12234
12235 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
12236
12237         [BZ #14547]
12238         * string/tst-strcoll-overflow.c: New test case.
12239         * string/Makefile (xtests): Add tst-strcoll-overflow.
12240         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
12241         cache if string sizes may cause integer overflow.
12242
12243         [BZ #14547]
12244         * string/strcoll_l.c (coll_seq): New members rule, idx,
12245         save_idx and back_us.
12246         (get_next_seq_nocache): New function.
12247         (do_compare_nocache): New function.
12248         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
12249         when malloc fails.
12250
12251 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
12252
12253         [BZ #15754]
12254         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
12255         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
12256         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
12257
12258         [BZ #15754]
12259         * elf/Makefile (tests): Add tst-ptrguard1.
12260         (tests-static): Add tst-ptrguard1-static.
12261         (tst-ptrguard1-ARGS): Define.
12262         (tst-ptrguard1-static-ARGS): Define.
12263         * elf/tst-ptrguard1.c: New file.
12264         * elf/tst-ptrguard1-static.c: New file.
12265         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
12266         * sysdeps/i386/stackguard-macros.h: Likewise.
12267         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
12268         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
12269         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
12270         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
12271         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
12272         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
12273
12274 2013-09-23  Hector Marco  <hecmargi@upv.es>
12275             Ismael Ripoll  <iripoll@disca.upv.es>
12276             Carlos O'Donell  <carlos@redhat.com>
12277
12278         [BZ #15754]
12279         * sysdeps/generic/stackguard-macros.h: Define
12280         __pointer_chk_guard_local and POINTER_CHK_GUARD.
12281         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
12282         Define __pointer_chk_guard_local.
12283         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
12284         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
12285
12286 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
12287
12288         [BZ #15859]
12289         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
12290
12291 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
12292
12293         * include/string.h (__ffs): Declare as hidden.
12294         * string/ffs.c (__ffs): Define as hidden.
12295         * sysdeps/i386/ffs.c (__ffs): Likewise.
12296         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
12297         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
12298         * sysdeps/s390/ffs.c (__ffs): Likewise.
12299         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
12300
12301 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
12302
12303         * NEWS: Mention malloc probes.
12304
12305         * malloc/arena.c (new_heap): New memory_heap_new probe.
12306         (grow_heap): New memory_heap_more probe.
12307         (shrink_heap): New memory_heap_less probe.
12308         (heap_trim): New memory_heap_free probe.
12309         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
12310         (systrim): New memory_sbrk_less probe.
12311         * manual/probes.texi: Document them.
12312
12313         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
12314         * manual/probes.texi: Document it.
12315
12316         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
12317         (__libc_realloc): Add memory_realloc_retry probe.
12318         (__libc_memalign): Add memory_memalign_retry probe.
12319         (__libc_valloc): Add memory_valloc_retry probe.
12320         (__libc_pvalloc): Add memory_pvalloc_retry probe.
12321         (__libc_calloc): Add memory_calloc_retry probe.
12322         * manual/probes.texi: Document them.
12323
12324         * malloc/arena.c (get_free_list): Add probe
12325         memory_arena_reuse_free_list.
12326         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
12327         and memory_arena_reuse.
12328         (arena_get2) [!PER_THREAD]: Likewise.
12329         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
12330         memory_arena_reuse_realloc.
12331         * manual/probes.texi: Document them.
12332
12333         * malloc/malloc.c (__libc_free): Add
12334         memory_mallopt_free_dyn_thresholds probe.
12335         (__libc_mallopt): Add multiple memory_mallopt probes.
12336         * manual/probes.texi: Document them.
12337
12338         * malloc/malloc.c: Include stap-probe.h.
12339         (__libc_mallopt): Add memory_mallopt probe.
12340         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
12341         * manual/probes.texi: New.
12342         * manual/Makefile (chapters): Add probes.
12343         * manual/threads.texi: Set next node.
12344
12345 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
12346
12347         [BZ #15963, #13985]
12348         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
12349         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
12350         Add `Chinese' to `nan' entry name.
12351
12352 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12353
12354         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
12355         (POLYNOMIAL): Likewise.
12356         (TAYLOR_SINCOS): Likewise.
12357         (TAYLOR_SLOW): Likewise.
12358         (__sin): Use TAYLOR_SINCOS.
12359         (__cos): Likewise.
12360         (slow): Use TAYLOR_SLOW.
12361         (sloww): Likewise.
12362         (bsloww): Likewise.
12363         (csloww): Likewise.
12364
12365 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12366
12367         * stdlib/strtod_l.c: Fix buffer overrun.
12368
12369 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12370
12371         * benchtests/Makefile (bench): Add sincos.
12372         * benchtests/bench-sincos.c: New file.
12373
12374         * math/libm-test.inc (cos_test_data): New test inputs.
12375         (sin_test_data): Likewise.
12376
12377         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
12378         macro.
12379         (__sin): Use it.
12380         (__cos): Likewise.
12381         (slow1): Likewise.
12382         (slow2): Likewise.
12383         (sloww1): Likewise.
12384         (sloww2): Likewise.
12385         (bsloww1): Likewise.
12386         (bsloww2): Likewise.
12387         (cslow2): Likewise.
12388         (csloww1): Likewise.
12389         (csloww2): Likewise.
12390
12391         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
12392         function.
12393         (__sin): Use it.
12394         (__cos): Likewise.
12395
12396         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
12397         gotos.
12398         (__cos): Likewise.
12399
12400 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
12401
12402         * config.h.in (HAVE_MIPS_NAN2008): New macro.
12403         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
12404         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
12405         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
12406         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
12407         * elf/cache.c (print_entry): Handle the new cache flags.
12408
12409 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
12410             Aldy Hernandez  <aldyh@redhat.com>
12411
12412         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
12413         Change condition to [_SOFT_FLOAT].
12414         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
12415         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
12416         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
12417         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
12418         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
12419         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
12420         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
12421         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
12422         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
12423         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
12424         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
12425         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
12426         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
12427         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
12428         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
12429         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
12430         declaration.
12431
12432 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
12433
12434         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
12435         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
12436         (__longjmp): Use LOAD_GP to load saved GPRs.
12437         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
12438         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
12439         (__sigsetjmp): Use SAVE_GP to save GPRs.
12440
12441         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
12442         Do not append -msoft-float.
12443         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
12444
12445 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12446
12447         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
12448
12449 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
12450
12451         [BZ #15966]
12452         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
12453         (_FPU_GETCW): Use initial "__" on variable and field names but not
12454         on macro parameter name.
12455         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
12456         parentheses around reference to macro parameter.
12457
12458 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
12459
12460         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
12461         prototype.
12462         (ctype_startup): Use uint32_t in cast and sizeof for
12463         ctype->charnames.
12464
12465 2013-09-11  Jia Liu  <proljc@gmail.com>
12466
12467         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
12468         __daddr_t_defined.
12469         [__FreeBSD__]: Likewise.
12470
12471 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
12472
12473         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12474         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
12475         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
12476         (strchr): Remove __strchr_sse42 ifunc selection.
12477         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
12478         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
12479
12480 2013-09-11  Will Newton  <will.newton@linaro.org>
12481
12482         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
12483         parameter to RES. Remove hardcoded 1000 value.
12484         * benchtests/bench-skeleton.c (main): Pass RES parameter
12485         to TIMING_INIT and multiply result by 1000.
12486
12487 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12488
12489         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12490
12491 2013-09-11  Andreas Schwab  <schwab@suse.de>
12492
12493         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
12494         if not defined.
12495         (O_TMPFILE) [__USE_GNU]: Define.
12496         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
12497         Define.
12498
12499 2013-09-11  Will Newton  <will.newton@linaro.org>
12500
12501         [BZ #15857]
12502         * malloc/malloc.c (__libc_memalign): Check the value of bytes
12503         does not overflow.
12504
12505 2013-09-11  Will Newton  <will.newton@linaro.org>
12506
12507         [BZ #15856]
12508         * malloc/malloc.c (__libc_valloc): Check the value of bytes
12509         does not overflow.
12510
12511 2013-09-11  Will Newton  <will.newton@linaro.org>
12512
12513         [BZ #15855]
12514         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
12515         does not overflow.
12516
12517 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
12518
12519         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
12520         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12521         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12522         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12523         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12524
12525 2013-09-10  Allan McRae  <allan@archlinux.org>
12526
12527         [BZ #15748]
12528         * manual/arith.texi (Parsing of Floats): Clarify
12529         cross-reference.
12530
12531         [BZ #15849]
12532         * manual/install.texi (Running make install): Mention
12533         --enable-pt-chown.
12534         * INSTALL: Regenerated.
12535
12536 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
12537
12538         * csu/init-first.c (_init): Remove the !SHARED condition around
12539         FPU control word initialization.
12540         * elf/dl-support.c (_dl_fpu_control): New variable.
12541         (_dl_aux_init) <AT_FPUCW>: Initialize it.
12542         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
12543         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
12544         * math/test-fpucw-static.c: New file.
12545         * math/test-fpucw-ieee.c: New file.
12546         * math/test-fpucw-ieee-static.c: New file.
12547         * math/Makefile (tests): Add `test-fpucw-ieee' and
12548         `$(tests-static)'.
12549         (tests-static): New variable.
12550         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
12551         dependency to...
12552         [($(build-shared),yes)]
12553         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
12554         ... this.
12555         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
12556         New dependency.
12557
12558 2013-09-09  Allan McRae  <allan@archlinux.org>
12559
12560         [BZ #15939]
12561         * manual/string.texi (Collation Functions): Fix typo in
12562         strcoll example.
12563         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
12564
12565         [BZ #15893]
12566         * stdlib/isomac.c (get_null_defines): Fix memory leak.
12567
12568         [BZ #15892]
12569         * libio/memstream.c (open_memstream): Fix memory leak.
12570         * libio/wmemstream.c (open_wmemstream): Likewise.
12571
12572         [BZ #15895]
12573         * nscd/netgroupcache.c: Fix nesting of ifdefs.
12574
12575 2013-09-09  Will Newton  <will.newton@linaro.org>
12576
12577         * malloc/Makefile: Add tst-realloc to tests.
12578         * malloc/tst-realloc.c: New file.
12579
12580 2013-09-09  Allan McRae  <allan@archlinux.org>
12581
12582         [BZ #15844]
12583         * COPYING: Update from GNU website to fix FSF address.
12584         * COPYING.LIB: Likewise.
12585
12586 2013-09-06  David S. Miller  <davem@davemloft.net>
12587
12588         * po/zh_TW.po: Update Chinese (traditional) translation from
12589         translation project.
12590
12591 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
12592             Joseph Myers  <joseph@codesourcery.com>
12593
12594         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
12595         "localeinfo.h".
12596         (obstack_chunk_alloc): New macro.
12597         (obstack_chunk_free): Likewise.
12598         (record_offset): New function.
12599         (init_locale_data): Likewise.
12600         (align_locale_data): Likewise.
12601         (add_locale_empty): Likewise.
12602         (add_locale_raw_data): Likewise.
12603         (add_locale_raw_obstack): Likewise.
12604         (add_locale_string): Likewise.
12605         (add_locale_wstring): Likewise.
12606         (add_locale_uint32): Likewise.
12607         (add_locale_uint32_array): Likewise.
12608         (add_locale_char): Likewise.
12609         (start_locale_structure): Likewise.
12610         (end_locale_structure): Likewise.
12611         (start_locale_prelude): Likewise.
12612         (end_locale_prelude): Likewise.
12613         (write_locale_data): Take locale_file structure rather than an
12614         iovec.
12615         * locale/programs/locfile.h: Include "obstack.h".
12616         (struct locale_file): Change to store locale file contents instead
12617         of header.
12618         (init_locale_data): New prototype.
12619         (align_locale_data): Likewise.
12620         (add_locale_empty): Likewise.
12621         (add_locale_raw_data): Likewise.
12622         (add_locale_raw_obstack): Likewise.
12623         (add_locale_string): Likewise.
12624         (add_locale_wstring): Likewise.
12625         (add_locale_uint32): Likewise.
12626         (add_locale_uint32_array): Likewise.
12627         (add_locale_char): Likewise.
12628         (start_locale_structure): Likewise.
12629         (end_locale_structure): Likewise.
12630         (start_locale_prelude): Likewise.
12631         (end_locale_prelude): Likewise.
12632         (write_locale_data): Update prototype.
12633         * locale/programs/3level.h (struct TABLE): Remove result field.
12634         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
12635         Use new locale_file interface.
12636         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
12637         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
12638         * locale/programs/ld-address.c (address_output): Use new
12639         locale_file interface.
12640         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
12641         NO_ADD_LOCALE.
12642         (collate_finish): Don't call collseq_table_finalize.
12643         (collate_output): Use new locale_file interface.
12644         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
12645         in file.
12646         (NO_FINALIZE): Change to NO_ADD_LOCALE.
12647         (TABLE): Move defines earlier in file.
12648         (ELEMENT): Likewise.
12649         (DEFAULT): Likewise.
12650         (wctrans_table_add): Move macro and inline function earlier in
12651         file.
12652         (struct wctype_table): Move type earlier in file.
12653         (add_locale_wctype_table): New static prototype.
12654         (struct locale_ctype_t): Use logical types instead of struct iovec
12655         pointers for members.
12656         (ctype_output): Use new locale_file interface.
12657         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
12658         new locale_file interface.
12659         (allocate_arrays): Update for use of new locale_file interface.
12660         * locale/programs/ld-identification.c (identification_output): Use
12661         new locale_file interface.
12662         * locale/programs/ld-measurement.c (measurement_output): Likewise.
12663         * locale/programs/ld-messages.c (messages_output): Likewise.
12664         * locale/programs/ld-monetary.c (monetary_output): Likewise.
12665         * locale/programs/ld-name.c (name_output): Likewise.
12666         * locale/programs/ld-numeric.c (numeric_output): Likewise.
12667         * locale/programs/ld-paper.c (paper_output): Likewise.
12668         * locale/programs/ld-telephone.c (telephone_output): Likewise.
12669         * locale/programs/ld-time.c (time_output): Likewise.
12670
12671 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12672
12673         * benchtests/Makefile: Add memrchr benchmark.
12674         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
12675         benchmark as memrchr.
12676         * benchtests/bench-memrchr-ifunc.c: New file.
12677         * benchtests/bench-memrchr.c: New file.
12678
12679 2013-09-06   Will Newton  <will.newton@linaro.org>
12680
12681         * benchtests/Makefile (string-bench): Add memcpy.
12682
12683 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
12684             Cong Wang  <amwang@redhat.com>
12685
12686         [BZ #15850]
12687         * sysdeps/unix/sysv/linux/bits/in.h
12688         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
12689         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
12690         before __USE_KERNEL_IPV6_DEFS uses.
12691         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
12692         IPPROTO_BEETPH.
12693         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
12694         sockaddr_in6, or ipv6_mreq.
12695
12696 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12697
12698         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
12699         memory access for final bytes in some large inputs.
12700         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
12701
12702 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12703
12704         * string/test-memrchr.c: New file.
12705         * string/test-memrchr-ifunc.c: New file.
12706         * string/Makefile: Add new memrchr testcase.
12707
12708 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
12709
12710         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
12711         fanotify_init returns EPERM.
12712
12713 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
12714
12715         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
12716         errors.
12717         (top level): Treat second token from macro or constant entries for
12718         allowed headers as allowed.
12719         * include/complex.h: Condition internal declarations on
12720         [!_ISOMAC].
12721         * include/fenv.h: Condition include of <stdbool.h> and internal
12722         declarations on [!_ISOMAC].
12723
12724 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
12725
12726         [BZ #15923]
12727         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
12728
12729 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
12730
12731         * configure.in (--enable-versioning): Remove configure option.
12732         (libc_cv_asm_symver_directive): Remove configure test.
12733         (libc_cv_ld_version_script_option): Likewise.
12734         (VERSIONING): Remove variable and AC_SUBST.
12735         (DO_VERSIONING): Remove AC_DEFINE.
12736         * configure: Regenerated.
12737         * config.h.in (DO_VERSIONING): Remove macro.
12738         * Makerules [$(versioning) = yes]: Change conditionals to
12739         [$(build-shared) = yes].
12740         * config.make.in (versioning): Remove variable.
12741         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
12742         [$(build-shared) = yes].
12743         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
12744         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
12745         * elf/Makefile [$(versioning) = yes]: Change conditionals to
12746         [$(build-shared) = yes].
12747         * extra-lib.mk [$(versioning) = yes]: Likewise.
12748         * hurd/Makefile [$(versioning) = yes]: Likewise.
12749         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
12750         [SHARED].
12751         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
12752         [SHARED].
12753         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
12754         [SHARED && !NO_HIDDEN].
12755         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
12756         [SHARED].
12757         [SHARED && DO_VERSIONING]: Likewise..
12758         * libio/Makefile [$(versioning) = yes]: Change conditionals to
12759         [$(build-shared) = yes].
12760         * manual/install.texi (--disable-versioning): Remove
12761         documentation.
12762         * INSTALL: Regenerated.
12763         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
12764         to [SHARED].
12765         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
12766         [$(build-shared) = yes].
12767         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
12768         * sysdeps/i386/i686/multiarch/strstr-c.c
12769         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
12770         [SHARED && !NO_HIDDEN].
12771         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
12772         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
12773         * sysdeps/powerpc/powerpc32/dl-machine.c
12774         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
12775         * sysdeps/powerpc/powerpc32/sysdep.h
12776         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
12777         to [SHARED && PIC && !NO_HIDDEN].
12778         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
12779         conditional to [SHARED].
12780
12781 2013-09-04   Will Newton  <will.newton@linaro.org>
12782
12783         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
12784         * benchtests/bench-string.h: Include bench-timing.h instead
12785         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
12786         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
12787         call to HP_TIMING_DIFF_INIT.
12788         * benchtests/bench-memccpy.c: Use bench-timing.h macros
12789         instead of hp-timing.h macros.
12790         * benchtests/bench-memchr.c: Likewise.
12791         * benchtests/bench-memcmp.c: Likewise.
12792         * benchtests/bench-memcpy.c: Likewise.
12793         * benchtests/bench-memmem.c: Likewise.
12794         * benchtests/bench-memmove.c: Likewise.
12795         * benchtests/bench-memset.c: Likewise.
12796         * benchtests/bench-rawmemchr.c: Likewise.
12797         * benchtests/bench-strcasecmp.c: Likewise.
12798         * benchtests/bench-strcasestr.c: Likewise.
12799         * benchtests/bench-strcat.c: Likewise.
12800         * benchtests/bench-strchr.c: Likewise.
12801         * benchtests/bench-strcmp.c: Likewise.
12802         * benchtests/bench-strcpy.c: Likewise.
12803         * benchtests/bench-strcpy_chk.c: Likewise.
12804         * benchtests/bench-strlen.c: Likewise.
12805         * benchtests/bench-strncasecmp.c: Likewise.
12806         * benchtests/bench-strncat.c: Likewise.
12807         * benchtests/bench-strncmp.c: Likewise.
12808         * benchtests/bench-strncpy.c: Likewise.
12809         * benchtests/bench-strnlen.c: Likewise.
12810         * benchtests/bench-strpbrk.c: Likewise.
12811         * benchtests/bench-strrchr.c: Likewise.
12812         * benchtests/bench-strspn.c: Likewise.
12813         * benchtests/bench-strstr.c: Likewise.
12814
12815 2013-09-04  Will Newton  <will.newton@linaro.org>
12816
12817         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
12818
12819 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
12820
12821         [BZ #15427]
12822         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
12823         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
12824         * math/libm-test.inc (lgamma_test_data): Add more tests.
12825         * sysdeps/i386/fpu/libm-test-ulps: Update.
12826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12827
12828 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
12829
12830         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
12831         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
12832         Add ifunc.
12833         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
12834         Add strcmp-sse2-unaligned
12835         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
12836
12837 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
12838
12839         * Versions.def (libc): Add GLIBC_2.19.
12840
12841 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
12842
12843         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
12844         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
12845
12846 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
12847
12848         [BZ #14155]
12849         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
12850         intermediate calculations in recurrence.
12851         (__ieee754_ynf): Likewise.
12852         * math/libm-test.inc (jn_test_data): Do not allow spurious
12853         underflow exception.  Add more tests.
12854         (yn_test_data): Add more tests.
12855         * sysdeps/i386/fpu/libm-test-ulps: Update.
12856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12857
12858 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
12859
12860         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
12861
12862 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
12863
12864         * csu/init-first.c: Fix then/than typos.
12865         * locale/programs/ld-collate.c: Likewise.
12866         * locale/programs/linereader.h: Likewise.
12867         * manual/charset.texi: Likewise.
12868         * manual/filesys.texi: Likewise.
12869         * manual/stdio.texi: Likewise.
12870         * manual/string.texi: Likewise.
12871         * stdlib/fmtmsg.c: Likewise.
12872         * sysdeps/i386/stpncpy.S: Likewise.
12873         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
12874         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
12875         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
12876         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
12877
12878 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
12879
12880         * elf/dl-open.c: Fix typos.
12881         * iconvdata/gbbig5.c: Likewise.
12882         * iconvdata/iso-2022-jp.c: Likewise.
12883         * iconv/gconv_int.h: Likewise.
12884         * iconv/loop.c: Likewise.
12885         * nis/rpcsvc/nis.h: Likewise.
12886         * resolv/ns_name.c: Likewise.
12887         * stdio-common/vfscanf.c: Likewise.
12888         * streams/stropts.h: Likewise.
12889         * sunrpc/rpc_thread.c: Likewise.
12890         * sysdeps/i386/strpbrk.S: Likewise.
12891         * sysdeps/ieee754/k_standard.c: Likewise.
12892         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12893         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12894         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12895         * sysdeps/mach/hurd/profil.c: Likewise.
12896         * sysdeps/s390/dl-procinfo.h: Likewise.
12897         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
12898         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
12899         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
12900         * sysdeps/x86_64/dl-trampoline.S: Likewise.
12901         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
12902
12903 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
12904
12905         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
12906         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
12907
12908 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
12909
12910         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
12911         aix specific files.
12912         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
12913         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
12914         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
12915         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
12916         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
12917         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
12918         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
12919         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
12920
12921 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
12922             Roland McGrath  <roland@hack.frob.com>
12923
12924         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
12925         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
12926
12927 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12928
12929         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
12930         __executable_start symbol instead of _start.
12931
12932 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
12933
12934         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
12935         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
12936         Move macros to...
12937         * sysdeps/gnu/ldsodefs.h: ... this new file.
12938
12939         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
12940         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
12941         instead of ELFOSABI_LINUX.
12942
12943         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
12944         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
12945         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
12946         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
12947         Likewise.
12948         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
12949         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
12950         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
12951         Likewise.
12952         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
12953         (ibm_extended_long_double): Add ieee_nan member.
12954         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
12955         (do_test): New function.
12956
12957         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
12958         TEST_TRUNC.
12959         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
12960         functions, renamed from truncdfsf_test, trunctfsf_test,
12961         trunctfdf_test.
12962         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
12963         functions.
12964         (do_test): Run all these.
12965
12966 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
12967
12968         * argp/argp-help.c: Fix typos.
12969         * argp/argp-parse.c: Likewise.
12970         * debug/backtracesyms.c: Likewise.
12971         * elf/elf.h: Likewise.
12972         * malloc/malloc.c: Likewise.
12973         * nis/nis_print.c: Likewise.
12974         * resolv/res_comp.c: Likewise.
12975         * stdlib/stdlib.h: Likewise.
12976         * sunrpc/clnt_tcp.c: Likewise.
12977         * sunrpc/clnt_udp.c: Likewise.
12978         * sunrpc/clnt_unix.c: Likewise.
12979         * sysdeps/unix/bsd/ptsname.c: Likewise.
12980         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
12981         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
12982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
12983         Likewise.
12984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
12985         Likewise.
12986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
12987         Likewise.
12988         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
12989
12990 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12991
12992         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
12993         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12994
12995 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
12996
12997         [BZ #15897]
12998         * dlfcn/Makefile (tests): Add bug-dl-leaf.
12999         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
13000         ($(objpfx)bug-dl-leaf): New rule.
13001         ($(objpfx)bug-dl-leaf.so): Likewise.
13002         ($(objpfx)bug-dl-leaf.out): Likewise.
13003         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
13004         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
13005         * dlfcn/bug-dl-leaf.c: New test.
13006         * dlfcn/bug-dl-leaf-lib.c: Likewise.
13007         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
13008         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
13009         (dlclose): Likewise.
13010         (dlmopen): Likewise.
13011
13012 2013-08-27  Roland McGrath  <roland@hack.frob.com>
13013
13014         * include/netdb.h [!_ISOMAC]:
13015         Don't include <tls.h>.
13016         (h_errno, __libc_h_errno): Move declaration and macros out of
13017         [_LIBC_REENTRANT].
13018
13019         * include/resolv.h [_RESOLV_H_]:
13020         Don't include <tls.h>.
13021         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
13022         * resolv/res_libc.c: Don't include <tls.h>.
13023         (_res): Use __attribute__ ((nocommon)) in place of
13024         __attribute__ ((section (".bss"))).
13025
13026         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
13027         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
13028
13029         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
13030
13031         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
13032         only under [SIOCGIFCONF && SIOCGIFNETMASK].
13033
13034         * resolv/res_mkquery.c: Include <sys/time.h>.
13035
13036         * inet/ifreq.c: Moved to ...
13037         * sysdeps/unix/ifreq.c: ... here.
13038         * inet/ifreq.c: New file, true stub version.
13039
13040         * socket/sa_len.c: New file.
13041         * socket/Makefile (aux): Add it.
13042         * sysdeps/unix/sysv/linux/Makefile
13043         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
13044         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
13045         and #include <socket/sa_len.c>.
13046         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
13047         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
13048
13049         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
13050         * bits/socket.h: ... here.
13051
13052         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
13053         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
13054         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
13055
13056 2013-08-27  Andreas Schwab  <schwab@suse.de>
13057
13058         [BZ #15736]
13059         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
13060         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
13061         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
13062         * string/test-strcasecmp.c (test_main): Run tests in several
13063         locales.
13064         * string/test-strncasecmp.c (test_main): Likewise.
13065
13066         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
13067         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
13068         to __strcasecmp_nonascii and __strncasecmp_nonascii.
13069         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
13070         (__strncasecmp_ssse3) [PIC]: Likewise.
13071
13072 2013-08-26  Roland McGrath  <roland@hack.frob.com>
13073
13074         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
13075
13076         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
13077         instead of explicitly declaring xdecrypt.
13078         * nis/nss_nis/nis-publickey.c: Likewise.
13079
13080 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13081
13082         [BZ #15890]
13083         * nscd/aicache.c: Include res_hconf.h.
13084         (addhstaiX): Initialize res_hconf.
13085
13086 2013-08-26  Andreas Schwab  <schwab@suse.de>
13087
13088         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
13089         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
13090
13091 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13092
13093         * nscd/aicache.c (addhstaiX): Fix indentation.
13094
13095 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
13096
13097         * configure.ac: Quote $build_pt_chown test.
13098         * configure: Regenerated.
13099
13100 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
13101
13102         [BZ #15532]
13103         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
13104         * math/s_cexpf.c (__cexpf): Likewise.
13105         * math/s_cexpl.c (__cexpl): Likewise.
13106         * math/libm-test.inc (cexp_test_data): Correct expected return
13107         value for NaN + i0.  Add another test.
13108
13109 2013-08-22  David S. Miller  <davem@davemloft.net>
13110
13111         * po/ca.po: Update Catalan translation from translation project.
13112         * po/uk.po: Add Ukrainian translations from translation project.
13113
13114 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
13115
13116         [BZ #15797]
13117         * math/s_fdim.c (__fdim): Check for infinite arguments if result
13118         is infinite, not alongside NaN test.
13119         * math/s_fdimf.c (__fdimf): Likewise.
13120         * math/s_fdiml.c (__fdiml): Likewise.
13121         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
13122         errno is unchanged.
13123
13124 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
13125
13126         * argp/argp-help.c: Fix typos.
13127         * crypt/speeds.c: Likewise.
13128         * csu/check_fds.c: Likewise.
13129         * elf/dl-load.c: Likewise.
13130         * elf/dl-open.c: Likewise.
13131         * elf/reldep3.c: Likewise.
13132         * elf/reldep.c: Likewise.
13133         * elf/sprof.c: Likewise.
13134         * iconv/iconv_charmap.c: Likewise.
13135         * iconv/skeleton.c: Likewise.
13136         * iconv/strtab.c: Likewise.
13137         * io/lockf64.c: Likewise.
13138         * libio/libioP.h: Likewise.
13139         * resolv/gai_notify.c: Likewise.
13140         * resolv/ns_name.c: Likewise.
13141         * resolv/ns_samedomain.c: Likewise.
13142         * resolv/res_send.c: Likewise.
13143         * stdlib/random.c: Likewise.
13144         * sunrpc/rpc/xdr.h: Likewise.
13145         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
13146         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13147         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13148         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13149         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13150         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13151         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13152         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13153         * sysdeps/mach/hurd/check_fds.c: Likewise.
13154         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
13155         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
13156         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13157         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
13158         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
13159         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
13160         * sysdeps/pthread/aio_notify.c: Likewise.
13161         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
13162         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
13163         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
13164         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
13165         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
13166
13167 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13168
13169         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
13170         version if bit_Slow_SSE4_2 is set.
13171         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13172         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13173
13174 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13175
13176         [BZ #15867]
13177         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
13178         trampoline stack frame information.
13179         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
13180         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
13181         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
13182         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
13183         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
13184         * sysdeps/unix/sysv/linux/powerpc/init-first.c
13185         (_libc_vdso_platform_setup): Initialize the signal trampolines.
13186         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
13187         sa_flags value.
13188         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
13189         interrupting a syscall and set with option SA_SIGINFO.
13190
13191 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
13192
13193         [BZ #15531]
13194         * math/s_cproj.c (__cproj): Only return an infinity if one part of
13195         argument is infinite.
13196         * math/s_cprojf.c (__cprojf): Likewise.
13197         * math/s_cprojl.c (__cprojl): Likewise.
13198         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
13199         * math/libm-test.inc (cproj_test_data): Add more tests.
13200
13201         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
13202
13203         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
13204         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
13205         size.  Use __ffs to determine corresponding shift.
13206
13207 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
13208             Roland McGrath  <roland@hack.frob.com>
13209
13210         * Makefile (INSTALL): Remove trailing blank lines from output of
13211         makeinfo.
13212
13213 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13214
13215         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
13216         Align 32 bit compat elf_greg to 8 bytes.
13217
13218 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13219
13220         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
13221
13222 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13223
13224         * string/strcoll_l.c (coll_seq): New structure.
13225         (get_next_seq_cached): New function.
13226         (get_next_seq): New function.
13227         (do_compare): New function.
13228         (STRCOLL): Use GNU style definition.  Simplify implementation
13229         by using get_next_seq, get_next_seq_cached and do_compare.
13230
13231 2013-08-16  Florian Weimer  <fweimer@redhat.com>
13232
13233         [BZ #14699]
13234         CVE-2013-4237
13235         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
13236         member.
13237         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
13238         member.
13239         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
13240         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
13241         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
13242         conditional.
13243         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
13244         GETDENTS_64BIT_ALIGNED.
13245         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13246         * manual/filesys.texi (Reading/Closing Directory): Document
13247         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
13248         strongly.
13249         * manual/conf.texi (Limits for Files): Add portability note to
13250         NAME_MAX, PATH_MAX.
13251         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
13252
13253 2013-08-13  Andreas Schwab  <schwab@suse.de>
13254
13255         [BZ #15749]
13256         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
13257         of fabs.
13258         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
13259         LDBL_MAX_EXP >= 16384]: Add tests for it.
13260
13261 2013-08-12  David S. Miller  <davem@davemloft.net>
13262
13263         * version.h (RELEASE): Set to "development".
13264         (VERSION): Set to "2.18.90".
13265         * NEWS: Add 2.19 section.
13266
13267 2013-08-03  David S. Miller  <davem@davemloft.net>
13268
13269         * po/ko.po: Update Korean translation from translation project.
13270
13271 2013-08-01  David S. Miller  <davem@davemloft.net>
13272
13273         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
13274         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
13275         Bilka.
13276
13277 2013-07-30  David S. Miller  <davem@davemloft.net>
13278
13279         * po/fr.po: Update French translation from translation project.
13280
13281 2013-07-28  David S. Miller  <davem@davemloft.net>
13282
13283         * po/cs.po: Update Czech translation from translation project.
13284
13285         * po/sv.po: Update Swedish translation from translation project.
13286
13287 2013-07-27  David S. Miller  <davem@davemloft.net>
13288
13289         * po/eo.po: Update Esperanto translation from translation project.
13290
13291         * po/vi.po: Update Vietnamese translation from translation project.
13292
13293         * po/de.po: Update German translation from translation project.
13294
13295 2013-07-26  David S. Miller  <davem@davemloft.net>
13296
13297         * po/bg.po: Update Bulgarian translation from translation project.
13298
13299         * po/nl.po: Update Dutch translation from translation project.
13300         * po/pl.po: Update Polish translation from translation project.
13301         * po/ru.po: Update Russian translation from translation project.
13302
13303 2013-07-24  David S. Miller  <davem@davemloft.net>
13304
13305         * po/libc.pot: Update.
13306
13307 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13308
13309         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
13310         variable page size.
13311         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
13312         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
13313         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
13314
13315 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13316
13317         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
13318
13319 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
13320             Andreas Schwab  <schwab@suse.de>
13321             Roland McGrath  <roland@hack.frob.com>
13322             Joseph Myers  <joseph@codesourcery.com>
13323             Carlos O'Donell  <carlos@redhat.com>
13324
13325         [BZ #15755]
13326         * config.h.in: Define HAVE_PT_CHOWN.
13327         * config.make.in (build-pt-chown): New variable.
13328         * configure.in (--enable-pt_chown): New configure option.
13329         * configure: Regenerate.
13330         * login/Makefile: Include Makeconfig.  Build pt_chown only if
13331         build-pt-chown is enabled.
13332         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
13333         pt_chown to fix pty ownership.
13334         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
13335         CLOSE_ALL_FDS.
13336         * manual/install.texi (Configuring and compiling): Mention
13337         --enable-pt_chown. Add @findex for grantpt.
13338         * INSTALL: Regenerate.
13339
13340 2013-07-20  David S. Miller  <davem@davemloft.net>
13341
13342         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
13343         difference between 32-bit and 64-bit.
13344
13345 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
13346
13347         [BZ #15711]
13348         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
13349         Avoid system header dependency with -ffreestanding.
13350         ($(objpfx)bits/syscall%d): Likewise.
13351
13352 2013-07-13  David S. Miller  <davem@davemloft.net>
13353
13354         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
13355         underflows from atanl/atan2l due to bug 15319.
13356         (casinh_test_data): Likewise.
13357
13358 2013-07-07  David S. Miller  <davem@davemloft.net>
13359
13360         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
13361
13362 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
13363
13364         * sysdeps/i386/fpu/libm-test-ulps: Update.
13365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13366
13367 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13368
13369         * configure.in (--enable-lock-elision): Fix message text.
13370         * INSTALL: Regenerate.
13371         * configure: Regenerate.
13372
13373 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13374
13375         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13376
13377 2013-07-03  Andreas Jaeger  <aj@suse.de>
13378
13379         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
13380         define.
13381         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
13382         (ptrace_peeksiginfo_args): Add.
13383         (__ptrace_peeksiginfo_flags): Add.
13384         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13385         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13386         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13387
13388 2013-07-03  Allan McRae  <allan@archlinux.org>
13389
13390         * sysdeps/i386/fpu/libm-test-ulps: Update.
13391
13392 2013-07-02  David S. Miller  <davem@davemloft.net>
13393
13394         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13395
13396 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
13397
13398         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13399
13400 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
13401
13402         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
13403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13404
13405 2013-07-02  Andi Kleen <ak@linux.intel.com>
13406
13407         * config.h.in (ENABLE_LOCK_ELISION): Add.
13408         * configure.in (--enable-lock-elision): Add option.
13409         * manual/install.texi: Document --enable lock elision.
13410         * configure: Regenerate
13411         * INSTALL: Regenerate.
13412
13413 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
13414
13415         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
13416         SSE4.2 strcasecmp for libc.a.
13417         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
13418
13419 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
13420
13421         [BZ #13304]
13422         * soft-fp/op-common.h (_FP_FMA): New macro.
13423         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
13424         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
13425         (_FP_MUL_MEAT_1_imm): ... here.
13426         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
13427         (_FP_MUL_MEAT_1_wide): ... here.
13428         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
13429         (_FP_MUL_MEAT_1_hard): ... here.
13430         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
13431         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
13432         (_FP_MUL_MEAT_2_wide): ... here.
13433         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
13434         (_FP_MUL_MEAT_2_wide_3mul): ... here.
13435         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
13436         (_FP_MUL_MEAT_2_gmp): ... here.
13437         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
13438         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
13439         (_FP_MUL_MEAT_4_wide): ... here.
13440         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
13441         (_FP_MUL_MEAT_4_gmp): ... here.
13442         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
13443         (_FP_WFRACBITS_DW_S): Likewise.
13444         (_FP_WFRACXBITS_DW_S): Likewise.
13445         (_FP_HIGHBIT_DW_S): Likewise.
13446         (FP_FMA_S): Likewise.
13447         (_FP_FRAC_HIGH_DW_S): Likewise.
13448         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
13449         (_FP_WFRACBITS_DW_D): Likewise.
13450         (_FP_WFRACXBITS_DW_D): Likewise.
13451         (_FP_HIGHBIT_DW_D): Likewise.
13452         (FP_FMA_D): Likewise.
13453         (_FP_FRAC_HIGH_DW_D): Likewise.
13454         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
13455         (_FP_WFRACBITS_DW_E): Likewise.
13456         (_FP_WFRACXBITS_DW_E): Likewise.
13457         (_FP_HIGHBIT_DW_E): Likewise.
13458         (FP_FMA_E): Likewise.
13459         (_FP_FRAC_HIGH_DW_E): Likewise.
13460         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
13461         (_FP_WFRACBITS_DW_Q): Likewise.
13462         (_FP_WFRACXBITS_DW_Q): Likewise.
13463         (_FP_HIGHBIT_DW_Q): Likewise.
13464         (FP_FMA_Q): Likewise.
13465         (_FP_FRAC_HIGH_DW_Q): Likewise.
13466         * soft-fp/fmasf4.c: New file.
13467         * soft-fp/fmadf4.c: Likewise.
13468         * soft-fp/fmatf4.c: Likewise.
13469
13470 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13471
13472         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
13473         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
13474         Silvermont.
13475         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
13476         macro.
13477         (index_Slow_SSE4_2): Likewise.
13478         (index_Prefer_PMINUB_for_stringop): Likewise.
13479         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
13480         bit_Slow_SSE4_2 is set.
13481         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13482         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13483
13484 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13485
13486         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
13487         rtld_global._dl_hwcap2.
13488         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
13489         POWER8.
13490         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
13491         POWER8 feature descriptions defined in _dl_hwcap2.
13492         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
13493         string handling for POWER8 feature bits.
13494         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
13495         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
13496         _dl_powerpc_cap_flags.
13497         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
13498         * sysdeps/powerpc/rtld-global-offsets.sym
13499         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
13500         _dl_hwcap2 in the rtld_global_ro structure.
13501
13502 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13503
13504         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
13505         hardware capabilities in support of AT_HWCAP2.
13506         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
13507         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
13508         GLRO(dl_hwcap2).
13509         (_dl_show_auxv): Add support for calling _dl_procinfo to display
13510         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
13511         explicitly the unknown a_type display mechanism is used.
13512         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
13513         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
13514         struct member.
13515         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
13516         to macro prototype for AT_HWCAP2 support.
13517         * sysdeps/i386/dl-procinfo.h: Likewise.
13518         * sysdeps/s390/dl-procinfo.h: Likewise.
13519         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
13520         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
13521         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
13522         return -1 for unknown a_type display fallback.
13523         * sysdeps/sparc/dl-procinfo.h: Likewise.
13524         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
13525         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
13526
13527 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
13528
13529         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
13530         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
13531
13532 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
13533
13534         [BZ #12492]
13535         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
13536         mprotect making __stack_prot writable.
13537
13538 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
13539             Joseph Myers  <joseph@codesourcery.com>
13540
13541         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
13542         as being properly aligned.
13543
13544 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
13545
13546         * dlfcn/modstatic5.c: New file.
13547         * dlfcn/tststatic5.c: New file.
13548         * dlfcn/Makefile (tests): Add tststatic5.
13549         (tests-static): Likewise.
13550         (modules-names): Add modstatic5.
13551         (tststatic5-ENV): New variable.
13552         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
13553
13554         [BZ #15022]
13555         * elf/dl-support.c (_dl_main_map): New variable.
13556         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
13557         (_dl_nns, _dl_load_adds): Set to 1.
13558         (_dl_initial_searchlist): Refer to _dl_main_map.
13559         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
13560         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
13561         call to _dl_get_origin.
13562         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
13563         around call_map.
13564         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
13565         * dlfcn/modstatic3.c: New file.
13566         * dlfcn/tststatic3.c: New file.
13567         * dlfcn/tststatic4.c: New file.
13568         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
13569         (tests-static): Likewise.
13570         (modules-names): Add modstatic3.
13571         (tststatic3-ENV, tststatic4-ENV): New variables.
13572         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
13573         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
13574
13575 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
13576
13577         * configure.in (CC): Require GCC version 4.4 or later.
13578         * configure: Regenerated.
13579         * manual/install.texi (Tools for Compilation): Update GCC version
13580         requirement.
13581         * INSTALL: Regenerated.
13582
13583 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13584
13585         [BZ #15674]
13586         * string/test-memcmp.c (check2): New.
13587         (main): Call check2.
13588
13589         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
13590
13591 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
13592
13593         [BZ #15022]
13594         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
13595         over to...
13596         (dl_open_worker) [!SHARED]: ... here.
13597
13598 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13599
13600         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
13601
13602 2013-06-25  Richard Henderson  <rth@redhat.com>
13603
13604         * locale/programs/locarchive.c: Include <libc-internal.h>
13605
13606 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
13607
13608         * manual/texinfo.tex: Update to version 2013-06-21.17, with
13609         trailing whitespace removed.
13610
13611 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
13612
13613         [BZ #10283]
13614         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
13615         * locale/programs/locarchive.c: Include libc-mmap.h.
13616         (prepare_address_space): Take two new outputs (the mmap base and len).
13617         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
13618         values.
13619         (create_archive): Declare new mmap base and len values for
13620         prepare_address_space, and store the result in ah.
13621         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
13622         (enlarge_archive): If ah->mmap_base is not NULL, use that and
13623         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
13624         Declare new mmap base and len values for
13625         prepare_address_space, and store the result in new_ah.
13626         (open_archive): Declare new mmap base and len values for
13627         prepare_address_space, and store the result in ah.
13628         (close_archive): If ah->mmap_base is not NULL, use that and
13629         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
13630         * sysdeps/generic/libc-mmap.h: New file.
13631
13632 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
13633
13634         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
13635         (ALIGN_UP): Likewise.
13636         (PTR_ALIGN_DOWN): Likewise.
13637         (PTR_ALIGN_UP): Likewise.
13638
13639 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13640
13641         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
13642         entry mapped to PPC_PLATFORM_POWER8.
13643         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
13644         POWER8.
13645         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
13646         (_dl_string_platform): Add case for exporting platform position for
13647         POWER8.
13648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
13649         search path to sysdeps/powerpc/powerpc32/power8 directory.
13650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
13651         search path to sysdeps/powerpc/powerpc64/power8 directory.
13652         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
13653         power7 directories.
13654         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
13655         power7 directories.
13656
13657 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13658
13659         * INSTALL: Regenerate.
13660
13661         * nscd/connections.c (nscd_init): Fix comment.
13662
13663 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
13664
13665         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
13666
13667         [BZ #15667]
13668         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
13669         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
13670
13671 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
13672
13673         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
13674         DL_DST_REQ_STATIC.
13675         (DL_DST_REQ_STATIC): Remove macro.
13676
13677 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
13678
13679         [BZ #7006]
13680         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
13681         with a shift of 0 bits.
13682
13683 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
13684
13685         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
13686         $(tststatic-ENV).
13687
13688 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13689
13690         [BZ #15655]
13691         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
13692
13693 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13694
13695         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
13696         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
13697         accepts -fno-tree-loop-distribute-patterns.
13698         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
13699         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
13700         recursive call.
13701         * string/memset.c (memset): Likewise.
13702         * string/test-memmove.c (simple_memmove): Disable loop transformation
13703         to library calls.
13704         * string/test-memset.c (simple_memset): Likewise.
13705         * benchtests/bench-memmove.c (simple_memmove): Likewise.
13706         * benchtests/bench-memset.c (simple_memset): Likewise.
13707         * configure: Regenerated.
13708
13709 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
13710
13711         * math/test-misc.c (main): Ignore fesetround failure when failures
13712         of subsequent rounding tests would be ignored.
13713
13714         [BZ #15654]
13715         * math/fedisblxcpt.c (fedisableexcept): Return 0.
13716         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
13717         * math/fegetenv.c (__fegetenv): Return 0.
13718         * math/fegetexcept.c (fegetexcept): Return 0.
13719         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
13720         FE_TONEAREST.
13721         * math/feholdexcpt.c (feholdexcept): Return 0.
13722         * math/fesetenv.c (__fesetenv): Return 0.
13723         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
13724         argument FE_TONEAREST.
13725         * math/feupdateenv.c (__feupdateenv): Return 0.
13726         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
13727
13728 2013-06-18  Roland McGrath  <roland@hack.frob.com>
13729
13730         * elf/rtld-Rules (rtld-compile-command.S): New variable.
13731         (rtld-compile-command.s, rtld-compile-command.c): New variables.
13732         ($(objpfx)rtld-%.os rules): Use them.
13733
13734 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13735
13736         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
13737         fields.
13738
13739 2013-06-17  Roland McGrath  <roland@hack.frob.com>
13740
13741         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
13742         length of target pattern, then descending length of dependency pattern.
13743         * configure.in (AWK): Require gawk 3.1.2 or newer.
13744         * manual/install.texi (Tools for Compilation): Say that we do.
13745         * configure: Regenerated.
13746
13747         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
13748         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
13749         * scripts/sysd-rules.awk: ... this new script.
13750         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
13751         than a glob-style pattern.
13752
13753 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
13754
13755         * math/test-misc.c (main): Do not treat incorrectly rounded
13756         conversions as failure unless ROUNDING_TESTS passes.
13757
13758 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
13759
13760         [BZ #15631]
13761         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
13762         restore exception state around main square root computation, then
13763         check for inexactness explicitly.
13764
13765         * math/libm-test.inc (fma_test_data): Add another test.
13766
13767 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13768
13769         * manual/threads.texi (Non-POSIX Extensions): New document
13770         node.  Document pthread_getattr_default_np and
13771         pthread_setattr_default_np.
13772
13773         * Versions.def (libpthread): Add GLIBC_2.18.
13774         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
13775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
13776         Likewise.
13777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
13778         Likewise.
13779         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13780         Likewise.
13781         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13782         Likewise.
13783         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
13784         Likewise.
13785         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
13786         Likewise.
13787         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
13788         Likewise.
13789         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
13790         Likewise.
13791         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13792         Likewise.
13793
13794 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13795
13796         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13797         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
13798
13799 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13800             H.J. Lu  <hjl.tools@gmail.com>
13801
13802         [BZ #15627]
13803         * sysdeps/x86_64/rtld-memset.c: Remove file.
13804         * sysdeps/x86_64/rtld-memset.S: New file.
13805
13806 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
13807
13808         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
13809         (test_in_one_mode): Take arguments for whether the rounding mode
13810         is supported for each floating-point type.
13811         (do_test): Pass new arguments to test_in_one_mode using
13812         ROUNDING_TESTS.
13813
13814 2013-06-13  Roland McGrath  <roland@hack.frob.com>
13815
13816         * posix/tst-waitid.c (do_test): Distinguish different instances of
13817         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
13818         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
13819         before entering the kernel for waitpid.
13820
13821 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13822
13823         * NEWS: Fix note on clock function precision.  Text by Roland
13824         McGrath.
13825
13826 2013-06-13  Roland McGrath  <roland@hack.frob.com>
13827
13828         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
13829         it into place only when and if the sanity check passes.
13830
13831 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
13832
13833         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
13834         output for whether conversion result is exact.  Take argument
13835         indicating whether type is IBM long double.
13836         (round_for_all): Change need_exact field to ibm_ld.
13837         * stdlib/tst-strtod-round.c (struct exactness): New type.
13838         (struct test): Change bool ld_ok field to struct exactness exact.
13839         (TEST): Update all definitions for change to field.
13840         (tests): Regenerate array contents.
13841         (test_in_one_mode): Take pointer to new field instead of old ld_ok
13842         field value.  Check for IBM long double here.
13843         (do_test): Update calls to test_in_one_mode.
13844
13845 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13846
13847         [BZ #12515]
13848         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
13849         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
13850
13851 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13852
13853         [BZ #15605]
13854         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
13855         generated by the compiler on loop optimizations.
13856         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
13857         general definitions.
13858
13859 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
13860
13861         * math/bug-nextafter.c: Include <math-tests.h>.
13862         (main): Only test for exceptions if EXCEPTION_TESTS is true for
13863         the relevant type.
13864         * math/bug-nexttoward.c: Include <math-tests.h>.
13865         (main): Only test for exceptions if EXCEPTION_TESTS is true for
13866         the relevant type.
13867         * math/test-misc.c: Include <math-tests.h>.
13868         (main): Only test for exceptions if EXCEPTION_TESTS is true for
13869         the relevant type.
13870
13871 2013-06-12  Andreas Jaeger  <aj@suse.de>
13872
13873         * po/ia.po: Update Interlingua translation from translation
13874         project.
13875
13876 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
13877
13878         * include/fenv.h: Include stdbool.h.
13879         (struct rm_ctx): New structure.
13880         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
13881         Define macro.
13882         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
13883         (SET_RESTORE_ROUNDF): Likewise.
13884         (SET_RESTORE_ROUNDL): Likewise.
13885         (SET_RESTORE_ROUND_NOEX): Likewise.
13886         (SET_RESTORE_ROUND_NOEXF): Likewise.
13887         (SET_RESTORE_ROUND_NOEXL): Likewise.
13888         (SET_RESTORE_ROUND_53BIT): Likewise.
13889         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
13890         (libc_feresetround_noexf_ctx): Likewise.
13891         (libc_feresetround_noexl_ctx): Likewise.
13892         (libc_feholdsetround_53bit_ctx): Likewise.
13893         (libc_feresetround_53bit_ctx): Likewise.
13894         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
13895         (libc_feholdexcept_setround_sse_ctx): New function.
13896         (libc_fesetenv_sse_ctx): Likewise.
13897         (libc_feupdateenv_sse_ctx): Likewise.
13898         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
13899         (libc_feholdexcept_setround_387_ctx): Likewise.
13900         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
13901         (libc_feholdsetround_387_prec_ctx): Likewise.
13902         (libc_feholdsetround_387_ctx): Likewise.
13903         (libc_feholdsetround_387_53bit_ctx): Likewise.
13904         (libc_feholdsetround_sse_ctx): Likewise.
13905         (libc_feresetround_sse_ctx): Likewise.
13906         (libc_feresetround_387_ctx): Likewise.
13907         (libc_feupdateenv_387_ctx): Likewise.
13908         (libc_feholdexcept_setroundf_ctx): Define macro.
13909         (libc_fesetenvf_ctx): Likewise.
13910         (libc_feupdateenvf_ctx): Likewise.
13911         (libc_feholdsetroundf_ctx): Likewise.
13912         (libc_feresetroundf_ctx): Likewise.
13913         (libc_feholdexcept_setround_ctx): Likewise.
13914         (libc_fesetenv_ctx): Likewise.
13915         (libc_feupdateenv_ctx): Likewise.
13916         (libc_feholdsetround_ctx): Likewise.
13917         (libc_feresetround_ctx): Likewise.
13918         (libc_feholdexcept_setroundl_ctx): Likewise.
13919         (libc_feupdateenvl_ctx): Likewise.
13920         (libc_feholdsetroundl_ctx): Likewise.
13921         (libc_feresetroundl_ctx): Likewise.
13922         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
13923         (libc_feresetround_53bit_ctx): Likewise.
13924
13925 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13926
13927         * locale/iso-639.def: Convert to UTF-8.
13928
13929 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
13930
13931         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
13932         (EXCEPTION_TESTS_double): Likewise.
13933         (EXCEPTION_TESTS_long_double): Likewise.
13934         (EXCEPTION_TESTS): Likewise.
13935         * math/libm-test.inc (test_exceptions): Only test exceptions if
13936         EXCEPTION_TESTS (FLOAT).
13937
13938 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13939
13940         * benchtests/Makefile (string-bench): Add strcpy_chk and
13941         stpcpy_chk.
13942         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
13943         * benchtests/bench-stpcpy_chk.c: New file.
13944         * benchtests/bench-strcpy_chk-ifunc.c: New file.
13945         * benchtests/bench-strcpy_chk.c: New file.
13946         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
13947         code.
13948         (do_test): Likewise.
13949
13950 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13951
13952         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
13953         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
13954         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
13955         with tabs where appropriate.
13956         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
13957         dl-procinfo.h.
13958         [PPC_PLATFORM_PPC440]: Likewise.
13959         [PPC_PLATFORM_PPC464]: Likewise.
13960         [PPC_PLATFORM_PPC476]: Likewise.
13961         (_dl_string_platform): Add support for detecting ppc405, ppc440,
13962         ppc464, and ppc476 platform strings merging from ports/
13963         dl-procinfo.h.
13964
13965 2013-06-11  Andreas Schwab  <schwab@suse.de>
13966
13967         [BZ #14991]
13968         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
13969         (from_ucs4_idx): Regenerate.
13970         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
13971         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
13972         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
13973         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
13974         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
13975         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
13976         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
13977         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
13978         from FROM_LOOP and TO_LOOP specific macros.
13979         (BODY): Handle combining characters.
13980         * iconvdata/BIG5HKSCS.irreversible: Update.
13981         * iconvdata/BIG5HKSCS.precomposed: New file.
13982         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
13983         characters.
13984         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
13985
13986 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13987
13988         * include/sys/time.h: Fix indentation and add copyright header.
13989
13990         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
13991         (do_test): Likewise.
13992         * string/test-memchr.c (do_one_test): Likewise.
13993         (do_test): Likewise.
13994         * string/test-memcmp.c (do_one_test): Likewise.
13995         (do_test): Likewise.
13996         * string/test-memcpy.c (do_one_test): Likewise.
13997         (do_test): Likewise.
13998         * string/test-memmem.c (do_one_test): Likewise.
13999         (do_test): Likewise.
14000         (do_random_tests): Likewise.
14001         * string/test-memmove.c (do_one_test): Likewise.
14002         (do_test): Likewise.
14003         * string/test-memset.c (do_one_test): Likewise.
14004         (do_test): Likewise.
14005         * string/test-rawmemchr.c (do_one_test): Likewise.
14006         (do_test): Likewise.
14007         * string/test-strcasecmp.c (do_one_test): Likewise.
14008         (do_test): Likewise.
14009         * string/test-strcasestr.c (do_one_test): Likewise.
14010         (do_test): Likewise.
14011         * string/test-strcat.c (do_one_test): Likewise.
14012         (do_test): Likewise.
14013         * string/test-strchr.c (do_one_test): Likewise.
14014         (do_test): Likewise.
14015         * string/test-strcmp.c (do_one_test): Likewise.
14016         (do_test): Likewise.
14017         * string/test-strcpy.c (do_one_test): Likewise.
14018         (do_test): Likewise.
14019         * string/test-string.h: Likewise.
14020         (test_init): Likewise.
14021         * string/test-strlen.c (do_one_test): Likewise.
14022         (do_test): Likewise.
14023         * string/test-strncasecmp.c (do_one_test): Likewise.
14024         (do_test): Likewise.
14025         * string/test-strncat.c (do_one_test): Likewise.
14026         (do_test): Likewise.
14027         * string/test-strncmp.c (do_one_test): Likewise.
14028         (do_test_limit): Likewise.
14029         (do_test): Likewise.
14030         * string/test-strncpy.c (do_one_test): Likewise.
14031         (do_test): Likewise.
14032         * string/test-strnlen.c (do_one_test): Likewise.
14033         (do_test): Likewise.
14034         * string/test-strpbrk.c (do_one_test): Likewise.
14035         (do_test): Likewise.
14036         * string/test-strrchr.c (do_one_test): Likewise.
14037         (do_test): Likewise.
14038         * string/test-strspn.c (do_one_test): Likewise.
14039         (do_test): Likewise.
14040         * string/test-strstr.c (do_one_test): Likewise.
14041         (do_test): Likewise.
14042
14043         * benchtests/Makefile (string-bench): Add string benchmarks.
14044         * benchtests/bench-bcopy-ifunc.c: New file.
14045         * benchtests/bench-bcopy.c: New file.
14046         * benchtests/bench-bzero-ifunc.c: New file.
14047         * benchtests/bench-bzero.c: New file.
14048         * benchtests/bench-memccpy-ifunc.c: New file.
14049         * benchtests/bench-memccpy.c: New file.
14050         * benchtests/bench-memchr-ifunc.c: New file.
14051         * benchtests/bench-memchr.c: New file.
14052         * benchtests/bench-memcmp-ifunc.c: New file.
14053         * benchtests/bench-memcmp.c: New file.
14054         * benchtests/bench-memmem-ifunc.c: New file.
14055         * benchtests/bench-memmem.c: New file.
14056         * benchtests/bench-memmove-ifunc.c: New file.
14057         * benchtests/bench-memmove.c: New file.
14058         * benchtests/bench-mempcpy-ifunc.c: New file.
14059         * benchtests/bench-mempcpy.c: New file.
14060         * benchtests/bench-memset-ifunc.c: New file.
14061         * benchtests/bench-memset.c: New file.
14062         * benchtests/bench-rawmemchr-ifunc.c: New file.
14063         * benchtests/bench-rawmemchr.c: New file.
14064         * benchtests/bench-stpcpy-ifunc.c: New file.
14065         * benchtests/bench-stpcpy.c: New file.
14066         * benchtests/bench-stpncpy-ifunc.c: New file.
14067         * benchtests/bench-stpncpy.c: New file.
14068         * benchtests/bench-strcasecmp-ifunc.c: New file.
14069         * benchtests/bench-strcasecmp.c: New file.
14070         * benchtests/bench-strcasestr-ifunc.c: New file.
14071         * benchtests/bench-strcasestr.c: New file.
14072         * benchtests/bench-strcat-ifunc.c: New file.
14073         * benchtests/bench-strcat.c: New file.
14074         * benchtests/bench-strchr-ifunc.c: New file.
14075         * benchtests/bench-strchr.c: New file.
14076         * benchtests/bench-strchrnul-ifunc.c: New file.
14077         * benchtests/bench-strchrnul.c: New file.
14078         * benchtests/bench-strcmp-ifunc.c: New file.
14079         * benchtests/bench-strcmp.c: New file.
14080         * benchtests/bench-strcpy-ifunc.c: New file.
14081         * benchtests/bench-strcpy.c: New file.
14082         * benchtests/bench-strcspn-ifunc.c: New file.
14083         * benchtests/bench-strcspn.c: New file.
14084         * benchtests/bench-strlen-ifunc.c: New file.
14085         * benchtests/bench-strlen.c: New file.
14086         * benchtests/bench-strncasecmp-ifunc.c: New file.
14087         * benchtests/bench-strncasecmp.c: New file.
14088         * benchtests/bench-strncat-ifunc.c: New file.
14089         * benchtests/bench-strncat.c: New file.
14090         * benchtests/bench-strncmp-ifunc.c: New file.
14091         * benchtests/bench-strncmp.c: New file.
14092         * benchtests/bench-strncpy-ifunc.c: New file.
14093         * benchtests/bench-strncpy.c: New file.
14094         * benchtests/bench-strnlen-ifunc.c: New file.
14095         * benchtests/bench-strnlen.c: New file.
14096         * benchtests/bench-strpbrk-ifunc.c: New file.
14097         * benchtests/bench-strpbrk.c: New file.
14098         * benchtests/bench-strrchr-ifunc.c: New file.
14099         * benchtests/bench-strrchr.c: New file.
14100         * benchtests/bench-strspn-ifunc.c: New file.
14101         * benchtests/bench-strspn.c: New file.
14102         * benchtests/bench-strstr-ifunc.c: New file.
14103         * benchtests/bench-strstr.c: New file.
14104
14105         * benchtests/Makefile: Disable parallel execution of targets.
14106         (string-bench): Add memcpy.
14107         (benchset): New variable to store a list of benchmark sets.
14108         (bench-func): Renamed from bench.
14109         (bench-set): New target.
14110         (bench): Depend on bench-func and bench-set.
14111         * benchtests/README: Add section on benchmark sets.
14112         * benchtests/bench-memcpy-ifunc.c: New file.
14113         * benchtests/bench-memcpy.c: New file.
14114         * benchtests/bench-string.h: New file.
14115
14116 2013-06-11  Andreas Schwab  <schwab@suse.de>
14117
14118         [BZ #15577]
14119         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
14120         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
14121         values in the triple.
14122         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
14123         terminator in the group key.
14124
14125 2013-06-11  Andreas Jaeger  <aj@suse.de>
14126
14127         * po/zh_TW.po: Update Chinese (traditional) translation from
14128         translation project.
14129
14130 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14131
14132         * include/time.h (__clock_gettime): Add libc_hidden_proto.
14133         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
14134         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
14135         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
14136         (clock_getcpuclockid): Likewise.
14137         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
14138         Add weak_alias and libc_hidden_def.
14139         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
14140         * rt/clock_gettime.c (clock_gettime): Rename to
14141         __clock_gettime.  Add weak_alias and libc_hidden_def.
14142         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
14143         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
14144         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
14145         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
14146         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
14147         Likewise.
14148         * rt/clock_settime.c (clock_settime): Rename to
14149         __clock_settime.  Add weak_alias and libc_hidden_def.
14150         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
14151
14152 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
14153
14154         * mach/err_boot.sub: Remove trailing whitespace.
14155         * mach/err_ipc.sub: Likewise.
14156         * mach/err_mach.sub: Likewise.
14157
14158         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
14159         (ROUNDING_TESTS_double): Likewise.
14160         (ROUNDING_TESTS_long_double): Likewise.
14161         (ROUNDING_TESTS): Likewise.
14162         * math/libm-test.inc: Include <math-tests.h>.
14163         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
14164         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
14165         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
14166         (IF_ROUND_INIT_FE_UPWARD): Likewise.
14167
14168 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14169
14170         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
14171         of assigning.
14172
14173 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
14174
14175         * sysdeps/gnu/errlist.awk: Do not generate space at end of
14176         otherwise empty TRANS lines.
14177         * sysdeps/gnu/errlist.c: Regenerated.
14178
14179         * catgets/gencat.c (error_print): Use (void) in function
14180         definition.
14181         * crypt/crypt_util.c (__init_des): Likewise.
14182         * crypt/speeds.c (Stop): Likewise.
14183         (main): Likewise.
14184         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
14185         * inet/ruserpass.c (token): Likewise.
14186         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
14187         * intl/localealias.c (extend_alias_table): Likewise.
14188         * intl/plural-exp.c (init_germanic_plural): Likewise.
14189         * libio/fcloseall.c (__fcloseall): Likewise.
14190         * libio/genops.c (_IO_flush_all): Likewise.
14191         (_IO_flush_all_linebuffered): Likewise.
14192         (_IO_cleanup): Likewise.
14193         (_IO_iter_begin): Likewise.
14194         (_IO_iter_end): Likewise.
14195         (_IO_list_lock): Likewise.
14196         (_IO_list_unlock): Likewise.
14197         (_IO_list_resetlock): Likewise.
14198         * libio/getchar.c (getchar): Likewise.
14199         * libio/getchar_u.c (getchar_unlocked): Likewise.
14200         * libio/getwchar.c (getwchar): Likewise.
14201         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
14202         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
14203         * login/getpt.c (__getpt): Likewise.
14204         * login/tst-utmp.c (main): Likewise.
14205         * malloc/hooks.c (__malloc_check_init): Likewise.
14206         * malloc/malloc.c (__malloc_stats): Likewise.
14207         * malloc/mtrace.c (tr_break): Likewise.
14208         (mtrace): Likewise.
14209         (muntrace): Likewise.
14210         * misc/fstab.c (endfsent): Likewise.
14211         * misc/getclktck.c (__getclktck): Likewise.
14212         * misc/getdtsz.c (__getdtablesize): Likewise.
14213         * misc/gethostid.c (gethostid): Likewise.
14214         * misc/getpagesize.c (__getpagesize): Likewise.
14215         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
14216         (__get_nprocs): Likewise.
14217         (__get_phys_pages): Likewise.
14218         (__get_avphys_pages): Likewise.
14219         * misc/getttyent.c (getttyent): Likewise.
14220         (setttyent): Likewise.
14221         (endttyent): Likewise.
14222         * misc/getusershell.c (getusershell): Likewise.
14223         (endusershell): Likewise.
14224         (setusershell): Likewise.
14225         (initshells): Likewise.
14226         * misc/hsearch.c (__hdestroy): Likewise.
14227         * misc/sync.c (sync): Likewise.
14228         * misc/syslog.c (closelog_internal): Likewise.
14229         (closelog): Likewise.
14230         * misc/ttyslot.c (ttyslot): Likewise.
14231         * misc/vhangup.c (vhangup): Likewise.
14232         * posix/fork.c (__fork): Likewise.
14233         * posix/getegid.c (__getegid): Likewise.
14234         * posix/geteuid.c (__geteuid): Likewise.
14235         * posix/getgid.c (__getgid): Likewise.
14236         * posix/getpid.c (__getpid): Likewise.
14237         * posix/getppid.c (__getppid): Likewise.
14238         * posix/getuid.c (__getuid): Likewise.
14239         * posix/pause.c (pause): Likewise.
14240         * posix/setpgrp.c (setpgrp): Likewise.
14241         * posix/setsid.c (__setsid): Likewise.
14242         * posix/test-vfork.c (noop): Likewise.
14243         * resolv/gethnamaddr.c (_endhtent): Likewise.
14244         (_gethtent): Likewise.
14245         (ht_endhostent): Likewise.
14246         (gethostent): Likewise.
14247         (dns_service): Likewise.
14248         * stdlib/drand48.c (drand48): Likewise.
14249         * stdlib/lrand48.c (lrand48): Likewise.
14250         * stdlib/mrand48.c (mrand48): Likewise.
14251         * stdlib/rand.c (rand): Likewise.
14252         * stdlib/random.c (__random): Likewise.
14253         * stdlib/setenv.c (clearenv): Likewise.
14254         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
14255         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
14256         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
14257         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
14258         (__get_nprocs): Likewise.
14259         (__get_phys_pages): Likewise.
14260         (__get_avphys_pages): Likewise.
14261         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
14262         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
14263         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
14264         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
14265         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
14266         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
14267         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
14268         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
14269         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
14270         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
14271         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
14272         * sysdeps/mach/hurd/sync.c (sync): Likewise.
14273         * sysdeps/posix/clock.c (clock): Likewise.
14274         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
14275         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
14276         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
14277         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
14278         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
14279         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
14280         (__get_nprocs_conf): Likewise.
14281         (__get_phys_pages): Likewise.
14282         (__get_avphys_pages): Likewise.
14283         * time/clock.c (clock): Likewise.
14284         * time/tzset.c (__tzname_max): Likewise.
14285
14286 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
14287
14288         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
14289         (__bswap_32): Do not use "register".
14290         * crypt/crypt.c (_ufc_doit_r): Likewise.
14291         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
14292         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
14293         * gmon/gmon.c (__monstartup): Likewise.
14294         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
14295         * hurd/hurdmalloc.c (more_memory): Likewise.
14296         (malloc): Likewise.
14297         (free): Likewise.
14298         (realloc): Likewise.
14299         (malloc_fork_prepare): Likewise.
14300         (malloc_fork_parent): Likewise.
14301         (malloc_fork_child): Likewise.
14302         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
14303         (_svcauth_des): Likewise.
14304         * inet/inet_lnaof.c (inet_lnaof): Likewise.
14305         * inet/inet_net.c (inet_network): Likewise.
14306         * inet/inet_netof.c (inet_netof): Likewise.
14307         * inet/rcmd.c (__validuser2_sa): Likewise.
14308         * io/fts.c (fts_open): Likewise.
14309         (fts_load): Likewise.
14310         (fts_close): Likewise.
14311         (fts_read): Likewise.
14312         (fts_children): Likewise.
14313         (fts_build): Likewise.
14314         (fts_stat): Likewise.
14315         (fts_sort): Likewise.
14316         (fts_alloc): Likewise.
14317         (fts_lfree): Likewise.
14318         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
14319         (_IO_file_xsgetn): Likewise.
14320         (_IO_file_xsgetn_mmap): Likewise.
14321         * libio/iofopncook.c (_IO_cookie_read): Likewise.
14322         (_IO_cookie_write): Likewise.
14323         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
14324         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
14325         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
14326         * malloc/obstack.c (_obstack_begin): Likewise.
14327         (_obstack_begin_1): Likewise.
14328         (_obstack_newchunk): Likewise.
14329         (_obstack_allocated_p): Likewise.
14330         (obstack_free): Likewise.
14331         (_obstack_memory_used): Likewise.
14332         * misc/getttyent.c (getttynam): Likewise.
14333         (getttyent): Likewise.
14334         (skip): Likewise.
14335         (value): Likewise.
14336         * misc/getusershell.c (initshells): Likewise.
14337         * misc/syslog.c (__vsyslog_chk): Likewise.
14338         * misc/ttyslot.c (ttyslot): Likewise.
14339         * nis/nis_hash.c (__nis_hash): Likewise.
14340         * posix/fnmatch_loop.c (FCT): Likewise.
14341         * posix/getconf.c (print_all): Likewise.
14342         (main): Likewise.
14343         * posix/getopt.c (exchange): Likewise.
14344         * posix/glob.c (globfree): Likewise.
14345         (prefix_array): Likewise.
14346         (__glob_pattern_type): Likewise.
14347         * resolv/arpa/nameser.h (NS_GET16): Likewise.
14348         (NS_GET32): Likewise.
14349         (NS_PUT16): Likewise.
14350         (NS_PUT32): Likewise.
14351         * resolv/gethnamaddr.c (getanswer): Likewise.
14352         (gethostbyname2): Likewise.
14353         (gethostbyaddr): Likewise.
14354         (_gethtent): Likewise.
14355         (_gethtbyname2): Likewise.
14356         (_gethtbyaddr): Likewise.
14357         * resolv/ns_print.c (dst_s_get_int16): Likewise.
14358         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
14359         * resolv/res_init.c (__res_vinit): Likewise.
14360         (net_mask): Likewise.
14361         * resolv/res_mkquery.c (outchar): Likewise.
14362         (PRINT): Likewise.
14363         * stdio-common/printf_fp.c (outchar): Likewise.
14364         (PRINT): Likewise.
14365         * stdio-common/printf_fphex.c (outchar): Likewise.
14366         (PRINT): Likewise.
14367         * stdio-common/printf_size.c (outchar): Likewise.
14368         (PRINT): Likewise.
14369         * stdio-common/test_rdwr.c (main): Likewise.
14370         * stdio-common/tfformat.c (matches): Likewise.
14371         * stdio-common/vfprintf.c (outchar): Likewise.
14372         (printf_unknown): Likewise.
14373         (buffered_vfprintf): Likewise.
14374         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
14375         * stdio-common/xbug.c (AppendToBuffer): Likewise.
14376         (ReadFile): Likewise.
14377         * stdlib/qsort.c (SWAP): Likewise.
14378         (_quicksort): Likewise.
14379         * stdlib/setenv.c (__add_to_environ): Likewise.
14380         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
14381         * stdlib/strtol_l.c (__strtol_l): Likewise.
14382         * stdlib/tst-strtod.c (main): Likewise.
14383         * stdlib/tst-strtol.c (main): Likewise.
14384         * stdlib/tst-strtoll.c (main): Likewise.
14385         * string/bits/string2.h (__strcmp_cc): Likewise.
14386         (__strcmp_cg): Likewise.
14387         (__strcspn_c1): Likewise.
14388         (__strcspn_c2): Likewise.
14389         (__strcspn_c3): Likewise.
14390         (__strspn_c1): Likewise.
14391         (__strspn_c2): Likewise.
14392         (__strspn_c3): Likewise.
14393         (__strsep_1c): Likewise.
14394         (__strsep_2c): Likewise.
14395         (__strsep_3c): Likewise.
14396         * string/memccpy.c (__memccpy): Likewise.
14397         * string/stpcpy.c (__stpcpy): Likewise.
14398         * string/strcmp.c (strcmp): Likewise.
14399         * string/strrchr.c (strrchr): Likewise.
14400         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
14401         Likewise.
14402         * sysdeps/mach/hurd/getcwd.c
14403         (_hurd_canonicalize_directory_name_internal): Likewise.
14404         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
14405         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
14406         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
14407         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
14408         Likewise, in both definitions.
14409         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
14410         definitions.
14411         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
14412         64] (__bswap_64): Likewise.
14413         * time/test_time.c (main): Likewise.
14414         * time/tzfile.c (__tzfile_read): Likewise.
14415         (__tzfile_compute): Likewise.
14416         * time/tzset.c (__tzset_parse_tz): Likewise.
14417         (tzset_internal): Likewise.
14418         (compute_change): Likewise.
14419         * wcsmbs/wcscat.c (__wcscat): Likewise.
14420         * wcsmbs/wcschr.c (wcschr): Likewise.
14421         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
14422         * wcsmbs/wcscspn.c (wcscspn): Likewise.
14423         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
14424         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
14425         * wcsmbs/wcsspn.c (wcsspn): Likewise.
14426         * wcsmbs/wcsstr.c (wcsstr): Likewise.
14427         * wcsmbs/wmemchr.c (wmemchr): Likewise.
14428         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14429         * wcsmbs/wmemset.c (wmemset): Likewise.
14430
14431 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
14432
14433         * scripts/config.guess: Update to version 2013-05-16.
14434         * scripts/config.sub: Update to version 2013-04-24.
14435         * scripts/install-sh: Update to version 2011-11-20.07.
14436         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
14437         * scripts/move-if-change: Update to version 2012-01-06 07:23.
14438
14439 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
14440
14441         * debug/fgetws_u_chk.c: Fix leading whitespaces.
14442         * elf/sln.c: Likewise.
14443         * hurd/hurd/ioctl.h: Likewise.
14444         * hurd/hurdmalloc.c: Likewise.
14445         * hurd/xattr.c: Likewise.
14446         * include/shlib-compat.h: Likewise.
14447         * inet/ruserpass.c: Likewise.
14448         * libio/iofgets_u.c: Likewise.
14449         * libio/iofgetws_u.c: Likewise.
14450         * locale/programs/ld-identification.c: Likewise.
14451         * locale/programs/ld-time.c: Likewise.
14452         * mach/msg-destroy.c: Likewise.
14453         * nss/nss_files/files-netgrp.c: Likewise.
14454         * resolv/res_data.c: Likewise.
14455         * soft-fp/op-1.h: Likewise.
14456         * soft-fp/op-2.h: Likewise.
14457         * soft-fp/op-4.h: Likewise.
14458         * soft-fp/op-common.h: Likewise.
14459         * stdio-common/printf_fphex.c: Likewise.
14460         * stdlib/strtod_l.c: Likewise.
14461         * sunrpc/rpc/clnt.h: Likewise.
14462         * sysdeps/generic/framestate.c: Likewise.
14463         * sysdeps/i386/bsd-_setjmp.S: Likewise.
14464         * sysdeps/i386/bsd-setjmp.S: Likewise.
14465         * sysdeps/i386/__longjmp.S: Likewise.
14466         * sysdeps/i386/setjmp.S: Likewise.
14467         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14468         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14469         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14470         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14471         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14472         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
14473         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14474         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14475         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14476         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
14477         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
14478         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
14479         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
14480         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
14481         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
14482         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14483         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
14484         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
14485         * sysdeps/ieee754/support.c: Likewise.
14486         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
14487         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
14488         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
14489         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
14490         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
14491         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
14492         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
14493         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
14494         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
14495         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
14496         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
14497         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
14498         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
14499         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
14500         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
14501         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
14502         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
14503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
14504
14505 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
14506
14507         * posix/transbug.c: Remove executable mode.
14508
14509 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
14510
14511         * crypt/speeds.c: Remove trailing whitespace.
14512         * dlfcn/default.c: Likewise.
14513         * elf/ifuncdep2.c: Likewise.
14514         * elf/ifuncmain1.c: Likewise.
14515         * elf/ifuncmain1vis.c: Likewise.
14516         * elf/testobj.h: Likewise.
14517         * elf/tst-stackguard1.c: Likewise.
14518         * gmon/sys/gmon.h: Likewise.
14519         * hurd/hurdmsg.c: Likewise.
14520         * hurd/new-fd.c: Likewise.
14521         * hurd/ports-get.c: Likewise.
14522         * iconvdata/ibm1008_420.c: Likewise.
14523         * inet/tst-getni1.c: Likewise.
14524         * inet/tst-getni2.c: Likewise.
14525         * libio/ioungetc.c: Likewise.
14526         * libio/wfiledoalloc.c: Likewise.
14527         * manual/libm-err-tab.pl: Likewise.
14528         * math/w_dremf.c: Likewise.
14529         * misc/ftruncate.c: Likewise.
14530         * posix/bug-glob2.c: Likewise.
14531         * posix/tst-pcre.c: Likewise.
14532         * posix/wait4.c: Likewise.
14533         * resolv/README: Likewise.
14534         * resolv/res_debug.h: Likewise.
14535         * resolv/tst-inet_ntop.c: Likewise.
14536         * setjmp/bug269-setjmp.c: Likewise.
14537         * soft-fp/extended.h: Likewise.
14538         * soft-fp/op-1.h: Likewise.
14539         * soft-fp/op-2.h: Likewise.
14540         * soft-fp/op-4.h: Likewise.
14541         * soft-fp/op-8.h: Likewise.
14542         * soft-fp/testit.c: Likewise.
14543         * stdio-common/bug16.c: Likewise.
14544         * stdlib/random.c: Likewise.
14545         * sunrpc/rpcsvc/rquota.x: Likewise.
14546         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
14547         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14548         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14549         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14550         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14551         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14552         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14553         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14554         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14555         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14556         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14557         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
14558         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14559         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14560         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14561         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14562         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14563         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14564         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
14565         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14566         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14567         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14568         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
14569         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
14570         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14571         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14572         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
14573         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14574         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14575         * sysdeps/ieee754/s_lib_version.c: Likewise.
14576         * sysdeps/mach/hurd/check_fds.c: Likewise.
14577         * sysdeps/mach/hurd/getsockname.c: Likewise.
14578         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
14579         * sysdeps/mach/hurd/recvfrom.c: Likewise.
14580         * sysdeps/powerpc/bits/link.h: Likewise.
14581         * sysdeps/powerpc/dl-procinfo.c: Likewise.
14582         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
14583         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
14584         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
14585         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
14586         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
14587         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
14588         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
14589         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
14590         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14591         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
14592         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
14593         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
14594         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14595         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14596         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14597         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
14598         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
14599         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14600         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14601         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14602         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
14603         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14604         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
14605         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
14606         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
14607         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
14608         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14609         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14610         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
14611         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
14612         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
14613         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14614         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
14615         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
14616         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
14617         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
14618         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
14619         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
14620         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
14621         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
14622         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
14623         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
14624         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
14625         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
14626         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
14627         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
14628         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
14629         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
14630         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
14631         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14632         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14633         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14634         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14635         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
14636         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
14637         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
14638         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14639         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
14640         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
14641         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
14642         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
14643         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
14644         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14645         * sysdeps/powerpc/sysdep.h: Likewise.
14646         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
14647         * sysdeps/s390/s390-64/sub_n.S: Likewise.
14648         * sysdeps/sh/dl-trampoline.S: Likewise.
14649         * sysdeps/sh/memset.S: Likewise.
14650         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
14651         * sysdeps/sh/strlen.S: Likewise.
14652         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
14653         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
14654         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
14655         * sysdeps/sparc/sparc32/rem.S: Likewise.
14656         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
14657         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
14658         * sysdeps/sparc/sparc32/strchr.S: Likewise.
14659         * sysdeps/sparc/sparc32/udiv.S: Likewise.
14660         * sysdeps/sparc/sparc32/urem.S: Likewise.
14661         * sysdeps/sparc/sparc64/add_n.S: Likewise.
14662         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
14663         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
14664         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
14665         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
14666         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
14667         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
14668         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
14669         * sysdeps/unix/bsd/times.c: Likewise.
14670         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
14671         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
14672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
14673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
14674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
14675         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
14676         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
14677         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
14678         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
14679         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
14680         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
14681         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
14682         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
14683         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
14684         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
14685         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
14686         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
14687         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14688         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
14689         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
14690         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
14691         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
14692         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
14693         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
14694         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
14695         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
14696         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
14697         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14698         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
14699         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
14700         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
14701         * sysdeps/x86_64/strcspn.S: Likewise.
14702
14703 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14704
14705         * locale/C-translit.h: Revert #include <stdint.h> because this is a
14706         generated file.  Regenerate properly from gen-translit.pl.
14707         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
14708         locale/C-translit.h.
14709
14710 2013-06-05  Andreas Schwab  <schwab@suse.de>
14711
14712         [BZ #15100]
14713         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
14714         week as 6 instead of -1.
14715         * time/tst-strptime.c (day_tests): Add test case.
14716
14717 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
14718
14719         * sysdeps/generic/math_private.h
14720         (libc_feholdexcept_setround_53bit): Replace with
14721         libc_feholdsetround_53bit.
14722         (libc_feupdateenv_53bit): Replace with
14723         libc_feresetround_53bit.
14724         (SET_RESTORE_ROUND_53BIT): Adjust.
14725
14726 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
14727
14728         * string/test-strchrnul.c: Add copyright header.
14729
14730         * posix/tst-getaddrinfo4.c: Increase test timeout.
14731
14732 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
14733
14734         [BZ #15536]
14735         * math/libm-test.inc (MAX_EXP): Remove
14736         (MIN_EXP): Define.
14737         (ulp): Use MIN_EXP - MANT_DIG.
14738         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
14739
14740 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
14741
14742         * po/be.po: Revert last change.
14743         * po/zh_CN.po: Likewise.
14744         * po/header.pot: Likewise.
14745
14746 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
14747
14748         * Makefile ($(common-objpfx)linkobj/libc.so): Define
14749         link-libc-deps to empty as target-specific variable.
14750         * Makerules (link-libc-args): New variable.
14751         (libc-for-link): Likewise.
14752         (link-libc-deps): Likewise.
14753         (lib%.so): Depend on $(link-libc-deps).  Link with
14754         $(link-libc-args).
14755         (build-module): Link with $(link-libc-args).
14756         (build-module-asneeded): Likewise.
14757         (build-module-helper-objlist): Filter out $(link-libc-deps) from
14758         list of objects.
14759         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
14760         target-specific variable.
14761         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
14762         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
14763         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
14764         libc.
14765         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
14766         libc and ld.so.
14767         ($(objpfx)libpcprofile.so): Likewise.
14768         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
14769         libc_nonshared.a.
14770         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
14771         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
14772         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
14773         $(link-libc-deps).
14774         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
14775         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
14776         * login/Makefile ($(objpfx)libutil.so): Likewise.
14777         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
14778         * math/Makefile ($(objpfx)libm.so): Likewise.
14779         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
14780         $(objpfx)libnsl.so): Define libc-for-link as target-specific
14781         variable instead of depending directly on libc.
14782         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
14783         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
14784         $(link-libc-deps).
14785         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
14786         libc.
14787         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
14788         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
14789         ($(objpfx)libanl.so): Likewise.
14790         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
14791         ld.so.
14792         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
14793         $(link-libc-deps).
14794         * sysdeps/i386/fpu/Makefile: Remove file.
14795         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
14796         ($(objpfx)libm.so): Remove dependency on ld.so.
14797
14798 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
14799
14800         [BZ # 15553]
14801         * nis/yp_xdr.c (XDRMAXNAME): Define.
14802         (XDRMAXRECORD): Define.
14803         (xdr_domainname): Use XDRMAXNAME.
14804         (xdr_mapname): Likewise.
14805         (xdr_peername): Likewise.
14806         (xdr_keydat): Use XDRMAXRECORD.
14807         (xdr_valdat): Likewise.
14808
14809 2013-05-30  Jeff Law  <law@redhat.com>
14810
14811         [BZ #14256]
14812         * manual/errno.texi (ESTALE): Update to account for more than
14813         just NFS file systems.
14814         * sysdeps/gnu/errlist.c: Regenerated.
14815
14816 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
14817
14818         [BZ #15465]
14819         * elf/Makefile (tests): Add tst-null-argv.
14820         (modules-names):  Add tst-null-argv-lib.
14821         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
14822         (tst-null-argv-ENV): Set environment for tst-null-argv.
14823         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
14824         (RTLD_PROGNAME): New macro.
14825         * elf/tst-null-argv.c: New test case.
14826         * elf/tst-null-argv-lib.c: Library for test case.
14827         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
14828         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
14829         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
14830         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
14831         * elf/dl-init.c (call_init): Likewise.
14832         (_dl_init): Likewise.
14833         * elf/dl-load.c (print_search_path): Likewise.
14834         (_dl_map_object): Likewise.
14835         * elf/dl-lookup.c (do_lookup_x): Likewise.
14836         (add_dependency): Likewise.
14837         (_dl_lookup_symbol_x): Likewise.
14838         (_dl_debug_bindings): Likewise.
14839         * elf/dl-open.c (_dl_show_scope): Likewise.
14840         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
14841         * elf/dl-version.c (match_symbol): Likewise.
14842         (_dl_check_map_versions): Likewise.
14843         * elf/rtld.c (dl_main): Likewise.
14844         (print_unresolved): Use RTLD_PROGNAME.
14845         (print_missing_version): Likewise.
14846         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
14847         (elf_machine_rela): Likewise.
14848         * sysdeps/powerpc/powerpc32/dl-machine.c
14849         (__process_machine_rela): Likewise.
14850         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14851         Likewise.
14852         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
14853         Likewise.
14854         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
14855         Likewise.
14856         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14857         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
14858         Likewise.
14859         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
14860         Likewise.
14861         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14862
14863 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
14864
14865         * po/be.po: Add descriptive title.
14866         * po/zh_CN.po: Likewise.
14867         * po/header.pot: Likewise.
14868
14869 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
14870
14871         * locale/programs/locarchive.c (create_archive): Inlucde fname in
14872         error message.
14873         (enlarge_archive): Likewise.
14874
14875 2013-05-28  Ben North  <ben@redfrontdoor.org>
14876
14877         * manual/arith.texi (frexp): It is the magnitude of the return
14878         value which lies in [0.5, 1), not the return value itself.
14879
14880 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14881
14882         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14883
14884 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
14885
14886         * stdio-common/bug26.c (main): Correct fscanf template.
14887
14888         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
14889         declare _dl_skip_args.
14890
14891         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
14892         Don't declare.
14893
14894         * manual/platform.texi: Add missing @end deftypefun.
14895
14896 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
14897
14898         [BZ #15529]
14899         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
14900         bit of mantissa of 2^16382.
14901         * math/libm-test.inc (hypot_test_data): Add more tests.
14902
14903         * math/libm-test.inc: Add drem and pow10 to list of tested
14904         functions.
14905         (pow10_test): New function.
14906         (drem_test): Likewise.
14907         (drem_test_tonearest): Likewise.
14908         (drem_test_towardzero): Likewise.
14909         (drem_test_downward): Likewise.
14910         (drem_test_upward): Likewise.
14911         (main): Call the new functions.
14912
14913         * math/libm-test.inc (finite_test_data): Remove.
14914         (finite_test): Run tests from isfinite_test_data.
14915         (gamma_test_data): Remove.
14916         (gamma_test): Run tests from lgamma_test_data.
14917         * sysdeps/i386/fpu/libm-test-ulps: Update.
14918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14919
14920 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14921
14922         * manual/platform.texi: Add PowerPC PPR function set documentation.
14923         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
14924         implementation.
14925
14926 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
14927
14928         * math/libm-test.inc (MAX_EXP): Define.
14929         (ULPDIFF): Define.
14930         (ulp): New function.
14931         (check_float_internal): Use ULPDIFF.
14932         (cpow_test): Disable failing test.
14933         (check_ulp): Test ulp() implemetnation.
14934         (main): Call check_ulp before starting tests.
14935
14936 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
14937
14938         * math/gen-libm-test.pl (generate_testfile): Do not handle
14939         START_DATA and END_DATA.
14940         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
14941         END_DATA.
14942         (acos_tonearest_test_data): Likewise.
14943         (acos_towardzero_test_data): Likewise.
14944         (acos_downward_test_data): Likewise.
14945         (acos_upward_test_data): Likewise.
14946         (acosh_test_data): Likewise.
14947         (asin_test_data): Likewise.
14948         (asin_tonearest_test_data): Likewise.
14949         (asin_towardzero_test_data): Likewise.
14950         (asin_downward_test_data): Likewise.
14951         (asin_upward_test_data): Likewise.
14952         (asinh_test_data): Likewise.
14953         (atan_test_data): Likewise.
14954         (atanh_test_data): Likewise.
14955         (atan2_test_data): Likewise.
14956         (cabs_test_data): Likewise.
14957         (cacos_test_data): Likewise.
14958         (cacosh_test_data): Likewise.
14959         (carg_test_data): Likewise.
14960         (casin_test_data): Likewise.
14961         (casinh_test_data): Likewise.
14962         (catan_test_data): Likewise.
14963         (catanh_test_data): Likewise.
14964         (cbrt_test_data): Likewise.
14965         (ccos_test_data): Likewise.
14966         (ccosh_test_data): Likewise.
14967         (ceil_test_data): Likewise.
14968         (cexp_test_data): Likewise.
14969         (cimag_test_data): Likewise.
14970         (clog_test_data): Likewise.
14971         (clog10_test_data): Likewise.
14972         (conj_test_data): Likewise.
14973         (copysign_test_data): Likewise.
14974         (cos_test_data): Likewise.
14975         (cos_tonearest_test_data): Likewise.
14976         (cos_towardzero_test_data): Likewise.
14977         (cos_downward_test_data): Likewise.
14978         (cos_upward_test_data): Likewise.
14979         (cosh_test_data): Likewise.
14980         (cosh_tonearest_test_data): Likewise.
14981         (cosh_towardzero_test_data): Likewise.
14982         (cosh_downward_test_data): Likewise.
14983         (cosh_upward_test_data): Likewise.
14984         (cpow_test_data): Likewise.
14985         (cproj_test_data): Likewise.
14986         (creal_test_data): Likewise.
14987         (csin_test_data): Likewise.
14988         (csinh_test_data): Likewise.
14989         (csqrt_test_data): Likewise.
14990         (ctan_test_data): Likewise.
14991         (ctan_tonearest_test_data): Likewise.
14992         (ctan_towardzero_test_data): Likewise.
14993         (ctan_downward_test_data): Likewise.
14994         (ctan_upward_test_data): Likewise.
14995         (ctanh_test_data): Likewise.
14996         (ctanh_tonearest_test_data): Likewise.
14997         (ctanh_towardzero_test_data): Likewise.
14998         (ctanh_downward_test_data): Likewise.
14999         (ctanh_upward_test_data): Likewise.
15000         (erf_test_data): Likewise.
15001         (erfc_test_data): Likewise.
15002         (exp_test_data): Likewise.
15003         (exp_tonearest_test_data): Likewise.
15004         (exp_towardzero_test_data): Likewise.
15005         (exp_downward_test_data): Likewise.
15006         (exp_upward_test_data): Likewise.
15007         (exp10_test_data): Likewise.
15008         (exp2_test_data): Likewise.
15009         (expm1_test_data): Likewise.
15010         (fabs_test_data): Likewise.
15011         (fdim_test_data): Likewise.
15012         (finite_test_data): Likewise.
15013         (floor_test_data): Likewise.
15014         (fma_test_data): Likewise.
15015         (fma_towardzero_test_data): Likewise.
15016         (fma_downward_test_data): Likewise.
15017         (fma_upward_test_data): Likewise.
15018         (fmax_test_data): Likewise.
15019         (fmin_test_data): Likewise.
15020         (fmod_test_data): Likewise.
15021         (fpclassify_test_data): Likewise.
15022         (frexp_test_data): Likewise.
15023         (gamma_test_data): Likewise.
15024         (hypot_test_data): Likewise.
15025         (ilogb_test_data): Likewise.
15026         (isfinite_test_data): Likewise.
15027         (isgreater_test_data): Likewise.
15028         (isgreaterequal_test_data): Likewise.
15029         (isinf_test_data): Likewise.
15030         (isless_test_data): Likewise.
15031         (islessequal_test_data): Likewise.
15032         (islessgreater_test_data): Likewise.
15033         (isnan_test_data): Likewise.
15034         (isnormal_test_data): Likewise.
15035         (issignaling_test_data): Likewise.
15036         (isunordered_test_data): Likewise.
15037         (j0_test_data): Likewise.
15038         (j1_test_data): Likewise.
15039         (jn_test_data): Likewise.
15040         (ldexp_test_data): Likewise.
15041         (lgamma_test_data): Likewise.
15042         (lrint_test_data): Likewise.
15043         (lrint_tonearest_test_data): Likewise.
15044         (lrint_towardzero_test_data): Likewise.
15045         (lrint_downward_test_data): Likewise.
15046         (lrint_upward_test_data): Likewise.
15047         (llrint_test_data): Likewise.
15048         (llrint_tonearest_test_data): Likewise.
15049         (llrint_towardzero_test_data): Likewise.
15050         (llrint_downward_test_data): Likewise.
15051         (llrint_upward_test_data): Likewise.
15052         (log_test_data): Likewise.
15053         (log10_test_data): Likewise.
15054         (log1p_test_data): Likewise.
15055         (log2_test_data): Likewise.
15056         (logb_test_data): Likewise.
15057         (logb_downward_test_data): Likewise.
15058         (lround_test_data): Likewise.
15059         (llround_test_data): Likewise.
15060         (modf_test_data): Likewise.
15061         (nearbyint_test_data): Likewise.
15062         (nextafter_test_data): Likewise.
15063         (nexttoward_test_data): Likewise.
15064         (pow_test_data): Likewise.
15065         (pow_tonearest_test_data): Likewise.
15066         (pow_towardzero_test_data): Likewise.
15067         (pow_downward_test_data): Likewise.
15068         (pow_upward_test_data): Likewise.
15069         (remainder_test_data): Likewise.
15070         (remainder_tonearest_test_data): Likewise.
15071         (remainder_towardzero_test_data): Likewise.
15072         (remainder_downward_test_data): Likewise.
15073         (remainder_upward_test_data): Likewise.
15074         (remquo_test_data): Likewise.
15075         (rint_test_data): Likewise.
15076         (rint_tonearest_test_data): Likewise.
15077         (rint_towardzero_test_data): Likewise.
15078         (rint_downward_test_data): Likewise.
15079         (rint_upward_test_data): Likewise.
15080         (round_test_data): Likewise.
15081         (scalb_test_data): Likewise.
15082         (scalbn_test_data): Likewise.
15083         (scalbln_test_data): Likewise.
15084         (signbit_test_data): Likewise.
15085         (sin_test_data): Likewise.
15086         (sin_tonearest_test_data): Likewise.
15087         (sin_towardzero_test_data): Likewise.
15088         (sin_downward_test_data): Likewise.
15089         (sin_upward_test_data): Likewise.
15090         (sincos_test_data): Likewise.
15091         (sinh_test_data): Likewise.
15092         (sinh_tonearest_test_data): Likewise.
15093         (sinh_towardzero_test_data): Likewise.
15094         (sinh_downward_test_data): Likewise.
15095         (sinh_upward_test_data): Likewise.
15096         (sqrt_test_data): Likewise.
15097         (tan_test_data): Likewise.
15098         (tan_tonearest_test_data): Likewise.
15099         (tan_towardzero_test_data): Likewise.
15100         (tan_downward_test_data): Likewise.
15101         (tan_upward_test_data): Likewise.
15102         (tanh_test_data): Likewise.
15103         (tgamma_test_data): Likewise.
15104         (trunc_test_data): Likewise.
15105         (y0_test_data): Likewise.
15106         (y1_test_data): Likewise.
15107         (yn_test_data): Likewise.
15108         (significand_test_data): Likewise.
15109
15110         * math/gen-libm-test.pl (@functions): Remove variable.
15111         (generate_testfile): Don't handle START and END lines.
15112         * math/libm-test.inc (START): New macro.
15113         (END): Likewise.
15114         (END_COMPLEX): Likewise.
15115         (acos_test): Use END macro without arguments.
15116         (acos_test_tonearest): Likewise.
15117         (acos_test_towardzero): Likewise.
15118         (acos_test_downward): Likewise.
15119         (acos_test_upward): Likewise.
15120         (acosh_test): Likewise.
15121         (asin_test): Likewise.
15122         (asin_test_tonearest): Likewise.
15123         (asin_test_towardzero): Likewise.
15124         (asin_test_downward): Likewise.
15125         (asin_test_upward): Likewise.
15126         (asinh_test): Likewise.
15127         (atan_test): Likewise.
15128         (atanh_test): Likewise.
15129         (atan2_test): Likewise.
15130         (cabs_test): Likewise.
15131         (cacos_test): Use END_COMPLEX macro without arguments.
15132         (cacosh_test): Likewise.
15133         (carg_test): Use END macro without arguments.
15134         (casin_test): Use END_COMPLEX macro without arguments.
15135         (casinh_test): Likewise.
15136         (catan_test): Likewise.
15137         (catanh_test): Likewise.
15138         (cbrt_test): Use END macro without arguments.
15139         (ccos_test): Use END_COMPLEX macro without arguments.
15140         (ccosh_test): Likewise.
15141         (ceil_test): Use END macro without arguments.
15142         (cexp_test): Use END_COMPLEX macro without arguments.
15143         (cimag_test): Use END macro without arguments.
15144         (clog_test): Use END_COMPLEX macro without arguments.
15145         (clog10_test): Likewise.
15146         (conj_test): Likewise.
15147         (copysign_test): Use END macro without arguments.
15148         (cos_test): Likewise.
15149         (cos_test_tonearest): Likewise.
15150         (cos_test_towardzero): Likewise.
15151         (cos_test_downward): Likewise.
15152         (cos_test_upward): Likewise.
15153         (cosh_test): Likewise.
15154         (cosh_test_tonearest): Likewise.
15155         (cosh_test_towardzero): Likewise.
15156         (cosh_test_downward): Likewise.
15157         (cosh_test_upward): Likewise.
15158         (cpow_test): Use END_COMPLEX macro without arguments.
15159         (cproj_test): Likewise.
15160         (creal_test): Use END macro without arguments.
15161         (csin_test): Use END_COMPLEX macro without arguments.
15162         (csinh_test): Likewise.
15163         (csqrt_test): Likewise.
15164         (ctan_test): Likewise.
15165         (ctan_test_tonearest): Likewise.
15166         (ctan_test_towardzero): Likewise.
15167         (ctan_test_downward): Likewise.
15168         (ctan_test_upward): Likewise.
15169         (ctanh_test): Likewise.
15170         (ctanh_test_tonearest): Likewise.
15171         (ctanh_test_towardzero): Likewise.
15172         (ctanh_test_downward): Likewise.
15173         (ctanh_test_upward): Likewise.
15174         (erf_test): Use END macro without arguments.
15175         (erfc_test): Likewise.
15176         (exp_test): Likewise.
15177         (exp_test_tonearest): Likewise.
15178         (exp_test_towardzero): Likewise.
15179         (exp_test_downward): Likewise.
15180         (exp_test_upward): Likewise.
15181         (exp10_test): Likewise.
15182         (exp2_test): Likewise.
15183         (expm1_test): Likewise.
15184         (fabs_test): Likewise.
15185         (fdim_test): Likewise.
15186         (finite_test): Likewise.
15187         (floor_test): Likewise.
15188         (fma_test): Likewise.
15189         (fma_test_towardzero): Likewise.
15190         (fma_test_downward): Likewise.
15191         (fma_test_upward): Likewise.
15192         (fmax_test): Likewise.
15193         (fmin_test): Likewise.
15194         (fmod_test): Likewise.
15195         (fpclassify_test): Likewise.
15196         (frexp_test): Likewise.
15197         (gamma_test): Likewise.
15198         (hypot_test): Likewise.
15199         (ilogb_test): Likewise.
15200         (isfinite_test): Likewise.
15201         (isgreater_test): Likewise.
15202         (isgreaterequal_test): Likewise.
15203         (isinf_test): Likewise.
15204         (isless_test): Likewise.
15205         (islessequal_test): Likewise.
15206         (islessgreater_test): Likewise.
15207         (isnan_test): Likewise.
15208         (isnormal_test): Likewise.
15209         (issignaling_test): Likewise.
15210         (isunordered_test): Likewise.
15211         (j0_test): Likewise.
15212         (j1_test): Likewise.
15213         (jn_test): Likewise.
15214         (ldexp_test): Likewise.
15215         (lgamma_test): Likewise.
15216         (lrint_test): Likewise.
15217         (lrint_test_tonearest): Likewise.
15218         (lrint_test_towardzero): Likewise.
15219         (lrint_test_downward): Likewise.
15220         (lrint_test_upward): Likewise.
15221         (llrint_test): Likewise.
15222         (llrint_test_tonearest): Likewise.
15223         (llrint_test_towardzero): Likewise.
15224         (llrint_test_downward): Likewise.
15225         (llrint_test_upward): Likewise.
15226         (log_test): Likewise.
15227         (log10_test): Likewise.
15228         (log1p_test): Likewise.
15229         (log2_test): Likewise.
15230         (logb_test): Likewise.
15231         (logb_test_downward): Likewise.
15232         (lround_test): Likewise.
15233         (llround_test): Likewise.
15234         (modf_test): Likewise.
15235         (nearbyint_test): Likewise.
15236         (nextafter_test): Likewise.
15237         (nexttoward_test): Likewise.
15238         (pow_test): Likewise.
15239         (pow_test_tonearest): Likewise.
15240         (pow_test_towardzero): Likewise.
15241         (pow_test_downward): Likewise.
15242         (pow_test_upward): Likewise.
15243         (remainder_test): Likewise.
15244         (remainder_test_tonearest): Likewise.
15245         (remainder_test_towardzero): Likewise.
15246         (remainder_test_downward): Likewise.
15247         (remainder_test_upward): Likewise.
15248         (remquo_test): Likewise.
15249         (rint_test): Likewise.
15250         (rint_test_tonearest): Likewise.
15251         (rint_test_towardzero): Likewise.
15252         (rint_test_downward): Likewise.
15253         (rint_test_upward): Likewise.
15254         (round_test): Likewise.
15255         (scalb_test): Likewise.
15256         (scalbn_test): Likewise.
15257         (scalbln_test): Likewise.
15258         (signbit_test): Likewise.
15259         (sin_test): Likewise.
15260         (sin_test_tonearest): Likewise.
15261         (sin_test_towardzero): Likewise.
15262         (sin_test_downward): Likewise.
15263         (sin_test_upward): Likewise.
15264         (sincos_test): Likewise.
15265         (sinh_test): Likewise.
15266         (sinh_test_tonearest): Likewise.
15267         (sinh_test_towardzero): Likewise.
15268         (sinh_test_downward): Likewise.
15269         (sinh_test_upward): Likewise.
15270         (sqrt_test): Likewise.
15271         (tan_test): Likewise.
15272         (tan_test_tonearest): Likewise.
15273         (tan_test_towardzero): Likewise.
15274         (tan_test_downward): Likewise.
15275         (tan_test_upward): Likewise.
15276         (tanh_test): Likewise.
15277         (tgamma_test): Likewise.
15278         (trunc_test): Likewise.
15279         (y0_test): Likewise.
15280         (y1_test): Likewise.
15281         (yn_test): Likewise.
15282         (significand_test): Likewise.
15283
15284 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
15285
15286         [BZ #15381]
15287         * libio/genops.c (_IO_no_init): Initialize wide struct info.
15288
15289 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
15290
15291         [BZ #14894]
15292         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
15293         __ppc_mdoio and __ppc_mdoom.
15294         * manual/platform.texi: Document new functions __ppc_yield,
15295         __ppc_mdoio and __ppc_mdoom.
15296
15297 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
15298
15299         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
15300         (main): Mention "tls" pseudo-hwcap is legacy.
15301         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
15302
15303 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
15304
15305         * math/gen-libm-test.pl (parse_args): Output only string of
15306         arguments as text for test name, not full call or descriptions of
15307         tests for extra outputs.
15308         (generate_testfile): Do not pass function name to parse_args.
15309         Generate this_func variable from START.
15310         * math/libm-test.inc (struct test_f_f_data): Rename test_name
15311         field to arg_str.
15312         (struct test_ff_f_data): Likewise.
15313         (test_ff_f_data_nexttoward): Likewise.
15314         (struct test_fi_f_data): Likewise.
15315         (struct test_fl_f_data): Likewise.
15316         (struct test_if_f_data): Likewise.
15317         (struct test_fff_f_data): Likewise.
15318         (struct test_c_f_data): Likewise.
15319         (struct test_f_f1_data): Likewise.  Remove field extra_name.
15320         (struct test_fF_f1_data): Likewise.
15321         (struct test_ffI_f1_data): Likewise.
15322         (struct test_c_c_data): Rename test_name field to arg_str.
15323         (struct test_cc_c_data): Likewise.
15324         (struct test_f_i_data): Likewise.
15325         (struct test_ff_i_data): Likewise.
15326         (struct test_f_l_data): Likewise.
15327         (struct test_f_L_data): Likewise.
15328         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
15329         and extra2_name.
15330         (COMMON_TEST_SETUP): New macro.
15331         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
15332         (COMMON_TEST_CLEANUP): Likewise.
15333         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
15334         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
15335         macros.
15336         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
15337         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
15338         macros.
15339         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
15340         (RUN_TEST_fff_f): Take argument string.  Call new setup and
15341         cleanup macros.
15342         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
15343         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
15344         macros.
15345         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
15346         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
15347         macros.
15348         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
15349         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
15350         cleanup macros.
15351         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
15352         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
15353         cleanup macros.
15354         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
15355         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
15356         cleanup macros.
15357         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
15358         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
15359         macros.
15360         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
15361         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
15362         macros.
15363         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
15364         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
15365         macros.
15366         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
15367         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
15368         cleanup macros.
15369         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
15370         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
15371         cleanup macros.
15372         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
15373         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
15374         macros.
15375         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
15376         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
15377         cleanup macros.
15378         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
15379         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
15380         macros.
15381         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
15382         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
15383         macros.
15384         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
15385         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
15386         cleanup macros.
15387         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
15388
15389 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
15390
15391         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
15392         to _sifields.sigfault.
15393         (si_addr_lsb): Define new macro.
15394         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
15395         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
15396         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
15397
15398 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
15399
15400         [BZ #15441]
15401         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
15402         returns -1.
15403         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
15404         null return -1.
15405         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
15406         loading the domain.
15407
15408 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
15409
15410         * math/gen-libm-test.pl (parse_args): Do not include expected
15411         result in test name.
15412         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
15413         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
15414         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
15415         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
15416         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
15417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15418
15419 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
15420
15421         * benchtests/Makefile: Sort function entries.
15422
15423         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
15424         tanh, asinh, acosh, atanh.
15425         * benchtests/acos-inputs: New file.
15426         * benchtests/acosh-inputs: New file.
15427         * benchtests/asin-inputs: New file.
15428         * benchtests/asinh-inputs: New file.
15429         * benchtests/atanh-inputs: New file.
15430         * benchtests/cosh-inputs: New file.
15431         * benchtests/log-inputs: New file.
15432         * benchtests/sinh-inputs: New file.
15433         * benchtests/tanh-inputs: New file.
15434
15435 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
15436
15437         [BZ #15339]
15438         * posix/tst-getaddrinfo4.c: New test.
15439         * posix/Makefile (tests): Add it.
15440
15441 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15442
15443         [BZ #15339]
15444         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
15445         when no services were used.
15446         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
15447         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
15448
15449 2013-05-21  Andreas Schwab  <schwab@suse.de>
15450
15451         [BZ #15014]
15452         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
15453         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
15454         successful.
15455         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
15456         redundant variable declarations and reallocation of buffer when
15457         parsing as IPv6 address.  Always set NSS status when called from
15458         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
15459         buffer too small.  Correct computation of needed size.
15460         * nss/Makefile (tests): Add test-digits-dots.
15461         * nss/test-digits-dots.c: New test.
15462
15463 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15464
15465         * benchtests/Makefile: Remove instructions for adding
15466         benchmark tests.
15467         * benchtests/README: New file to explain how to execute and
15468         enhance the benchmark tests.
15469
15470 2013-05-21  Andreas Schwab  <schwab@suse.de>
15471
15472         [BZ #15493]
15473         * setjmp/Makefile (tests): Add tst-sigsetjmp.
15474         * setjmp/tst-sigsetjmp.c: New test.
15475
15476 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
15477
15478         * sysdeps/x86_64/memset.S (memset): New implementation.
15479         (__bzero): Likewise.
15480         (__memset_tail): New function.
15481
15482 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
15483
15484         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
15485         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
15486         __memcpy_sse2_unaligned ifunc selection.
15487         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
15488         Add memcpy-sse2-unaligned.S.
15489         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
15490         Add: __memcpy_sse2_unaligned.
15491
15492 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
15493
15494         [BZ #15490]
15495         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
15496         math_force_eval before restoring floating-point envrionment.
15497         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
15498         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
15499         Likewise.
15500         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
15501         <math_private.h>.
15502         (__nearbyintl): Use math_force_eval before restoring
15503         floating-point environment.
15504         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
15505
15506         * math/gen-libm-test.pl (special_functions): Remove.
15507         (parse_args): Don't handle TEST_extra.  Handle functions with no
15508         return value.
15509         * math/libm-test.inc (struct test_sincos_data): Replace with
15510         struct test_fFF_11_data.
15511         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
15512         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
15513         (sincos_test_data): Change element type to struct
15514         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
15515         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
15516         RUN_TEST_LOOP_sincos.
15517         * math/README.libm-test: Don't mention special handling of
15518         individual functions.
15519         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
15520         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
15521         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
15522         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
15523         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
15524         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15525
15526         * math/gen-libm-test.pl (get_variable): Remove function.
15527         (parse_args): Don't show pointer parameters to call in test
15528         names.  Use "extra output N" in test names for extra outputs
15529         rather than naming variables.
15530
15531 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
15532
15533         [BZ #15488]
15534         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
15535         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
15536         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
15537         double tests.
15538         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
15539         disable.
15540         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
15541         check_long_double.
15542
15543         * math/gen-libm-test.pl (@tests): Remove variable.
15544         ($count): Likewise.
15545         (new_test): Remove function.
15546         (show_exceptions): New function.
15547         (special_functions): Use show_exceptions instead of new_test.
15548         (parse_args): Likewise.
15549         (generate_testfile): Pass only function name in generated call to
15550         print_max_error or print_complex_max_error.
15551         (get_ulps): Do not handle complex tests specially.
15552         (output_test): Rename to ...
15553         (get_all_ulps_for_test): ... this.  Return a string rather than
15554         printing to a file.  Require ulps to be present.
15555         (output_ulps): Generate arrays rather than #defines.
15556         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
15557         (struct ulp_data): New type.
15558         (BUILD_COMPLEX_ULP): Remove macro.
15559         (compare_ulp_data): New function.
15560         (find_ulps): Likewise.
15561         (find_test_ulps): Likewise.
15562         (find_function_ulps): Likewise.
15563         (find_complex_function_ulps): Likewise.
15564         (print_max_error): Determine allowed ulps using
15565         find_function_ulps.
15566         (print_complex_max_error): Determine allowed ulps using
15567         find_complex_function_ulps.
15568         (check_float_internal): Determine max ulps using find_test_ulps.
15569         (check_float): Do not take max_ulp parameter.  Update call to
15570         check_float_internal.
15571         (check_complex): Likewise.
15572         (check_int): Do not take max_ulp parameter.
15573         (check_long): Likewise.
15574         (check_bool): Likewise.
15575         (check_longlong): Likewise.
15576         (struct test_f_f_data): Remove max_ulp field.
15577         (struct test_ff_f_data): Likewise.
15578         (struct test_ff_f_data_nexttoward): Likewise.
15579         (struct test_fi_f_data): Likewise.
15580         (struct test_fl_f_data): Likewise.
15581         (struct test_if_f_data): Likewise.
15582         (struct test_fff_f_data): Likewise.
15583         (struct test_c_f_data): Likewise.
15584         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
15585         (struct test_fF_f1_data): Likewise.
15586         (struct test_ffI_f1_data): Likewise.
15587         (struct test_c_c_data): Remove max_ulp field.
15588         (struct test_cc_c_data): Likewise.
15589         (struct test_f_i_data): Likewise.
15590         (struct test_ff_i_data): Likewise.
15591         (struct test_f_l_data): Likewise.
15592         (struct test_f_L_data): Likewise.
15593         (struct test_sincos_data): Likewise.
15594         (RUN_TEST_f_f): Do not handle ulps.
15595         (RUN_TEST_LOOP_f_f): Likewise.
15596         (RUN_TEST_2_f): Likewise.
15597         (RUN_TEST_LOOP_2_f): Likewise.
15598         (RUN_TEST_fff_f): Likewise.
15599         (RUN_TEST_LOOP_fff_f): Likewise.
15600         (RUN_TEST_c_f): Likewise.
15601         (RUN_TEST_LOOP_c_f): Likewise.
15602         (RUN_TEST_f_f1): Likewise.
15603         (RUN_TEST_LOOP_f_f1): Likewise.
15604         (RUN_TEST_fF_f1): Likewise.
15605         (RUN_TEST_LOOP_fF_f1): Likewise.
15606         (RUN_TEST_fI_f1): Likewise.
15607         (RUN_TEST_LOOP_fI_f1): Likewise.
15608         (RUN_TEST_ffI_f1): Likewise.
15609         (RUN_TEST_LOOP_ffI_f1): Likewise.
15610         (RUN_TEST_c_c): Likewise.
15611         (RUN_TEST_LOOP_c_c): Likewise.
15612         (RUN_TEST_cc_c): Likewise.
15613         (RUN_TEST_LOOP_cc_c): Likewise.
15614         (RUN_TEST_f_i): Likewise.
15615         (RUN_TEST_LOOP_f_i): Likewise.
15616         (RUN_TEST_f_i_tg): Likewise.
15617         (RUN_TEST_LOOP_f_i_tg): Likewise.
15618         (RUN_TEST_ff_i_tg): Likewise.
15619         (RUN_TEST_LOOP_ff_i_tg): Likewise.
15620         (RUN_TEST_f_b): Likewise.
15621         (RUN_TEST_LOOP_f_b): Likewise.
15622         (RUN_TEST_f_b_tg): Likewise.
15623         (RUN_TEST_LOOP_f_b_tg): Likewise.
15624         (RUN_TEST_f_l): Likewise.
15625         (RUN_TEST_LOOP_f_l): Likewise.
15626         (RUN_TEST_f_L): Likewise.
15627         (RUN_TEST_LOOP_f_L): Likewise.
15628         (RUN_TEST_sincos): Likewise.
15629         (RUN_TEST_LOOP_sincos): Likewise.
15630
15631 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
15632
15633         [BZ #15480]
15634         [BZ #15485]
15635         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
15636         main case of finite arguments, set rounding mode to FE_TONEAREST
15637         and discard exceptions.
15638         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
15639         exceptions.
15640         (remainder_tonearest_test_data): New variable.
15641         (remainder_test_tonearest): New function.
15642         (remainder_towardzero_test_data): New variable.
15643         (remainder_test_towardzero): New function.
15644         (remainder_downward_test_data): New variable.
15645         (remainder_test_downward): New function.
15646         (remainder_upward_test_data): New variable.
15647         (remainder_test_upward): New function.
15648         (main): Call the new test functions.
15649
15650         * math/libm-test.inc (struct test_f_f1_data): Remove field
15651         extra_init.
15652         (struct test_fF_f1_data): Likewise.
15653         (struct test_ffI_f1_data): Likewise.
15654         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
15655         based on value of EXTRA_EXPECTED.
15656         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
15657         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
15658         EXTRA_VAR based on value of EXTRA_EXPECTED.
15659         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
15660         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
15661         EXTRA_VAR based on value of EXTRA_EXPECTED.
15662         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
15663         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
15664         EXTRA_VAR based on value of EXTRA_EXPECTED.
15665         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
15666         * math/gen-libm-test.pl (parse_args): Don't output initializers
15667         for extra output values.
15668
15669         * math/libm-test.inc (check_int): Expect result to be exactly
15670         equal to expected value and do not handle ulps.
15671         (check_long): Likewise.
15672         (check_longlong): Likewise.
15673
15674         * math/libm-test.inc (ceil_test_data): Test for "inexact"
15675         exceptions.
15676         (cimag_test_data): Likewise.
15677         (conj_test_data): Likewise.
15678         (copysign_test_data): Likewise.
15679         (cproj_test_data): Likewise.
15680         (creal_test_data): Likewise.
15681         (fabs_test_data): Likewise.
15682         (fdim_test_data): Likewise.
15683         (finite_test_data): Likewise.
15684         (floor_test_data): Likewise.
15685         (fmax_test_data): Likewise.
15686         (fmin_test_data): Likewise.
15687         (fmod_test_data): Likewise.
15688         (fpclassify_test_data): Likewise.
15689         (frexp_test_data): Likewise.
15690         (ilogb_test_data): Likewise.
15691         (isfinite_test_data): Likewise.
15692         (isgreater_test_data): Likewise.
15693         (isgreaterequal_test_data): Likewise.
15694         (isinf_test_data): Likewise.
15695         (isless_test_data): Likewise.
15696         (islessequal_test_data): Likewise.
15697         (islessgreater_test_data): Likewise.
15698         (isnan_test_data): Likewise.
15699         (isnormal_test_data): Likewise.
15700         (issignaling_test_data): Likewise.
15701         (isunordered_test_data): Likewise.
15702         (ldexp_test_data): Likewise.
15703         (lrint_test_data): Likewise.
15704         (lrint_test_data) [TEST_FLOAT]: Disable one test.
15705         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
15706         (lrint_tonearest_test_data): Test for "inexact" exceptions.
15707         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
15708         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
15709         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
15710         test input.
15711         (lrint_towardzero_test_data): Test for "inexact" exceptions.
15712         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
15713         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
15714         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
15715         that test input.
15716         (lrint_downward_test_data): Test for "inexact" exceptions.
15717         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
15718         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
15719         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
15720         test input.
15721         (lrint_upward_test_data): Test for "inexact" exceptions.
15722         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
15723         test input.
15724         (llrint_test_data): Test for "inexact" exceptions.
15725         (llrint_test_data) [TEST_FLOAT]: Disable one test.
15726         (llrint_tonearest_test_data): Test for "inexact" exceptions.
15727         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
15728         (llrint_towardzero_test_data): Test for "inexact" exceptions.
15729         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
15730         (llrint_downward_test_data): Test for "inexact" exceptions.
15731         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
15732         (llrint_upward_test_data): Test for "inexact" exceptions.
15733         (logb_test_data): Likewise.
15734         (logb_downward_test_data): Likewise.
15735         (nextafter_test_data): Likewise.
15736         (nexttoward_test_data): Likewise.
15737         (remainder_test_data): Likewise.
15738         (remquo_test_data): Likewise.
15739         (scalbn_test_data): Likewise.
15740         (scalbln_test_data): Likewise.
15741         (signbit_test_data): Likewise.
15742         (sqrt_test_data): Likewise.
15743         (significand_test_data): Likewise.
15744
15745 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
15746
15747         [BZ #15424]
15748         * benchtests/bench-modf.c (struct args): Mark arg0 as
15749         volatile.
15750         * scripts/bench.pl: Mark members of struct args as volatile.
15751
15752 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15753
15754         [BZ # 15497]
15755         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
15756         negative infinity on POWER6 or lower.
15757         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
15758
15759 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
15760
15761         [BZ #15442]
15762         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
15763         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
15764         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
15765         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
15766         (_FP_SETQNAN): New macro.
15767         (_FP_SETQNAN_SEMIRAW): Likewise.
15768         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
15769         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
15770         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
15771         (FP_EXTEND): Use _FP_FRAC_SNANP.
15772         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
15773         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
15774         into account.
15775         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
15776         New macro.
15777         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
15778         Likewise.
15779
15780 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
15781
15782         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
15783         with DIVIDE_BY_ZERO_EXCEPTION.
15784         (gamma_test_data): Likewise.
15785         (lgamma_test_data): Likewise.
15786         (log_test_data): Likewise.
15787         (log10_test_data): Likewise.
15788         (log2_test_data): Likewise.
15789         (tgamma_test_data): Likewise.
15790
15791         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
15792         (acos_test_tonearest): Likewise.
15793         (acos_test_towardzero): Likewise.
15794         (acos_test_downward): Likewise.
15795         (acos_test_upward): Likewise.
15796         (acosh_test): Likewise.
15797         (asin_test): Likewise.
15798         (asin_test_tonearest): Likewise.
15799         (asin_test_towardzero): Likewise.
15800         (asin_test_downward): Likewise.
15801         (asin_test_upward): Likewise.
15802         (asinh_test): Likewise.
15803         (atan_test): Likewise.
15804         (atanh_test): Likewise.
15805         (atan2_test): Likewise.
15806         (cabs_test): Likewise.
15807         (cacos_test): Likewise.
15808         (cacosh_test): Likewise.
15809         (casin_test): Likewise.
15810         (casinh_test): Likewise.
15811         (catan_test): Likewise.
15812         (catanh_test): Likewise.
15813         (cbrt_test): Likewise.
15814         (ccos_test): Likewise.
15815         (ccosh_test): Likewise.
15816         (cexp_test): Likewise.
15817         (clog_test): Likewise.
15818         (clog10_test): Likewise.
15819         (cos_test): Likewise.
15820         (cos_test_tonearest): Likewise.
15821         (cos_test_towardzero): Likewise.
15822         (cos_test_downward): Likewise.
15823         (cos_test_upward): Likewise.
15824         (cosh_test): Likewise.
15825         (cosh_test_tonearest): Likewise.
15826         (cosh_test_towardzero): Likewise.
15827         (cosh_test_downward): Likewise.
15828         (cosh_test_upward): Likewise.
15829         (cpow_test): Likewise.
15830         (csin_test): Likewise.
15831         (csinh_test): Likewise.
15832         (csqrt_test): Likewise.
15833         (ctan_test): Likewise.
15834         (ctan_test_tonearest): Likewise.
15835         (ctan_test_towardzero): Likewise.
15836         (ctan_test_downward): Likewise.
15837         (ctan_test_upward): Likewise.
15838         (ctanh_test): Likewise.
15839         (ctanh_test_tonearest): Likewise.
15840         (ctanh_test_towardzero): Likewise.
15841         (ctanh_test_downward): Likewise.
15842         (ctanh_test_upward): Likewise.
15843         (erf_test): Likewise.
15844         (erfc_test): Likewise.
15845         (exp_test): Likewise.
15846         (exp_test_tonearest): Likewise.
15847         (exp_test_towardzero): Likewise.
15848         (exp_test_downward): Likewise.
15849         (exp_test_upward): Likewise.
15850         (exp10_test): Likewise.
15851         (exp2_test): Likewise.
15852         (expm1_test): Likewise.
15853         (fmod_test): Likewise.
15854         (gamma_test): Likewise.
15855         (hypot_test): Likewise.
15856         (j0_test): Likewise.
15857         (j1_test): Likewise.
15858         (jn_test): Likewise.
15859         (lgamma_test): Likewise.
15860         (log_test): Likewise.
15861         (log10_test): Likewise.
15862         (log1p_test): Likewise.
15863         (log2_test): Likewise.
15864         (logb_test_downward): Likewise.
15865         (pow_test): Likewise.
15866         (pow_test_tonearest): Likewise.
15867         (pow_test_towardzero): Likewise.
15868         (pow_test_downward): Likewise.
15869         (pow_test_upward): Likewise.
15870         (remainder_test): Likewise.
15871         (remquo_test): Likewise.
15872         (sin_test): Likewise.
15873         (sin_test_tonearest): Likewise.
15874         (sin_test_towardzero): Likewise.
15875         (sin_test_downward): Likewise.
15876         (sin_test_upward): Likewise.
15877         (sincos_test): Likewise.
15878         (sinh_test): Likewise.
15879         (sinh_test_tonearest): Likewise.
15880         (sinh_test_towardzero): Likewise.
15881         (sinh_test_downward): Likewise.
15882         (sinh_test_upward): Likewise.
15883         (sqrt_test): Likewise.
15884         (tan_test): Likewise.
15885         (tan_test_tonearest): Likewise.
15886         (tan_test_towardzero): Likewise.
15887         (tan_test_downward): Likewise.
15888         (tan_test_upward): Likewise.
15889         (tanh_test): Likewise.
15890         (tgamma_test): Likewise.
15891         (y0_test): Likewise.
15892         (y1_test): Likewise.
15893         (yn_test): Likewise.
15894
15895         * math/gen-libm-test.pl (adjust_arg): Remove function.
15896         (special_function): Remove argument $in_func.  Only handle
15897         generating output for tables of tests, not inside functions.
15898         (parse_args): Likewise.
15899         (generate_testfile): Remove variable $in_func.  Update call to
15900         parse_args.
15901         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
15902         (MINUS_ZERO_INIT): Rename macro to minus_zero.
15903         (PLUS_INFTY_INIT): Rename macro to plus_infty.
15904         (MINUS_INFTY_INIT): Rename macro to minus_infty.
15905         (QNAN_VALUE_INIT): Rename macro to qnan_value.
15906         (MAX_VALUE_INIT): Rename macro to max_value.
15907         (MIN_VALUE_INIT): Rename macro to min_value.
15908         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
15909         (plus_zero): Remove variable.
15910         (minus_zero): Likewise.
15911         (plus_infty): Likewise.
15912         (minus_infty): Likewise.
15913         (qnan_value): Likewise.
15914         (max_value): Likewise.
15915         (min_value): Likewise.
15916         (min_subnorm_value): Likewise.
15917
15918 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15919
15920         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
15921         uint64_t or uint32_t usage.
15922         * crypt/sha256-block.c: Likewise.
15923         * crypt/sha256-crypt.c: Likewise.
15924         * crypt/sha256.c: Likewise.
15925         * crypt/sha512-block.c: Likewise.
15926         * crypt/sha512-crypt.c: Likewise.
15927         * crypt/sha512.c: Likewise.
15928         * debug/backtrace-tst.c: Likewise.
15929         * debug/pcprofiledump.c: Likewise.
15930         * elf/cache.c: Likewise.
15931         * elf/dl-cache.c: Likewise.
15932         * elf/dl-misc.c: Likewise.
15933         * elf/dl-profile.c: Likewise.
15934         * elf/dl-support.c: Likewise.
15935         * elf/ldconfig.c: Likewise.
15936         * elf/sprof.c: Likewise.
15937         * iconv/dummy-repertoire.c: Likewise.
15938         * iconv/iconv_charmap.c: Likewise.
15939         * iconv/skeleton.c: Likewise.
15940         * iconvdata/8bit-generic.c: Likewise.
15941         * iconvdata/cp737.h: Likewise.
15942         * iconvdata/cp775.h: Likewise.
15943         * iconvdata/ibm1008.h: Likewise.
15944         * iconvdata/ibm1025.h: Likewise.
15945         * iconvdata/ibm1046.h: Likewise.
15946         * iconvdata/ibm1097.h: Likewise.
15947         * iconvdata/ibm1112.h: Likewise.
15948         * iconvdata/ibm1122.h: Likewise.
15949         * iconvdata/ibm1123.h: Likewise.
15950         * iconvdata/ibm1124.h: Likewise.
15951         * iconvdata/ibm1129.h: Likewise.
15952         * iconvdata/ibm1130.h: Likewise.
15953         * iconvdata/ibm1132.h: Likewise.
15954         * iconvdata/ibm1133.h: Likewise.
15955         * iconvdata/ibm1137.h: Likewise.
15956         * iconvdata/ibm1140.h: Likewise.
15957         * iconvdata/ibm1141.h: Likewise.
15958         * iconvdata/ibm1142.h: Likewise.
15959         * iconvdata/ibm1143.h: Likewise.
15960         * iconvdata/ibm1144.h: Likewise.
15961         * iconvdata/ibm1145.h: Likewise.
15962         * iconvdata/ibm1146.h: Likewise.
15963         * iconvdata/ibm1147.h: Likewise.
15964         * iconvdata/ibm1148.h: Likewise.
15965         * iconvdata/ibm1149.h: Likewise.
15966         * iconvdata/ibm1153.h: Likewise.
15967         * iconvdata/ibm1154.h: Likewise.
15968         * iconvdata/ibm1155.h: Likewise.
15969         * iconvdata/ibm1156.h: Likewise.
15970         * iconvdata/ibm1157.h: Likewise.
15971         * iconvdata/ibm1158.h: Likewise.
15972         * iconvdata/ibm1160.h: Likewise.
15973         * iconvdata/ibm1161.h: Likewise.
15974         * iconvdata/ibm1162.h: Likewise.
15975         * iconvdata/ibm1163.h: Likewise.
15976         * iconvdata/ibm1164.h: Likewise.
15977         * iconvdata/ibm1166.h: Likewise.
15978         * iconvdata/ibm1167.h: Likewise.
15979         * iconvdata/ibm12712.h: Likewise.
15980         * iconvdata/ibm1390.h: Likewise.
15981         * iconvdata/ibm1399.h: Likewise.
15982         * iconvdata/ibm16804.h: Likewise.
15983         * iconvdata/ibm4517.h: Likewise.
15984         * iconvdata/ibm4899.h: Likewise.
15985         * iconvdata/ibm4909.h: Likewise.
15986         * iconvdata/ibm4971.h: Likewise.
15987         * iconvdata/ibm5347.h: Likewise.
15988         * iconvdata/ibm803.h: Likewise.
15989         * iconvdata/ibm856.h: Likewise.
15990         * iconvdata/ibm901.h: Likewise.
15991         * iconvdata/ibm902.h: Likewise.
15992         * iconvdata/ibm9030.h: Likewise.
15993         * iconvdata/ibm9066.h: Likewise.
15994         * iconvdata/ibm921.h: Likewise.
15995         * iconvdata/ibm922.h: Likewise.
15996         * iconvdata/ibm9448.h: Likewise.
15997         * iconvdata/isiri-3342.h: Likewise.
15998         * iconvdata/jis0201.h: Likewise.
15999         * include/link.h: Likewise.
16000         * include/netdb.h: Likewise.
16001         * inet/check_native.c: Likewise.
16002         * inet/check_pf.c: Likewise.
16003         * inet/getipv4sourcefilter.c: Likewise.
16004         * inet/getnameinfo.c: Likewise.
16005         * inet/getsourcefilter.c: Likewise.
16006         * inet/htonl.c: Likewise.
16007         * inet/setipv4sourcefilter.c: Likewise.
16008         * inet/setsourcefilter.c: Likewise.
16009         * inet/test-inet6_opt.c: Likewise.
16010         * inet/tst-network.c: Likewise.
16011         * locale/C-collate.c: Likewise.
16012         * locale/C-ctype.c: Likewise.
16013         * locale/C-time.c: Likewise.
16014         * locale/C-translit.h: Likewise.
16015         * locale/loadarchive.c: Likewise.
16016         * locale/programs/3level.h: Likewise.
16017         * locale/programs/charmap.c: Likewise.
16018         * locale/programs/charmap.h: Likewise.
16019         * locale/programs/ld-address.c: Likewise.
16020         * locale/programs/ld-collate.c: Likewise.
16021         * locale/programs/ld-ctype.c: Likewise.
16022         * locale/programs/ld-identification.c: Likewise.
16023         * locale/programs/ld-measurement.c: Likewise.
16024         * locale/programs/ld-messages.c: Likewise.
16025         * locale/programs/ld-monetary.c: Likewise.
16026         * locale/programs/ld-name.c: Likewise.
16027         * locale/programs/ld-numeric.c: Likewise.
16028         * locale/programs/ld-paper.c: Likewise.
16029         * locale/programs/ld-telephone.c: Likewise.
16030         * locale/programs/ld-time.c: Likewise.
16031         * locale/programs/linereader.c: Likewise.
16032         * locale/programs/locale.c: Likewise.
16033         * locale/programs/locarchive.c: Likewise.
16034         * locale/programs/locfile.h: Likewise.
16035         * locale/programs/repertoire.c: Likewise.
16036         * locale/programs/simple-hash.c: Likewise.
16037         * locale/programs/simple-hash.h: Likewise.
16038         * malloc/memusage.c: Likewise.
16039         * malloc/memusagestat.c: Likewise.
16040         * nis/nis_defaults.c: Likewise.
16041         * nis/nis_hash.c: Likewise.
16042         * nis/nis_print.c: Likewise.
16043         * nis/nis_xdr.c: Likewise.
16044         * nscd/connections.c: Likewise.
16045         * nscd/hstcache.c: Likewise.
16046         * nscd/nscd_gethst_r.c: Likewise.
16047         * nscd/nscd_getserv_r.c: Likewise.
16048         * nscd/nscd_helper.c: Likewise.
16049         * nscd/servicescache.c: Likewise.
16050         * nss/makedb.c: Likewise.
16051         * nss/nss_db/db-XXX.c: Likewise.
16052         * nss/nss_db/db-initgroups.c: Likewise.
16053         * nss/nss_db/db-netgrp.c: Likewise.
16054         * nss/nss_files/files-network.c: Likewise.
16055         * nss/nss_files/files-parse.c: Likewise.
16056         * posix/bug-regex5.c: Likewise.
16057         * posix/fnmatch_loop.c: Likewise.
16058         * posix/regcomp.c: Likewise.
16059         * posix/regexec.c: Likewise.
16060         * posix/tst-rfc3484-2.c: Likewise.
16061         * posix/tst-rfc3484-3.c: Likewise.
16062         * posix/tst-rfc3484.c: Likewise.
16063         * resolv/nss_dns/dns-canon.c: Likewise.
16064         * resolv/nss_dns/dns-network.c: Likewise.
16065         * resolv/res_init.c: Likewise.
16066         * resolv/res_mkquery.c: Likewise.
16067         * resolv/tst-aton.c: Likewise.
16068         * stdlib/cxa_atexit.c: Likewise.
16069         * stdlib/cxa_finalize.c: Likewise.
16070         * stdlib/gen-fpioconst.c: Likewise.
16071         * stdlib/strtol_l.c: Likewise.
16072         * string/tst-endian.c: Likewise.
16073         * sunrpc/auth_des.c: Likewise.
16074         * sunrpc/clnt_udp.c: Likewise.
16075         * sunrpc/rtime.c: Likewise.
16076         * sunrpc/svcauth_des.c: Likewise.
16077         * sunrpc/xdr.c: Likewise.
16078         * sunrpc/xdr_intXX_t.c: Likewise.
16079         * sunrpc/xdr_rec.c: Likewise.
16080         * sysdeps/generic/ldconfig.h: Likewise.
16081         * sysdeps/generic/ldsodefs.h: Likewise.
16082         * sysdeps/generic/memusage.h: Likewise.
16083         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
16084         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
16085         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
16086         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
16087         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16088         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
16089         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
16090         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
16091         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16092         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
16093         * sysdeps/posix/getaddrinfo.c: Likewise.
16094         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16095         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16096         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16097         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16098         * sysdeps/powerpc/test-gettimebase.c: Likewise.
16099         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
16100         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
16101         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
16102         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
16103         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
16104         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
16105         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
16106         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
16107         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
16108         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
16109         * sysdeps/x86_64/dl-tls.h: Likewise.
16110         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
16111         * time/alt_digit.c: Likewise.
16112         * time/era.c: Likewise.
16113         * wcsmbs/tst-c16c32-1.c: Likewise.
16114
16115 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
16116
16117         * math/libm-test.inc (struct test_sincos_data): New type.
16118         (RUN_TEST_LOOP_sincos): New macro.
16119         (sincos_test_data): New variable.
16120         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
16121
16122 2013-05-16  Richard Henderson  <rth@redhat.com>
16123
16124         * math/atest-exp2.c (LIMB64): New macro.
16125         (CONSTSZ): New macro.
16126         (mp_exp1, mp_exp_m1, mp_log2): New variables.
16127         (hexdig): Move ...
16128         (print_mpn_fp): ... to function scope.
16129         (read_mpn_hex): Remove.
16130         (get_log2): Remove.
16131         (exp2_mpn): Use mp_log2.
16132         (main): Use mp_exp1.
16133
16134 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
16135
16136         * math/libm-test.inc: Remove comment about not testing "inexact"
16137         exceptions.
16138         (INEXACT_EXCEPTION): New macro.
16139         (NO_INEXACT_EXCEPTION): Likewise.
16140         (INVALID_EXCEPTION_OK): Update value.
16141         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
16142         (OVERFLOW_EXCEPTION_OK): Likewise.
16143         (UNDERFLOW_EXCEPTION_OK): Likewise.
16144         (IGNORE_ZERO_INF_SIGN): Likewise.
16145         (ERRNO_UNCHANGED): Likewise.
16146         (ERRNO_EDOM): Likewise.
16147         (ERRNO_ERANGE): Likewise.
16148         (test_exceptions): Handle testing "inexact" exceptions.
16149         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
16150         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
16151         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
16152         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
16153         INEXACT_EXCEPTION.
16154         (rint_towardzero_test_data): Likewise.
16155         (rint_downward_test_data): Likewise.
16156         (rint_upward_test_data): Likewise.
16157
16158         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
16159         with OVERFLOW_EXCEPTION.
16160         (exp10_test_data): Likewise.
16161         (exp2_test_data): Likewise.
16162         (expm1_test_data): Likewise.
16163         (lgamma_test_data): Likewise.
16164         (pow_test_data): Likewise.
16165         (tgamma_test_data): Likewise.
16166         (yn_test_data): Remove duplicate test of overflow.
16167
16168         * math/libm-test.inc (struct test_cc_c_data): New type.
16169         (RUN_TEST_LOOP_cc_c): New macro.
16170         (cpow_test_data): New variable.
16171         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
16172
16173         * math/libm-test.inc (struct test_f_L_data): New type.
16174         (RUN_TEST_LOOP_f_L): New macro.
16175         (llrint_test_data): New variable.
16176         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
16177         (llrint_tonearest_test_data): New variable.
16178         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
16179         (llrint_towardzero_test_data): New variable.
16180         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
16181         (llrint_downward_test_data): New variable.
16182         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
16183         (llrint_upward_test_data): New variable.
16184         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
16185         (llround_test_data): New variable.
16186         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
16187
16188 2013-05-13  Peter Collingbourne  <pcc@google.com>
16189
16190         * math/atest-exp2.c (get_log2): Remove const attribute.
16191
16192 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
16193
16194         * math/libm-test.inc (struct test_f_l_data): New type.
16195         (RUN_TEST_LOOP_f_l): New macro.
16196         (lrint_test_data): New variable.
16197         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
16198         (lrint_tonearest_test_data): New variable.
16199         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
16200         (lrint_towardzero_test_data): New variable.
16201         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
16202         (lrint_downward_test_data): New variable.
16203         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
16204         (lrint_upward_test_data): New variable.
16205         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
16206         (lround_test_data): New variable.
16207         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
16208
16209 2013-05-15  Peter Collingbourne  <pcc@google.com>
16210
16211         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
16212         (EXTRACT_WORDS64) Use where appropriate.
16213         (INSERT_WORDS64) Likewise.
16214
16215         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
16216         constraints with x constraints.
16217         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
16218
16219         * malloc/obstack.c (_obstack_compat): Add initializer.
16220
16221 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
16222
16223         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
16224         si_trapno and add si_addr_lsb to _sifields.sigfault.
16225         (si_trapno): Remove macro.
16226         (si_addr_lsb): Define new macro.
16227         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
16228
16229 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
16230
16231         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
16232         instead of TEST_f_l.
16233         (llrint_test_tonearest): Likewise.
16234         (llrint_test_towardzero): Likewise.
16235         (llrint_test_downward): Likewise.
16236         (llrint_test_upward): Likewise.
16237         (llround_test): Likewise.
16238
16239         * math/libm-test.inc (struct test_f_i_data): Add comment.
16240         (RUN_TEST_LOOP_f_b): New macro.
16241         (RUN_TEST_LOOP_f_b_tg): Likewise.
16242         (finite_test_data): New variable.
16243         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
16244         (isfinite_test_data): New variable.
16245         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
16246         (isinf_test_data): New variable.
16247         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
16248         (isnan_test_data): New variable.
16249         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
16250         (isnormal_test_data): New variable.
16251         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
16252         (issignaling_test_data): New variable.
16253         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
16254         (signbit_test_data): New variable.
16255         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
16256
16257         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
16258         with INVALID_EXCEPTION.
16259         (acosh_test_data): Likewise.
16260         (asin_test_data): Likewise.
16261         (atanh_test_data): Likewise.
16262         (fmod_test_data): Likewise.
16263         (log_test_data): Likewise.
16264         (log10_test_data): Likewise.
16265         (log2_test_data): Likewise.
16266         (pow_test_data): Likewise.
16267         (sqrt_test_data): Likewise.
16268         (y0_test_data): Likewise.
16269         (y1_test_data): Likewise.
16270         (yn_test_data): Likewise.
16271
16272         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
16273         function contents.
16274
16275         * math/libm-test.inc (struct test_ff_i_data): New type.
16276         (RUN_TEST_LOOP_ff_i_tg): New macro.
16277         (isgreater_test_data): New variable.
16278         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
16279         (isgreaterequal_test_data): New variable.
16280         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
16281         (isless_test_data): New variable.
16282         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
16283         (islessequal_test_data): New variable.
16284         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
16285         (islessgreater_test_data): New variable.
16286         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
16287         (isunordered_test_data): New variable.
16288         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
16289
16290 2013-05-14  David S. Miller  <davem@davemloft.net>
16291
16292         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16293
16294 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
16295
16296         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
16297
16298         * math/libm-test.inc (struct test_fF_f1_data): Change type of
16299         extra_test to int.
16300         (struct test_f_i_data): Change type of max_ulp to int.
16301
16302         * math/libm-test.inc (test_ffI_f1_data): New type.
16303         (RUN_TEST_LOOP_ffI_f1): New macro.
16304         (remquo_test_data): New variable.
16305         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
16306
16307         * setjmp/tst-setjmp-fp.c: New file.
16308         * setjmp/Makefile (tests): Add tst-setjmp-fp.
16309         (link-libm): New variable.
16310         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
16311
16312         * math/libm-test.inc (struct test_f_i_data): New type.
16313         (RUN_TEST_LOOP_f_i): New macro.
16314         (RUN_TEST_LOOP_f_i_tg): Likewise.
16315         (fpclassify_test_data): New variable.
16316         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
16317         (ilogb_test_data): New variable.
16318         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
16319
16320         * math/libm-test.inc (scalbln_test): Correct function name in END
16321         call.
16322
16323         * math/libm-test.inc (struct test_f_f1_data): Add comment.
16324         (RUN_TEST_LOOP_fI_f1): New macro.
16325         (frexp_test_data): New variable.
16326         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
16327
16328         * math/libm-test.inc (struct test_fF_f1_data): New type.
16329         (RUN_TEST_LOOP_fF_f1): New macro.
16330         (modf_test_data): New variable.
16331         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
16332
16333         * math/libm-test.inc (struct test_f_f1_data): New type.
16334         (RUN_TEST_LOOP_f_f1): New macro.
16335         (gamma_test_data): New variable.
16336         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
16337         (lgamma_test_data): New variable.
16338         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
16339
16340 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
16341
16342         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
16343         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
16344         (main): Comment "tls" pseudo-hwcap.
16345
16346 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
16347
16348         * math/libm-test.inc (struct test_fl_f_data): New type.
16349         (RUN_TEST_LOOP_fl_f): New variable.
16350         (scalbln_test_data): New variable.
16351         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
16352
16353         * math/libm-test.inc (struct test_fi_f_data): New type.
16354         (RUN_TEST_LOOP_fi_f): New macro.
16355         (ldexp_test_data): New variable.
16356         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
16357         (scalbn_test_data): New variable.
16358         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
16359
16360         * math/libm-test.inc (struct test_c_f_data): New type.
16361         (RUN_TEST_LOOP_c_f): New macro.
16362         (cabs_test_data): New variable.
16363         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
16364         (carg_test_data): New variable.
16365         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
16366         (cimag_test_data): New variable.
16367         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
16368         (creal_test_data): New variable.
16369         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
16370
16371         * math/libm-test.inc (struct test_if_f_data): New type.
16372         (RUN_TEST_LOOP_if_f): New macro.
16373         (jn_test_data): New variable.
16374         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
16375         (yn_test_data): New variable.
16376         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
16377
16378         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
16379
16380 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16381
16382         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
16383         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
16384
16385 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
16386
16387         * benchtests/Makefile (CPPFLAGS-nonlib): Add
16388         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
16389         (bench-deps): Add bench-timing.h.
16390         * benchtests-bench-skeleton.c: Include bench-timing.h.
16391         (main): Use TIMING_* macros instead of clock_gettime.
16392         * benchtests/bench-timing.h: New file.
16393
16394         [BZ #14582]
16395         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
16396         Renamed from _LIB_VERSION.
16397         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
16398
16399 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
16400
16401         * math/libm-test.inc (struct test_fff_f_data): New type.
16402         (RUN_TEST_LOOP_fff_f): New macro.
16403         (fma_test_data): New variable.
16404         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
16405         (fma_towardzero_test_data): New variable.
16406         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
16407         (fma_downward_test_data): New variable.
16408         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
16409         (fma_upward_test_data): New variable.
16410         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
16411
16412         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
16413         (struct test_c_c_data): New type.
16414         (RUN_TEST_LOOP_c_c): New macro.
16415         (cacos_test_data): New variable.
16416         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
16417         (cacosh_test_data): New variable.
16418         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
16419         (casin_test_data): New variable.
16420         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
16421         (casinh_test_data): New variable.
16422         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
16423         (catan_test_data): New variable.
16424         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
16425         (catanh_test_data): New variable.
16426         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
16427         (ccos_test_data): New variable.
16428         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
16429         (ccosh_test_data): New variable.
16430         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
16431         (cexp_test_data): New variable.
16432         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
16433         (clog_test_data): New variable.
16434         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
16435         (clog10_test_data): New variable.
16436         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
16437         (conj_test_data): New variable.
16438         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
16439         (cproj_test_data): New variable.
16440         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
16441         (csin_test_data): New variable.
16442         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
16443         (csinh_test_data): New variable.
16444         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
16445         (csqrt_test_data): New variable.
16446         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
16447         (ctan_test_data): New variable.
16448         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
16449         (ctan_tonearest_test_data): New variable.
16450         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
16451         (ctan_towardzero_test_data): New variable.
16452         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
16453         (ctan_downward_test_data): New variable.
16454         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
16455         (ctan_upward_test_data): New variable.
16456         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
16457         (ctanh_test_data): New variable.
16458         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
16459         (ctanh_tonearest_test_data): New variable.
16460         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
16461         (ctanh_towardzero_test_data): New variable.
16462         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
16463         (ctanh_downward_test_data): New variable.
16464         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
16465         (ctanh_upward_test_data): New variable.
16466         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
16467         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
16468         of BUILD_COMPLEX.
16469
16470         * math/libm-test.inc (struct test_ff_f_data): New type.
16471         (struct test_ff_f_data_nexttoward): Likewise.
16472         (RUN_TEST_LOOP_2_f): New macro.
16473         (RUN_TEST_LOOP_ff_f): Likewise.
16474         (atan2_test_data): New variable.
16475         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
16476         (copysign_test_data): New variable.
16477         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
16478         (fdim_test_data): New variable.
16479         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
16480         (fmax_test_data): New variable.
16481         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
16482         (fmin_test_data): New variable.
16483         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
16484         (fmod_test_data): New variable.
16485         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
16486         (hypot_test_data): New variable.
16487         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
16488         (nextafter_test_data): New variable.
16489         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
16490         (nexttoward_test_data): New variable.
16491         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
16492         (pow_test_data): New variable.
16493         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
16494         (pow_tonearest_test_data): New variable.
16495         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
16496         (pow_towardzero_test_data): New variable.
16497         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
16498         (pow_downward_test_data): New variable.
16499         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
16500         (pow_upward_test_data): New variable.
16501         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
16502         (remainder_test_data): New variable.
16503         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
16504         (scalb_test_data): New variable.
16505         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
16506         * sysdeps/i386/fpu/libm-test-ulps: Update.
16507
16508 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
16509
16510         * math/libm-test.inc (fma_test): Use max_value instead of local
16511         variable fltmax.
16512         (nextafter_test): Likewise.
16513
16514         * math/libm-test.inc (acos_towardzero_test_data): New variable.
16515         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16516         (acos_downward_test_data): New variable.
16517         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16518         (acos_upward_test_data): New variable.
16519         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16520         (acosh_test_data): New variable.
16521         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
16522         (asin_test_data): New variable.
16523         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
16524         (asin_tonearest_test_data): New variable.
16525         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16526         (asin_towardzero_test_data): New variable.
16527         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16528         (asin_downward_test_data): New variable.
16529         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16530         (asin_upward_test_data): New variable.
16531         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16532         (asinh_test_data): New variable.
16533         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
16534         (atan_test_data): New variable.
16535         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
16536         (atanh_test_data): New variable.
16537         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
16538         (cbrt_test_data): New variable.
16539         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
16540         (ceil_test_data): New variable.
16541         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
16542         (cos_test_data): New variable.
16543         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
16544         (cos_tonearest_test_data): New variable.
16545         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16546         (cos_towardzero_test_data): New variable.
16547         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16548         (cos_downward_test_data): New variable.
16549         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16550         (cos_upward_test_data): New variable.
16551         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16552         (cosh_test_data): New variable.
16553         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
16554         (cosh_tonearest_test_data): New variable.
16555         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16556         (cosh_towardzero_test_data): New variable.
16557         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16558         (cosh_downward_test_data): New variable.
16559         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16560         (cosh_upward_test_data): New variable.
16561         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16562         (erf_test_data): New variable.
16563         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
16564         (erfc_test_data): New variable.
16565         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
16566         (exp_test_data): New variable.
16567         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
16568         (exp_tonearest_test_data): New variable.
16569         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16570         (exp_towardzero_test_data): New variable.
16571         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16572         (exp_downward_test_data): New variable.
16573         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16574         (exp_upward_test_data): New variable.
16575         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16576         (exp10_test_data): New variable.
16577         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
16578         (exp2_test_data): New variable.
16579         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
16580         (expm1_test_data): New variable.
16581         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
16582         (fabs_test_data): New variable.
16583         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
16584         (floor_test_data): New variable.
16585         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
16586         (j0_test_data): New variable.
16587         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
16588         (j1_test_data): New variable.
16589         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
16590         (log_test_data): New variable.
16591         (log_test): Run tests with RUN_TEST_LOOP_f_f.
16592         (log10_test_data): New variable.
16593         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
16594         (log1p_test_data): New variable.
16595         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
16596         (log2_test_data): New variable.
16597         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
16598         (logb_test_data): New variable.
16599         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
16600         (logb_downward_test_data): New variable.
16601         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16602         (nearbyint_test_data): New variable.
16603         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
16604         (rint_test_data): New variable.
16605         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
16606         (rint_tonearest_test_data): New variable.
16607         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16608         (rint_towardzero_test_data): New variable.
16609         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16610         (rint_downward_test_data): New variable.
16611         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16612         (rint_upward_test_data): New variable.
16613         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16614         (round_test_data): New variable.
16615         (round_test): Run tests with RUN_TEST_LOOP_f_f.
16616         (sin_test_data): New variable.
16617         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
16618         (sin_tonearest_test_data): New variable.
16619         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16620         (sin_towardzero_test_data): New variable.
16621         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16622         (sin_downward_test_data): New variable.
16623         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16624         (sin_upward_test_data): New variable.
16625         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16626         (sinh_test_data): New variable.
16627         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
16628         (sinh_tonearest_test_data): New variable.
16629         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16630         (sinh_towardzero_test_data): New variable.
16631         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16632         (sinh_downward_test_data): New variable.
16633         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16634         (sinh_upward_test_data): New variable.
16635         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16636         (sqrt_test_data): New variable.
16637         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
16638         (tan_test_data): New variable.
16639         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
16640         (tan_tonearest_test_data): New variable.
16641         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16642         (tan_towardzero_test_data): New variable.
16643         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
16644         (tan_downward_test_data): New variable.
16645         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
16646         (tan_upward_test_data): New variable.
16647         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
16648         (tanh_test_data): New variable.
16649         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
16650         (tgamma_test_data): New variable.
16651         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
16652         (trunc_test_data): New variable.
16653         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
16654         (y0_test_data): New variable.
16655         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
16656         (y1_test_data): New variable.
16657         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
16658         (significand_test_data): New variable.
16659         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
16660
16661 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
16662
16663         [BZ #12387]
16664         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
16665
16666 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16667
16668         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
16669
16670 2013-05-10  Andreas Jaeger  <aj@suse.de>
16671
16672         [BZ #15448]
16673         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
16674         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
16675
16676 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
16677
16678         * math/gen-libm-test.pl (adjust_arg): New function.
16679         (special_functions): Handle generating output in both functions
16680         and arrays.
16681         (parse_args): Likewise.
16682         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
16683         $in_func argument to parse_args.
16684         * math/libm-test.inc (struct test_f_f_data): New type.
16685         (IF_ROUND_INIT_): New macro.
16686         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
16687         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
16688         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
16689         (IF_ROUND_INIT_FE_UPWARD): Likewise.
16690         (ROUND_RESTORE_): Likewise.
16691         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
16692         (ROUND_RESTORE_FE_TONEAREST): Likewise.
16693         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
16694         (ROUND_RESTORE_FE_UPWARD): Likewise.
16695         (RUN_TEST_LOOP_f_f): New macro.
16696         (acos_test_data): New variable.
16697         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
16698         (acos_tonearest_test_data): New variable.
16699         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
16700
16701 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16702
16703         * benchtests/bench-skeleton.c (startup): Fix coding style.
16704
16705 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
16706
16707         [BZ #6809]
16708         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
16709         negative infinity argument.
16710         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
16711         negative infinity argument.
16712         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
16713         negative infinity argument.
16714         * math/libm-test.inc (tgamma_test): Expect errno to be set for
16715         domain errors.
16716
16717 2013-05-10  Florian Weimer  <fweimer@redhat.com>
16718
16719         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
16720         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
16721         * iconv/iconv_prog.c (main): Likewise.
16722         * locale/programs/charmap-dir.c (charmap_readdir)
16723         (fopen_uncompressed): Likewise.
16724         * locale/programs/locfile.c (siblings_uncached)
16725         (write_locale_data): Use lstat64 instead of lstat.
16726         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
16727         stat.
16728
16729 2013-05-10  Andreas Jaeger  <aj@suse.de>
16730
16731         [BZ #15395]
16732         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
16733         localization.
16734         Include <locale.h>.
16735
16736 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
16737
16738         * elf/dl-close.c (_dl_close_worker): Add comments.
16739
16740 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
16741
16742         [BZ #15359]
16743         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
16744         high part of pi/2.
16745         (__ieee754_rem_pio2l): Update comments.
16746
16747         [BZ #15429]
16748         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
16749         high part of pi/2.
16750         (__ieee754_rem_pio2l): Update comments.
16751
16752         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
16753         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
16754
16755         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
16756         M_PI_4l.
16757
16758         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
16759         (M_PI_34_LOG10El): Likewise.
16760         (M_PI2_LOG10El): Likewise.
16761         (M_PI4_LOG10El): Likewise.
16762         (M_PI_LOG10El): Likewise.
16763
16764 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16765
16766         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16767
16768 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
16769
16770         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
16771         (MINUS_ZERO_INIT): Likewise.
16772         (PLUS_INFTY_INIT): Likewise.
16773         (MINUS_INFTY_INIT): Likewise.
16774         (QNAN_VALUE_INIT): Likewise.
16775         (MAX_VALUE_INIT): Likewise.
16776         (MIN_VALUE_INIT): Likewise.
16777         (MIN_SUBNORM_VALUE_INIT): Likewise.
16778         (plus_zero): Initialize with PLUS_ZERO_INIT.
16779         (minus_zero): Initialize with MINUS_ZERO_INIT.
16780         (plus_infty): Initialize with PLUS_INFTY_INIT.
16781         (minus_infty): Initialize with MINUS_INFTY_INIT.
16782         (qnan_value): Initialize with QNAN_VALUE_INIT.
16783         (max_value): Initialize with MAX_VALUE_INIT.
16784         (min_value): Initialize with MIN_VALUE_INIT.
16785         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
16786
16787         * math/libm-test.inc (RUN_TEST_if_f): New macro.
16788         (jn_test): Use TEST_if_f instead of TEST_ff_f.
16789         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
16790         (yn_test): Use TEST_if_f instead of TEST_ff_f.
16791
16792         * math/libm-test.inc (RUN_TEST_f_f): New macro.
16793         (RUN_TEST_2_f): Likewise.
16794         (RUN_TEST_ff_f): Likewise.
16795         (RUN_TEST_fi_f): Likewise.
16796         (RUN_TEST_fl_f): Likewise.
16797         (RUN_TEST_fff_f): Likewise.
16798         (RUN_TEST_c_f): Likewise.
16799         (RUN_TEST_f_f1): Likewise.
16800         (RUN_TEST_fF_f1): Likewise.
16801         (RUN_TEST_fI_f1): Likewise.
16802         (RUN_TEST_ffI_f1): Likewise.
16803         (RUN_TEST_c_c): Likewise.
16804         (RUN_TEST_cc_c): Likewise.
16805         (RUN_TEST_f_i): Likewise.
16806         (RUN_TEST_f_i_tg): Likewise.
16807         (RUN_TEST_ff_i_tg): Likewise.
16808         (RUN_TEST_f_b): Likewise.
16809         (RUN_TEST_f_b_tg): Likewise.
16810         (RUN_TEST_f_l): Likewise.
16811         (RUN_TEST_f_L): Likewise.
16812         (RUN_TEST_sincos): Likewise.
16813         * math/gen-libm-test.pl (new_test): Take new argument to indicate
16814         whether to show exceptions.  Do not include ");\n" in return
16815         value.
16816         (special_functions): Output call to RUN_TEST_sincos instead of
16817         check_float calls.  Update calls to new_test.
16818         (parse_args): Output call to single RUN_TEST_* macro instead of
16819         check_* calls and other assignments.  Update calls to new_test.
16820
16821         [BZ #2546]
16822         [BZ #2560]
16823         [BZ #5159]
16824         [BZ #15426]
16825         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
16826         input to result for tgamma overflow.
16827         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
16828         (gamma_coeff): New variable.
16829         (NCOEFF): New macro.
16830         (gamma_positive): New function.
16831         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
16832         underflow here.  Use gamma_positive instead of exp (lgamma) for
16833         other arguments.
16834         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
16835         (gamma_coeff): New variable.
16836         (NCOEFF): New macro.
16837         (gammaf_positive): New function.
16838         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
16839         underflow here.  Use gamma_positive instead of exp (lgamma) for
16840         other arguments.
16841         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
16842         (gamma_coeff): New variable.
16843         (NCOEFF): New macro.
16844         (gammal_positive): New function.
16845         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
16846         underflow here.  Use gamma_positive instead of exp (lgamma) for
16847         other arguments.
16848         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
16849         (gamma_coeff): New variable.
16850         (NCOEFF): New macro.
16851         (gammal_positive): New function.
16852         (__ieee754_gammal_r): Handle positive infinity, overflow and
16853         underflow here.  Handle NaN the same as positive infinity.  Remove
16854         check x < 0xffffffff for negative integers.  Use gamma_positive
16855         instead of exp (lgamma) for other arguments.
16856         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
16857         (gamma_coeff): New variable.
16858         (NCOEFF): New macro.
16859         (gammal_positive): New function.
16860         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
16861         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
16862         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
16863         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
16864         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
16865         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
16866         * sysdeps/generic/math_private.h (__gamma_productf): New
16867         prototype.
16868         (__gamma_product): Likewise.
16869         (__gamma_productl): Likewise.
16870         * math/Makefile (libm-calls): Add gamma_product.
16871         * math/libm-test.inc (tgamma_test): Add more tests.
16872         * sysdeps/i386/fpu/libm-test-ulps: Update.
16873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16874
16875 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
16876
16877         * benchtests/bench-skeleton.c (main): Preheat CPU.
16878
16879 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
16880
16881         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
16882
16883 2013-05-07  Roland McGrath  <roland@hack.frob.com>
16884
16885         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
16886         and _dl_skip_args_internal.
16887
16888 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
16889
16890         * manual/message.texi (Message Translation): Talk about users.
16891         Message to key mapping impacts design.
16892
16893 2013-05-06  Roland McGrath  <roland@hack.frob.com>
16894
16895         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
16896
16897         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
16898
16899         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
16900         * sysdeps/wordsize-64/glob64.c: ... here.
16901
16902         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
16903         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
16904         New macros.
16905
16906         * debug/getlogin_r_chk.c: Moved to ...
16907         * login/getlogin_r_chk.c: ... here.
16908         * debug/Makefile (routines): Move getlogin_r_chk to ...
16909         * login/Makefile (routines): ... here.
16910         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
16911         * login/Versions (libc: GLIBC_2.4): ... here.
16912
16913         * io/poll.c (__poll): Renamed from poll.
16914         Add libc_hidden_def.
16915         (poll): Define as weak alias.
16916
16917         * debug/ptsname_r_chk.c: Moved to ...
16918         * login/ptsname_r_chk.c: ... here.
16919         * debug/Makefile (routines): Move ptsname_r_chk to ...
16920         * login/Makefile (routines): ... here.
16921         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
16922         * login/Versions (libc: GLIBC_2.4): ... here.
16923
16924         * posix/getlogin.c: Moved to ...
16925         * login/getlogin.c: ... here.
16926         * posix/getlogin_r.c: Moved to ...
16927         * login/getlogin_r.c: ... here.
16928         * posix/getlogin_r.c: Moved to ...
16929         * login/getlogin_r.c: ... here.
16930         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
16931         * login/Makefile (routines): ... here.
16932         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
16933         * login/Versions (libc: GLIBC_2.0): ... here.
16934
16935         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
16936         (setrlimit): Define as weak alias.
16937
16938         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
16939         Call __ names for open, ftruncate, and close.
16940         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
16941         (truncate): Define as weak alias.
16942
16943 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
16944
16945         * math/gen-libm-test.pl (parse_args): Initialize x before each
16946         test of frexp, modf and remquo.
16947
16948         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
16949         test signgam value.
16950
16951 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16952
16953         [BZ #15418]
16954         [BZ #15419]
16955         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
16956         internal tests.
16957         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16958
16959 2013-05-06  Roland McGrath  <roland@hack.frob.com>
16960
16961         * elf/dl-writev.h: New file.
16962         * elf/dl-misc.c: Include it.
16963         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
16964         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
16965
16966 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
16967
16968         * math/libm-test.inc (noXFails): Remove variable.
16969         (noXPasses): Likewise.
16970         (BUILD_COMPLEX_INT): Remove macro.
16971         (print_screen): Remove xfail argument.
16972         (print_screen_max_error): Likewise.
16973         (update_stats): Likewise.
16974         (print_max_error): Likewise.  Update calls to other affected
16975         functions.
16976         (print_complex_max_error): Likewise.
16977         (test_single_exception): Update calls to print_screen.
16978         (test_single_errno): Likewise.
16979         (check_float_internal): Remove xfail argument.  Update calls to
16980         other affected functions.
16981         (check_float): Likewise.
16982         (check_complex): Likewise.
16983         (check_int): Likewise.
16984         (check_long): Likewise.
16985         (check_bool): Likewise.
16986         (check_longlong): Likewise.
16987         (main): Don't print noXFails and noXPasses.
16988         * math/gen-libm-test.pl (top level): Don't mention expected
16989         failure handling in comment.
16990         (new_test): Don't handle expected failures.
16991         (parse_args): Don't mention expected failure handling in comment.
16992         (generate_testfile): Don't handle expected failures.
16993         (parse_ulps): Likewise.
16994         (print_ulps_file): Likewise.
16995         (get_failure): Remove function.
16996         (output_test): Don't handle expected failures.
16997         * make/README.libm-test: Don't mention expected failure handling.
16998
16999         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
17000         (minus_zero): Likewise.
17001         (plus_infty): Likewise.
17002         (minus_infty): Likewise.
17003         (qnan_value): Likewise.
17004         (max_value): Likewise.
17005         (min_value): Likewise.
17006         (min_subnorm_value): Likewise.
17007         (initialize): Do not initialize those variables dynamically.
17008
17009 2013-05-03  Roland McGrath  <roland@hack.frob.com>
17010
17011         * io/open.c (__open_2): Moved to ...
17012         * io/open_2.c: ... this new file.
17013         * io/open64.c (__open64_2): Moved to ...
17014         * io/open64_2.c: ... this new file.
17015         * io/openat.c (__openat_2): Moved to ...
17016         * io/openat_2.c: ... this new file.
17017         * io/openat64.c (__openat64_2): Moved to ...
17018         * io/openat64_2.c: ... this new file.
17019         * io/Makefile (routines): Add them.
17020         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
17021         * sysdeps/unix/sysv/linux/open_2.c: File removed.
17022         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
17023         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
17024         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
17025         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
17026         (__openat64): Add hidden_ver.
17027         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
17028         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
17029
17030         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
17031         Separately conditionalize setting of GLRO(dl_sysinfo) so
17032         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
17033         as well, but the actual setting is only under [NEED_DL_SYSINFO].
17034
17035 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17036
17037         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
17038         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
17039         definition.
17040         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
17041         * sysdeps/unix/sysv/linux/powerpc/init-first.c
17042         (_libc_vdso_platform_setup): Add __vdso_time initialization.
17043         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
17044         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
17045
17046 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
17047
17048         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
17049         test signgam value.
17050
17051         * math/libm-test.inc (hypot_test): Do not use
17052         IGNORE_ZERO_INF_SIGN.
17053
17054 2013-05-03  Andreas Jaeger  <aj@suse.de>
17055
17056         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
17057         Linux 3.9.
17058         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
17059         (PF_MAX): Adjust for VSOCK change.
17060
17061 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17062
17063         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17064
17065 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
17066
17067         [BZ #15264]
17068         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
17069         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
17070         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
17071
17072 2013-05-02  David S. Miller  <davem@davemloft.net>
17073
17074         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17075
17076 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
17077
17078         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
17079
17080 2013-05-01  Roland McGrath  <roland@hack.frob.com>
17081
17082         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
17083
17084 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
17085
17086         [BZ #14952]
17087         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
17088         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
17089         Use __attribute__ ((__gnu_inline__)).
17090         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
17091         Don't use __attribute__ ((__gnu_inline__)).
17092
17093 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
17094
17095         [BZ #15423]
17096         * math/s_catan.c (__catan): Handle small real or imaginary part of
17097         input specially to avoid spurious underflow.
17098         * math/s_catanf.c (__catanf): Likewise.
17099         * math/s_catanh.c (__catanh): Likewise.
17100         * math/s_catanhf.c (__catanhf): Likewise.
17101         * math/s_catanhl.c (__catanhl): Likewise.
17102         * math/s_catanl.c (__catanl): Likewise.
17103         * math/libm-test.inc (catan_test): Add more tests.
17104         (catanh_test): Likewise.
17105         * sysdeps/i386/fpu/libm-test-ulps: Update.
17106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17107
17108 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17109
17110         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17111
17112 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
17113
17114         [BZ #15416]
17115         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
17116         accurately for denominator in atan2.
17117         * math/s_catanf.c (__catanf): Likewise.
17118         * math/s_catanh.c (__catanh): Likewise.
17119         * math/s_catanhf.c (__catanhf): Likewise.
17120         * math/s_catanhl.c (__catanhl): Likewise.
17121         * math/s_catanl.c (__catanl): Likewise.
17122         * math/libm-test.inc (catan_test): Add more tests.
17123         (catanh_test): Likewise.
17124         * sysdeps/i386/fpu/libm-test-ulps: Update.
17125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17126
17127 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17128
17129         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
17130
17131         * benchtests/Makefile (bench): Remove slow benchmarks.
17132         * benchtests/atan-inputs: Add slow benchmark inputs.
17133         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
17134         (BENCH_FUNC): Accept variant offset.
17135         (VARIANT): Define.
17136         * benchtests/bench-skeleton.c (main): Run benchmark for each
17137         variant.
17138         * benchtests/cos-inputs: Add slow benchmark inputs.
17139         * benchtests/exp-inputs: Likewise.
17140         * benchtests/pow-inputs: Likewise.
17141         * benchtests/sin-inputs: Likewise.
17142         * benchtests/slowatan-inputs: Remove.
17143         * benchtests/slowatan.c: Remove.
17144         * benchtests/slowcos-inputs: Remove.
17145         * benchtests/slowcos.c: Remove.
17146         * benchtests/slowexp-inputs: Remove.
17147         * benchtests/slowexp.c: Remove.
17148         * benchtests/slowpow-inputs: Remove.
17149         * benchtests/slowpow.c: Remove.
17150         * benchtests/slowsin-inputs: Remove.
17151         * benchtests/slowsin.c: Remove.
17152         * benchtests/slowtan-inputs: Remove.
17153         * benchtests/slowtan.c: Remove.
17154         * benchtests/tan-inputs: Add slow benchmark inputs.
17155         * scripts/bench.pl: Parse comments and directives.
17156
17157         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
17158         in CPPFLAGS.
17159         ($(objpfx)bench-%.c): Remove *-ITER.
17160         * benchtests/bench-modf.c: Remove definition of ITER.
17161         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
17162         (main): Loop for DURATION seconds instead of fixed number of
17163         iterations.
17164         * scripts/bench.pl: Don't expect iterations in parameters.
17165
17166 2013-04-29  Roland McGrath  <roland@hack.frob.com>
17167
17168         * io/fchdir.c (__fchdir): Renamed from fchdir.
17169         (fchdir): Define as weak alias.
17170
17171 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
17172
17173         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
17174         (ERRNO_EDOM): Likewise.
17175         (ERRNO_ERANGE): Likewise.
17176         (noErrnoTests): New variable.
17177         (init_max_error): Set errno to 0.
17178         (test_single_errno): New function.
17179         (test_errno): Likewise.
17180         (check_float_internal): Call test_errno.  Set errno to 0.
17181         (check_complex): Refer to errno tests in comment.
17182         (check_int): Call test_errno.  Set errno to 0.
17183         (check_long): Likewise.
17184         (check_bool): Likewise.
17185         (check_longlong): Likewise.
17186         (cos_test): Use ERRNO_* flags for errno tests instead of
17187         check_int.
17188         (expm1_test): Likewise.
17189         (fmod_test): Likewise.
17190         (ilogb_test): Likewise.
17191         (lgamma_test): Likewise.
17192         (pow_test): Likewise.
17193         (remainder_test): Likewise.
17194         (sin_test): Likewise.
17195         (tan_test): Likewise.
17196         (yn_test): Likewise.
17197         (initialize): Set errno to 0.
17198         (main): Print number of errno tests.
17199         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
17200
17201 2013-04-29  Andreas Jaeger  <aj@suse.de>
17202
17203         [BZ #15084]
17204         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
17205         and RES_USEVC.
17206
17207         [BZ #15085]
17208         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
17209         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
17210         unimplemented.
17211
17212         [BZ #15380]
17213         * stdlib/random.c (__initstate): Return NULL if
17214         __initstate fails.
17215
17216         [BZ #15086]
17217         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
17218         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
17219         RES_SNGLKUPREOP.
17220
17221 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17222
17223         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17224
17225 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
17226
17227         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
17228         of individual tests.
17229         (casin_test): Likewise.
17230         (casinh_test): Likewise.
17231
17232 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
17233
17234         [BZ #15409]
17235         * math/s_catan.c (__catan): Handle arguments with large real or
17236         imaginary part separately without squaring.
17237         * math/s_catanf.c (__catanf): Likewise.
17238         * math/s_catanh.c (__catanh): Likewise.
17239         * math/s_catanhf.c (__catanhf): Likewise.
17240         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
17241         and redefine.
17242         (__catanhl): Handle arguments with large real or imaginary part
17243         separately without squaring.
17244         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
17245         and redefine.
17246         (__catanl): Handle arguments with large real or imaginary part
17247         separately without squaring.
17248         * math/libm-test.inc (catan_test): Add more tests.
17249         (catanh_test): Likewise.
17250         * sysdeps/i386/fpu/libm-test-ulps: Update.
17251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17252
17253 2013-04-27  Andreas Jaeger  <aj@suse.de>
17254
17255         [BZ #15007]
17256         * stdlib/stdlib.h: Update guards for qecvt.
17257         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
17258         <stdlib.h>.
17259
17260 2013-04-27  Allan McRae  <allan@archlinux.org>
17261
17262         * sysdeps/i386/fpu/libm-test-ulps: Update.
17263
17264 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
17265
17266         [BZ #15406]
17267         * math/s_catan.c: Include <float.h>.
17268         (__catan): Ensure underflow exception occurs for underflowed
17269         result.
17270         * math/s_catanf.c: Include <float.h>.
17271         (__catanf): Ensure underflow exception occurs for underflowed
17272         result.
17273         * math/s_catanh.c: Include <float.h>.
17274         (__catanh): Ensure underflow exception occurs for underflowed
17275         result.
17276         * math/s_catanhf.c: Include <float.h>.
17277         (__catanhf): Ensure underflow exception occurs for underflowed
17278         result.
17279         * math/s_catanhl.c: Include <float.h>.
17280         (__catanhl): Ensure underflow exception occurs for underflowed
17281         result.
17282         * math/s_catanl.c: Include <float.h>.
17283         (__catanl): Ensure underflow exception occurs for underflowed
17284         result.
17285         * math/libm-test.inc (catan_test): Add more tests.
17286         (catanh_test): Likewise.
17287
17288         [BZ #15405]
17289         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
17290         underflowed result.
17291         * math/s_ccoshf.c (__ccoshf): Likewise.
17292         * math/s_ccoshl.c (__ccoshl): Likewise.
17293         * math/s_csin.c (__csin): Likewise.
17294         * math/s_csinf.c (__csinf): Likewise.
17295         * math/s_csinh.c (__csinh): Likewise.
17296         * math/s_csinhf.c (__csinhf): Likewise.
17297         * math/s_csinhl.c (__csinhl): Likewise.
17298         * math/s_csinl.c (__csinl): Likewise.
17299         * math/libm-test.inc (ccos_test): Add more tests.
17300         (ccosh_test): Likewise.
17301         (csin_test): Likewise.
17302         (csinh_test): Likewise.
17303
17304 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17305
17306         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
17307         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
17308         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
17309         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
17310         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
17311         powerpc/power5+/fpu folders.
17312         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
17313
17314
17315 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
17316
17317         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17318
17319 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
17320
17321         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
17322         additions to variable.
17323         [$(config-machine) = x86_64] (modules-names): Likewise.
17324         ($(objpfx)tst-audit3): Remove dependency.
17325         ($(objpfx)tst-audit3.out): Likewise.
17326         ($(objpfx)tst-audit4): Likewise.
17327         ($(objpfx)tst-audit4.out): Likewise.
17328         ($(objpfx)tst-audit5): Likewise.
17329         ($(objpfx)tst-audit5.out): Likewise.
17330         ($(objpfx)tst-audit6): Likewise.
17331         ($(objpfx)tst-audit6.out): Likewise.
17332         ($(objpfx)tst-audit7): Likewise.
17333         ($(objpfx)tst-audit7.out): Likewise.
17334         (tst-audit3-ENV): Remove variable.
17335         (tst-audit4-ENV): Likewise.
17336         (tst-audit5-ENV): Likewise.
17337         (tst-audit6-ENV): Likewise.
17338         (tst-audit7-ENV): Likewise.
17339         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
17340         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
17341         addition to variable.
17342         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
17343         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
17344         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
17345         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
17346         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
17347         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
17348         tst-audit3, tst-audit4 and tst-audit5.
17349         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
17350         tst-audit6 and tst-audit7.
17351         [$(subdir) = elf] (modules-names): Add audit modules for those
17352         tests.
17353         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
17354         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
17355         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
17356         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
17357         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
17358         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
17359         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
17360         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
17361         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
17362         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
17363         [$(subdir) = elf] (tst-audit3-ENV): New variable.
17364         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
17365         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
17366         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
17367         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
17368         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
17369         Likewise.
17370         [$(subdir) = elf && $(config-cflags-avx) = yes]
17371         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
17372         [$(subdir) = elf && $(config-cflags-avx) = yes]
17373         (CFLAGS-tst-auditmod4a.c): Likewise.
17374         [$(subdir) = elf && $(config-cflags-avx) = yes]
17375         (CFLAGS-tst-auditmod4b.c): Likewise.
17376         [$(subdir) = elf && $(config-cflags-avx) = yes]
17377         (CFLAGS-tst-auditmod6b.c): Likewise.
17378         [$(subdir) = elf && $(config-cflags-avx) = yes]
17379         (CFLAGS-tst-auditmod6c.c): Likewise.
17380         [$(subdir) = elf && $(config-cflags-avx) = yes]
17381         (CFLAGS-tst-auditmod7b.c): Likewise.
17382         * elf/tst-audit3.c: Move to ...
17383         * sysdeps/x86_64/tst-audit3.c: ... here.
17384         * elf/tst-audit4.c: Move to ...
17385         * sysdeps/x86_64/tst-audit4.c: ... here.
17386         * elf/tst-audit5.c: Move to ...
17387         * sysdeps/x86_64/tst-audit5.c: ... here.
17388         * elf/tst-audit6.c: Move to ...
17389         * sysdeps/x86_64/tst-audit6.c: ... here.
17390         * elf/tst-audit7.c: Move to ...
17391         * sysdeps/x86_64/tst-audit7.c: ... here.
17392         * elf/tst-auditmod3a.c: Move to ...
17393         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
17394         * elf/tst-auditmod3b.c: Move to ...
17395         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
17396         * elf/tst-auditmod4a.c: Move to ...
17397         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
17398         * elf/tst-auditmod4b.c: Move to ...
17399         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
17400         * elf/tst-auditmod5a.c: Move to ...
17401         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
17402         * elf/tst-auditmod5b.c: Move to ...
17403         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
17404         * elf/tst-auditmod6a.c: Move to ...
17405         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
17406         * elf/tst-auditmod6b.c: Move to ...
17407         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
17408         * elf/tst-auditmod6c.c: Move to ...
17409         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
17410         * elf/tst-auditmod7a.c: Move to ...
17411         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
17412         * elf/tst-auditmod7b.c: Move to ...
17413         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
17414
17415 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
17416
17417         [BZ #15366]
17418         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
17419         define unconditionally.
17420         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
17421         define unconditionally.
17422         (INT8_C, INT16_C, etc.): Likewise.
17423
17424 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
17425
17426         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
17427         __ehdr_start with hidden visibility.
17428
17429         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
17430
17431 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
17432
17433         * math/libm-test.inc (cos_test): Use accurate hex constants.
17434         (sincost_test): Likewise.
17435
17436 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
17437
17438         * math/libm-test.inc (catan_test): Add more tests.
17439         (catanh_test): Likewise.
17440
17441         * math/s_catanf.c (__catanf): Use suffixed floating-point
17442         constants.
17443         * math/s_catanhf.c (__catanhf): Likewise.
17444         * math/s_catanhl.c (__catanhl): Likewise.
17445         * math/s_catanl.c (__catanl): Likewise.
17446
17447         [BZ #15394]
17448         * math/s_catan.c (__catan): Calculate imaginary part of result
17449         with log1p not log unless computing log of number close to 0.
17450         * math/s_catanf.c (__catanf): Likewise.
17451         * math/s_catanl.c (__catanl): Likewise.
17452         * math/s_catanh.c (__catanh): Calculate real part of result with
17453         log1p not log unless computing log of number close to 0.
17454         * math/s_catanhf.c (__catanhf): Likewise.
17455         * math/s_catanhl.c (__catanhl): Likewise.
17456         * math/libm-test.inc (catan_test): Add more tests.
17457         (catanh_test): Likewise.
17458         * sysdeps/i386/fpu/libm-test-ulps: Update.
17459         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17460
17461 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
17462
17463         * benchtests/Makefile: Mention files in which fast and slow
17464         paths of math functions are implemented.
17465
17466 2013-04-23  Roland McGrath  <roland@hack.frob.com>
17467
17468         * sysdeps/posix/timespec_get.c: New file.
17469
17470 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17471
17472         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
17473         POWER.
17474         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
17475         for POWER.
17476         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
17477         powerpc/power5/fpu folders.
17478         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
17479         * benchtests/Makefile: Add modf testcase.
17480         * benchtests/bench-modf.c: New file: Benchmark test for mo
17481
17482 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
17483
17484         [BZ #14888]
17485         * time/Makefile (tests): Add tst-strptime-whitespace.
17486         * time/strptime_l.c (get_number): Use ISSPACE.
17487         (__strptime_internal): Likewise.
17488         * time/tst-strptime-whitespace.c: New test case.
17489
17490 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
17491
17492         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
17493         member.
17494         (_nss_files_init): Set it here.
17495
17496 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
17497
17498         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
17499         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
17500         unsigned.
17501
17502 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
17503
17504         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
17505
17506 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17507
17508         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
17509         size just once.
17510
17511 2013-04-21  David S. Miller  <davem@davemloft.net>
17512
17513         * po/ru.po: Update Russion translation from translation project.
17514
17515 2013-04-17  Adam Conrad  <adconrad@0c3.net>
17516
17517         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
17518         and setfsgid.
17519
17520 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
17521
17522         * configure.in: Remove i386 configure warning. Remove i386 case.
17523         * configure: Regenerate.
17524         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
17525         Add example to error message.
17526         * sysdeps/i386/configure: Regenerate.
17527
17528 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17529
17530         * benchtests/Makefile (bench): Add cos, tan, slowcos and
17531         slowtan.
17532         * benchtests/cos-inputs: New file.
17533         * benchtests/slowcos-inputs: New file.
17534         * benchtests/slowcos.c: New file.
17535         * benchtests/slowtan-inputs: New file.
17536         * benchtests/slowtan.c: New file.
17537         * benchtests/tan-inputs: New file.
17538
17539 2013-04-16  Roland McGrath  <roland@hack.frob.com>
17540
17541         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
17542         considered kosher.
17543
17544 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
17545
17546         * benchtests/Makefile: Include cppflags-iterator.mk to add
17547         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
17548
17549         * Makefile.in (bench-clean): New target.
17550         * benchtests/Makefile (bench-clean): Likewise.
17551
17552 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
17553
17554         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
17555
17556 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
17557
17558         * stdio-common/tstdiomisc.c: Fix coding-style violation.
17559
17560 2013-04-15  Andreas Schwab  <schwab@suse.de>
17561
17562         * nscd/grpcache.c (cache_addgr): Properly check for short write.
17563         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17564         * nscd/pwdcache.c (cache_addpw): Likewise.
17565         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
17566         more than recsize.
17567
17568 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17569
17570         * benchtests/Makefile (bench): Write all output to
17571         bench-out.tmp together.
17572
17573 2013-04-15  Andreas Schwab  <schwab@suse.de>
17574
17575         * nscd/nscd.c (main): Don't fork again after closing files.
17576
17577 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17578
17579         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
17580
17581         * benchtests/Rules (bench-deps): Collect dependencies into a
17582         single variable.  Add Makefile to dependencies.
17583         ($(objpfx)bench-%.c): Depend on bench-deps.
17584
17585 2013-04-12  Roland McGrath  <roland@hack.frob.com>
17586             Xavier Roche  <roche+kml2@exalead.com>
17587
17588         [BZ #15361]
17589         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
17590         just that it's a file descriptor.
17591         * manual/llio.texi (Synchronizing AIO Operations): Update description
17592         for EBADF error from aio_fsync.
17593
17594 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
17595
17596         * Rules (bench): Move target definition...
17597         * benchtests/Makefile: ... here.
17598
17599 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
17600
17601         * math/libm-test.inc (cos_test): Fix PI/2 test.
17602         (sincos_test): Likewise.
17603         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
17604         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
17605
17606 2013-04-11  Andreas Schwab  <schwab@suse.de>
17607
17608         [BZ #13988]
17609         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
17610         accept exponent character only when digits were seen.
17611         * stdio-common/Makefile (tests): Add bug26.
17612         * stdio-common/bug26.c: New file.
17613
17614         [BZ #14293]
17615         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
17616         non-freeable.
17617
17618 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
17619
17620         * Makeconfig (rtld-prefix): Define built linker prefix.
17621         * Rules (run-bench): Use it.
17622         * math/Makefile (run-regen-ulps): Likewise.
17623
17624         * Rules (bench): Remove eval.
17625
17626 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17627             Roland McGrath  <roland@hack.frob.com>
17628             Ondrej Bilka  <neleai@seznam.cz>
17629
17630         [BZ #15346]
17631         * time/getdate.c: Include ctype.h and alloca.h.
17632         (__getdate_r): Trim leading and trailing spaces of input.
17633         * time/tst-getdate.c (tests): Add tests with leading and
17634         trailing spaces.
17635
17636 2013-04-08  Roland McGrath  <roland@hack.frob.com>
17637
17638         [BZ #14280]
17639         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
17640         when computing value.
17641
17642 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
17643
17644         * math/README.libm-test (How can I generate "libm-test-ulps"?):
17645         Use testrun.sh to run libm tests.
17646
17647         [BZ #15309]
17648         * elf/dl-open.c (dl_open_worker): memset all of seen array.
17649
17650 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
17651
17652         [BZ #15264]
17653         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
17654
17655 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
17656
17657         * Makefile.in (regen-ulps): New target.
17658         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
17659         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
17660         [ifneq (no,$(PERL)] (regen-ulps): New target.
17661         [ifeq (no,$(PERL)] (regen-ulps): New target.
17662         * math/libm-test.inc (ulps_file_name): Define.
17663         (output_dir): New variable.
17664         (options): Add "output-dir" option.
17665         (parse_opt): Handle 'o' case.
17666         (main): If output_dir is non-NULL use it as a prefix
17667         otherwise use "".
17668         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
17669
17670 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
17671
17672         [BZ #10060, #10062]
17673         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
17674         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
17675         fail configure if __sync_val_compare_and_swap is not inlined.
17676         * sysdeps/i386/configure: Regenerate.
17677         * configure.in: Build for i686 when configured for i386.
17678         * configure: Regenerate.
17679         * README: Remove i386 reference.
17680
17681 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
17682
17683         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
17684         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17685
17686 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17687
17688         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
17689         (lmsnanval): New variables.
17690         (F): Add conversion tests.
17691         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
17692         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
17693
17694         * stdio-common/tstdiomisc.c (F): Properly collect individual
17695         tests' results.
17696
17697         [BZ #14686, #15336]
17698         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
17699         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
17700         Instead, use input NaN values or generate a qNaN by arithmetic
17701         operation.  Also fix bugs to comply with the standard.
17702         * math/libm-test.inc (remainder_test): Add more tests.
17703
17704         [BZ #15335, #15342]
17705         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
17706         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
17707         input NaN values or generate a qNaN by arithmetic operation.
17708
17709         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
17710         unreachable code.
17711
17712         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
17713         definitions.
17714
17715 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
17716
17717         [BZ #14478]
17718         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
17719         underflowed result.
17720         * math/s_cexpf.c (__cexpf): Likewise.
17721         * math/s_cexpl.c (__cexpl): Likewise.
17722         * math/libm-test.inc (cexp_test): Add more tests.
17723
17724 2013-04-03  Andreas Schwab  <schwab@suse.de>
17725
17726         [BZ #15330]
17727         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
17728         order arrays from heap if bigger than alloca cutoff.
17729
17730 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
17731
17732         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
17733         (SNAN_TESTS_double): Refer to GCC PR56831.
17734         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
17735         GCC PR56828.
17736
17737 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
17738
17739         * Rules (bench): Move bench.out after the run is complete.
17740
17741         * Rules (bench): Echo currently running benchmark.
17742
17743         * benchtests/Makefile (bench): Add atan and slowatan.
17744         * benchtests/atan-inputs: New file.
17745         * benchtests/slowatan-inputs: New file.
17746         * benchtests/slowatan.c: New file.
17747
17748         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
17749         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
17750         its value.
17751
17752         [BZ #15305]
17753         * sysdeps/unix/sysv/linux/kernel-features.h
17754         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
17755         __ASSUME_XFS_RESTRICTED_CHOWN.
17756         * sysdeps/unix/sysv/linux/pathconf.c
17757         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
17758         Save and restore errno.
17759
17760 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
17761
17762         [BZ #15327]
17763         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
17764         arguments using __kernel_casinh.
17765         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
17766         arguments using __kernel_casinhf.
17767         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
17768         arguments using __kernel_casinhl.
17769         * math/libm-test.inc (cacosh_test): Add more tests.
17770         * sysdeps/i386/fpu/libm-test-ulps: Update.
17771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17772
17773 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
17774
17775         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
17776         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
17777
17778         * bench/Makefile (bench): Add sin and slowsin.
17779         * benchtests/sin-inputs: New file.
17780         * benchtests/slowsin-inputs: New file.
17781         * benchtests/slowsin.c: New file.
17782
17783         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
17784         (bench): Add slowexp and slowpow.
17785         (exp-ITER): Increase iterations.
17786         (pow-ITER): Likewise.
17787         * benchtests/exp-inputs: Change input.
17788         * benchtests/pow-inputs: Likewise.
17789         * benchtests/slowexp-inputs: New file.
17790         * benchtests/slowexp.c: New file.
17791         * benchtests/slowpow-inputs: New file.
17792         * benchtests/slowpow.c: New file.
17793
17794 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17795
17796         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
17797         instructions.
17798         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
17799         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
17800         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
17801         * benchtests/Makefile: Add rint benchtest.
17802         * benchtests/rint-inputs: Input for rint benchtest.
17803
17804 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17805
17806         * Versions.def (libm): Add GLIBC_2.18.
17807         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
17808         hidden libm prototypes.
17809         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
17810         * math/Makefile (libm-calls): Add s_issignaling.
17811         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
17812         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
17813         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
17814         declaration.
17815         * math/math.h [__USE_GNU] (issignaling): New macro.
17816         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
17817         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
17818         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
17819         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
17820         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
17821         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
17822         * manual/arith.texi (issignaling): New section.
17823         * manual/libm-err-tab.pl (@all_functions): Update comment.
17824         * math/gen-libm-test.pl (parse_args): Apply special handling for
17825         issignaling.
17826         * math/libm-test.inc (print_float, issignaling_test): New
17827         functions.
17828         (check_float_internal): Add issignaling checks.
17829         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
17830         default definition.
17831         * sysdeps/powerpc/math-tests.h: New file.
17832         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
17833         tests.
17834         * math/test-snan.c (TEST_FUNC): Likewise.
17835
17836 2013-03-30  David S. Miller  <davem@davemloft.net>
17837
17838         * po/de.po: Update from translation team.
17839
17840 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
17841
17842         [BZ #10357]
17843         * math/k_casinh.c (__kernel_casinh): Handle arguments with
17844         imaginary part less than 1.0 and real part less than 0.5
17845         specially.
17846         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17847         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17848         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
17849         (cacos_test): Add more tests.
17850         (casin_test): Likewise.
17851         (casinh_test): Likewise.
17852         * sysdeps/i386/fpu/libm-test-ulps: Update.
17853         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17854
17855 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
17856
17857         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
17858         ONE with its value.
17859
17860         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
17861         (__pow_mp): Replace ONE and MONE with their values.
17862         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
17863         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
17864         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
17865         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
17866         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
17867         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
17868
17869         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
17870
17871         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
17872         (__pow_mp): Replace ZERO and MZERO with their values.
17873         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
17874         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
17875         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
17876         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
17877         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
17878         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
17879         (__sqr): Likewise.
17880
17881         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
17882
17883         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
17884
17885 2013-03-28  Roland McGrath  <roland@hack.frob.com>
17886
17887         * include/stdlib.h [!SHARED] (__call_tls_dtors):
17888         Declare with __attribute__ ((weak)).
17889         * stdlib/exit.c (__libc_atexit) [!SHARED]:
17890         Call __call_tls_dtors only if it's not NULL.
17891
17892 2013-03-28  Roland McGrath  <roland@hack.frob.com>
17893
17894         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
17895         didn't do it already, then set _dl_phdr and _dl_phnum based on the
17896         magic __ehdr_start linker symbol if it's defined.
17897         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
17898         them up here if it was already done.
17899
17900         * elf/dl-support.c (_dl_phdr): Make pointer to const.
17901         (_dl_aux_init): Use const in cast when setting it.
17902         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
17903         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
17904         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
17905
17906         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
17907         Declare them here.
17908         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
17909         * csu/libc-tls.c: Nor here.
17910         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
17911
17912         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
17913         (__libc_message): Never call vsyslog.
17914
17915 2013-03-28  Alan Modra  <amodra@gmail.com>
17916
17917         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
17918         Define as empty.
17919         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
17920         Likewise.
17921
17922 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17923
17924         [BZ #15214]
17925         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
17926         underflow.
17927         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17928
17929 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17930
17931         [BZ #15304]
17932         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
17933         Don't add gid passed as argument.
17934
17935         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
17936
17937 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
17938
17939         [BZ #15307]
17940         * math/k_casinh.c (__kernel_casinh): Handle arguments with
17941         imaginary part between 1.0 and 1.5 and real part less than 0.5
17942         specially.
17943         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17944         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17945         * math/libm-test.inc (cacos_test): Add more tests.
17946         (casin_test): Likewise.
17947         (casinh_test): Likewise.
17948         * sysdeps/i386/fpu/libm-test-ulps: Update.
17949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17950
17951 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17952
17953         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
17954         constants.
17955         (norm): Likewise.
17956         (denorm): Likewise.
17957         (__dbl_mp): Likewise.
17958         (add_magnitudes): Likewise.
17959         (sub_magnitudes): Likewise.
17960         (__add): Likewise.
17961         (__sub): Likewise.
17962         (__mul): Likewise.
17963         (__sqr): Likewise.
17964         (__inv): Likewise.
17965         (__dvd): Likewise.
17966
17967         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
17968         commented code.
17969         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
17970         (__dubcos): Likewise.
17971         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
17972         (__ieee754_acos): Likewise.
17973         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
17974         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
17975         (__exp1): Likewise.
17976         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
17977         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
17978         (log1): Likewise.
17979         (my_log2): Likewise.
17980         (checkint): Likewise.
17981         * sysdeps/ieee754/dbl-64/e_remainder.c
17982         (__ieee754_remainder): Likewise.
17983         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
17984         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
17985         (bsloww): Likewise.
17986         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
17987
17988         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
17989         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
17990         MANTISSA_STORE_T to store computations on mantissa.  Use
17991         macros for rounding and division.
17992         (denorm): Likewise.
17993         (__dbl_mp): Likewise.
17994         (add_magnitudes): Likewise.
17995         (sub_magnitudes): Likewise.
17996         (__mul): Likewise.
17997         (__sqr): Likewise.
17998         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
17999         powers of two in terms of TWOPOW macro.
18000         (mp_no): Make type of mantissa as MANTISSA_T.
18001         [!RADIXI]: Define RADIXI.
18002         [!TWO52]: Define TWO52.
18003         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
18004
18005 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18006
18007         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
18008         llroundl symbol when building for PPC32.
18009
18010 2013-03-24  Mark H Weaver  <mhw@netris.org>
18011
18012         * manual/arith.texi (Normalization Functions): Fix prototypes for
18013         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
18014
18015 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18016
18017         [BZ #13889]
18018         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
18019         high value to check if expl overflow.
18020         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
18021         to check for underflow and overflow.
18022         * math/libm-test.inc: Add exp test.
18023
18024 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
18025
18026         [BZ #11120]
18027         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
18028         with NOT_IN_libc.
18029
18030 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18031
18032         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
18033         symbol.
18034
18035 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18036
18037         * math/gen-libm-test.pl (parse_args, special_functions): Properly
18038         wrap blocks consisting of several statements.
18039
18040         * sysdeps/generic/math-tests.h: New file.
18041         * sysdeps/i386/fpu/math-tests.h: Likewise.
18042         * math/test-snan.c: Include it.
18043         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
18044
18045 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
18046
18047         [BZ #15285]
18048         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
18049         (__ieee754_j0l): Do not improve calculations using cos of twice
18050         input for inputs above LDBL_MAX / 2.0L.
18051         (__ieee754_y0l): Likewise.
18052         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
18053         (__ieee754_j1l): Do not improve calculations using cos of twice
18054         input for inputs above LDBL_MAX / 2.0L.
18055         (__ieee754_y1l): Likewise.
18056         * math/libm-test.inc (j0_test): Add another test.
18057         (j1_test): Likewise.
18058         (y0_test): Likewise.
18059         (y1_test): Likewise.
18060         * sysdeps/i386/fpu/libm-test-ulps: Update.
18061
18062 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
18063
18064         * Rules ($(objpfx)bench-%.c): Include code from a C source
18065         file.
18066
18067 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
18068
18069         [BZ #15287]
18070         * math/k_casinh.c (__kernel_casinh): Handle arguments with
18071         imaginary part 1.0 and real part less than 0.5 specially.
18072         * math/k_casinhf.c (__kernel_casinhf): Likewise.
18073         * math/k_casinhl.c (__kernel_casinhl): Likewise.
18074         * math/libm-test.inc (cacos_test): Add more tests.
18075         (casin_test): Likewise.
18076         (casinh_test): Likewise.
18077         * sysdeps/i386/fpu/libm-test-ulps: Update.
18078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18079
18080 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
18081
18082         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
18083         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
18084
18085 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
18086
18087         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
18088         * config.make.in (config-cflags-sse4): Remove variable.
18089         (config-cflags-avx): Likewise.
18090         (config-cflags-sse2avx): Likewise.
18091         (config-cflags-novzeroupper): Likewise.
18092         (config-asflags-i686): Likewise.
18093         (have-mfma4): Likewise.
18094         (have-as-vis3): Likewise.
18095         (MIG): Likewise.
18096         * configure.in (MIG): Do not AC_SUBST.
18097         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
18098         (libc_cv_cc_sse4): Do not AC_SUBST.
18099         (libc_cv_cc_avx): Likewise.
18100         (libc_cv_cc_sse2avx): Likewise.
18101         (libc_cv_cc_novzeroupper): Likewise.
18102         (libc_cv_cc_fma4): Likewise.
18103         (libc_cv_as_i686): Likewise.
18104         (libc_cv_sparc_as_vis3): Likewise.
18105         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
18106         LIBC_CONFIG_VAR.
18107         (config-asflags-i686): Likewise.
18108         (config-cflags-avx): Likewise.
18109         (config-cflags-sse2avx): Likewise.
18110         (have-mfma4): Likewise.
18111         (config-cflags-novzeroupper): Likewise.
18112         * sysdeps/mach/configure.in (MIG): Likewise.
18113         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
18114         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
18115         LIBC_CONFIG_VAR.
18116         (config-cflags-avx): Likewise.
18117         (config-cflags-sse2avx): Likewise.
18118         (have-mfma4): Likewise.
18119         (config-cflags-novzeroupper): Likewise.
18120         * configure: Regenerated.
18121         * sysdeps/i386/configure: Likewise.
18122         * sysdeps/mach/configure: Likewise.
18123         * sysdeps/sparc/configure: Likewise.
18124         * sysdeps/x86_64/configure: Likewise.
18125
18126 2013-03-20  Roland McGrath  <roland@hack.frob.com>
18127
18128         [BZ #14812]
18129         * locale/programs/localedef.c (options): Put N_ translation marker
18130         on argument names, not just descriptions.
18131
18132 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
18133
18134         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
18135
18136 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
18137
18138         [BZ #14176]
18139         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
18140
18141 2013-03-19  Roland McGrath  <roland@hack.frob.com>
18142
18143         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
18144         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
18145         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
18146         [!BEFORE_ABORT] (before_abort): New function.
18147         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
18148         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
18149         (writev_for_fatal): New function.
18150         (WRITEV_FOR_FATAL): New macro; call that.
18151         (backtrace_and_maps): New function.
18152         (BEFORE_ABORT): New macro; call that.
18153         (struct str_list): Type removed.
18154         (__libc_message, __libc_fatal): Functions removed.
18155         Include <sysdeps/posix/libc_fatal.c> instead.
18156
18157 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
18158
18159         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
18160         constants.
18161         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
18162         double constants.
18163
18164 2013-03-19  Andreas Schwab  <schwab@suse.de>
18165
18166         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
18167         * sysdeps/gnu/configure: Regenerate.
18168
18169         * configure.in: Substitute libc_cv_rtlddir.
18170         * configure: Regenerate.
18171         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
18172         * Makeconfig (rtlddir, inst_rtlddir): New variables.
18173         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
18174         * elf/Makefile (install-others, CFLAGS-interp.c)
18175         (ldso_install, common-ldd-rewrite): Likewise.
18176         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
18177         $(inst_slibdir)/$(rtld-installed-name).
18178         * scripts/rellns-sh: Add -p option.
18179         * Makerules (make-shlib-link): Use rellns-sh to get relative name
18180         for source.
18181
18182 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18183
18184         * manual/nptl.texi: Renamed to ...
18185         * manual/threads.texi: ... this.
18186         * manual/Makefile (chapters): Update.
18187
18188 2013-03-18  Roland McGrath  <roland@hack.frob.com>
18189
18190         [BZ #14812]
18191         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
18192         on argument names, not just descriptions.
18193         * malloc/memusagestat.c (options): Likewise.
18194         * nss/getent.c (options): Likewise.
18195
18196 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
18197
18198         [BZ #14812]
18199         * iconv/iconv_prog.c (options): Put N_ translation marker
18200         on argument names, not just descriptions.
18201         * iconv/iconvconfig.c (options): Likewise.
18202
18203 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
18204
18205         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
18206         implementation which is faster on all x86_64 architectures.
18207         Tested on AMD, Intel Nehalem, SNB, IVB.
18208         * sysdeps/x86_64/strnlen.S: Likewise.
18209
18210         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
18211         Remove all multiarch strlen and strnlen versions.
18212         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
18213         Remove strlen and strnlen related parts.
18214
18215         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
18216         Inline strlen part.
18217         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
18218
18219         * sysdeps/x86_64/multiarch/strlen.S: Remove.
18220         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
18221         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
18222         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
18223         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18224         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
18225
18226 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
18227
18228         * manual/memory.texi (Malloc Tunable Parameters):
18229         Sort parameters alphabetically. Add comments for missing entries.
18230
18231 2013-03-17  David S. Miller  <davem@davemloft.net>
18232
18233         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18234
18235 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
18236
18237         [BZ #15283]
18238         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
18239         for arguments at most half maximum finite value.
18240         * math/libm-test.inc (j0_test): Add more tests.
18241         (j1_test): Likewise.
18242         (y0_test): Likewise.
18243         (y1_test): Likewise.
18244         * sysdeps/i386/fpu/libm-test-ulps: Update.
18245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18246
18247         [BZ #14155]
18248         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
18249         1 / x and functions P and Q for arguments above 0x1p256L.
18250         (__ieee754_y0l): Likewise.
18251         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
18252         (__ieee754_y1l): Likewise.
18253         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
18254         (j1_test): Likewise.
18255         (y0_test): Likewise.
18256         (y1_test): Likewise.
18257
18258 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
18259
18260         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
18261         variable.
18262
18263 2013-03-15  Roland McGrath  <roland@hack.frob.com>
18264
18265         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
18266         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
18267         zero since it's initialized to EXEC_PAGESIZE.
18268
18269         * sysdeps/unix/sysv/linux/ldsodefs.h
18270         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
18271         * sysdeps/generic/ldsodefs.h: ... here.
18272
18273 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
18274
18275         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
18276
18277         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
18278         math/test-snan.c.
18279         * math/test-snan.c: Renamed from
18280         sysdeps/powerpc/fpu/test-powerpc-snan.c.
18281         * math/Makefile (tests): Add test-snan.
18282         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
18283         test-powerpc-snan.
18284
18285         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
18286         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
18287         functions.
18288         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
18289         __builtin_nan family of functions.
18290         * math/libm-test.inc (initialize): Initialize qnan_value with
18291         __builtin_nan family of functions.
18292         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
18293         Remove variables.
18294         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
18295         Remove functions.
18296         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
18297         storage class.  Initialize qNaN_var and sNaN_var with
18298         __builtin_nan and __builtin_nans families of functions,
18299         respectively.
18300
18301         * math/libm-test.inc (acosh_test): Also test with qNaN input.
18302         (sqrt_test): Remove duplicate test with qNaN input.
18303         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
18304         (round_test, signbit_test, significand_test): Note missing +/-Inf
18305         as well as qNaN tests.
18306
18307         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
18308         qNaN_var.  Fix a few strings, too.
18309         * math/libm-test.inc (nan_value): Rename to qnan_value.
18310         * math/gen-libm-test.pl (%beautify): Adjust to that.
18311         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
18312         * math/test-misc.c (main): Likewise.
18313         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
18314         to __qnan_bytes, and __qnan_union, respectively.
18315         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
18316         Likewise.
18317         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
18318         and lqnanval, respectively.
18319         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
18320         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
18321         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
18322         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
18323
18324         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
18325         * math/test-misc.c (main) [__x86_64__]: Enable test for long
18326         doubles.
18327
18328         * math/test-misc.c (main): Fix copy'n'pastos.
18329         * misc/tst-efgcvt.c (special): Likewise.
18330
18331         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
18332         Remove declarations.
18333
18334 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
18335
18336         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
18337         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
18338         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
18339         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
18340
18341 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18342
18343         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
18344         macro to return vdso values correctly in IFUNC implementations.
18345         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
18346         Optimization by using IFUNC.
18347
18348 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
18349             Richard Henderson  <rth@redhat.com>
18350             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18351
18352         * Makefile.in (bench): New target.
18353         * NEWS: Mention the benchmark framework.
18354         * Rules (bench): Likewise.
18355         (binaries-bench): Generate binaries for functions to
18356         benchmark.
18357         * benchtests/Makefile: New makefile for benchmark tests.
18358         * benchtests/bench-skeleton.c: New skeleton file for benchmark
18359         programs.
18360         * benchtests/exp-inputs: New input file for EXP function.
18361         * benchtests/pow-inputs: New input file for POW function.
18362         * scripts/bench.pl: New script to generate source files for
18363         benchmark programs.
18364
18365 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
18366
18367         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
18368         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
18369         computations on mantissa.  Use macros for rounding and
18370         division.
18371         (denorm): Likewise.
18372         (__dbl_mp): Likewise.
18373         (add_magnitudes): Likewise.
18374         (sub_magnitudes): Likewise.
18375         (__mul): Likewise.
18376         (__sqr): Likewise.
18377         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
18378         powers of two in terms of TWOPOW macro.
18379         (mp_no): Make type of mantissa as MANTISSA_T.
18380         [!RADIXI]: Define RADIXI.
18381         [!TWO52]: Define TWO52.
18382         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
18383
18384         * manual/nptl.texi (cindex): Modify threads to pthreads.
18385
18386 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
18387
18388         * sysdeps/x86_64/preconfigure: Regenerated.
18389
18390 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
18391
18392         [BZ #14155]
18393         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
18394         0x1p28 and above.
18395         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
18396         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
18397         0x1p28 and above.
18398         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
18399         * math/libm-test.inc (j0_test): Do not allow one spurious
18400         underflow exception.
18401         (y1_test): Likewise.
18402
18403 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
18404
18405         * manual/Makefile (chapters): Add nptl.
18406         * manual/debug.texi (Debugging Support): Add link to Threads
18407         chapter.
18408         * manual/nptl.texi: New file.
18409
18410         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
18411
18412 2013-03-14  Petr Baudis  <pasky@ucw.cz>
18413
18414         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
18415         for non-NULL pointer before the memory validity test. Pointed
18416         out by Holger Brunck <holger.brunck@keymile.com>.
18417
18418 2013-03-13  Andreas Schwab  <schwab@suse.de>
18419
18420         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
18421         instead of .os.
18422
18423 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
18424
18425         * timezone/zic.c: Update from tzcode 2013b.
18426
18427 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
18428
18429         * manual/install.texi (Configuring and compiling):
18430         Mention i686 and i586.
18431         * INSTALL: Regenerate.
18432
18433 2013-03-12  Roland McGrath  <roland@hack.frob.com>
18434
18435         * sysdeps/init_array/elf-init.c: New file.
18436         * csu/elf-init.c
18437         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
18438         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
18439
18440         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
18441         __gmon_start__ as global, but as static with a .preinit_array pointer.
18442         * sysdeps/init_array/gmon-start.c: New file.  Use that.
18443         * sysdeps/init_array/crti.S: New file, empty except for comments.
18444         * sysdeps/init_array/crtn.S: Likewise.
18445
18446 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
18447
18448         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
18449         definining bcopy.
18450         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18451         Remove Prefer_SSE_for_memop.
18452         * sysdeps/x86_64/multiarch/init-arch.h: Remove
18453         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
18454         HAS_PREFER_SSE_FOR_MEMOP.
18455         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
18456         memset-x86-64.
18457         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
18458         Remove bzero, memset ifunc support.
18459         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
18460         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
18461         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18462         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18463
18464 2013-03-11  Andreas Schwab  <schwab@suse.de>
18465
18466         [BZ #15234]
18467         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
18468         by SHLIB_COMPAT.
18469         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
18470         (GLIBC_2.16): Remove pthread_atfork.
18471
18472 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
18473
18474         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
18475         (ptestcases.h): Likewise.
18476
18477 2013-03-08  Roland McGrath  <roland@hack.frob.com>
18478
18479         * Makeconfig ($(common-objpfx)config.status): Depend on
18480         sysdeps/*/preconfigure{,.in} too.
18481
18482 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
18483
18484         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
18485         (__free_hook): Use void * instead of __malloc_ptr_t.
18486         (__malloc_hook): Likewise.
18487         (__realloc_hook): Likewise.
18488         (__memalign_hook): Likewise.
18489         (__after_morecore_hook): Likewise.
18490         * malloc/arena.c (save_malloc_hook): Likewise.
18491         (save_free_hook): Likewise.
18492         * malloc/hooks.c (malloc_hook_ini): Likewise.
18493         (realloc_hook_ini): Likewise.
18494         (memalign_hook_ini): Likewise.
18495         * malloc/malloc.c (malloc_hook_ini): Likewise.
18496         (realloc_hook_ini): Likewise.
18497         (memalign_hook_ini): Likewise.
18498         (__free_hook): Likewise.
18499         (__malloc_hook): Likewise.
18500         (__realloc_hook): Likewise.
18501         (__memalign_hook): Likewise.
18502         (__libc_malloc): Likewise.
18503         (__libc_free): Likewise.
18504         (__libc_realloc): Likewise.
18505         (__libc_memalign): Likewise.
18506         (__libc_valloc): Likewise.
18507         (__libc_pvalloc): Likewise.
18508         (__libc_calloc): Likewise.
18509         (__posix_memalign): Likewise.
18510         * malloc/morecore.c (__sbrk): Likewise.
18511         (__default_morecore): Likewise.
18512
18513         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
18514
18515         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
18516         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
18517         __malloc_ptrdiff_t.
18518
18519         * malloc/malloc.h (__malloc_size_t): Remove macro.
18520         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
18521         __malloc_size_t.
18522         (old_memalign_hook): Likewise.
18523         (old_realloc_hook): Likewise.
18524         (struct hdr): Likewise.
18525         (flood): Likewise.
18526         (mallochook): Likewise.
18527         (memalignhook): Likewise.
18528         (reallochook): Likewise.
18529         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
18530         (tr_old_realloc_hook): Likewise.
18531         (tr_old_memalign_hook): Likewise.
18532         (tr_mallochook): Likewise.
18533         (tr_reallochook): Likewise.
18534         (tr_memalignhook): Likewise.
18535
18536 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18537
18538         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
18539         default_ldbl_pack and using as default implementation.
18540         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
18541         implementation.
18542         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
18543         redundant definition.
18544         (ldbl_insert_mantissa): Likewise.
18545         (ldbl_canonicalize): Likewise.
18546         (ldbl_nearbyint): Likewise.
18547         (ldbl_pack): Rename to ldbl_pack_ppc.
18548         (ldbl_unpack): Rename to ldbl_unpack_ppc.
18549         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
18550         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
18551
18552 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
18553
18554         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
18555         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
18556         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
18557         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
18558         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
18559         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
18560         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
18561         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
18562
18563 2013-03-07  Andreas Jaeger  <aj@suse.de>
18564
18565         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18566         bits/mman-linux.h.
18567
18568 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
18569
18570         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
18571         Include mpa.h and declare __MPEXP.
18572         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
18573         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
18574         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
18575         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
18576         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
18577         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
18578         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
18579
18580         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
18581         (__slowpow): Use long double EXPL and LOGL functions to
18582         compute POW.
18583         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
18584         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
18585         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
18586         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
18587         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
18588         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
18589
18590         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
18591         intermediate variable to calculate exponent.
18592         (__sqr): Likewise.
18593         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
18594         Likewise.
18595         (__sqr): Likewise.
18596
18597         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
18598         [!NO__SQR]: Define __sqr.
18599         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
18600         and NO__SQR.  Remove all code except __mul and __sqr.  Include
18601         sysdeps/ieee754/dbl-64/mpa.c.
18602         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
18603
18604         [BZ #12723]
18605         * posix/Makefile (tests): Add tst-pathconf.
18606         * posix/tst-pathconf.c: New test case.
18607         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
18608         _PC_PIPE_BUF.
18609         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
18610
18611 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
18612
18613         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
18614
18615 2013-03-06  Andreas Jaeger  <aj@suse.de>
18616
18617         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
18618         definition via __MAP_ANONYMOUS.
18619
18620         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
18621         it's not part of Linux headers.
18622
18623         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
18624         (MAP_HUGE_MASK): Define.
18625
18626         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
18627         Define.
18628         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
18629         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
18630         Define.
18631         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
18632         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
18633         Define.
18634         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
18635         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
18636         Define.
18637         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
18638
18639         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
18640         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
18641         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
18642         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
18643         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
18644         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
18645
18646         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18647         Handle f2fs.
18648
18649         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18650         Handle f2fs and efivarfs.
18651
18652         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
18653         f2fs.
18654
18655         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
18656         (EFIVARFS_MAGIC): Add.
18657         (F2FS_LINK_MAX): Add.
18658
18659 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18660
18661         * stdio-common/vfprintf.c: Replace __builtin_expect with
18662         __glibc_unlikely.
18663
18664 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
18665
18666         [BZ #13550]
18667         * sysdeps/generic/bp-sym.h: Remove file.
18668         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
18669         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
18670         <bp-sym.h> and <bp-asm.h>.
18671         (__longjmp): Don't use BP_SYM.
18672         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
18673         and <bp-asm.h>.
18674         (memcpy): Don't use BP_SYM.
18675         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
18676         <bp-sym.h> and <bp-asm.h>.
18677         (memcpy): Don't use BP_SYM.
18678         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
18679         <bp-asm.h>.
18680         (memcpy): Don't use BP_SYM.
18681         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
18682         <bp-asm.h>.
18683         (memset): Don't use BP_SYM.
18684         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
18685         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
18686         (__bzero): Don't use BP_SYM.
18687         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18688         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18689         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
18690         <bp-sym.h> and <bp-asm.h>.
18691         (memcmp): Don't use BP_SYM.  Remove comment about bounded
18692         pointers.
18693         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
18694         <bp-sym.h> and <bp-asm.h>.
18695         (memcpy): Don't use BP_SYM.
18696         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
18697         <bp-sym.h> and <bp-asm.h>.
18698         (memset): Don't use BP_SYM.
18699         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
18700         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
18701         (__bzero): Don't use BP_SYM.
18702         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18703         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18704         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
18705         <bp-sym.h> and <bp-asm.h>.
18706         (strncmp): Don't use BP_SYM.  Remove comment about bounded
18707         pointers.
18708         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
18709         <bp-sym.h> and <bp-asm.h>.
18710         (memcpy): Don't use BP_SYM.
18711         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
18712         <bp-sym.h> and <bp-asm.h>.
18713         (memset): Don't use BP_SYM.
18714         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
18715         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
18716         (__bzero): Don't use BP_SYM.
18717         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18718         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18719         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
18720         <bp-sym.h> and <bp-asm.h>.
18721         (__memchr): Don't use BP_SYM.
18722         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
18723         <bp-sym.h> and <bp-asm.h>.
18724         (memcmp): Don't use BP_SYM.  Remove comment about bounded
18725         pointers.
18726         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
18727         <bp-sym.h> and <bp-asm.h>.
18728         (memcpy): Don't use BP_SYM.
18729         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
18730         <bp-sym.h> and <bp-asm.h>.
18731         (__mempcpy): Don't use BP_SYM.
18732         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
18733         <bp-sym.h> and <bp-asm.h>.
18734         (__memrchr): Don't use BP_SYM.
18735         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
18736         <bp-sym.h> and <bp-asm.h>.
18737         (memset): Don't use BP_SYM.
18738         (__bzero): Likewise.
18739         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
18740         <bp-sym.h> and <bp-asm.h>.
18741         (__rawmemchr): Don't use BP_SYM.
18742         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
18743         <bp-sym.h> and <bp-asm.h>.
18744         (__STRCMP): Don't use BP_SYM.
18745         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
18746         <bp-sym.h> and <bp-asm.h>.
18747         (strchr): Don't use BP_SYM.
18748         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
18749         <bp-sym.h> and <bp-asm.h>.
18750         (__strchrnul): Don't use BP_SYM.
18751         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
18752         <bp-sym.h> and <bp-asm.h>.
18753         (strlen): Don't use BP_SYM.
18754         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
18755         <bp-sym.h> and <bp-asm.h>.
18756         (strncmp): Don't use BP_SYM.  Remove comment about bounded
18757         pointers.
18758         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
18759         <bp-sym.h> and <bp-asm.h>.
18760         (__strnlen): Don't use BP_SYM.
18761         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
18762         <bp-sym.h> and <bp-asm.h>.
18763         (__GI__setjmp): Don't use BP_SYM.
18764         (_setjmp): Likewise.
18765         (__sigsetjmp): Likewise.
18766         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
18767         (L(start_addresses)): Don't use BP_SYM.
18768         (_start): Likewise.
18769         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
18770         <bp-asm.h>.
18771         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
18772         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
18773         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18774         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18775         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
18776         <bp-asm.h>.
18777         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
18778         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
18779         about bounded pointers.
18780         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
18781         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
18782         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
18783         <bp-asm.h>.
18784         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
18785         about bounded pointers.  Remove GKM FIXME comments.
18786         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
18787         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
18788         <bp-asm.h>.
18789         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
18790         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
18791         Remove GKM FIXME comments.
18792         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
18793         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
18794         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
18795         <bp-asm.h>.
18796         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
18797         about bounded pointers.  Remove GKM FIXME comment.
18798         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
18799         and <bp-asm.h>.
18800         (strncmp): Don't use BP_SYM.  Remove comment about bounded
18801         pointers.
18802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
18803         <bp-sym.h> and <bp-asm.h>.
18804         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
18805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
18806         <bp-sym.h> and <bp-asm.h>.
18807         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
18808         comment.
18809
18810 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18811
18812         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
18813         call free(NULL).
18814
18815 2013-03-05  David S. Miller  <davem@davemloft.net>
18816
18817         * po/es.po: Update from translation team.
18818
18819 2013-03-05  Andreas Jaeger  <aj@suse.de>
18820
18821         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
18822         <bits/mman-linux.h>.
18823         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
18824         is fine.
18825         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
18826         <bits/mman-linux.h> to end of file.
18827         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
18828         is fine.
18829         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
18830         <bits/mman-linux.h> to end of file.
18831         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
18832         is fine.
18833         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
18834         <bits/mman-linux.h> to end of file.
18835
18836         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
18837         (MCL_CURRENT, MCL_FUTURE): Define here.
18838
18839 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18840
18841         [BZ #15232]
18842         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
18843         attribute_hidden.
18844         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
18845
18846 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18847
18848         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
18849         fourth parameter needed for rt_sigprocmask syscall.
18850         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
18851         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
18852         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
18853         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
18854         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
18855         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
18856
18857 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
18858
18859         [BZ #13550]
18860         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
18861         comment about bounded pointers.
18862         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
18863         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
18864
18865 2013-03-04  Andreas Jaeger  <aj@suse.de>
18866
18867         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
18868         common definitions.
18869
18870         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
18871         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
18872         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
18873         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18874         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18875         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18876
18877 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18878
18879         [BZ #15055]
18880         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
18881         __ieee754_sqrl instead of __sqrl.
18882
18883 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
18884
18885         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
18886         * sysdeps/powerpc/fpu_control.h: ... here.
18887         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
18888         * sysdeps/powerpc/bits/fenvinline.h: ... here.
18889         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
18890         * sysdeps/powerpc/bits/mathinline.h: ... here.
18891
18892 2013-03-01  Roland McGrath  <roland@hack.frob.com>
18893
18894         * elf/dl-hwcaps.c (_dl_important_hwcaps):
18895         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
18896         to just [NEED_DL_SYSINFO_DSO].
18897         * elf/dl-support.c: Likewise.
18898         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
18899         * elf/rtld.c (dl_main): Likewise.
18900         * elf/setup-vdso.h (setup_vdso): Likewise.
18901         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
18902         * sysdeps/unix/sysv/linux/dl-sysdep.c
18903         (_dl_discover_osversion): Likewise.
18904
18905 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
18906
18907         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
18908         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
18909
18910 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
18911
18912         * NEWS: Mention libm performance improvements and non-x86 PI
18913         futex support.
18914
18915         * csu/libc-start.c (__pthread_initialize_minimal): Change
18916         function arguments.
18917         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
18918
18919 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
18920
18921         [BZ #13550]
18922         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
18923         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
18924         <bp-sym.h> and <bp-asm.h>.
18925         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
18926         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
18927         and <bp-asm.h>.
18928         (memcpy): Don't use BP_SYM.
18929         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
18930         <bp-asm.h>.
18931         (__mpn_add_n): Don't use BP_SYM.
18932         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
18933         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
18934         and <bp-asm.h>.
18935         (__mpn_addmul_1): Don't use BP_SYM.
18936         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18937         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
18938         <bp-sym.h>.
18939         (_setjmp): Don't use BP_SYM.
18940         (__novmx_setjmp): Likewise.
18941         (__GI__setjmp): Likewise.
18942         (__vmx_setjmp): Likewise.
18943         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
18944         <bp-sym.h>.
18945         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
18946         (__bzero): Don't use BP_SYM.
18947         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
18948         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
18949         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
18950         <bp-sym.h> and <bp-asm.h>.
18951         (memcpy): Don't use BP_SYM.
18952         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
18953         <bp-sym.h> and <bp-asm.h>.
18954         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
18955         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
18956         <bp-sym.h> and <bp-asm.h>.
18957         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
18958         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
18959         <bp-asm.h>.
18960         (__mpn_lshift): Don't use BP_SYM.
18961         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
18962         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
18963         <bp-asm.h>.
18964         (memset): Don't use BP_SYM.
18965         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
18966         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
18967         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
18968         <bp-asm.h>.
18969         (__mpn_mul_1): Don't use BP_SYM.
18970         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
18971         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
18972         <bp-sym.h> and <bp-asm.h>.
18973         (memcmp): Don't use BP_SYM.
18974         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
18975         <bp-sym.h> and <bp-asm.h>.
18976         (memcpy): Don't use BP_SYM.
18977         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
18978         <bp-sym.h> and <bp-asm.h>.
18979         (memset): Don't use BP_SYM.
18980         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
18981         <bp-sym.h> and <bp-asm.h>.
18982         (strncmp): Don't use BP_SYM.
18983         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
18984         <bp-sym.h> and <bp-asm.h>.
18985         (memcpy): Don't use BP_SYM.
18986         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
18987         <bp-sym.h> and <bp-asm.h>.
18988         (memset): Don't use BP_SYM.
18989         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
18990         <bp-sym.h> and <bp-asm.h>.
18991         (__memchr): Don't use BP_SYM.
18992         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
18993         <bp-sym.h> and <bp-asm.h>.
18994         (memcmp): Don't use BP_SYM.
18995         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
18996         <bp-sym.h> and <bp-asm.h>.
18997         (memcpy): Don't use BP_SYM.
18998         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
18999         <bp-sym.h> and <bp-asm.h>.
19000         (__mempcpy): Don't use BP_SYM.
19001         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
19002         <bp-sym.h> and <bp-asm.h>.
19003         (__memrchr): Don't use BP_SYM.
19004         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
19005         <bp-sym.h> and <bp-asm.h>.
19006         (memset): Don't use BP_SYM.
19007         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
19008         <bp-sym.h> and <bp-asm.h>.
19009         (__rawmemchr): Don't use BP_SYM.
19010         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
19011         <bp-sym.h> and <bp-asm.h>.
19012         (__STRCMP): Don't use BP_SYM.
19013         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
19014         <bp-sym.h> and <bp-asm.h>.
19015         (strchr): Don't use BP_SYM.
19016         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
19017         <bp-sym.h> and <bp-asm.h>.
19018         (__strchrnul): Don't use BP_SYM.
19019         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
19020         <bp-sym.h> and <bp-asm.h>.
19021         (strlen): Don't use BP_SYM.
19022         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
19023         <bp-sym.h> and <bp-asm.h>.
19024         (strncmp): Don't use BP_SYM.
19025         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
19026         <bp-sym.h> and <bp-asm.h>.
19027         (__strnlen): Don't use BP_SYM.
19028         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
19029         <bp-asm.h>.
19030         (__mpn_rshift): Don't use BP_SYM.
19031         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19032         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
19033         <bp-sym.h> and <bp-asm.h>.
19034         (__sigsetjmp): Don't use BP_SYM.
19035         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
19036         (L(start_addresses)): Don't use BP_SYM.
19037         (_start): Likewise.
19038         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
19039         <bp-asm.h>.
19040         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
19041         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19042         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19043         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
19044         <bp-asm.h>.
19045         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
19046         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
19047         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19048         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
19049         <bp-asm.h>.
19050         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
19051         comments.
19052         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
19053         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
19054         <bp-asm.h>.
19055         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
19056         FIXME comments.
19057         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19058         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19059         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
19060         <bp-asm.h>.
19061         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
19062         comment.
19063         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
19064         and <bp-asm.h>.
19065         (strncmp): Don't use BP_SYM,
19066         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
19067         <bp-asm.h>.
19068         (__mpn_sub_n): Don't use BP_SYM.
19069         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19070         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
19071         and <bp-asm.h>.
19072         (__mpn_submul_1): Don't use BP_SYM.
19073         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
19075         <bp-sym.h> and <bp-asm.h>.
19076         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
19077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
19078         <bp-sym.h> and <bp-asm.h>.
19079         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
19080         comment.
19081
19082 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19083
19084         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
19085         Use ZK to minimize writes to Z.
19086         (sub_magnitudes): Simplify code a bit.
19087         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
19088         Use ZK to minimize writes to Z.
19089         (sub_magnitudes): Simplify code a bit.
19090
19091 2013-02-27  Roland McGrath  <roland@hack.frob.com>
19092
19093         * csu/gmon-start.c: Add special exception to license text.
19094
19095 2013-02-27  Richard Henderson  <rth@redhat.com>
19096
19097         * scripts/config.guess: Update from config.git.
19098         * scripts/config.sub: Likewise.
19099
19100 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
19101
19102         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
19103
19104         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
19105
19106         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
19107
19108         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
19109
19110         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
19111
19112 2013-02-26  Roland McGrath  <roland@hack.frob.com>
19113
19114         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
19115         [$(build-shared = yes].
19116
19117 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19118
19119         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
19120         (__mul): Reduce iterations for calculating mantissa.
19121
19122         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
19123         MPTWO.
19124         (__mpranred): Likewise.
19125
19126         [BZ #15160]
19127         * malloc/memusagestat.c (main): Draw graphs for heap and stack
19128         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
19129
19130 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
19131
19132         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
19133         Define __attribute__.
19134
19135 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19136
19137         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
19138         unused.
19139         * posix/regex_internal.h (__attribute): Remove.
19140         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
19141         (re_string_context_at): Likewise.
19142         (bitset_not): Use __attribute__ and mark function as possibly
19143         unused.
19144         (bitset_merge): Likewise.
19145         (bitset_mask): Likewise.
19146         (re_string_char_size_at): Likewise.
19147         (re_string_wchar_at): Likewise.
19148         (re_string_elem_size_at): Likewise.
19149
19150 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19151
19152         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
19153         code.
19154         (cc32): Likewise.
19155
19156         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
19157         (__acr): Likewise.
19158         (__cpy): Likewise.
19159         (norm): Likewise.
19160         (denorm): Likewise.
19161         (__dbl_mp): Likewise.
19162         (add_magnitudes): Likewise.
19163         (sub_magnitudes): Likewise.
19164         (__mul): Likewise.
19165         (__inv): Likewise.
19166
19167         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
19168         style.
19169
19170         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
19171         style.
19172
19173         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
19174         code.
19175
19176         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
19177         up changes with default code.
19178         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
19179         Likewise.
19180
19181 2013-02-24  Allan McRae  <allan@archlinux.org>
19182
19183         * manual/socket.texi (The Internet Namespace): Order menu items
19184         to match that in the file.
19185
19186         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
19187         node listing of the info page menu.
19188
19189 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
19190
19191         [BZ #13550]
19192         * sysdeps/i386/bp-asm.h: Remove file.
19193         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
19194         (PARMS): Do not use macros from bp-asm.h.
19195         (S1): Likewise.
19196         (S2): Likewise.
19197         (SIZE): Likewise.
19198         (__mpn_add_n): Do not use BP_SYM
19199         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
19200         "bp-asm.h".
19201         (PARMS): Do not use macros from bp-asm.h.
19202         (S1): Likewise.
19203         (SIZE): Likewise.
19204         (__mpn_addmul_1): Do not use BP_SYM
19205         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
19206         "bp-asm.h".
19207         (PARMS): Do not use macros from bp-asm.h.
19208         (SIGMSK): Likewise.
19209         (_setjmp): Likewise.  Do not use BP_SYM.
19210         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
19211         "bp-asm.h".
19212         (PARMS): Do not use macros from bp-asm.h.
19213         (SIGMSK): Likewise.
19214         (setjmp): Likewise.  Do not use BP_SYM.
19215         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
19216         "bp-asm.h".
19217         (PARMS): Do not use macros from bp-asm.h.
19218         (__frexp): Do not use BP_SYM.
19219         (frexp): Likewise.
19220         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
19221         "bp-asm.h".
19222         (PARMS): Do not use macros from bp-asm.h.
19223         (__frexpf): Do not use BP_SYM.
19224         (frexpf): Likewise.
19225         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
19226         "bp-asm.h".
19227         (PARMS): Do not use macros from bp-asm.h.
19228         (__frexpl): Do not use BP_SYM.
19229         (frexpl): Likewise.
19230         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
19231         "bp-asm.h".
19232         (PARMS): Do not use macros from bp-asm.h.
19233         (__remquo): Do not use BP_SYM.
19234         (remquo): Likewise.
19235         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
19236         "bp-asm.h".
19237         (PARMS): Do not use macros from bp-asm.h.
19238         (__remquof): Do not use BP_SYM.
19239         (remquof): Likewise.
19240         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
19241         "bp-asm.h".
19242         (PARMS): Do not use macros from bp-asm.h.
19243         (__remquol): Do not use BP_SYM.
19244         (remquol): Likewise.
19245         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
19246         "bp-asm.h".
19247         (PARMS): Do not use macros from bp-asm.h.
19248         (DEST): Likewise.
19249         (SRC): Likewise.
19250         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
19251         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
19252         "bp-asm.h".
19253         (PARMS): Do not use macros from bp-asm.h.
19254         (strlen): Do not use BP_SYM.
19255         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
19256         "bp-asm.h".
19257         (PARMS): Do not use macros from bp-asm.h.
19258         (S1): Likewise.
19259         (S2): Likewise.
19260         (SIZE): Likewise.
19261         (__mpn_add_n): Do not use BP_SYM.
19262         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
19263         "bp-asm.h".
19264         (PARMS): Do not use macros from bp-asm.h.
19265         (S1): Likewise.
19266         (SIZE): Likewise.
19267         (__mpn_addmul_1): Do not use BP_SYM.
19268         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
19269         weak_alias.
19270         (bzero): Likewise.
19271         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
19272         "bp-asm.h".
19273         (PARMS): Do not use macros from bp-asm.h.
19274         (S): Likewise.
19275         (SIZE): Likewise.
19276         (__mpn_lshift): Do not use BP_SYM.
19277         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
19278         "bp-asm.h".
19279         (PARMS): Do not use macros from bp-asm.h.
19280         (DEST): Likewise.
19281         (SRC): Likewise.
19282         (LEN): Likewise.
19283         (memcpy): Likewise.  Do not use BP_SYM.
19284         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
19285         libc_hidden_def and weak_alias.
19286         (mempcpy): Do not use BP_SYM in weak_alias.
19287         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
19288         "bp-asm.h".
19289         (PARMS): Do not use macros from bp-asm.h.
19290         (DEST): Likewise.
19291         (LEN): Likewise.
19292         [!BZERO_P] (CHR): Likewise.
19293         (memset): Likewise.  Do not use BP_SYM.
19294         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
19295         "bp-asm.h".
19296         (PARMS): Do not use macros from bp-asm.h.
19297         (S1): Likewise.
19298         (SIZE): Likewise.
19299         (__mpn_mul_1): Do not use BP_SYM.
19300         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
19301         "bp-asm.h".
19302         (PARMS): Do not use macros from bp-asm.h.
19303         (S): Likewise.
19304         (SIZE): Likewise.
19305         (__mpn_rshift): Do not use BP_SYM.
19306         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
19307         "bp-asm.h".
19308         (PARMS): Do not use macros from bp-asm.h.
19309         (STR): Likewise.
19310         (CHR): Likewise.
19311         (strchr): Likewise.  Do not use BP_SYM.
19312         (index): Do not use BP_SYM in weak_alias.
19313         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
19314         "bp-asm.h".
19315         (PARMS): Do not use macros from bp-asm.h.
19316         (DEST): Likewise.
19317         (SRC): Likewise.
19318         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
19319         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
19320         "bp-asm.h".
19321         (PARMS): Do not use macros from bp-asm.h.
19322         (strlen): Do not use BP_SYM.
19323         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
19324         "bp-asm.h".
19325         (PARMS): Do not use macros from bp-asm.h.
19326         (S1): Likewise.
19327         (S2): Likewise.
19328         (SIZE): Likewise.
19329         (__mpn_sub_n): Do not use BP_SYM.
19330         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
19331         "bp-asm.h".
19332         (PARMS): Do not use macros from bp-asm.h.
19333         (S1): Likewise.
19334         (SIZE): Likewise.
19335         (__mpn_submul_1): Do not use BP_SYM.
19336         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
19337         "bp-asm.h".
19338         (PARMS): Do not use macros from bp-asm.h.
19339         (S1): Likewise.
19340         (S2): Likewise.
19341         (SIZE): Likewise.
19342         (__mpn_add_n): Do not use BP_SYM.
19343         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
19344         weak_alias.
19345         (bzero): Likewise.
19346         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
19347         "bp-asm.h".
19348         (PARMS): Do not use macros from bp-asm.h.
19349         (BLK2): Likewise.
19350         (LEN): Likewise.
19351         (memcmp): Do not use BP_SYM.
19352         (bcmp): Do not use BP_SYM in weak_alias.
19353         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
19354         "bp-asm.h".
19355         (PARMS): Do not use macros from bp-asm.h.
19356         (DEST): Likewise.
19357         (SRC): Likewise.
19358         (LEN): Likewise.
19359         (memcpy): Likewise.  Do not use BP_SYM.
19360         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
19361         "bp-asm.h".
19362         (PARMS): Do not use macros from bp-asm.h.
19363         (DEST): Likewise.
19364         (SRC): Likewise.
19365         (LEN): Likewise.
19366         (memmove): Likewise.  Do not use BP_SYM.
19367         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
19368         "bp-asm.h".
19369         (PARMS): Do not use macros from bp-asm.h.
19370         (DEST): Likewise.
19371         (SRC): Likewise.
19372         (LEN): Likewise.
19373         (__mempcpy): Likewise.  Do not use BP_SYM.
19374         (mempcpy): Do not use BP_SYM in weak_alias.
19375         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
19376         "bp-asm.h".
19377         (PARMS): Do not use macros from bp-asm.h.
19378         (DEST): Likewise.
19379         (LEN): Likewise.
19380         [!BZERO_P] (CHR): Likewise.
19381         (memset): Likewise.  Do not use BP_SYM.
19382         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
19383         "bp-asm.h".
19384         (PARMS): Do not use macros from bp-asm.h.
19385         (STR2): Likewise.
19386         (strcmp): Do not use BP_SYM.
19387         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
19388         "bp-asm.h".
19389         (PARMS): Do not use macros from bp-asm.h.
19390         (STR): Likewise.
19391         (DELIM): Likewise.
19392         [USE_AS_STRTOK_R] (SAVE): Likewise.
19393         (FUNCTION): Likewise.  Do not use BP_SYM.
19394         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
19395         aliases.
19396         (strtok_r): Likewise.
19397         (__GI___strtok_r): Likewise.
19398         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
19399         (PARMS): Do not use macros from bp-asm.h.
19400         (S): Likewise.
19401         (SIZE): Likewise.
19402         (__mpn_lshift): Do not use BP_SYM.
19403         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
19404         (PARMS): Do not use macros from bp-asm.h.
19405         (STR): Likewise.
19406         (CHR): Likewise.
19407         (__memchr): Do not use BP_SYM.
19408         (memchr): Do not use BP_SYM in weak_alias.
19409         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
19410         (PARMS): Do not use macros from bp-asm.h.
19411         (BLK2): Likewise.
19412         (LEN): Likewise.
19413         (memcmp): Do not use BP_SYM.
19414         (bcmp): Do not use BP_SYM in weak_alias.
19415         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
19416         (PARMS): Do not use macros from bp-asm.h.
19417         (S1): Likewise.
19418         (SIZE): Likewise.
19419         (__mpn_mul_1): Do not use BP_SYM.
19420         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
19421         "bp-asm.h".
19422         (PARMS): Do not use macros from bp-asm.h.
19423         (STR): Likewise.
19424         (CHR): Likewise.
19425         (__rawmemchr): Do not use BP_SYM.
19426         (rawmemchr): Do not use BP_SYM in weak_alias.
19427         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
19428         (PARMS): Do not use macros from bp-asm.h.
19429         (S): Likewise.
19430         (SIZE): Likewise.
19431         (__mpn_rshift): Do not use BP_SYM.
19432         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
19433         (PARMS): Do not use macros from bp-asm.h.
19434         (SIGMSK): Likewise.
19435         (__sigsetjmp): Likewise.  Do not use BP_SYM.
19436         * sysdeps/i386/start.S: Do not include "bp-sym.h".
19437         (_start): Do not use BP_SYM.
19438         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
19439         (PARMS): Do not use macros from bp-asm.h.
19440         (DEST): Likewise.
19441         (SRC): Likewise.
19442         (__stpcpy): Likewise.  Do not use BP_SYM.
19443         (stpcpy): Do not use BP_SYM in weak_alias.
19444         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
19445         "bp-asm.h".
19446         (PARMS): Do not use macros from bp-asm.h.
19447         (DEST): Likewise.
19448         (SRC): Likewise.
19449         (LEN): Likewise.
19450         (__stpncpy): Likewise.  Do not use BP_SYM.
19451         (stpncpy): Do not use BP_SYM in weak_alias.
19452         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
19453         (PARMS): Do not use macros from bp-asm.h.
19454         (STR): Likewise.
19455         (CHR): Likewise.
19456         (strchr): Likewise.  Do not use BP_SYM.
19457         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
19458         "bp-asm.h".
19459         (PARMS): Do not use macros from bp-asm.h.
19460         (STR): Likewise.
19461         (CHR): Likewise.
19462         (__strchrnul): Likewise.  Do not use BP_SYM.
19463         (strchrnul): Do not use BP_SYM in weak_alias.
19464         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
19465         "bp-asm.h".
19466         (PARMS): Do not use macros from bp-asm.h.
19467         (STOP): Likewise.
19468         (strcspn): Do not use BP_SYM.
19469         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
19470         "bp-asm.h".
19471         (PARMS): Do not use macros from bp-asm.h.
19472         (STR): Likewise.
19473         (STOP): Likewise.
19474         (strpbrk): Likewise.  Do not use BP_SYM.
19475         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
19476         "bp-asm.h".
19477         (PARMS): Do not use macros from bp-asm.h.
19478         (STR): Likewise.
19479         (CHR): Likewise.
19480         (strrchr): Likewise.  Do not use BP_SYM.
19481         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
19482         (PARMS): Do not use macros from bp-asm.h.
19483         (SKIP): Likewise.
19484         (strspn): Do not use BP_SYM.
19485         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
19486         (PARMS): Do not use macros from bp-asm.h.
19487         (STR): Likewise.
19488         (DELIM): Likewise.
19489         (SAVE): Likewise.
19490         (FUNCTION): Likewise.  Do not use BP_SYM.
19491         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
19492         aliases.
19493         (strtok_r): Likewise.
19494         (__GI___strtok_r): Likewise.
19495         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
19496         (PARMS): Do not use macros from bp-asm.h.
19497         (S1): Likewise.
19498         (S2): Likewise.
19499         (SIZE): Likewise.
19500         (__mpn_sub_n): Do not use BP_SYM.
19501         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
19502         "bp-asm.h".
19503         (PARMS): Do not use macros from bp-asm.h.
19504         (S1): Likewise.
19505         (SIZE): Likewise.
19506         (__mpn_submul_1): Do not use BP_SYM.
19507         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
19508         <bp-sym.h>.
19509         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
19510         and <bp-asm.h>.
19511         (PARMS): Do not use macros from bp-asm.h.
19512         (FLAGS): Likewise.
19513         (PTID): Likewise.
19514         (TLS): Likewise.
19515         (CTID): Likewise.
19516         (__clone): Do not use BP_SYM.
19517         (clone): Do not use BP_SYM in weak_alias.
19518         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
19519         and <bp-asm.h>.
19520         (PARMS): Do not use macros from bp-asm.h.
19521         (LEN): Likewise.
19522         (__mmap64): Do not use BP_SYM.
19523         (mmap64): Do not use BP_SYM in weak_alias.
19524         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
19525         <bp-sym.h> and <bp-asm.h>.
19526         (PARMS): Do not use macros from bp-asm.h.
19527         (__posix_fadvise64_l64): Do not use BP_SYM.
19528         * sysdeps/unix/sysv/linux/i386/semtimedop.S
19529         (PARMS): Do not use macros from bp-asm.h.
19530         (NSOPS): Likewise.
19531         (semtimedop): Do not use BP_SYM.
19532         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
19533         and <bp-asm.h>.
19534
19535 2013-02-21  Allan McRae  <allan@archlinux.org>
19536
19537         * manual/message.texi (Charset conversion in gettext):
19538         Move @end statement to beginning of line.
19539
19540 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19541
19542         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
19543         static.
19544         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
19545         Likewise.
19546
19547         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
19548         (denorm): Likewise.
19549         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
19550         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
19551
19552 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19553
19554         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
19555         tail-call to the resolved function if pltexit isn't needed.
19556
19557 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19558
19559         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
19560         or Y being zero as being unlikely.
19561         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
19562         Likewise.
19563
19564 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
19565
19566         * manual/nss.texi (System Databases and Name Service Switch):
19567         Remove frobnicate @pxref.
19568
19569 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
19570
19571         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
19572         __attribute__ ((unused)) to __attribute__ ((__unused__)).
19573
19574 2013-02-20  Petr Machata  <pmachata@redhat.com>
19575
19576         * elf/elf.h (R_ARM_TARGET1): New macro.
19577         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
19578         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
19579         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
19580         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
19581         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
19582         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
19583         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
19584         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
19585         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
19586         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
19587         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
19588         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
19589         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
19590         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
19591         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
19592         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
19593         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
19594         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
19595         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
19596         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
19597         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
19598         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
19599         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
19600         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
19601         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
19602         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
19603         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
19604         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
19605         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
19606         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
19607         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
19608         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
19609         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
19610         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
19611         (R_ARM_THM_GOT_BREL12): Likewise.
19612         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
19613         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
19614         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
19615         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
19616         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
19617         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
19618         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
19619         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
19620         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
19621
19622 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
19623
19624         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
19625         __attribute_used__ to __attribute__ ((unused)).
19626
19627 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
19628
19629         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
19630         powerpc mpa.c.
19631         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
19632         comment formatting.
19633         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
19634
19635 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
19636
19637         [BZ #13550]
19638         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
19639         Remove macro.
19640         (ENTER): Remove both macro definitions.
19641         (LEAVE): Likewise.
19642         (CHECK_BOUNDS_LOW): Likewise.
19643         (CHECK_BOUNDS_HIGH): Likewise.
19644         (CHECK_BOUNDS_BOTH): Likewise.
19645         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
19646         (RETURN_BOUNDED_POINTER): Likewise.
19647         (RETURN_NULL_BOUNDED_POINTER): Likewise.
19648         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
19649         (POP_ERRNO_LOCATION_RETURN): Likewise.
19650         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
19651         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19652         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
19653         macros.
19654         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19655         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
19656         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
19657         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
19658         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
19659         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
19660         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
19661         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
19662         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
19663         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
19664         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
19665         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
19666         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19667         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
19668         removed macros.
19669         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19670         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
19671         macros.
19672         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19673         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
19674         * sysdeps/i386/i586/memset.S (memset): Likewise.
19675         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
19676         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19677         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
19678         macros.
19679         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19680         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
19681         Change uses of L(2) to L(out).
19682         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
19683         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
19684         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
19685         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19686         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
19687         removed macros.
19688         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19689         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
19690         macros.
19691         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19692         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
19693         (RETURN): Do not use macro LEAVE.
19694         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
19695         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
19696         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
19697         * sysdeps/i386/i686/memset.S (memset): Likewise.
19698         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
19699         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
19700         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
19701         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
19702         Likewise.
19703         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19704         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
19705         L(1_2) and L(1_3) into L(1).
19706         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
19707         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
19708         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19709         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
19710         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
19711         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
19712         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
19713         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19714         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
19715         macros.
19716         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
19717         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19718         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
19719         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
19720         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
19721         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19722         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
19723         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
19724         * sysdeps/i386/strcspn.S (strcspn): Likewise.
19725         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
19726         * sysdeps/i386/strrchr.S (strrchr): Likewise.
19727         * sysdeps/i386/strspn.S (strspn): Likewise.
19728         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
19729         conditional code.
19730         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19731         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
19732         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
19733         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
19734         L(1_3) into L(1_1).
19735         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
19736         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19737         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
19738         macros.
19739         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19740
19741 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
19742
19743         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
19744         macro.
19745
19746 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
19747
19748         * math/atest-exp.c (exp_mpn): Remove ROUND.
19749         * math/atest-exp2.c (exp_mpn): Likewise.
19750         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
19751
19752         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
19753         * stdlib/tst-tls-atexit-lib.c: Likewise.
19754         * stdlib/tst-tls-atexit.c: Likewise.
19755
19756 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
19757
19758         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
19759         and __attribute_alloc_size__.
19760
19761 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
19762
19763         * include/programs/xmalloc.h: Change __attribute_alloc_size to
19764         __attribute_alloc_size__.
19765         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
19766         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
19767
19768 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
19769
19770         * include/programs/xmalloc.h: New file.
19771         * catgets/gencat.c: Include it.
19772         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
19773         * elf/pldd.c: Likewise.
19774         * iconv/iconv_charmap.c: Likewise.
19775         * iconv/iconvconfig.c: Likewise.
19776         * iconv/strtab.c: Likewise.
19777         * locale/programs/locale.c: Likewise.
19778         * locale/programs/localedef.h: Likewise.
19779         * locale/programs/simple-hash.c: Likewise.
19780         * nscd/nscd.h: Likewise.
19781         * nss/makedb.c: Likewise.
19782         * sysdeps/generic/ldconfig.h: Likewise.
19783
19784 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19785
19786         * Versions.def: Add GLIBC_2.18.
19787         * include/link.h (struct link_map): New member l_tls_dtor_count.
19788         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
19789         (__call_tls_dtors): Likewise.
19790         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
19791         __cxa_thread_atexit_impl.
19792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19793         Likewise.
19794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
19795         Likewise.
19796         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
19797         Likewise.
19798         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
19799         Likewise.
19800         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
19801         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
19802         Likewise.
19803         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
19804         Likewise.
19805         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
19806         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
19807         Likewise.
19808         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
19809         (tests): Add test case tst-tls-atexit.
19810         (modules-names): Add shared library for tst-tls-atexit.
19811         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
19812         (GLIBC_PRIVATE): Add __call_tls_dtors.
19813         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
19814         for libstdc++.
19815         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
19816         * stdlib/tst-tls-atexit.c: New test case.
19817         * stdlib/tst-tls-atexit-lib.c: New test case.
19818
19819         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
19820
19821         * elf/Versions (ld): Add _dl_find_dso_for_object.
19822         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
19823         * elf/dl-open.c (_dl_find_dso_for_object): New function.
19824         (dl_open_worker): Use _dl_find_dso_for_object.
19825         * elf/dl-sym.c (do_sym): Likewise.
19826         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
19827
19828 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19829
19830         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
19831         Syntactic changes only.
19832         (_dl_runtime_profile): Do a tail-call to the resolved function.
19833
19834 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
19835
19836         [BZ #13550]
19837         * sysdeps/x86_64/bp-asm.h: Remove file.
19838         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
19839         <bp-sym.h> and <bp-asm.h>.
19840         (__clone): Do not use BP_SYM.
19841         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
19842         <bp-sym.h> and <bp-asm.h>.
19843         * sysdeps/unix/x86_64/sysdep.S: Likewise.
19844         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
19845         "bp-asm.h".
19846         (_setjmp): Do not use BP_SYM.
19847         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
19848         "bp-asm.h".
19849         (setjmp): Do not use BP_SYM.
19850         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
19851         libc_hidden_def.
19852         (mempcpy): Do not use BP_SYM in weak_alias.
19853         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
19854         "bp-asm.h".
19855         (strchr): Do not use BP_SYM.
19856         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
19857         "bp-asm.h".
19858         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
19859         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
19860         (_start): Do not use BP_SYM.
19861         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
19862         "bp-asm.h".
19863         (strcat): Do not use BP_SYM.
19864         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
19865         "bp-asm.h".
19866         (STRCMP): Do not use BP_SYM.
19867         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
19868         "bp-asm.h".
19869         (STRCPY): Do not use BP_SYM.
19870         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
19871         "bp-asm.h".
19872         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
19873         "bp-asm.h".
19874         (FUNCTION): Do not use BP_SYM.
19875         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
19876         weak_alias.
19877         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
19878
19879 2013-02-17  Andreas Jaeger  <aj@suse.de>
19880
19881         * time/Versions: Sort entries.
19882         * string/Versions: Likewise.
19883         * resolv/Versions: Likewise.
19884         * posix/Versions: Likewise.
19885         * iconv/Versions: Likewise.
19886         * elf/Versions: Likewise.
19887         * wcsmbs/Versions: Likewise.
19888
19889 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19890
19891         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
19892         loop termination condition.
19893
19894         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
19895         variable to calculate EZ.
19896         (__sqr): Likewise.
19897
19898         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
19899         the lower precision input.
19900
19901 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
19902
19903         [BZ #13550]
19904         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
19905         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
19906         (run-via-rtld-prefix): Do not handle %-bp tests.
19907         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
19908         (all-object-suffixes): Remove .ob.
19909         (bppfx): Remove variable.
19910         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
19911         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
19912         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
19913         [$(build-bounded) = yes] (libtype.ob): Likewise.
19914         * Makerules (elide-routines.ob): Remove variable.
19915         (do-tests-clean): Do not handle *-bp.out.
19916         (common-mostlyclean): Do not handle *-bp and *-bp.out.
19917         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
19918         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
19919         (tests): Do not include $(tests-bp.out).
19920         (xtests): Do not include $(xtests-bp.out).
19921         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
19922         [$(build-bounded) = yes] ($(addprefix
19923         $(objpfx),$(binaries-bounded))): Remove rule.
19924         ($(objpfx)%-bp.out): Remove rule.
19925         * config.make.in (build-bounded): Remove variable.
19926         * crypt/Makefile [$(build-bounded) = yes]
19927         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
19928         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
19929         append to variable.
19930         [$(build-bounded) = yes] (install-lib): Likewise.
19931         [$(build-bounded) = yes] (generated): Likewise.
19932         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
19933         Remove rule.
19934         * intl/Makefile [$(build-bounded) = yes]
19935         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
19936         * math/Makefile [$(build-bounded) = yes]
19937         ($(tests:%=$(objpfx)%-bp): Likewise.
19938         * misc/Makefile [$(build-bounded) = yes]
19939         ($(objpfx)tst-tsearch-bp): Likewise.
19940         * nptl/Makeconfig (bounded-thread-library): Remove variable.
19941         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
19942         Remove dependency.
19943         * string/Makefile (o-objects.ob): Remove variable.
19944         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
19945         (CFLAGS-.ob): Remove variable.
19946         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
19947         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
19948         both definitions of variable.
19949         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
19950         (ASFLAGS-.ob): Remove variable.
19951
19952 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
19953
19954         [BZ #13550]
19955         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
19956         Remove __BOUNDED_POINTERS__ from condition.
19957         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
19958         * string/bits/string2.h [!__NO_STRING_INLINES &&
19959         !__BOUNDED_POINTERS__]: Likewise.
19960         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
19961         Likewise.
19962         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
19963         Remove conditional code.
19964         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
19965         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
19966         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
19967         condition.
19968
19969         [BZ #13550]
19970         * csu/libc-start.c: Do not include <bp-sym.h>.
19971         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
19972         * elf/dl-open.c: Do not include <bp-sym.h>.
19973         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
19974         * math/fegetenv.c: Do not include <bp-sym.h>.
19975         (fegetenv): Do not use BP_SYM in versioned symbols.
19976         * nptl/sysdeps/pthread/bits/libc-lockP.h
19977         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
19978         <bp-sym.h>.
19979         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19980         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
19981         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19982         (__pthread_mutex_destroy): Likewise.
19983         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19984         (__pthread_mutex_lock): Likewise.
19985         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19986         (__pthread_mutex_trylock): Likewise.
19987         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19988         (__pthread_mutex_unlock): Likewise.
19989         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19990         (__pthread_mutexattr_init): Likewise.
19991         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19992         (__pthread_mutexattr_destroy): Likewise.
19993         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19994         (__pthread_mutexattr_settype): Likewise.
19995         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19996         (__pthread_rwlock_init): Likewise.
19997         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
19998         (__pthread_rwlock_destroy): Likewise.
19999         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20000         (__pthread_rwlock_rdlock): Likewise.
20001         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20002         (__pthread_rwlock_tryrdlock): Likewise.
20003         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20004         (__pthread_rwlock_wrlock): Likewise.
20005         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20006         (__pthread_rwlock_trywrlock): Likewise.
20007         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20008         (__pthread_rwlock_unlock): Likewise.
20009         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20010         (__pthread_key_create): Likewise.
20011         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20012         (__pthread_setspecific): Likewise.
20013         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20014         (__pthread_getspecific): Likewise.
20015         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
20016         Likewise.
20017         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20018         (_pthread_cleanup_push_defer): Likewise.
20019         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20020         (_pthread_cleanup_pop_restore): Likewise.
20021         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20022         (pthread_setcancelstate): Likewise.
20023         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
20024         <bp-sym.h>.
20025         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
20026         (memchr): Do not use BP_SYM in weak_alias.
20027         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
20028         (fegetenv): Do not use BP_SYM in versioned symbols.
20029         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
20030         (fesetenv): Do not use BP_SYM in versioned symbols.
20031         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
20032         (feupdateenv): Do not use BP_SYM in versioned symbols.
20033         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
20034         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
20035         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
20036         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
20037         (open64): Do not use BP_SYM in weak_alias.
20038         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
20039         (fegetenv): Do not use BP_SYM in versioned symbols.
20040         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
20041         (fesetenv): Do not use BP_SYM in versioned symbols.
20042         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
20043         (feupdateenv): Do not use BP_SYM in versioned symbols.
20044         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
20045         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
20046         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
20047         (feraiseexcept): Do not use BP_SYM in versioned symbols.
20048         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
20049         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
20050         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
20051         <bp-sym.h>.
20052         (__libc_start_main): Do not use BP_SYM.
20053
20054 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20055
20056         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
20057         redundant return line.
20058         (norm): Likewise.
20059         (denorm): Likewise.
20060         (dbl_mp): Likewise.
20061         (sub_magnitudes): Likewise.
20062         (__add): Likewise.
20063         (__sub): Likewise.
20064         (__mul): Likewise.
20065         (__inv): Likewise.
20066         (__dvd): Likewise.
20067         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
20068         (norm): Likewise.
20069         (denorm): Likewise.
20070         (dbl_mp): Likewise.
20071         (sub_magnitudes): Likewise.
20072         (__add): Likewise.
20073         (__sub): Likewise.
20074         (__mul): Likewise.
20075         (__inv): Likewise.
20076         (__dvd): Likewise.
20077
20078         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
20079         instead of __mul.
20080         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
20081         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
20082         (cc32): Likewise.
20083
20084         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
20085         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
20086         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
20087         of __mul for squares.
20088         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
20089         function
20090         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
20091         Likewise.
20092         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
20093         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
20094
20095 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
20096
20097         [BZ #13550]
20098         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
20099         code.
20100         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
20101         prototype or function definition.  Rename ubp_* variables and
20102         parameters.  Remove argv definitions conditional on
20103         [__BOUNDED_POINTERS__].
20104         * debug/backtrace.c (__backtrace): Do not use __unbounded.
20105         * elf/dl-runtime.c (_dl_fixup): Likewise.
20106         * include/set-hooks.h (RUN_HOOK): Likewise.
20107         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
20108         definition.
20109         * string/strcpy.c (strcpy): Do not use __unbounded.
20110         * sysdeps/generic/frame.h (struct layout): Likewise.
20111         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
20112         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
20113         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
20114         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
20115         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
20116         (__backtrace): Likewise.
20117         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
20118         use __ptrvalue.
20119         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
20120         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
20121         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
20122         Likewise.
20123         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
20124         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
20125         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
20126         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
20127         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
20128         Do not use __unbounded.
20129         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
20130         Rename __unboundedrlimits parameter to rlimits in prototype.
20131         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
20132         Do not use __unbounded.
20133         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
20134         not use __ptrvalue.
20135         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
20136         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
20137         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
20138         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
20139         __ptrvalue or __unbounded.
20140         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
20141         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
20142         use __unbounded.
20143         (__new_msgctl): Do not use __ptrvalue.
20144         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
20145         __unbounded.
20146         (__libc_msgrcv): Do not use __ptrvalue.
20147         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
20148         startup_info): Do not use __unbounded.
20149         (__libc_start_main): Likewise.  Rename ubp_* variables and
20150         parameters.  Remove argv definitions conditional on
20151         [__BOUNDED_POINTERS__].
20152         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
20153         __ptrvalue.
20154         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
20155         use __unbounded.
20156         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
20157         or __ptrvalue.
20158         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
20159         use __unbounded.
20160         (__new_shmctl): Do not use __ptrvalue.
20161         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
20162         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
20163         Likewise.
20164         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
20165         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
20166         (__libc_sigaction): Likewise.
20167         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
20168         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
20169         Likewise.
20170         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
20171
20172 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
20173
20174         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
20175
20176         * string/mempcpy.c: Implement by calling memcpy.
20177
20178 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
20179
20180         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
20181
20182         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
20183         evaluation.
20184
20185         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
20186         values in the mantissa.
20187
20188         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
20189         minimize writes to Z.
20190         (sub_magnitudes): Simplify code a bit.
20191
20192 2013-02-12  Roland McGrath  <roland@hack.frob.com>
20193
20194         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
20195         from the message.  The linker prefixes all warnings with that already.
20196
20197 2013-02-12  Andreas Schwab  <schwab@suse.de>
20198
20199         [BZ #15078]
20200         * posix/regexec.c (extend_buffers): Add parameter min_len.
20201         (check_matching): Pass minimum needed length.
20202         (clean_state_log_if_needed): Likewise.
20203         (get_subexp): Likewise.
20204         * posix/Makefile (tests): Add bug-regex34.
20205         (bug-regex34-ENV): Define.
20206         * posix/bug-regex34.c: New file.
20207
20208         [BZ #11561]
20209         * posix/regcomp.c (parse_bracket_exp): When looking up collating
20210         elements compare against the byte sequence of it, not its name.
20211         * posix/Makefile (tests): Add bug-regex35.
20212         (bug-regex35-ENV): Define.
20213         * posix/bug-regex35.c: New file.
20214
20215 2013-02-11  Tom de Vries  <tom@codesourcery.com>
20216
20217         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
20218         comment.
20219         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
20220         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
20221         (CHECK_EOL): Add undef.
20222
20223 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
20224
20225         * bits/stdlib-bsearch.h: New file.
20226         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
20227         * stdlib/stdlib.h: Likewise.
20228
20229 2013-02-11  Roland McGrath  <roland@hack.frob.com>
20230
20231         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
20232         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
20233         declaration.
20234         * manual/search.texi (Array Search Function): Add missing const in
20235         lfind prototype.
20236         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
20237         declaration to use rlim_t.
20238         (Basic Scheduling Functions): Remove erroneous const from
20239         sched_getparam prototype.  Remove erroneous * from
20240         sched_get_priority_max and sched_get_priority_min prototypes.
20241         (Resource Usage): Fix summary @comment on vtimes to refer to
20242         sys/vtimes.h rather than vtimes.h.
20243         Add missing *s in vtimes prototype.
20244         (Limits on Resources): Fix ulimit prototype to return long int.
20245         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
20246         prototypes to use long int rather than double.
20247         (BSD Random): Fix initstate and setstate to use char *, not void *.
20248         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
20249         prototype to make second argument 'struct aiocb64 *const[]'.
20250         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
20251         (Status of AIO Operations): Remove erroneous const in aio_return and
20252         aio_return64 prototypes.
20253         (Synchronizing I/O): Fix sync prototype to return void.
20254         * manual/startup.texi (Suboptions): Remove an erroneous const in
20255         getsubopt prototype.
20256         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
20257         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
20258         use size_t rather than int.
20259         (Scanning All Users): Likewise for getpwent_r.
20260         (Setting Groups): Add missing const to setgroups prototype.
20261         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
20262         * manual/socket.texi (Host Names): Fix gethostbyaddr and
20263         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
20264         'const void *' rather than 'const char *'.
20265         (Host Address Functions): Likewise for inet_ntop.
20266         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
20267         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
20268         ssize_t for return value.
20269         (Sending Data): Likewise for send, sendto, sendmsg.
20270         (Socket Option Functions): Add a missing const in setsockopt prototype.
20271         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
20272         use wchar_t for the argument.
20273         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
20274         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
20275         take no arguments.
20276         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
20277         double/float/long double for second argument.
20278         Fix return types of significand, significandf, significandl.
20279         * manual/filesys.texi (Setting Permissions): Use mode_t for second
20280         argument in fchmod prototype.
20281         (File Owner): Use uid_t and gid_t in fchown prototype.
20282         (File Times): Add const to utimes, futimes, and lutimes prototypes.
20283         (Making Special Files): Use mode_t and dev_t in mknod prototype.
20284         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
20285         use 'const struct dirent **' as argument types to CMP function pointer
20286         argument.
20287         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
20288         (File Times): Fix summary magic @comment for struct utimbuf and utime
20289         to refer to utime.h, not time.h.
20290         * manual/string.texi (Argz Functions): Add missing const in
20291         argz_extract and argz_next prototypes.
20292         (Finding Tokens in a String): Likewise for basename.
20293         (String/Array Comparison): Fix typo in wcscasecmp prototype.
20294         (Copying and Concatenation): Fix typo in wmemmove prototype.
20295         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
20296         (Signal Stack): Remove erroneous const in sigstack prototype.
20297         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
20298         prototype.
20299         (Simple Calendar Time): Likewise for stime.
20300         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
20301         prototype.
20302         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
20303         say sys/sysctl.h instead.
20304         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
20305         and vsyslog prototypes.
20306
20307 2013-02-11  Tom de Vries  <tom@codesourcery.com>
20308
20309         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
20310         Remove.
20311
20312 2013-02-11  Roland McGrath  <roland@hack.frob.com>
20313
20314         * misc/sys/mman.h: Fix typo in mremap comment.
20315
20316 2013-02-08  Roland McGrath  <roland@hack.frob.com>
20317
20318         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
20319         the '\0' terminator.
20320
20321 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
20322
20323         [BZ #13550]
20324         * debug/segfault.c: Don't include <bp-checks.h>.
20325         * sysdeps/generic/bp-checks.h: Remove file.
20326         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
20327         (__GETDENTS): Don't use CHECK_N.
20328         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
20329         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
20330         (__getgroups): Don't use CHECK_N.
20331         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
20332         (setgroups): Don't use CHECK_N.
20333         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
20334         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
20335         (__libc_msgrcv): Don't use CHECK_N.
20336         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
20337         (__libc_msgsnd): Don't use CHECK_N.
20338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
20339         <bp-checks.h>.
20340         (__libc_pread): Don't use CHECK_N.
20341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
20342         include <bp-checks.h>.
20343         (__libc_pread64): Don't use CHECK_N.
20344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
20345         include <bp-checks.h>.
20346         (__libc_pwrite): Don't use CHECK_N.
20347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
20348         include <bp-checks.h>.
20349         (__libc_pwrite64): Don't use CHECK_N.
20350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
20351         <bp-checks.h>.
20352         (__libc_pread): Don't use CHECK_N.
20353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
20354         include <bp-checks.h>.
20355         (__libc_pread64): Don't use CHECK_N.
20356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
20357         include <bp-checks.h>.
20358         (__libc_pwrite): Don't use CHECK_N.
20359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
20360         include <bp-checks.h>.
20361         (__libc_pwrite64): Don't use CHECK_N.
20362         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
20363         (do_pread): Don't use CHECK_N.
20364         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
20365         (do_pread64): Don't use CHECK_N.
20366         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
20367         (do_pwrite): Don't use CHECK_N.
20368         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
20369         (do_pwrite64): Don't use CHECK_N.
20370         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
20371         (__libc_readv): Don't use CHECK_N.
20372         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
20373         (semop): Don't use CHECK_N.
20374         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
20375         <bp-checks.h>.
20376         (semtimedop): Don't use CHECK_N.
20377         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
20378         (__libc_pread): Don't use CHECK_N.
20379         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
20380         <bp-checks.h>.
20381         (__libc_pread64): Don't use CHECK_N.
20382         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
20383         <bp-checks.h>.
20384         (__libc_pwrite): Don't use CHECK_N.
20385         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
20386         <bp-checks.h>.
20387         (__libc_pwrite64): Don't use CHECK_N.
20388         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
20389         <bp-checks.h>.
20390         (__libc_msgrcv): Don't use CHECK_N.
20391         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
20392         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
20393         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
20394         (__libc_writev): Don't use CHECK_N.
20395
20396 2013-02-08  Roland McGrath  <roland@hack.frob.com>
20397
20398         * string/strcpy.c: Removed unused variable.
20399
20400         * Makeconfig (+sysdep-includes): Define with := rather than =.
20401         Use an existing include/ subdir of each sysdeps dir before it.
20402
20403 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
20404
20405         * nscd/connection.c (register_traced_file): Comment function.
20406         [HAVE_INOTIFY] (union __inev): Define.
20407         [HAVE_INOTIFY] (inotify_check_files): New function.
20408         [HAVE_INOTIFY] (clear_db_cache): Likewise.
20409         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
20410         clear_db_cache.
20411         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
20412
20413 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
20414
20415         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
20416         loaded if not already and that a failure is permanent.
20417
20418 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
20419
20420         [BZ #15006]
20421         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
20422         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
20423
20424 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
20425
20426         [BZ #13550]
20427         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
20428         (CHECK_1_NULL_OK): Likewise.
20429         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
20430         (__fxstat): Do not use CHECK_1.
20431         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
20432         <bp-checks.h>.
20433         (___fxstat64): Do not use CHECK_1.
20434         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
20435         <bp-checks.h>.
20436         (__fxstatat): Do not use CHECK_1.
20437         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
20438         <bp-checks.h>.
20439         (__fxstatat64): Do not use CHECK_1.
20440         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
20441         <bp-checks.h>.
20442         (__fxstat): Do not use CHECK_1.
20443         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
20444         <bp-checks.h>.
20445         (__fxstatat): Do not use CHECK_1.
20446         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
20447         <bp-checks.h>.
20448         (__getresgid): Do not use CHECK_1.
20449         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
20450         <bp-checks.h>.
20451         (__getresuid): Do not use CHECK_1.
20452         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
20453         <bp-checks.h>.
20454         (__lxstat): Do not use CHECK_1.
20455         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
20456         <bp-checks.h>.
20457         (__old_msgctl): Do not use CHECK_1.
20458         (__new_msgctl): Likewise.
20459         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
20460         <bp-checks.h>.
20461         (__new_setrlimit): Do not use CHECK_1.
20462         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
20463         <bp-checks.h>.
20464         (__old_shmctl): Do not use CHECK_1.
20465         (__new_shmctl): Likewise.
20466         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
20467         <bp-checks.h>.
20468         (__xstat): Do not use CHECK_1.
20469         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
20470         (__lxstat): Do not use CHECK_1.
20471         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
20472         <bp-checks.h>.
20473         (___lxstat64): Do not use CHECK_1.
20474         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
20475         (__old_msgctl): Do not use CHECK_1.
20476         (__new_msgctl): Likewise.
20477         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
20478         <bp-checks.h>.
20479         (__gettimeofday): Do not use CHECK_1.
20480         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
20481         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
20482         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
20483         <bp-checks.h>.
20484         (__gettimeofday): Do not use CHECK_1.
20485         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
20486         (__old_shmctl): Do not use CHECK_1_NULL_OK.
20487         (__new_shmctl): Do not use CHECK_1.
20488         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
20489         <bp-checks.h>.
20490         (do_sigtimedwait): Do not use CHECK_1.
20491         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
20492         <bp-checks.h>.
20493         (do_sigwaitinfo): Do not use CHECK_1.
20494         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
20495         <bp-checks.h>.
20496         (msgctl): Do not use CHECK_1.
20497         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
20498         <bp-checks.h>.
20499         (shmctl): Do not use CHECK_1.
20500         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
20501         (ustat): Do not use CHECK_1.
20502         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
20503         <bp-checks.h>.
20504         (__fxstat): Do not use CHECK_1.
20505         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
20506         <bp-checks.h>.
20507         (__fxstatat): Do not use CHECK_1.
20508         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
20509         <bp-checks.h>.
20510         (__lxstat): Do not use CHECK_1.
20511         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
20512         <bp-checks.h>.
20513         (__xstat): Do not use CHECK_1.
20514         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
20515         (__xstat): Do not use CHECK_1.
20516         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
20517         (___xstat64): Do not use CHECK_1.
20518
20519         [BZ #13550]
20520         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
20521         definitions.
20522         (CHECK_BOUNDS_HIGH): Likewise.
20523         * string/strcpy.c: Do not include <bp-checks.h>.
20524         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
20525
20526 2013-02-07  Roland McGrath  <roland@hack.frob.com>
20527
20528         * nscd/nscd-client.h (__nscd_drop_map_ref):
20529         Add __attribute__ ((unused)).
20530         * nis/nss-nisplus.h (niserr2nss): Likewise.
20531
20532         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
20533         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
20534
20535         * csu/libc-tls.c (init_static_tls, init_slotinfo):
20536         Remove inline keyword.
20537         * include/rounding-mode.h (round_away): Likewise.
20538         * libio/wfileops.c (adjust_wide_data): Likewise.
20539         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
20540         (__m128i_strloadu_tolower): Likewise.
20541         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
20542         (__m128i_strloadu_tolower): Likewise.
20543         * time/mktime.c (ydhms_diff): Likewise.
20544         * locale/elem-hash.h (elem_hash): Likewise.
20545         * locale/setlocale.c (setdata): Likewise.
20546         * posix/regex_internal.h (re_string_char_size_at): Likewise.
20547         (re_string_wchar_at): Likewise.
20548         (bitset_not, bitset_merge, bitset_mask): Likewise.
20549         [!(__GNUC__ > 3)] (inline): Remove macro.
20550         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
20551         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
20552         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
20553         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
20554         * string/memcmp.c (memcmp_bytes): Likewise.
20555         * locale/programs/locarchive.c (compute_hashval): Likewise.
20556         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
20557         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
20558         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
20559         * nss/getent.c (print_rpc, print_protocols): Likewise.
20560         (print_passwd, print_group, print_aliases): Likewise.
20561         * nis/nss-nisplus.h (niserr2nss): Likewise.
20562         * nscd/connections.c (restart_p): Likewise.
20563         Change return type to bool.
20564
20565 2013-02-05  Roland McGrath  <roland@hack.frob.com>
20566
20567         * Makeconfig (all-Depend-files): Add existing
20568         $(sorted-subdirs:=/Depend) files.
20569         (all-subdirs): Remove nss.
20570         * sysdeps/unix/inet/Subdirs: Add it here instead.
20571         * hesiod/Depend: New file.
20572
20573         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
20574         instead of calling alloca.
20575
20576         * io/lseek.c (__lseek): Rename to __libc_lseek.
20577         Define __lseek as an alias.
20578
20579         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
20580
20581 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
20582
20583         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
20584         else clause and remove check for non-standard endianness.
20585
20586 2013-02-04  David S. Miller  <davem@davemloft.net>
20587
20588         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20589
20590 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
20591
20592         [BZ #13550]
20593         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
20594         (__ubp_memchr): Remove prototype.
20595         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
20596         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
20597         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
20598         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
20599         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
20600         Remove alias.
20601         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
20602         (__ubp_memchr): Likewise.
20603         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
20604         (__ubp_memchr): Likewise.
20605         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
20606         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
20607         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
20608         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
20609         CHECK_STRING.
20610         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
20611         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
20612         (__getcwd): Do not use CHECK_STRING.
20613         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
20614         <bp-checks.h>.
20615         (__real_chown): Do not use CHECK_STRING.
20616         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
20617         <bp-checks.h>.
20618         (fchownat): Do not use CHECK_STRING.
20619         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
20620         CHECK_STRING.
20621         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
20622         <bp-checks.h>.
20623         (__lchown): Do not use CHECK_STRING.
20624         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
20625         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
20626         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
20627         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
20628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
20629         include <bp-checks.h>.
20630         (truncate64): Do not use CHECK_STRING.
20631         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
20632         <bp-checks.h>.
20633         (__real_chown): Do not use CHECK_STRING.
20634         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
20635         <bp-checks.h>.
20636         (__lchown): Do not use CHECK_STRING.
20637         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
20638         <bp-checks.h>.
20639         (__chown): Do not use CHECK_STRING.
20640         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
20641         <bp-checks.h>.
20642         (truncate64): Do not use CHECK_STRING.
20643         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
20644         Likewise.
20645         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
20646         (__xmknod): Do not use CHECK_STRING.
20647         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
20648         <bp-checks.h>.
20649         (__xmknodat): Do not use CHECK_STRING.
20650         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
20651         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
20652
20653 2013-02-04  Andreas Schwab  <schwab@suse.de>
20654
20655         [BZ #14142]
20656         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
20657         * include/netdb.h: Likewise for h_errno.
20658         * elf/tst-stackguard1.c: Include <tls.h>.
20659
20660 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
20661
20662         * elf/link.h (struct link_map): Extend the l_addr comment.
20663         * include/link.h (struct link_map): Likewise.
20664
20665 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
20666
20667         [BZ #13550]
20668         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
20669         (BOUNDED_1): Remove macro.
20670         * debug/backtrace.c: Don't include <bp-checks.h>.
20671         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
20672         (__backtrace): Likewise.
20673         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
20674         <bp-checks.h>.
20675         (__backtrace): Don't use BOUNDED_1.
20676         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
20677         <bp-checks.h>.
20678         (__backtrace): Don't use BOUNDED_1.
20679         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
20680         (__backtrace): Don't use BOUNDED_1.
20681         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
20682         (shmat): Don't use BOUNDED_N.
20683
20684 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
20685
20686         [BZ #13550]
20687         * sysdeps/generic/bp-start.h: Remove file.
20688         * csu/libc-start.c: Don't include <bp-start.h>.
20689         (LIBC_START_MAIN): Set up __environ directly instead of using
20690         INIT_ARGV_and_ENVIRON.
20691         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
20692         <bp-start.h>.
20693
20694         [BZ #13550]
20695         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
20696         definitions.
20697         (CHECK_FCNTL): Likewise.
20698         (CHECK_N_PAGES): Likewise.
20699
20700         [BZ #13550]
20701         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
20702         definitions.
20703         (CHECK_SIGSET_NULL_OK): Likewise.
20704         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
20705         <bp-checks.h>.
20706         (sigpending): Don't use CHECK_SIGSET.
20707         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
20708         <bp-checks.h>.
20709         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
20710         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
20711         <bp-checks.h>.
20712         (do_sigsuspend): Don't use CHECK_SIGSET.
20713         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
20714         use CHECK_SIGSET.
20715         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
20716         (do_sigwait): Don't use CHECK_SIGSET.
20717         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
20718         use CHECK_SIGSET.
20719         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
20720         include <bp-checks.h>.
20721         (sigpending): Don't use CHECK_SIGSET.
20722         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
20723         include <bp-checks.h>.
20724         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
20725         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
20726         <bp-checks.h>.
20727         (sigpending): Don't use CHECK_SIGSET.
20728         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
20729         <bp-checks.h>.
20730         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
20731
20732         [BZ #13550]
20733         * sysdeps/generic/bp-semctl.h: Remove file.
20734         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
20735         <bp-checks.h> and <bp-semctl.h>.
20736         (__old_semctl): Don't use CHECK_SEMCTL.
20737         (__new_semctl): Likewise.
20738         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
20739         and <bp-semctl.h>.
20740         (__old_semctl): Don't use CHECK_SEMCTL.
20741         (__new_semctl): Likewise.
20742         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
20743         <bp-checks.h> and <bp-semctl.h>.
20744         (__old_semctl): Don't use CHECK_SEMCTL.
20745         (__new_semctl): Likewise.
20746         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
20747         <bp-checks.h> and <bp-semctl.h>.
20748         (semctl): Don't use CHECK_SEMCTL.
20749
20750         [BZ #13550]
20751         * Makerules (elide-bp-thunks): Remove variable.
20752         (elide-routines.oS): Don't use $(elide-bp-thunks).
20753         (elide-routines.os): Likewise.
20754         (elide-routines.o): Likewise.
20755         (elide-routines.op): Likewise.
20756         (elide-routines.og): Likewise.
20757         (objects): Don't use $(bp-thunks).
20758         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
20759         include.
20760         (common-generated): Do not add s-proto-bp.d.
20761         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
20762         (int): Likewise.
20763         (typ): Likewise.
20764         Do not generate makefile rules for bounded-pointer thunks.
20765         * sysdeps/generic/bp-thunks.h: Remove file.
20766         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
20767         * sysdeps/unix/s-proto-bp.S: Likewise.
20768
20769         [BZ #15062]
20770         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
20771         parts of result separately when argument is not close to line from
20772         -i to i and one part of argument is small.
20773         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20774         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20775         * math/libm-test.inc (cacos_test): Add more tests.
20776         (casin_test): Likewise.
20777         (casinh_test): Likewise.
20778         * sysdeps/i386/fpu/libm-test-ulps: Update.
20779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20780
20781 2013-01-31  David S. Miller  <davem@davemloft.net>
20782
20783         * po/de.po: Update from translation team.
20784
20785 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
20786
20787         * time/tzfile.c: Include stdint.h for SIZE_MAX.
20788
20789 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
20790
20791         * configure.in (_AC_PROG_CC_C89): New definition.
20792         * configure: Regenerate.
20793
20794         * configure.in (AC_PROG_CPP): New definition.
20795         * configure: Regenerate.
20796
20797 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
20798
20799         * debug/tst-backtrace.h: New file.
20800         * debug/tst-backtrace2.c: Include tst-backtrace.h.
20801         (ret): Remove variable.
20802         (x): Likewise.
20803         (FAIL): Remove macro.
20804         (NO_INLINE): Likewise.
20805         (fn1): Use match function instead of strstr.
20806         * debug/tst-backtrace3.c: Include tst-backtrace.h.
20807         (ret): Remove variable.
20808         (x): Likewise.
20809         (FAIL): Remove macro.
20810         (NO_INLINE): Likewise.
20811         (fn): Use match function instead of strstr.
20812         * debug/tst-backtrace4.c: Include tst-backtrace.h.
20813         (ret): Remove variable.
20814         (x): Likewise.
20815         (FAIL): Remove macro.
20816         (NO_INLINE): Likewise.
20817         (handle_signal): Use match function instead of strstr.
20818         * debug/tst-backtrace5.c: Include tst-backtrace.h.
20819         (ret): Remove variable.
20820         (x): Likewise.
20821         (FAIL): Remove macro.
20822         (NO_INLINE): Likewise.
20823         (handle_signal): Use match function instead of strstr.
20824
20825 2013-01-23  Roland McGrath  <roland@hack.frob.com>
20826
20827         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
20828
20829 2013-01-23  David S. Miller  <davem@davemloft.net>
20830
20831         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
20832         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
20833         argument of CAS if possible.
20834         * sysdeps/sparc/sparc64/bits/atomic.h
20835         (__arch_compare_and_exchange_val_32_acq): Likewise.
20836         (__arch_compare_and_exchange_val_64_acq): Likewise.
20837
20838 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
20839
20840         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
20841         * sysdeps/posix/ulimit.c: ... this.
20842         Include <limits.h>.
20843         * sysdeps/unix/bsd/ulimit.c: Remove file.
20844
20845 2013-01-23  Adam Conrad  <adconrad@0c3.net>
20846
20847         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
20848         (LDFLAGS-tst-array5): Likewise.
20849
20850 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
20851
20852         [BZ #15036]
20853         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
20854         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
20855         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
20856         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
20857
20858 2013-01-21  David S. Miller  <davem@davemloft.net>
20859
20860         * sysdeps/sparc/backtrace.c: New file.
20861         * sysdeps/sparc/sparc32/backtrace.h: New file.
20862         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
20863         * sysdeps/sparc/sparc64/backtrace.h: New file.
20864         * sysdeps/sparc/sparc64/backtrace.c: Delete.
20865         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
20866         -funwind-tables.
20867
20868 2013-01-21  Andreas Schwab  <schwab@suse.de>
20869
20870         [BZ #15020]
20871         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
20872         closed its stdout.
20873
20874 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
20875
20876         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
20877         "mpa2.h".
20878         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20879
20880 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
20881             Mark Mitchell  <mark@codesourcery.com>
20882             Tom de Vries  <tom@codesourcery.com>
20883             Paul Pluzhnikov  <ppluzhnikov@google.com>
20884
20885         * debug/tst-backtrace2.c: New file.
20886         * debug/tst-backtrace3.c: Likewise.
20887         * debug/tst-backtrace4.c: Likewise.
20888         * debug/tst-backtrace5.c: Likewise.
20889         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
20890         (CFLAGS-tst-backtrace3.c): Likewise.
20891         (CFLAGS-tst-backtrace4.c): Likewise.
20892         (CFLAGS-tst-backtrace5.c): Likewise.
20893         (LDFLAGS-tst-backtrace2): Likewise.
20894         (LDFLAGS-tst-backtrace3): Likewise.
20895         (LDFLAGS-tst-backtrace4): Likewise.
20896         (LDFLAGS-tst-backtrace5): Likewise.
20897         (tests): Add new tests tst-backtrace2, tst-backtrace3,
20898         tst-backtrace4 and tst-backtrace5.
20899
20900 2013-01-18  Anton Blanchard  <anton@samba.org>
20901             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
20902
20903         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
20904         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
20905         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
20906         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
20907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20908         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
20909         "+r" and remove output regs list as redundant.  Add explicit inline
20910         asm to specify register of return val to work around compiler codegen
20911         bug.  Remove (int) cast on return value.  Add return type parameter to
20912         use in macro so that this macro does not truncate return value for
20913         64-bit values.
20914         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
20915         pass to INTERNAL_VSYSCALL_NCS.
20916         (INLINE_VSYSCALL): Add 'long int' as return type to
20917         INTERNAL_VSYSCALL_NCS macro invocation.
20918         (INTERNAL_VSYSCALL): Add 'long int' as return type to
20919         INTERNAL_VSYSCALL_NCS macro invocation.
20920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
20921
20922 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20923
20924         [BZ #14496]
20925         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
20926         Fix application of SIMD FP exception mask.
20927
20928         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
20929         mp_no from a power of two.
20930         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
20931         __mpexp_twomm1.  Use __pow_mp.
20932
20933         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
20934         multiplication.
20935
20936 2013-01-17  David S. Miller  <davem@davemloft.net>
20937
20938         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20939
20940 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
20941
20942         [BZ #15023]
20943         * include/complex.h: Condition contents on [!_COMPLEX_H].
20944         (__kernel_casinhf): New prototype.
20945         (__kernel_casinh): Likewise.
20946         (__kernel_casinhl): Likewise.
20947         * math/Makefile (libm_calls): Add k_casinh.
20948         * math/k_casinh.c: New file.
20949         * math/k_casinhf.c: Likewise.
20950         * math/k_casinhl.c: Likewise.
20951         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
20952         finite nonzero arguments.
20953         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
20954         finite nonzero arguments.
20955         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
20956         finite nonzero arguments.
20957         * math/s_casinh.c: Do not include <float.h>.
20958         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
20959         * math/s_casinhf.c: Do not include <float.h>.
20960         (__casinhf): Move code for finite nonzero arguments to
20961         k_casinhf.c.
20962         * math/s_casinhl.c: Do not include <float.h>.
20963         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
20964         redefine.
20965         (__casinhl): Move code for finite nonzero arguments to
20966         k_casinhl.c.
20967         * math/libm-test.inc (cacos_test): Add more tests.
20968         * sysdeps/i386/fpu/libm-test-ulps: Update.
20969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20970
20971 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
20972
20973         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
20974         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
20975         [!HAVE_MREMAP]: Remove [defined linux] case.
20976         * malloc/arena.c: Do not include <malloc-sysdep.h>.
20977
20978 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
20979
20980         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
20981
20982 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
20983
20984         * elf/elf.h (R_386_SIZE32): New relocation.
20985         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
20986         R_386_SIZE32.
20987         (elf_machine_rela): Likewise.
20988         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
20989         R_X86_64_SIZE64 and R_X86_64_SIZE32.
20990
20991 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
20992
20993         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
20994         (FP_FAST_FMA): Do not define.
20995         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
20996         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
20997         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
20998         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
20999         !_SOFT_FLOAT]: Likewise.
21000         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
21001         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
21002         value.
21003         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
21004         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
21005         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
21006         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
21007         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
21008         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
21009         file.
21010
21011 2013-01-16  Andreas Schwab  <schwab@suse.de>
21012
21013         [BZ #14327]
21014         * include/stdlib.h (__mktemp): Add declaration.
21015         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
21016         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
21017
21018 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
21019
21020         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
21021         definitions.
21022         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
21023         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
21024         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
21025         definitions here.
21026         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
21027         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
21028         definitions.
21029         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
21030         and ONE.
21031         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
21032         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
21033         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
21034         definitions.
21035         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
21036         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
21037         definitions.
21038         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
21039
21040         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
21041
21042 2013-01-15  David S. Miller  <davem@davemloft.net>
21043
21044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
21045         trunc{,f} to libm-sysdep_routes.
21046         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
21047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
21048         file.
21049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
21050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
21051         file.
21052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
21053         file.
21054         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
21055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
21056         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
21057         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
21058         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
21059         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
21060         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
21061         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
21062
21063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
21064         nearbyint{,f} to libm-sysdep_routes.
21065         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
21066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
21067         New file.
21068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
21069         file.
21070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
21071         New file.
21072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
21073         file.
21074         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
21075         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
21076         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
21077         file.
21078         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
21079         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
21080         file.
21081         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
21082         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
21083         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
21084
21085         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
21086         libc_feholdexcept and libc_fesetenv.
21087
21088 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
21089
21090         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
21091
21092 2013-01-14  David S. Miller  <davem@davemloft.net>
21093
21094         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
21095         (SPARC_ASM_VIS2_IFUNC): Likewise.
21096         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
21097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
21098         use of 'siam' instruction.
21099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
21100         Likewise.
21101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
21102         Likewise.
21103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
21104         Likewise.
21105         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
21106         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
21107         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
21108         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
21109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
21110         file.
21111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
21112         file.
21113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
21114         file.
21115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
21116         file.
21117         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
21118         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
21119         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
21120         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
21121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
21122         new VIS2 routines.
21123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
21124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
21125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
21126         Likewise.
21127         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
21128         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
21129         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
21130         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
21131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
21132         routines to libm-sysdep_routines.
21133         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
21134
21135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
21136         fdim/fdimf to libm-sysdep_routines.
21137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
21138         file.
21139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
21140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
21141         file.
21142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
21143         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
21144         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
21145         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
21146         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
21147         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
21148         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
21149
21150 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21151
21152         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
21153         to optimize copies.
21154
21155         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
21156         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
21157         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21158
21159         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
21160         local variable MPTWO.
21161         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
21162         Likewise.
21163
21164 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
21165
21166         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
21167         GLOB_NOESCAPE.
21168
21169 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
21170
21171         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
21172
21173 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
21174
21175         * manual/pattern.texi (glob_t): Document gl_flags.
21176         (glob64_t): Likewise.
21177
21178 2013-01-11  David S. Miller  <davem@davemloft.net>
21179
21180         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
21181         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
21182         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
21183         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
21184         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
21185         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
21186         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
21187         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
21188         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
21189         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
21190         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
21191         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
21192         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
21193
21194         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
21195         sparc V9 rather than using V8 code.
21196         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
21197         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
21198
21199         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
21200         Move to...
21201         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
21202         Here.
21203
21204 2013-01-11  Roland McGrath  <roland@hack.frob.com>
21205
21206         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
21207         not in the main loop.
21208         * configure: Regenerated.
21209
21210 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
21211
21212         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
21213         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
21214         to just #else.
21215         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
21216         [!__GLIBC_HAVE_LONG_LONG] case.
21217         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
21218         condition to just #else.
21219         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
21220         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
21221         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
21222         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
21223         unconditional.
21224         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
21225         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
21226         #elif condition to just #else.
21227         * sysdeps/unix/sysv/linux/sys/sysmacros.h
21228         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
21229         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
21230         #elif condition to just #else.
21231
21232 2013-01-11  Steve Ellcey  <sellcey@mips.com>
21233
21234         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
21235         (EF_MIPS_ARCH_64): Fix value.
21236         (EF_MIPS_ARCH_32R2): New.
21237         (EF_MIPS_ARCH_64R2): New.
21238
21239 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
21240
21241         * Makeconfig (+link-pie-before-libc): New.
21242         (+link-pie-after-libc): Likewise.
21243         (+link-pie-tests): Likewise.
21244         (+link-pie): Rewritten.
21245         (link-before-libc): Remove $(config-LDFLAGS).
21246         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
21247         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
21248         (config-LDFLAGS): Renamed to ...
21249         (rtld-LDFLAGS): This.
21250         (rtld-tests-LDFLAGS): New macro.
21251         (link-libc-rpath-link): Likewise.
21252         (link-libc-tests-rpath-link): Likewise.
21253         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
21254         (link-libc): Prepand $(link-libc-rpath-link).
21255         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
21256         (test-program-prefix): New macro.
21257         (test-via-rtld-prefix): Likewise.
21258         (test-program-cmd): Likewise.
21259         (host-test-program-cmd): Likewise.
21260         * Makefile ($(common-objpfx)testrun.sh): Replace
21261         $(run-program-prefix) with $(test-program-prefix).
21262         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
21263         $(rtld-LDFLAGS).
21264         ($(common-objpfx)shlib.lds): Likewise.
21265         (build-module-helper): Likewise.
21266         ($(common-objpfx)format.lds): Likewise.
21267         * Rules (binaries-pie-tests): New.
21268         (binaries-pie-notests): Likewise.
21269         (binaries-pie): Rewritten.
21270         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
21271         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
21272         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
21273         (make-test-out): Replace $(host-built-program-cmd) with
21274         $(host-test-program-cmd).
21275         * config.make.in (build-hardcoded-path-in-tests): New variable.
21276         * configure.in (--enable-hardcoded-path-in-tests): New configure
21277         option.
21278         (hardcoded_path_in_tests): New AC_SUBST.
21279         * configure: Regenerated.
21280         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
21281         $(built-program-cmd) with $(test-program-cmd).
21282         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
21283         (test_program_cmd): This.
21284         * elf/Makefile ($(objpfx)order.out): Run test with
21285         $(test-program-prefix).
21286         ($(objpfx)order2.out): Likewise.
21287         ($(objpfx)tst-initorder.out): Likewise.
21288         ($(objpfx)tst-initorder2.out): Likewise.
21289         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
21290         $(test-program-cmd).
21291         ($(objpfx)tst-array1-static.out): Likewise.
21292         ($(objpfx)tst-array2.out): Likewise.
21293         ($(objpfx)tst-array3.out): Likewise.
21294         ($(objpfx)tst-array4.out): Likewise.
21295         ($(objpfx)tst-array5.out): Likewise.
21296         ($(objpfx)tst-array5-static.out): Likewise.
21297         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
21298         $(test-program-cmd).
21299         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
21300         $(run-program-prefix) with $(test-program-prefix).
21301         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
21302         (test_program_prefix): This.
21303         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
21304         $(run-program-prefix) with $(test-program-prefix).
21305         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
21306         (test_program_prefix): This.
21307         * iconvdata/tst-tables.sh: Likewise.
21308         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
21309         $(run-program-prefix) with $(test-program-prefix).
21310         ($(objpfx)tst-translit.out): Likewise.
21311         ($(objpfx)tst-gettext2.out): Likewise.
21312         ($(objpfx)tst-gettext4.out): Likewise.
21313         ($(objpfx)tst-gettext6.out): Likewise.
21314         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
21315         (test_program_prefix): This.
21316         * intl/tst-gettext2.sh: Likewise.
21317         * intl/tst-gettext4.sh  Likewise.
21318         * intl/tst-gettext6.sh: Likewise.
21319         * intl/tst-translit.sh: Likewise.
21320         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
21321         with $(test-program-cmd).
21322         * libio/Makefile ($(objpfx)test-freopen.out): Replace
21323         $(run-program-prefix) with $(test-program-prefix).
21324         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
21325         (test_program_prefix): This.
21326         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
21327         $(run-program-prefix) with $(test-program-prefix).
21328         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
21329         (test_program_prefix): This.
21330         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
21331         * posix/Makefile ($(objpfx)globtest.out): Replace
21332         $(run-via-rtld-prefix) and $(test-wrapper) with
21333         $(test-program-prefix) and $(test-via-rtld-prefix).
21334         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
21335         $(test-program-prefix).
21336         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
21337         $(host-test-program-cmd).
21338         (tst-spawn-ARGS): Likewise.
21339         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
21340         $(test-program-prefix).
21341         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
21342         (test_via_rtld_prefix): This.
21343         (test_wrapper): Renamed to ...
21344         (test_program_prefix): This.
21345         (run_program_prefix): Replaced by test_program_prefix.
21346         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
21347         (test_program_prefix): This.
21348         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
21349         with $(host-test-program-cmd).
21350         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
21351         $(run-program-prefix) with $(test-program-prefix).
21352         ($(objpfx)tst-printf.out): Likewise.
21353         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
21354         $(test-program-cmd).
21355         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
21356         (test_program_prefix): This.
21357         * stdio-common/tst-unbputc.sh: Likewise.
21358         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
21359         $(run-program-prefix) with $(test-program-prefix).
21360         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
21361         (test_program_prefix): This.
21362         * string/Makefile ($(objpfx)tst-svc.out):  Replace
21363         $(built-program-cmd) with $(test-program-cmd).
21364
21365 2013-01-11  Andreas Jaeger  <aj@suse.de>
21366
21367         [BZ #15003]
21368         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
21369         value. Sync with Linux 3.7.
21370
21371 2013-01-10  David S. Miller  <davem@davemloft.net>
21372
21373         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
21374         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
21375         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
21376
21377 2013-01-10  Roland McGrath  <roland@hack.frob.com>
21378
21379         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
21380         never set.
21381         * configure: Regenerated.
21382
21383 2013-01-10  David S. Miller  <davem@davemloft.net>
21384
21385         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
21386         sparc V9 rather than using V8 code.
21387         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
21388         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
21389
21390 2013-01-10  Roland McGrath  <roland@hack.frob.com>
21391
21392         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
21393         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
21394         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
21395         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
21396         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
21397         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
21398         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
21399         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
21400         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
21401         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
21402         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
21403         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
21404         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
21405         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
21406         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
21407         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
21408         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
21409         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
21410         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
21411         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
21412         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
21413         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
21414         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
21415         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
21416         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
21417         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
21418         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
21419
21420 2013-01-10  David S. Miller  <davem@davemloft.net>
21421
21422         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21423
21424 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
21425
21426         * posix/Makefile (tests-static): New variable.
21427         (tests): Add $(tests-static).
21428         (tst-exec-static-ARGS): New variable.
21429         (tst-spawn-static-ARGS): Likewise.
21430         * posix/tst-exec-static.c: New file.
21431         * posix/tst-spawn-static.c: Likewise.
21432         * posix/tst-exec.c: Support run directly.
21433         * posix/tst-spawn.c: Likewise.
21434
21435 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
21436
21437         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
21438         long.
21439         * math/bits/mathcalls.h (llrint): Likewise.
21440         (llround): Likewise.
21441         * stdlib/stdlib.h (struct drand48_data): Likewise.
21442         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
21443         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
21444         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
21445         Likewise.
21446         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
21447         Likewise.
21448         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
21449         (elf_greg_t): Likewise.
21450         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
21451         (__jmp_buf): Likewise.
21452         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
21453         definitions.
21454         (llrint): Likewise, for all definitions.
21455         (llrintl): Likewise.
21456
21457         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
21458         Remove [__GNUC__] condition.
21459         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
21460         condition to just [__USE_ISOC99].
21461         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
21462
21463 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
21464
21465         [BZ #14200]
21466         * sysdeps/unix/sysv/linux/x86/bits/environments.h
21467         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
21468         defined.
21469         (_POSIX_V6_ILP32_OFF32): Likewise.
21470         (_XBS5_ILP32_OFF32): Likewise.
21471         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
21472         (__ILP32_OFFBIG_LDFLAGS): Likewise.
21473
21474 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21475
21476         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
21477
21478         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
21479         doubles __mpexp_twomm1.  Adjust usage.
21480         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
21481         Remove.
21482
21483 2013-01-10  Andreas Schwab  <schwab@suse.de>
21484
21485         [BZ #14964]
21486         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
21487         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
21488
21489 2013-01-09  David S. Miller  <davem@davemloft.net>
21490
21491         [BZ #15003]
21492         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
21493         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
21494         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
21495         (TCP_FASTOPEN): Define.
21496         (tcp_repair_opt): New structure.
21497         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
21498         enum values.
21499         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
21500         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
21501         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
21502         (tcp_cookie_transactions): New structure.
21503
21504 2013-01-09  Anton Blanchard  <anton@samba.org>
21505
21506         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
21507         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
21508         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
21509         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
21510
21511 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
21512
21513         * include/features.h (__USE_ANSI): Remove.
21514
21515 2013-01-09  Roland McGrath  <roland@hack.frob.com>
21516
21517         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
21518
21519         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
21520
21521 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
21522
21523         * sysdeps/s390/fpu/libm-test-ulps: Update.
21524
21525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21526
21527         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
21528         (__acr): Likewise.
21529         (__cpy): Likewise.
21530         (norm): Likewise.
21531         (denorm): Likewise.
21532         (__mp_dbl): Likewise.
21533         (__dbl_mp): Likewise.
21534         (add_magnitudes): Likewise.
21535         (sub_magnitudes): Likewise.
21536         (__add): Likewise.
21537         (__sub): Likewise.
21538         (__mul): Likewise.
21539         (__inv): Likewise.
21540         (__dvd): Likewise.
21541         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
21542         (__acr): Likewise.
21543         (__cpy): Likewise.
21544         (norm): Likewise.
21545         (denorm): Likewise.
21546         (__mp_dbl): Likewise.
21547         (__dbl_mp): Likewise.
21548         (add_magnitudes): Likewise.
21549         (sub_magnitudes): Likewise.
21550         (__add): Likewise.
21551         (__sub): Likewise.
21552         (__mul): Likewise.
21553         (__inv): Likewise.
21554         (__dvd): Likewise.
21555         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
21556         (__acr): Likewise.
21557         (__cpy): Likewise.
21558         (norm): Likewise.
21559         (denorm): Likewise.
21560         (__mp_dbl): Likewise.
21561         (__dbl_mp): Likewise.
21562         (add_magnitudes): Likewise.
21563         (sub_magnitudes): Likewise.
21564         (__add): Likewise.
21565         (__sub): Likewise.
21566         (__mul): Likewise.
21567         (__inv): Likewise.
21568         (__dvd): Likewise.
21569
21570 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
21571
21572         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
21573         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
21574         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
21575         2 && __USE_EXTERN_INLINES]: Likewise.
21576
21577 2013-01-08  Andreas Jaeger  <aj@suse.de>
21578
21579         [BZ# 14985]
21580         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
21581         Remove.
21582         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
21583         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
21584
21585 2013-01-07  Anton Blanchard  <anton@samba.org>
21586
21587         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
21588         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
21589         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
21590         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
21591         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
21592         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
21593         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
21594         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
21595         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
21596         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
21597         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
21598         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
21599         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
21600         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
21601         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
21602         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
21603         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
21604         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
21605         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
21606         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
21607         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
21608         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
21609         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
21610         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
21611         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
21612         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
21613         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
21614         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
21615         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
21616         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
21617         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
21618         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21619         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
21620         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
21621         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
21622         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
21623         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
21624         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
21625         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
21626         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
21627         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
21628         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
21629         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
21630
21631 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
21632
21633         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
21634         (__MALLOC_PMT): Likewise.
21635         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
21636         [__GNUC__], only on [_LIBC].
21637         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
21638         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
21639         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
21640         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
21641         forward declaration.
21642         (realloc_hook_ini): Likewise.
21643         (memalign_hook_ini): Likewise.
21644         (__libc_memalign): Do not use __MALLOC_PMT in variable
21645         declaration.
21646         (__libc_valloc): Likewise.
21647         (__libc_pvalloc): Likewise.
21648         (__libc_calloc): Likewise.
21649         (__posix_memalign): Likewise.
21650
21651         [BZ #14996]
21652         * math/s_casinh.c: Include <float.h>.
21653         (__casinh): Do not do computation with squaring and square root
21654         for large arguments.
21655         * math/s_casinhf.c: Include <float.h>.
21656         (__casinhf): Do not do computation with squaring and square root
21657         for large arguments.
21658         * math/s_casinhl.c: Include <float.h>.
21659         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
21660         (__casinhl): Do not do computation with squaring and square root
21661         for large arguments.
21662         * math/libm-test.inc (casin_test): Add more tests.
21663         (casinh_test): Likewise.
21664         * sysdeps/i386/fpu/libm-test-ulps: Update.
21665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21666
21667 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21668
21669         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
21670         (__x86_64_raw_data_cache_size): Likewise.
21671         (__x86_64_data_cache_size_half): Likewise.
21672         (__x86_64_raw_data_cache_size_half): Likewise.
21673         (__x86_64_shared_cache_size): Likewise.
21674         (__x86_64_raw_shared_cache_size): Likewise.
21675         (__x86_64_shared_cache_size_half): Likewise.
21676         (__x86_64_raw_shared_cache_size_half): Likewise.
21677         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
21678         to ...
21679         (__x86_data_cache_size): This.
21680         (__x86_64_raw_data_cache_size): Renamed to ...
21681         (__x86_raw_data_cache_size): This.
21682         (__x86_64_data_cache_size_half): Renamed to ...
21683         (__x86_data_cache_size_half): This.
21684         (__x86_64_raw_data_cache_size_half): Renamed to ...
21685         (__x86_raw_data_cache_size_half): This.
21686         (__x86_64_shared_cache_size): Renamed to ...
21687         (__x86_shared_cache_size): This.
21688         (__x86_64_raw_shared_cache_size): Renamed to ...
21689         (__x86_raw_shared_cache_size): This.
21690         (__x86_64_shared_cache_size_half): Renamed to ...
21691         (__x86_shared_cache_size_half): This.
21692         (__x86_64_raw_shared_cache_size_half): Renamed to ...
21693         (__x86_raw_shared_cache_size_half): This.
21694         * sysdeps/x86_64/memcpy.S: Updated.
21695         * sysdeps/x86_64/memset.S: Likewise.
21696         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
21697         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
21698         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
21699
21700 2013-01-04  David S. Miller  <davem@davemloft.net>
21701
21702         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21703
21704 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
21705
21706         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
21707         1 to avoid redefinition warning.
21708         (__USE_GNU): Don't define.
21709         (init_signaling_nan): Protoize.
21710
21711         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21712
21713 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
21714
21715         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
21716         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
21717         (__cpymn): Likewise.
21718         (norm): Remove commented code.
21719         (denorm): Likewise.
21720         (__mp_dbl): Likewise.
21721         (__inv): Likewise.
21722         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
21723         (__cpymn): Likewise.
21724         (norm): Remove commented code.
21725         (denorm): Likewise.
21726         (__mp_dbl): Likewise.
21727         (__inv): Likewise.
21728
21729         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
21730         mp_no value for 1.0 and 2.0.
21731         (norm): Use RADIXI instead of radixi.d.
21732         (denorm): Likewise.
21733         (__mul): Use 0.0 instead of zero.d.
21734         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
21735         mp_no value for 1.0 and 2.0.
21736         (norm): Use RADIXI instead of radixi.d.
21737         (denorm): Likewise.
21738         (__mul): Use 0.0 instead of zero.d.
21739
21740 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
21741
21742         [BZ #14994]
21743         * math/s_casinh.c (__casinh): Reduce finite argument to first
21744         quadrant then set signs of results at the end.
21745         * math/s_casinhf.c (__casinhf): Likewise.
21746         * math/s_casinhl.c (__casinhl): Likewise.
21747         * math/libm-test.inc (casin_test): Add more tests.
21748         (casinh_test): Likewise.
21749         * sysdeps/i386/fpu/libm-test-ulps: Update.
21750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21751
21752 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
21753
21754         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
21755
21756         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
21757
21758         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
21759         declarations.
21760         (denorm): Likewise.
21761         (__mp_dbl): Likewise.
21762         (__inv): Likewise.
21763
21764         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
21765         and adjust the header comment.
21766
21767         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
21768         variable name from declaration.
21769
21770 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21771
21772         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21773         Initialize COMMON_CPUID_INDEX_7 element.
21774         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
21775         (CPUID_RTM): Likewise.
21776         (HAS_RTM): Likewise.
21777         (COMMON_CPUID_INDEX_7): New enum.
21778
21779 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
21780
21781         [BZ #14981]
21782         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
21783         size is zero, record memory as freed.
21784
21785 2013-01-03  Andreas Jaeger  <aj@suse.de>
21786
21787         * po/ia.po: Add new Interlingua translation.
21788
21789 2012-01-03  Allan McRae  <allan@archlinux.org>
21790
21791         * locale/programs/localedef.c: Fix description of '--posix' flag.
21792
21793 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
21794
21795         * NEWS: Update dates in second copyright notice.
21796         * README: Update copyright dates in example.
21797         * manual/libc.texinfo: Update copyright dates.
21798         * scripts/test-installation.pl: Update copyright date in --version
21799         output.
21800
21801         * hurd/ctty-input.c: Fix copyright notice formatting.
21802         * hurd/ctty-output.c: Likewise.
21803         * hurd/dtable.c: Likewise.
21804         * hurd/hurd-raise.c: Likewise.
21805         * hurd/hurdprio.c: Likewise.
21806         * hurd/msgportdemux.c: Likewise.
21807         * misc/sys/file.h: Likewise.
21808         * misc/sys/ioctl.h: Likewise.
21809         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
21810         * sysdeps/mach/hurd/chdir.c: Likewise.
21811         * sysdeps/mach/hurd/fchdir.c: Likewise.
21812         * sysdeps/mach/hurd/rename.c: Likewise.
21813         * sysdeps/mach/hurd/rmdir.c: Likewise.
21814         * sysdeps/mach/hurd/seekdir.c: Likewise.
21815         * sysdeps/mach/hurd/setsid.c: Likewise.
21816         * sysdeps/posix/wait3.c: Likewise.
21817
21818         * All files with FSF copyright notices: Update copyright dates
21819         using scripts/update-copyrights.
21820         * intl/plural.c: Regenerated.
21821         * locale/programs/charmap-kw.h: Likewise.
21822         * locale/programs/locfile-kw.h: Likewise.
21823
21824 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21825
21826         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
21827         four values.
21828
21829         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
21830         calculation loop and add branch prediction.
21831
21832         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
21833         check access beyond bounds of m1np.
21834
21835         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
21836         MPTWO.
21837         (__inv): Remove local variable MPTWO to use the global
21838         constant.
21839         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
21840         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
21841         variable MPTWO.
21842         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
21843         MP3HALFS static const.
21844
21845 2013-01-01  David S. Miller  <davem@davemloft.net>
21846
21847         * po/ca.po: Update from translation team.
21848
21849 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
21850
21851         * scripts/update-copyrights: New file.
21852         * Makeconfig: Reformat copyright notice.
21853         * ctype/ctype.h: Likewise.
21854         * debug/swprintf_chk.c: Likewise.
21855         * elf/dl-cache.c: Likewise.
21856         * elf/dl-debug.c: Likewise.
21857         * elf/dl-object.c: Likewise.
21858         * grp/initgroups.c: Likewise.
21859         * hurd/Makefile: Likewise.
21860         * hurd/hurd/signal.h: Likewise.
21861         * hurd/hurdfault.c: Likewise.
21862         * hurd/hurdioctl.c: Likewise.
21863         * hurd/hurdlookup.c: Likewise.
21864         * hurd/intr-msg.c: Likewise.
21865         * iconv/gconv_open.c: Likewise.
21866         * libio/swprintf.c: Likewise.
21867         * locale/lc-ctype.c: Likewise.
21868         * locale/nl_langinfo.c: Likewise.
21869         * mach/Machrules: Likewise.
21870         * mach/Makefile: Likewise.
21871         * malloc/obstack.h: Likewise.
21872         * manual/Makefile: Likewise.
21873         * manual/tsort.awk: Likewise.
21874         * misc/bits/stab.def: Likewise.
21875         * nis/nis_print_group_entry.c: Likewise.
21876         * nis/nis_table.c: Likewise.
21877         * nis/nss_compat/compat-pwd.c: Likewise.
21878         * nis/nss_compat/compat-spwd.c: Likewise.
21879         * po/Makefile: Likewise.
21880         * posix/fnmatch.c: Likewise.
21881         * posix/regex.h: Likewise.
21882         * resolv/Makefile: Likewise.
21883         * resolv/nss_dns/dns-network.c: Likewise.
21884         * resolv/res_hconf.c: Likewise.
21885         * scripts/gen-sorted.awk: Likewise.
21886         * soft-fp/soft-fp.h: Likewise.
21887         * stdio-common/printf.h: Likewise.
21888         * stdlib/monetary.h: Likewise.
21889         * stdlib/random.c: Likewise.
21890         * stdlib/random_r.c: Likewise.
21891         * sysdeps/generic/Makefile: Likewise.
21892         * sysdeps/gnu/Makefile: Likewise.
21893         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
21894         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21895         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21896         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21897         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21898         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21899         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21900         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
21901         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21902         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21903         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
21904         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
21905         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
21906         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
21907         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21908         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
21909         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
21910         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21911         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
21912         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21913         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
21914         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
21915         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21916         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
21917         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
21918         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
21919         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
21920         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
21921         * sysdeps/mach/hurd/errnos.awk: Likewise.
21922         * sysdeps/mach/hurd/fork.c: Likewise.
21923         * sysdeps/mach/hurd/getcwd.c: Likewise.
21924         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
21925         * sysdeps/mach/hurd/mmap.c: Likewise.
21926         * sysdeps/mach/hurd/utimes.c: Likewise.
21927         * sysdeps/mach/hurd/xmknod.c: Likewise.
21928         * sysdeps/posix/profil.c: Likewise.
21929         * sysdeps/posix/readdir_r.c: Likewise.
21930         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21931         * sysdeps/powerpc/bits/setjmp.h: Likewise.
21932         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
21933         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
21934         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
21935         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
21936         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
21937         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21938         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21939         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
21940         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
21941         * sysdeps/pthread/lio_listio.c: Likewise.
21942         * sysdeps/sparc/dl-procinfo.h: Likewise.
21943         * sysdeps/unix/i386/sysdep.S: Likewise.
21944         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
21945         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
21946         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
21947         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
21948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21949         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
21950         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
21951         * sysdeps/unix/sysv/linux/speed.c: Likewise.
21952         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
21953         * sysdeps/wordsize-32/divdi3.c: Likewise.
21954         * time/sys/time.h: Likewise.
21955         * wcsmbs/Makefile: Likewise.
21956
21957 2013-01-01  David S. Miller  <davem@davemloft.net>
21958
21959         * po/fr.po: Update from translation team.
21960
21961         * catgets/gencat.c: Update copyright year.
21962         * csu/version.c: Likewise.
21963         * debug/catchsegv.sh: Likewise.
21964         * debug/pcprofiledump.c: Likewise.
21965         * debug/xtrace.sh: Likewise.
21966         * elf/ldconfig.c: Likewise.
21967         * elf/ldd.bash.in: Likewise.
21968         * elf/pldd.c: Likewise.
21969         * elf/sotruss.ksh: Likewise.
21970         * elf/sprof.c: Likewise.
21971         * iconv/iconv_prog.c: Likewise.
21972         * iconv/iconvconfig.c: Likewise.
21973         * locale/programs/locale.c: Likewise.
21974         * locale/programs/localedef.c: Likewise.
21975         * login/programs/pt_chown.c: Likewise.
21976         * malloc/memusage.sh: Likewise.
21977         * malloc/memusagestat.c: Likewise.
21978         * malloc/mtrace.pl: Likewise.
21979         * nscd/nscd.c: Likewise.
21980         * nss/getent.c: Likewise.
21981         * nss/makedb.c: Likewise.
21982         * posix/getconf.c: Likewise.
21983
21984 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21985
21986         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
21987         numbers.
21988
21989 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
21990
21991         * math/bits/mathcalls.h (modf): Use __nonnull.
21992
21993 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
21994
21995         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
21996         (split): Use macro CN instead of the bare value.
21997         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
21998         could be used.
21999         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
22000         instead of the bare value.
22001         (power1): Likewise.
22002
22003 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22004
22005         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
22006         __ATAN_TWOM.
22007         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
22008
22009         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
22010         their values.
22011         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22012         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
22013         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
22014         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22015
22016 2012-12-28  Andreas Jaeger  <aj@suse.de>
22017
22018         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
22019         values are from Linux 3.7.
22020
22021         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
22022         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
22023
22024 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22025
22026         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
22027         TRUE case.
22028
22029         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
22030         (norm): Likewise.
22031         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
22032         variables with preprocessor constants.
22033         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
22034         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
22035         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
22036
22037 2012-12-27  Bruno Haible  <bruno@clisp.org>
22038
22039         [BZ #14317]
22040         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
22041         only if needed.
22042
22043 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
22044
22045         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
22046         and use variable directly.
22047         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
22048
22049         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
22050         MPONE.
22051         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
22052         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
22053         variable MPONE.
22054         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
22055         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
22056         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
22057         include directive.  Remove local variable MPONE.
22058         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
22059         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
22060         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22061
22062 2012-12-25  David S. Miller  <davem@davemloft.net>
22063
22064         * version.h (RELEASE): Set to "development".
22065         (VERSION): Set to "2.17.90".
22066         * NEWS: Add 2.18 section.
22067
22068 2012-12-21  David S. Miller  <davem@davemloft.net>
22069
22070         * po/hr.po: Update from translation team.
22071
22072 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22073
22074         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
22075
22076 2012-12-19  Steve Ellcey  <sellcey@mips.com>
22077
22078         * NEWS:  Mention new memcpy for MIPS.
22079
22080 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22081
22082         * manual/contrib.texi (Contributors): Spelling correction.
22083
22084 2012-12-15  David S. Miller  <davem@davemloft.net>
22085
22086         * po/ru.po: Update from translation team.
22087
22088 2012-12-13  David S. Miller  <davem@davemloft.net>
22089
22090         * NEWS: Mention IFUNC testsuite enhancements.
22091
22092         * po/pl.po: Update from translation team.
22093         * po/bg.po: Likewise.
22094
22095         * manual/contrib.texi (Contributors): Update entries for Hongjiu
22096         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
22097
22098 2012-12-11  David S. Miller  <davem@davemloft.net>
22099
22100         * po/sv.po: Update from translation team.
22101
22102         * po/vi.po: Update from translation team.
22103
22104         * po/cs.po: Update from translation team.
22105
22106         * po/de.po: Update from translation team.
22107         * po/eo.po: Likewise.
22108         * po/nl.po: Likewise.
22109
22110 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
22111
22112         [BZ #14246]
22113         * manual/argp.texi (Argp Helper Functions): Move node to follow
22114         Argp Parsing State.
22115
22116         [BZ #14872]
22117         * manual/conf.texi (Limits on File System Capacity): Mention if
22118         terminating null is included in the max size.
22119
22120 2012-12-10  Andreas Jaeger  <aj@suse.de>
22121
22122         * po/cs.po: Update from translation team.
22123
22124 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
22125
22126         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
22127         void pointer and cast to uintptr_t.
22128         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
22129         path.
22130         * sysdeps/s390/s390-64/memcpy.S: Likewise.
22131         * sysdeps/s390/s390-64/memset.S: Likewise.
22132
22133 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
22134
22135         [BZ #14833]
22136         * menual/message.texi (Message Translation): Fix typos.
22137         (Helper programs for gettext): Likewise.
22138
22139 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
22140
22141         [BZ #14898]
22142         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
22143         Change to -1.
22144
22145 2012-12-07  David S. Miller  <davem@davemloft.net>
22146
22147         * po/libc.pot: Update.
22148
22149 2012-12-07  Richard Henderson  <rth@redhat.com>
22150
22151         [BZ #10114]
22152         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
22153         normal/normal case to before the switch.
22154         (_FP_DIV): Likewise.
22155
22156 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
22157             Mike Frysinger  <vapier@gentoo.org>
22158
22159         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
22160         check for __NR_fadvise64_64.
22161
22162 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
22163
22164         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
22165         0, not just to plain "0" as a statement.
22166         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
22167         with cw.
22168
22169 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
22170
22171         * NEWS: Use sourceware.org in Bugzilla URL.
22172
22173 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
22174
22175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
22176         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
22177
22178         * stdio-common/tst-put-error.c (do_test): Add newline to the
22179         padded test to ensure flush.
22180
22181 2012-12-05  Jeff Law  <law@redhat.com>
22182
22183         * sunrpc/etc.rpc (fedfs_admin): Add entry.
22184
22185 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
22186
22187         * README: Don't refer to ports add-on as distributed separately.
22188         Mention AArch64 in list of systems supported in the ports add-on.
22189
22190         * LICENSES: Add more non-FSF copyright and license notices.
22191
22192         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
22193         ((unused)).
22194
22195         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
22196
22197         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
22198         10000 as width of padded output.
22199
22200 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
22201
22202         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
22203
22204         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
22205         variable LX with __attribute__ ((unused)).
22206         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
22207         Likewise.
22208         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
22209         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
22210         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
22211         with __attribute__ ((unused)).
22212
22213 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
22214
22215         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
22216
22217 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
22218
22219         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
22220         (CFLAGS-nldbl-acos.c): New variable.
22221         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
22222         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
22223         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
22224         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
22225         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
22226         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
22227         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
22228         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
22229         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
22230         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
22231         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
22232         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
22233         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
22234         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
22235         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
22236         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
22237         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
22238         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
22239         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
22240         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
22241         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
22242         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
22243         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
22244         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
22245         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
22246         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
22247         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
22248         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
22249         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
22250         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
22251         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
22252         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
22253         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
22254         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
22255         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
22256         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
22257         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
22258         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
22259         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
22260         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
22261         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
22262         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
22263         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
22264         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
22265         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
22266         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
22267         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
22268         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
22269         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
22270         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
22271         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
22272         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
22273         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
22274         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
22275         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
22276         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
22277         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
22278         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
22279         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
22280         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
22281         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
22282         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
22283         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
22284         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
22285         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
22286         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
22287         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
22288         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
22289         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
22290         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
22291         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
22292         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
22293         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
22294         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
22295         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
22296         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
22297         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
22298         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
22299         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
22300         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
22301         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
22302         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
22303         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
22304         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
22305         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
22306         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
22307         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
22308         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
22309         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
22310         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
22311         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
22312         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
22313         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
22314         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
22315         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
22316         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
22317         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
22318
22319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22320         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
22321
22322         [BZ #14914]
22323         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
22324         whole low double instead of just low 47 bits when splitting values
22325         into two parts.
22326
22327 2012-12-03  Allan McRae  <allan@archlinux.org>
22328
22329         * manual/stdio.texi (Predefined Printf Handlers): Remove
22330         @hsep and @vsep usage.
22331
22332 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
22333
22334         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
22335         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
22336
22337 2012-12-03  Jeff Law  <law@redhat.com>
22338
22339         * time/sys/time.h (settimeofday): Do not mark TV argument
22340         as __nonnull.
22341
22342 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
22343
22344         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
22345         when currently writing and seek to current position when not.
22346         * libio/Makefile (tests): Remove bug-fclose1.
22347         * libio/bug-fclose1.c: Delete.
22348
22349 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
22350
22351         * manual/arith.texi (feenableexcept): Fix typo.
22352         (fedisableexcept): Likewise.
22353
22354 2012-11-30  Roland McGrath  <roland@hack.frob.com>
22355
22356         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
22357         second, differently-typed declaration, rather than a cast.
22358
22359 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
22360
22361         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
22362         * include/rpc/svc.h: ... here.
22363
22364 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
22365
22366         [BZ #13013]
22367         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
22368         depending n and resplen2 to catch cases where answer
22369         equals answerp2.
22370
22371 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
22372
22373         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
22374         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
22375
22376 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
22377
22378         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
22379
22380 2012-11-29  Roland McGrath  <roland@hack.frob.com>
22381
22382         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
22383
22384 2012-11-28  Jeff Law  <law@redhat.com>
22385
22386         [BZ #13761]
22387         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
22388         dataset_temporary.  Track alloca usage into alloca_used.
22389         If dataset is large allocate and release it via malloc/free.
22390
22391 2012-06-04  Florian Weimer  <fweimer@redhat.com>
22392
22393         [BZ #14197]
22394         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
22395
22396 2012-11-28  David S. Miller  <davem@davemloft.net>
22397
22398         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22399
22400 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
22401
22402         [BZ #14803]
22403         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
22404         of pi/2 rounded to nearest to 64 bits.
22405         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
22406         nearest to 64 bits.
22407         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
22408         bits.
22409
22410 2012-11-28  Jeff Law <law@redhat.com>
22411             Martin Osvald <mosvald@redhat.com>
22412
22413         [BZ #14889]
22414         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
22415         * sunrpc/svc.c: Include time.h.
22416         (__svc_accept_failed): New function.
22417         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
22418         any reason other than EINTR, call __svc_accept_failed.
22419         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
22420         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
22421
22422 2012-11-28  Andreas Schwab  <schwab@suse.de>
22423
22424         * scripts/abilist.awk: Also handle indirect functions in .opd
22425         section.
22426
22427 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
22428
22429         [BZ #13881]
22430         * sysdeps/x86/fpu/powl_helper.c: New file.
22431         * sysdeps/x86/fpu/Makefile: Likewise.
22432         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
22433         (p3): New object.
22434         (__ieee754_powl): Use __powl_helper for finite arguments except
22435         integer exponents below 8.
22436         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
22437         (p3): New object.
22438         (__ieee754_powl): Use __powl_helper for finite arguments except
22439         integer exponents below 8.
22440         * math/libm-test.inc (pow_test): Add more tests and enable some
22441         previously disabled tests.
22442         * sysdeps/i386/fpu/libm-test-ulps: Update.
22443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22444
22445 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22446             Carlos O'Donell  <carlos_odonell@mentor.com>
22447
22448         * nss/makedb.c (is_prime): Assert that input is odd and greater
22449         than 4.  Note that fact in a comment too.
22450         (next_prime): Add 4 to input.
22451
22452 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
22453
22454         [BZ #11741]
22455         * libio/Makefile (tests): Add test case tst-fwrite-error.
22456         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
22457         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
22458         * libio/tst-fwrite-error.c: New test case.
22459
22460 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
22461
22462         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
22463         before casting to void *.
22464         * include/libc-internal.h (__pointer_type): New macro.
22465         (__integer_if_pointer_type_sub): Likewise.
22466         (__integer_if_pointer_type): Likewise.
22467         (cast_to_integer): Likewise.
22468         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
22469         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
22470         before casting to atomic64_t.
22471         (atomic_exchange_acq): Likewise.
22472         (__arch_exchange_and_add_body): Likewise.
22473         (__arch_add_body): Likewise.
22474         (atomic_add_negative): Likewise.
22475         (atomic_add_zero): Likewise.
22476
22477 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
22478
22479         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
22480         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
22481         (add_fdes): Likewise.
22482         (linear_search_fdes): Likewise.
22483         (binary_search_unencoded_fdes): Likewise.
22484
22485 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
22486
22487         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
22488
22489 2012-11-24  Adam Conrad  <adconrad@0c3.net>
22490
22491         * configure.in: Autodetect C++ header directories.
22492         * configure: Regenerated.
22493
22494 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
22495
22496         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
22497
22498 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
22499
22500         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22501
22502 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
22503
22504         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
22505         LDBL_MANT_DIG == 106]: Disable some tests.
22506         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
22507         Likewise.
22508         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
22509         Likewise.
22510
22511         [BZ #14871]
22512         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
22513         input for small inputs.  Return +/- pi/2 for large inputs.
22514         * math/libm-test.inc (atan_test): Add more tests.
22515
22516         * sysdeps/generic/unwind-dw2-fde-glibc.c
22517         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
22518         __attribute__ ((unused)).
22519
22520         [BZ #14645]
22521         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
22522         x * y if x and y are nonzero and z is zero.
22523
22524         [BZ #14811]
22525         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
22526         nonzero exponents with absolute value below 0x1p-117 to +/-
22527         0x1p-117.
22528
22529         [BZ #14869]
22530         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
22531         up arguments below 2**-450, not just those below 2**-500.
22532         * math/libm-test.inc (hypot_test): Add another test.
22533
22534         [BZ #14868]
22535         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
22536         Return a+b for ratio over 2**120, not 2**60.
22537         * math/libm-test.inc (hypot_test): Add another test.
22538
22539         * math/libm-test.inc (clog_test): Use
22540         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
22541         (clog10_test): Likewise.
22542
22543         [BZ #6778]
22544         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
22545
22546 2012-11-22  Andreas Schwab  <schwab@suse.de>
22547
22548         * sysdeps/i386/fpu/libm-test-ulps: Update.
22549
22550 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
22551
22552         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
22553         printf output with newline.
22554
22555 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
22556
22557         [BZ #14865]
22558         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
22559         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
22560         -z nodlopen, -z initfirst and -z execstack support.
22561         * configure: Regenerated.
22562
22563         * elf/elf.h (DF_1_NODIRECT): New macro.
22564         (DF_1_IGNMULDEF): Likewise.
22565         (DF_1_NOKSYMS): Likewise.
22566         (DF_1_NOHDR): Likewise.
22567         (DF_1_EDITED): Likewise.
22568         (DF_1_NORELOC): Likewise.
22569         (DF_1_SYMINTPOSE): Likewise.
22570         (DF_1_GLOBAUDIT): Likewise.
22571         (DF_1_SINGLETON): Likewise.
22572         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
22573         DT_1_SUPPORTED_MASK bits.
22574         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
22575
22576 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
22577
22578         * sysdeps/unix/make-syscalls.sh: Document prefixes.
22579
22580 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
22581
22582         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
22583         macro.
22584
22585         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
22586         (sendmmsg): Move declarations...
22587         * socket/sys/socket.h: ... here.
22588         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
22589         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
22590         include it from...
22591         * socket/recvmmsg.c: ... this new file.
22592         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
22593         (sendmmsg): Rename to __sendmmsg, create weak alias and make
22594         definition of __sendmmsg hidden.
22595         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
22596         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
22597         Move ENOSYS stub into and include it from...
22598         * socket/sendmmsg.c: ... this new file.
22599         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
22600         (sysdep_routines): Move recvmmsg and sendmmsg...
22601         * socket/Makefile (routines): ... here.
22602         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
22603         (GLIBC_PRIVATE): Add __sendmmsg.
22604         * include/sys/socket.h (__sendmmsg): Add declarations.
22605         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
22606         sendmmsg.
22607
22608 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
22609
22610         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
22611         variable I1 with __attribute__ ((unused)).
22612         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
22613
22614 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
22615
22616         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
22617         DUMMY variables with __attribute__ ((unused)).
22618
22619         * bits/byteswap.h: Include <bits/types.h>.
22620         (__bswap_64): Use __uint64_t instead of unsigned long long int.
22621
22622 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
22623
22624         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
22625         string_t.  Do not manually set errno.
22626         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
22627         length with __strnlen.  Make sure to both set errno and return it on
22628         failure.
22629
22630 2012-11-19  David S. Miller  <davem@davemloft.net>
22631
22632         With help from Joseph Myers.
22633         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
22634         very large arguments properly.
22635         * math/libm-test.inc (atan_test): New tests.
22636         (atan2_test): New tests.
22637         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22638         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22639
22640 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
22641
22642         [BZ #14856]
22643         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
22644         Define to 3.
22645
22646         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
22647         [POSIX] (EADDRNOTAVAIL): Likewise.
22648         [POSIX] (EAFNOSUPPORT): Likewise.
22649         [POSIX] (EALREADY): Likewise.
22650         [POSIX] (ECONNABORTED): Likewise.
22651         [POSIX] (ECONNREFUSED): Likewise.
22652         [POSIX] (ECONNRESET): Likewise.
22653         [POSIX] (EDESTADDRREQ): Likewise.
22654         [POSIX] (EDQUOT): Likewise.
22655         [POSIX] (EHOSTUNREACH): Likewise.
22656         [POSIX] (EIDRM): Likewise.
22657         [POSIX] (EISCONN): Likewise.
22658         [POSIX] (ELOOP): Likewise.
22659         [POSIX] (EMULTIHOP): Likewise.
22660         [POSIX] (ENETDOWN): Likewise.
22661         [POSIX] (ENETUNREACH): Likewise.
22662         [POSIX] (ENOBUFS): Likewise.
22663         [POSIX] (ENODATA): Likewise.
22664         [POSIX] (ENOLINK): Likewise.
22665         [POSIX] (ENOMSG): Likewise.
22666         [POSIX] (ENOPROTOOPT): Likewise.
22667         [POSIX] (ENOSR): Likewise.
22668         [POSIX] (ENOSTR): Likewise.
22669         [POSIX] (ENOTCONN): Likewise.
22670         [POSIX] (ENOTSOCK): Likewise.
22671         [POSIX] (EOPNOTSUPP): Likewise.
22672         [POSIX] (EOVERFLOW): Likewise.
22673         [POSIX] (EPROTO): Likewise.
22674         [POSIX] (EPROTONOSUPPORT): Likewise.
22675         [POSIX] (EPROTOTYPE): Likewise.
22676         [POSIX] (ESTALE): Likewise.
22677         [POSIX] (ETIME): Likewise.
22678         [POSIX] (ETXTBSY): Likewise.
22679         [POSIX] (EWOULDBLOCK): Likewise.
22680         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
22681         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
22682         [POSIX] (SEEK_CUR): Likewise.
22683         [POSIX] (SEEK_END): Likewise.
22684         [POSIX || UNIX98] (mode_t): Do not require.
22685         [POSIX] (off_t): Likewise.
22686         [POSIX] (pid_t): Likewise.
22687         [POSIX] (sys/stat.h): Do not allow header.
22688         [POSIX] (unistd.h): Likewise.
22689         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
22690         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
22691         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
22692         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
22693         require.
22694         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
22695         sigevent): Specify elements.
22696         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
22697         entry.
22698         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
22699         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
22700
22701         * conform/data/cpio.h-data [POSIX]: Disable whole file.
22702         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
22703         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
22704         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
22705         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
22706         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
22707         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
22708         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
22709         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
22710         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
22711         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
22712         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
22713         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
22714         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
22715         Likewise.
22716         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
22717         Likewise.
22718         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
22719         Likewise.
22720         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
22721         Likewise.
22722         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
22723         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
22724         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
22725         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
22726         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
22727         Specify lower bound on value.
22728         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
22729         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
22730         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
22731         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
22732         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
22733         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
22734         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
22735         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
22736         value.
22737         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
22738         as optional.
22739         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
22740         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
22741         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
22742         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
22743         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
22744         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
22745         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
22746         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
22747         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
22748         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
22749         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
22750         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
22751         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
22752         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
22753         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
22754         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
22755         entry.
22756         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
22757         optional.
22758         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
22759         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
22760         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
22761         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
22762         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
22763         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
22764         Likewise.
22765         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
22766         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
22767         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
22768         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
22769         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
22770         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
22771         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
22772         as optional.
22773         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
22774         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
22775         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
22776         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
22777         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
22778         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
22779         specify as optional.
22780         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
22781         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
22782         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
22783         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
22784         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
22785         [XPG3] (NL_LANGMAX): Likewise.
22786         [POSIX || XPG3] (NL_MSGMAX): Likewise.
22787         [POSIX || XPG3] (NL_NMAX): Likewise.
22788         [POSIX || XPG3] (NL_SETMAX): Likewise.
22789         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
22790         [XPG3] (NZERO): Likewise.
22791         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
22792         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
22793         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
22794         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
22795         (REG_ERANGE): Expect.
22796         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
22797         optional-constant.
22798         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
22799         Use (void) in prototype.
22800         [POSIX] (*_t): Allow.
22801         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
22802         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
22803         (WRDE_BADVAL): Expect.
22804
22805         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
22806         expect.
22807         [XPG3 || XPG4] (O_RSYNC): Likewise.
22808         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
22809         Likewise.
22810         [XPG3 || XPG4] (pthread_sigmask): Likewise.
22811         [XPG3 || XPG4] (sigqueue): Likewise.
22812         [XPG3 || XPG4] (sigtimedwait): Likewise.
22813         [XPG3 || XPG4] (sigwaitinfo): Likewise.
22814         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
22815         [XPG3 || XPG4] (vsnprintf): Likewise.
22816         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
22817         Likewise.
22818         [XPG3 || XPG4] (blksize_t): Likewise.
22819         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
22820         Likewise.
22821         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
22822         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
22823         [XPG3 || XPG4] (struct itimerspec): Likewise.
22824         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
22825         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
22826         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
22827         [XPG3 || XPG4] (clockid_t): Likewise.
22828         [XPG3 || XPG4] (timer_t): Likewise.
22829         [XPG3 || XPG4] (clock_getres): Likewise.
22830         [XPG3 || XPG4] (clock_gettime): Likewise.
22831         [XPG3 || XPG4] (clock_settime): Likewise.
22832         [XPG3 || XPG4] (nanosleep): Likewise.
22833         [XPG3 || XPG4] (timer_create): Likewise.
22834         [XPG3 || XPG4] (timer_delete): Likewise.
22835         [XPG3 || XPG4] (timer_gettime): Likewise.
22836         [XPG3 || XPG4] (timer_getoverrun): Likewise.
22837         [XPG3 || XPG4] (timer_settime): Likewise.
22838         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
22839         [XPG3 || XPG4] (getlogin_r): Likewise.
22840         [XPG3 || XPG4] (pread): Likewise.
22841         [XPG3 || XPG4] (pthread_atfork): Likewise.
22842         [XPG3 || XPG4] (pwrite): Likewise.
22843
22844         [BZ #14835]
22845         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
22846         <bits/siginfo.h>.
22847
22848 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
22849
22850         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
22851         finalizing MALLSTREAM.
22852
22853         * sysdeps/mach/hurd/syncfs.c: New file.
22854
22855 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
22856
22857         [BZ #14719]
22858         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
22859         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
22860         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
22861         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
22862         (_nss_dns_gethostbyname4_r): Likewise.
22863         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
22864         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
22865
22866 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
22867
22868         [BZ #13763]
22869         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
22870
22871 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
22872
22873         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
22874         * elf/cache.c (print_entry): Print ",AArch64" for
22875         FLAG_AARCH64_LIB64
22876
22877         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
22878         * elf/cache.c (print_entry): Print ",hard-float" for
22879         FLAG_ARM_LIBHF.
22880
22881 2012-11-18  David S. Miller  <davem@davemloft.net>
22882
22883         With help from Joseph Myers.
22884         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
22885         cutoff to 2**-13.
22886         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
22887         cutoff to 2**-25.
22888         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
22889         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
22890         small.
22891         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
22892         * math/libm-test.inc (y0_test): New tests.
22893         (y1_test): New tests.
22894         * sysdeps/i386/fpu/libm-test-ulps: Update.
22895         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22896         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22897
22898 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
22899
22900         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
22901         64-bit targets.
22902         * configure: Regenerated.
22903
22904 2012-11-17  David S. Miller  <davem@davemloft.net>
22905
22906         [BZ #14811]
22907         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
22908         nonzero exponents with absolute value below 0x1p-128 to +/-
22909         0x1p-128.
22910
22911 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
22912
22913         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
22914
22915         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
22916
22917         * posix/getconf-speclist.c: New file.
22918         * posix/posix-envs.def: Likewise.
22919         * posix/confstr.c (START_ENV_GROUP): New macro.
22920         (END_ENV_GROUP): Likewise.
22921         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
22922         (KNOWN_PRESENT_ENV_STRING): Likewise.
22923         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
22924         (UNKNOWN_ENVIRONMENT): Likewise.
22925         (confstr): Include posix-envs.def instead of handling
22926         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
22927         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
22928         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
22929         (END_ENV_GROUP): Likewise.
22930         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
22931         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
22932         (UNKNOWN_ENVIRONMENT): Likewise.
22933         (__sysconf): Include posix-envs.def instead of handling associated
22934         cases directly here.
22935         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
22936         preprocessing getconf-speclist.c rather than running getconf or
22937         generating empty file.
22938
22939 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
22940
22941         * scripts/check-local-headers.sh: Ignore 'mach' headers.
22942
22943 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
22944
22945         [BZ #14672]
22946         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
22947
22948 2012-11-16  David S. Miller  <davem@davemloft.net>
22949
22950         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
22951         smaller than LDBL_EPSILON/2.0L, just return xm1.
22952
22953 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
22954
22955         * elf/tst-array1.c (init): Set constructor priority to 1000.
22956         (fini): Set destructor priority to 1000.
22957         * elf/tst-array2dep.c: Likewise.
22958
22959 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22960
22961         [BZ #11741]
22962         * libio/fileops.c (_IO_new_file_write): Correctly return error.
22963         (_IO_new_file_xsputn): Also return EOF if none of the input
22964         data was written when overflow failed.
22965         * libio/iopadn.c (_IO_padn): Likewise.
22966         * libio/iowpadn.c (_IO_wpadn): Likewise.
22967         * stdio-common/tst-put-error.c: Add copyright notice.
22968         (do_test): Add case for printing padded string.
22969         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
22970         _IO_padn returned error.
22971         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
22972         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
22973         return EOF.
22974
22975 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22976
22977         * libio/libioP.h: Add comment note that the references to C++
22978         bits are now obsolete.
22979
22980 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
22981
22982         * math/libm-test.inc (check_complex): Use asprintf.
22983
22984 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
22985
22986         * debug/pcprofiledump.c (print_version): Update copyright year.
22987         * malloc/memusagestat.c (print_version): Likewise.
22988
22989 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
22990
22991         [BZ #14831]
22992         * elf/Makefile (tests): Add tst-audit8.
22993         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
22994         ($(objpfx)tst-audit8.out): New target.
22995         (tst-audit8-ENV): New variable.
22996         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
22997         audit if l_reloc_result is NULL.
22998         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
22999         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
23000         * elf/tst-audit8.c: New file.
23001
23002 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23003
23004         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
23005         * misc/Makefile (CFLAGS-select.c): Define.
23006         * posix/Makefile (CFLAGS-pause.c): Define.
23007
23008 2012-11-13  David S. Miller  <davem@davemloft.net>
23009
23010         * crypt/Makefile: Move test targets after toplevel Rules
23011         inclusion.  Grab any necessary sysdep routines when linking.
23012         * crypt/md5.c (md5_process_block): Remove define, we will always
23013         name it __md5_process_block.
23014         (md5_finish_ctx): Update md5_process_block call.
23015         (md5_stream): Likewise.
23016         (md5_process_bytes): Likewise.
23017         (md5_process_block): Rename to __md5_process_block and move to ...
23018         * crypt/md5-block.c: ... here.
23019         * crypt/sha256.c (sha256_process_block): Move to ...
23020         * crypt/sha256-block.c: ... here.
23021         * crypt/sha512.c (sha512_process_block): Move to ...
23022         * crypt/sha512-block.c: ... here.
23023         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
23024         path.
23025         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
23026         * sysdeps/sparc/sparc64/multiarch/Makefile
23027         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
23028         crypt subdir.
23029         (localedef-aux): Add md5 crypto assembler when in locale subdir.
23030         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
23031         multiarch changes.
23032         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
23033         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
23034         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
23035         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
23036         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
23037         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
23038         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
23039         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
23040         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
23041         file.
23042         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
23043         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
23044         file.
23045         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
23046
23047 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
23048
23049         * timezone/tzselect.ksh: Update from tzcode git revision
23050         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
23051         * timezone/zdump.c: Likewise.
23052         * timezone/zic.c: Likewise.
23053         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
23054         in TZVERSION setting, not $(PKGVERSION).
23055         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
23056         REPORT_BUGS_TO settings.
23057
23058         [BZ #14838]
23059         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
23060         macro.
23061
23062 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23063
23064         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
23065         detection to immediately after _FP_ROUND().
23066         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
23067         bits are 0.
23068
23069 2012-11-11  David S. Miller  <davem@davemloft.net>
23070
23071         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
23072         inttypes.h
23073         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
23074         __close rather than their public counterparts.
23075
23076 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
23077
23078         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
23079         file.
23080         [UNIX98] (sem_timedwait): Do not expect.
23081         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
23082         [XPG4 || UNIX98] (sockatmark): Do not expect.
23083         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
23084         (clock_getcpuclockid): Do not expect.
23085         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
23086         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
23087         Do not expect.
23088         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
23089         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
23090         [UNIX98] (vwscanf): Likewise.
23091         [UNIX98] (vswscanf): Likewise.
23092
23093 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
23094
23095         * timezone/version.h: Remove file.
23096         * timezone/README: Do not refer to version.h.
23097         * timezone/Makefile ($(objpfx)zic.o): New dependency on
23098         $(objpfx)version.h.
23099         ($(objpfx)zdump.o): Likewise.
23100         ($(objpfx)version.h): New target.
23101
23102         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
23103         2012i.
23104         * timezone/README: Don't mention modification to tzselect.ksh.
23105         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
23106         work on unmodified tzselect.ksh.  Substitute version numbers in
23107         tzselect.ksh.
23108
23109         * Makefile (format-me): Remove.
23110         (INSTALL): Adjust indentation.  Use commands directly instead of
23111         using $(format-me).
23112
23113         * aclocal.m4 (ACX_PKGVERSION): New macro.
23114         (ACX_BUGURL): Likewise.
23115         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
23116         (PKGVERSION): New AC_DEFINE_UNQUOTED.
23117         (REPORT_BUGS_TO): Likewise.
23118         * configure: Regenerated.
23119         * config.h.in (PKGVERSION): New macro.
23120         (REPORT_BUGS_TO): Likewise.
23121         * config.make.in (PKGVERSION): New variable.
23122         (PKGVERSION_TEXI): Likewise.
23123         (REPORT_BUGS_TO): Likewise.
23124         (REPORT_BUGS_TEXI): Likewise.
23125         * Makefile (format-me): Use -I$(common-objpfx)manual.
23126         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
23127         ($(common-objpfx)manual/%): New target.
23128         (manual/%): Remove target.
23129         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
23130         (print_version): Use PKGVERSION.
23131         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
23132         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
23133         and REPORT_BUGS_TO.
23134         ($(objpfx)xtrace): Likewise.
23135         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
23136         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
23137         (print_version): Use PKGVERSION.
23138         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
23139         (do_version): Use PKGVERSION.
23140         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
23141         REPORT_BUGS_TO.
23142         (common-ldd-rewrite): Likewise.
23143         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
23144         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
23145         (print_version): Use PKGVERSION.
23146         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
23147         * elf/pldd.c (argp_program_bug_address): Remove variable.
23148         (more_help): New function.
23149         (argp): Use more_help.
23150         (print_version): Use PKGVERSION.
23151         * elf/sln.c (main): Use PKGVERSION.
23152         (usage): Use REPORT_BUGS_TO.
23153         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
23154         (top level): Use PKGVERSION.
23155         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
23156         (print_version): Use PKGVERSION.
23157         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
23158         (print_version): Use PKGVERSION.
23159         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
23160         (print_version): Use PKGVERSION.
23161         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
23162         (print_version): Use PKGVERSION.
23163         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
23164         (print_version): Use PKGVERSION.
23165         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
23166         (print_version): Use PKGVERSION.
23167         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
23168         and BUGURL.
23169         ($(objpfx)memusage): Likewise.
23170         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
23171         (do_version): Use PKGVERSION.
23172         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
23173         (print_version): Use PKGVERSION.
23174         * malloc/mtrace.pl ($PACKAGE): Remove variable.
23175         ($PKGVERSION): New variable.
23176         ($REPORT_BUGS_TO): Likewise.
23177         (usage): Use $REPORT_BUGS_TO.
23178         (top level): Use $PKGVERSION.
23179         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
23180         ($(objpfx)pkgvers.texi): New rule.
23181         ($(objpfx)stamp-pkgvers): Likewise.
23182         * manual/install.texi: Include pkgvers.texi.
23183         (--with-pkgversion): Document new configure option.
23184         (--with-bugurl): Likewise.
23185         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
23186         than necessarily for this particular distribution.  Use
23187         REPORT_BUGS_TO for where to report bugs.
23188         * INSTALL: Regenerated.
23189         * manual/libc.texinfo: Include pkgvers.texi.
23190         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
23191         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
23192         (print_version): Use PKGVERSION.
23193         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
23194         (print_version): Use PKGVERSION.
23195         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
23196         (print_version): Use PKGVERSION.
23197         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
23198         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
23199         macro.
23200         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
23201         (print_version): Use PKGVERSION.
23202         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
23203         (print_version): Use PKGVERSION.
23204         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
23205         and PKGVERSION.
23206
23207         * timezone/checktab.awk: Update from tzcode 2012i.
23208         * timezone/ialloc.c: Likewise.
23209         * timezone/private.h: Likewise.
23210         * timezone/scheck.c: Likewise.
23211         * timezone/tzfile.h: Likewise.
23212         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
23213         (TZVERSION): Hardcode tzcode version number.
23214         * timezone/zdump.c: Update from tzcode 2012i.
23215         * timezone/zic.c: Likewise.
23216         * timezone/version.h: New file.
23217         * timezone/README: Describe version.h.  Update upstream location.
23218
23219         [BZ #14824]
23220         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
23221         (mktemp): Enable declaration.
23222         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
23223         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
23224         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
23225         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
23226         Likewise.
23227         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
23228         Likewise.
23229         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
23230         Likewise.
23231         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
23232         Likewise.
23233         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
23234         Likewise.
23235         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
23236         Likewise.
23237
23238         [BZ #14821]
23239         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
23240         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
23241         for copies of such integer values.
23242         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
23243         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
23244
23245 2012-11-09  Andreas Jaeger  <aj@suse.de>
23246
23247         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
23248         definitions and declarations that are provided by
23249         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
23250
23251 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23252
23253         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
23254         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
23255         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
23256         definition.
23257
23258 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23259
23260         * elf/elf.h: Update comment before AArch64 relocations.
23261
23262 2012-11-07  David S. Miller  <davem@davemloft.net>
23263
23264         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
23265         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
23266         (__start_context): Declare.
23267         (__makecontext_ret): Delete.
23268         (__makecontext): Hook up __start_context instead of
23269         __makecontext_ret.
23270         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
23271         (sysdep_routines): Add __start_context when in stdlib.
23272
23273 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
23274
23275         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
23276         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
23277         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
23278         hardcoded "nm".
23279         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
23280         (READELF): New variable.  Use it instead of hardcoded "readelf".
23281
23282 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
23283
23284         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
23285         * sysdeps/x86/Makefile: Here.
23286         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
23287         * sysdeps/x86/tst-xmmymm.sh: This.
23288
23289 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
23290
23291         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
23292         expectations.
23293         [UNIX98] (pthread_barrier_t): Do not expect.
23294         [UNIX98] (pthread_barrierattr_t): Likewise.
23295         [UNIX98] (pthread_spinlock_t): Likewise.
23296         [UNIX98] (pthread_barrier_destroy): Likewise.
23297         [UNIX98] (pthread_barrier_init): Likewise.
23298         [UNIX98] (pthread_barrier_wait): Likewise.
23299         [UNIX98] (pthread_barrierattr_destroy): Likewise.
23300         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
23301         [UNIX98] (pthread_barrierattr_init): Likewise.
23302         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
23303         [UNIX98] (pthread_getcpuclockid): Likewise.
23304         [UNIX98] (pthread_mutex_timedlock): Likewise.
23305         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
23306         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
23307         [UNIX98] (pthread_sigmask): Likewise.
23308         [UNIX98] (pthread_spin_destroy): Likewise.
23309         [UNIX98] (pthread_spin_init): Likewise.
23310         [UNIX98] (pthread_spin_lock): Likewise.
23311         [UNIX98] (pthread_spin_trylock): Likewise.
23312         [UNIX98] (pthread_spin_unlock): Likewise.
23313         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
23314         Do not expect.
23315         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
23316         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
23317         [XPG3 || XPG4] (pthread_cond_t): Likewise.
23318         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
23319         [XPG3 || XPG4] (pthread_key_t): Likewise.
23320         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
23321         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
23322         [XPG3 || XPG4] (pthread_once_t): Likewise.
23323         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
23324         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
23325         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
23326         [XPG3 || XPG4] (pthread_t): Likewise.
23327
23328         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
23329         not expect.
23330         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
23331
23332         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
23333         Change function return type to int.
23334
23335         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
23336         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
23337         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
23338         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
23339         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
23340         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
23341         [!POSIX] (posix_madvise): Likewise.
23342         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
23343         && !UNIX98].
23344         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
23345         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
23346         (mode_t): Likewise.
23347         (posix_mem_offset): Likewise.
23348         (posix_typed_mem_get_info): Likewise.
23349         (posix_typed_mem_open): Likewise.
23350
23351         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
23352         Change condition to [XOPEN2K8].
23353
23354         * conform/conformtest.pl: Preprocess allow-header data with -x c
23355         instead of from stdin.
23356         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
23357         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
23358         [C99-based standards] (cerfc): Likewise.
23359         [C99-based standards] (cexp2): Likewise.
23360         [C99-based standards] (cexpm1): Likewise.
23361         [C99-based standards] (clog10): Likewise.
23362         [C99-based standards] (clog1p): Likewise.
23363         [C99-based standards] (clog2): Likewise.
23364         [C99-based standards] (clgamma): Likewise.
23365         [C99-based standards] (ctgamma): Likewise.
23366         [C99-based standards] (cerff): Likewise.
23367         [C99-based standards] (cerfcf): Likewise.
23368         [C99-based standards] (cexp2f): Likewise.
23369         [C99-based standards] (cexpm1f): Likewise.
23370         [C99-based standards] (clog10f): Likewise.
23371         [C99-based standards] (clog1pf): Likewise.
23372         [C99-based standards] (clog2f): Likewise.
23373         [C99-based standards] (clgammaf): Likewise.
23374         [C99-based standards] (ctgammaf): Likewise.
23375         [C99-based standards] (cerfl): Likewise.
23376         [C99-based standards] (cerfcl): Likewise.
23377         [C99-based standards] (cexp2l): Likewise.
23378         [C99-based standards] (cexpm1l): Likewise.
23379         [C99-based standards] (clog10l): Likewise.
23380         [C99-based standards] (clog1pl): Likewise.
23381         [C99-based standards] (clog2l): Likewise.
23382         [C99-based standards] (clgammal): Likewise.
23383         [C99-based standards] (ctgammal): Likewise.
23384         * conform/data/inttypes.h-data [C99-based standards]: Include
23385         stdint.h-data.  Remove all expectations for stdint.h contents.
23386         [C99-based standards] (PRI*): Do not allow.
23387         [C99-based standards] (SCN*): Likewise.
23388         [C99-based standards] (*_t): Likewise.
23389         [C99-based-standards] (PRId8): Expect macro.
23390         [C99-based-standards] (PRIi8): Likewise.
23391         [C99-based-standards] (PRIo8): Likewise.
23392         [C99-based-standards] (PRIu8): Likewise.
23393         [C99-based-standards] (PRIx8): Likewise.
23394         [C99-based-standards] (PRIX8): Likewise.
23395         [C99-based-standards] (SCNd8): Likewise.
23396         [C99-based-standards] (SCNi8): Likewise.
23397         [C99-based-standards] (SCNo8): Likewise.
23398         [C99-based-standards] (SCNu8): Likewise.
23399         [C99-based-standards] (SCNx8): Likewise.
23400         [C99-based-standards] (PRIdLEAST8): Likewise.
23401         [C99-based-standards] (PRIiLEAST8): Likewise.
23402         [C99-based-standards] (PRIoLEAST8): Likewise.
23403         [C99-based-standards] (PRIuLEAST8): Likewise.
23404         [C99-based-standards] (PRIxLEAST8): Likewise.
23405         [C99-based-standards] (PRIXLEAST8): Likewise.
23406         [C99-based-standards] (SCNdLEAST8): Likewise.
23407         [C99-based-standards] (SCNiLEAST8): Likewise.
23408         [C99-based-standards] (SCNoLEAST8): Likewise.
23409         [C99-based-standards] (SCNuLEAST8): Likewise.
23410         [C99-based-standards] (SCNxLEAST8): Likewise.
23411         [C99-based-standards] (PRIdFAST8): Likewise.
23412         [C99-based-standards] (PRIiFAST8): Likewise.
23413         [C99-based-standards] (PRIoFAST8): Likewise.
23414         [C99-based-standards] (PRIuFAST8): Likewise.
23415         [C99-based-standards] (PRIxFAST8): Likewise.
23416         [C99-based-standards] (PRIXFAST8): Likewise.
23417         [C99-based-standards] (SCNdFAST8): Likewise.
23418         [C99-based-standards] (SCNiFAST8): Likewise.
23419         [C99-based-standards] (SCNoFAST8): Likewise.
23420         [C99-based-standards] (SCNuFAST8): Likewise.
23421         [C99-based-standards] (SCNxFAST8): Likewise.
23422         [C99-based-standards] (PRId16): Likewise.
23423         [C99-based-standards] (PRIi16): Likewise.
23424         [C99-based-standards] (PRIo16): Likewise.
23425         [C99-based-standards] (PRIu16): Likewise.
23426         [C99-based-standards] (PRIx16): Likewise.
23427         [C99-based-standards] (PRIX16): Likewise.
23428         [C99-based-standards] (SCNd16): Likewise.
23429         [C99-based-standards] (SCNi16): Likewise.
23430         [C99-based-standards] (SCNo16): Likewise.
23431         [C99-based-standards] (SCNu16): Likewise.
23432         [C99-based-standards] (SCNx16): Likewise.
23433         [C99-based-standards] (PRIdLEAST16): Likewise.
23434         [C99-based-standards] (PRIiLEAST16): Likewise.
23435         [C99-based-standards] (PRIoLEAST16): Likewise.
23436         [C99-based-standards] (PRIuLEAST16): Likewise.
23437         [C99-based-standards] (PRIxLEAST16): Likewise.
23438         [C99-based-standards] (PRIXLEAST16): Likewise.
23439         [C99-based-standards] (SCNdLEAST16): Likewise.
23440         [C99-based-standards] (SCNiLEAST16): Likewise.
23441         [C99-based-standards] (SCNoLEAST16): Likewise.
23442         [C99-based-standards] (SCNuLEAST16): Likewise.
23443         [C99-based-standards] (SCNxLEAST16): Likewise.
23444         [C99-based-standards] (PRIdFAST16): Likewise.
23445         [C99-based-standards] (PRIiFAST16): Likewise.
23446         [C99-based-standards] (PRIoFAST16): Likewise.
23447         [C99-based-standards] (PRIuFAST16): Likewise.
23448         [C99-based-standards] (PRIxFAST16): Likewise.
23449         [C99-based-standards] (PRIXFAST16): Likewise.
23450         [C99-based-standards] (SCNdFAST16): Likewise.
23451         [C99-based-standards] (SCNiFAST16): Likewise.
23452         [C99-based-standards] (SCNoFAST16): Likewise.
23453         [C99-based-standards] (SCNuFAST16): Likewise.
23454         [C99-based-standards] (SCNxFAST16): Likewise.
23455         [C99-based-standards] (PRId32): Likewise.
23456         [C99-based-standards] (PRIi32): Likewise.
23457         [C99-based-standards] (PRIo32): Likewise.
23458         [C99-based-standards] (PRIu32): Likewise.
23459         [C99-based-standards] (PRIx32): Likewise.
23460         [C99-based-standards] (PRIX32): Likewise.
23461         [C99-based-standards] (SCNd32): Likewise.
23462         [C99-based-standards] (SCNi32): Likewise.
23463         [C99-based-standards] (SCNo32): Likewise.
23464         [C99-based-standards] (SCNu32): Likewise.
23465         [C99-based-standards] (SCNx32): Likewise.
23466         [C99-based-standards] (PRIdLEAST32): Likewise.
23467         [C99-based-standards] (PRIiLEAST32): Likewise.
23468         [C99-based-standards] (PRIoLEAST32): Likewise.
23469         [C99-based-standards] (PRIuLEAST32): Likewise.
23470         [C99-based-standards] (PRIxLEAST32): Likewise.
23471         [C99-based-standards] (PRIXLEAST32): Likewise.
23472         [C99-based-standards] (SCNdLEAST32): Likewise.
23473         [C99-based-standards] (SCNiLEAST32): Likewise.
23474         [C99-based-standards] (SCNoLEAST32): Likewise.
23475         [C99-based-standards] (SCNuLEAST32): Likewise.
23476         [C99-based-standards] (SCNxLEAST32): Likewise.
23477         [C99-based-standards] (PRIdFAST32): Likewise.
23478         [C99-based-standards] (PRIiFAST32): Likewise.
23479         [C99-based-standards] (PRIoFAST32): Likewise.
23480         [C99-based-standards] (PRIuFAST32): Likewise.
23481         [C99-based-standards] (PRIxFAST32): Likewise.
23482         [C99-based-standards] (PRIXFAST32): Likewise.
23483         [C99-based-standards] (SCNdFAST32): Likewise.
23484         [C99-based-standards] (SCNiFAST32): Likewise.
23485         [C99-based-standards] (SCNoFAST32): Likewise.
23486         [C99-based-standards] (SCNuFAST32): Likewise.
23487         [C99-based-standards] (SCNxFAST32): Likewise.
23488         [C99-based-standards] (PRId64): Likewise.
23489         [C99-based-standards] (PRIi64): Likewise.
23490         [C99-based-standards] (PRIo64): Likewise.
23491         [C99-based-standards] (PRIu64): Likewise.
23492         [C99-based-standards] (PRIx64): Likewise.
23493         [C99-based-standards] (PRIX64): Likewise.
23494         [C99-based-standards] (SCNd64): Likewise.
23495         [C99-based-standards] (SCNi64): Likewise.
23496         [C99-based-standards] (SCNo64): Likewise.
23497         [C99-based-standards] (SCNu64): Likewise.
23498         [C99-based-standards] (SCNx64): Likewise.
23499         [C99-based-standards] (PRIdLEAST64): Likewise.
23500         [C99-based-standards] (PRIiLEAST64): Likewise.
23501         [C99-based-standards] (PRIoLEAST64): Likewise.
23502         [C99-based-standards] (PRIuLEAST64): Likewise.
23503         [C99-based-standards] (PRIxLEAST64): Likewise.
23504         [C99-based-standards] (PRIXLEAST64): Likewise.
23505         [C99-based-standards] (SCNdLEAST64): Likewise.
23506         [C99-based-standards] (SCNiLEAST64): Likewise.
23507         [C99-based-standards] (SCNoLEAST64): Likewise.
23508         [C99-based-standards] (SCNuLEAST64): Likewise.
23509         [C99-based-standards] (SCNxLEAST64): Likewise.
23510         [C99-based-standards] (PRIdFAST64): Likewise.
23511         [C99-based-standards] (PRIiFAST64): Likewise.
23512         [C99-based-standards] (PRIoFAST64): Likewise.
23513         [C99-based-standards] (PRIuFAST64): Likewise.
23514         [C99-based-standards] (PRIxFAST64): Likewise.
23515         [C99-based-standards] (PRIXFAST64): Likewise.
23516         [C99-based-standards] (SCNdFAST64): Likewise.
23517         [C99-based-standards] (SCNiFAST64): Likewise.
23518         [C99-based-standards] (SCNoFAST64): Likewise.
23519         [C99-based-standards] (SCNuFAST64): Likewise.
23520         [C99-based-standards] (SCNxFAST64): Likewise.
23521         [C99-based-standards] (PRIdMAX): Likewise.
23522         [C99-based-standards] (PRIiMAX): Likewise.
23523         [C99-based-standards] (PRIoMAX): Likewise.
23524         [C99-based-standards] (PRIuMAX): Likewise.
23525         [C99-based-standards] (PRIxMAX): Likewise.
23526         [C99-based-standards] (PRIXMAX): Likewise.
23527         [C99-based-standards] (SCNdMAX): Likewise.
23528         [C99-based-standards] (SCNiMAX): Likewise.
23529         [C99-based-standards] (SCNoMAX): Likewise.
23530         [C99-based-standards] (SCNuMAX): Likewise.
23531         [C99-based-standards] (SCNxMAX): Likewise.
23532         [C99-based-standards] (PRIdPTR): Likewise.
23533         [C99-based-standards] (PRIiPTR): Likewise.
23534         [C99-based-standards] (PRIoPTR): Likewise.
23535         [C99-based-standards] (PRIuPTR): Likewise.
23536         [C99-based-standards] (PRIxPTR): Likewise.
23537         [C99-based-standards] (PRIXPTR): Likewise.
23538         [C99-based-standards] (SCNdPTR): Likewise.
23539         [C99-based-standards] (SCNiPTR): Likewise.
23540         [C99-based-standards] (SCNoPTR): Likewise.
23541         [C99-based-standards] (SCNuPTR): Likewise.
23542         [C99-based-standards] (SCNxPTR): Likewise.
23543         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
23544         allow.
23545         * conform/data/stdint.h-data: Update comments to clarify
23546         requirements.
23547         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
23548         type.
23549         [C99-based standards] (INT8_MAX): Likewise.
23550         [C99-based standards] (INT16_MIN): Likewise.
23551         [C99-based standards] (INT16_MAX): Likewise.
23552         [C99-based standards] (INT32_MIN): Likewise.
23553         [C99-based standards] (INT32_MAX): Likewise.
23554         [C99-based standards] (INT64_MIN): Likewise.
23555         [C99-based standards] (INT64_MAX): Likewise.
23556         [C99-based standards] (UINT8_MAX): Likewise.
23557         [C99-based standards] (UINT16_MAX): Likewise.
23558         [C99-based standards] (UINT32_MAX): Likewise.
23559         [C99-based standards] (UINT64_MAX): Likewise.
23560         [C99-based standards] (INT_LEAST8_MIN): Likewise.
23561         [C99-based standards] (INT_LEAST8_MAX): Likewise.
23562         [C99-based standards] (INT_LEAST16_MIN): Likewise.
23563         [C99-based standards] (INT_LEAST16_MAX): Likewise.
23564         [C99-based standards] (INT_LEAST32_MIN): Likewise.
23565         [C99-based standards] (INT_LEAST32_MAX): Likewise.
23566         [C99-based standards] (INT_LEAST64_MIN): Likewise.
23567         [C99-based standards] (INT_LEAST64_MAX): Likewise.
23568         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
23569         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
23570         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
23571         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
23572         [C99-based standards] (INT_FAST8_MIN): Likewise.
23573         [C99-based standards] (INT_FAST8_MAX): Likewise.
23574         [C99-based standards] (INT_FAST16_MIN): Likewise.
23575         [C99-based standards] (INT_FAST16_MAX): Likewise.
23576         [C99-based standards] (INT_FAST32_MIN): Likewise.
23577         [C99-based standards] (INT_FAST32_MAX): Likewise.
23578         [C99-based standards] (INT_FAST64_MIN): Likewise.
23579         [C99-based standards] (INT_FAST64_MAX): Likewise.
23580         [C99-based standards] (UINT_FAST8_MAX): Likewise.
23581         [C99-based standards] (UINT_FAST16_MAX): Likewise.
23582         [C99-based standards] (UINT_FAST32_MAX): Likewise.
23583         [C99-based standards] (UINT_FAST64_MAX): Likewise.
23584         [C99-based standards] (INTPTR_MIN): Likewise.
23585         [C99-based standards] (INTPTR_MAX): Likewise.
23586         [C99-based standards] (UINTPTR_MAX): Likewise.
23587         [C99-based standards] (INTMAX_MIN): Likewise.
23588         [C99-based standards] (INTMAX_MAX): Likewise.
23589         [C99-based standards] (UINTMAX_MAX): Likewise.
23590         [C99-based standards] (PTRDIFF_MIN): Likewise.
23591         [C99-based standards] (PTRDIFF_MAX): Likewise.
23592         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
23593         [C99-based standards] (SIZE_MAX): Likewise.
23594         [C99-based standards] (WCHAR_MAX): Likewise.
23595         [C99-based standards] (WINT_MAX): Likewise.
23596         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
23597         constraint on value.
23598         [C99-based standards] (WCHAR_MIN): Likewise.
23599         [C99-based standards] (WINT_MIN): Likewise.
23600         [C99-based standards] (*_t): Allow.
23601         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
23602         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
23603         Include math.h-data and complex.h-data.  Remove all expectations
23604         of math.h and complex.h contents.
23605         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
23606         at end of line.
23607         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
23608         (struct tm): Expect tag.
23609         [C99-based-standards] (wcstof): Expect function.
23610         [C99-based-standards] (wcstold): Likewise.
23611         [C99-based-standards] (wcstoll): Likewise.
23612         [C99-based-standards] (wcstoull): Likewise.
23613         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
23614         macro-int-constant.  Specify type.
23615         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
23616         constraint on value.
23617         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
23618         Specify type.
23619         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
23620         Specify value.
23621         [ISO C standards]: Do not allow headers.
23622         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
23623         wcs[abcdefghijklmnopqrstuvwxyz]*.
23624         [ISO C standards] (*_t): Do not allow.
23625         * conform/data/wctype.h-data [C99-based standards] (iswblank):
23626         Expect function.
23627         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
23628         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
23629         Specify type.
23630         [ISO C standards]: Do not allow headers.
23631         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
23632         is[abcdefghijklmnopqrstuvwxyz]*.
23633         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
23634         to[abcdefghijklmnopqrstuvwxyz]*.
23635         [ISO C standards] (*_t): Do not allow.
23636         * conform/data/stdalign.h-data: New file.
23637         * conform/data/stdbool.h-data: Likewise.
23638         * conform/data/stdnoreturn.h-data: Likewise.
23639
23640 2012-11-07  Roland McGrath  <roland@hack.frob.com>
23641
23642         [BZ #14815]
23643         * manual/filesys.texi (Directory Entries): Typo fix.
23644         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
23645
23646 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23647
23648         * elf/elf.h (EM_AARCH64): New macro.
23649         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
23650         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
23651         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
23652         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
23653         (R_AARCH64_TLSDESC): Likewise.
23654         (NT_ARM_TLS): Likewise.
23655         (NT_ARM_HW_BREAK): Likewise.
23656         (NT_ARM_HW_WATCH): Likewise.
23657
23658 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
23659
23660         [BZ #14811]
23661         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
23662         (__ieee754_powl): Saturate nonzero exponents with absolute value
23663         below 0x1p-79 to +/- 0x1p-79.
23664         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
23665         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
23666         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
23667         nonzero exponents with absolute value below 0x1p-32 to +/-
23668         0x1p-32.
23669         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
23670         (__ieee754_powl): Saturate nonzero exponents with absolute value
23671         below 0x1p-79 to +/- 0x1p-79.
23672         * math/libm-test.inc (pow_test): Add more tests.
23673
23674 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23675
23676         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
23677         _dl_s390_cap_flags with kernel. Increase string length.
23678         (_dl_s390_platforms): Add z196 and zEC12.
23679
23680 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
23681
23682         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
23683         Change XOPEN21K to XOPEN2K.
23684
23685 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
23686
23687         * string/memmove.c: Use memcpy when possible.
23688
23689 2012-11-06  Andreas Jaeger  <aj@suse.de>
23690
23691         * po/eo.po: Update from translation team.
23692
23693 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
23694
23695         [BZ #14793]
23696         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
23697         exponent and small x and y exponents, scale x or y up.  Increase
23698         by 2 the exponent used in scaling up.
23699         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23700         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23701         * math/libm-test.inc (fma_test): Add more tests.
23702         (fma_test_towardzero): Likewise.
23703         (fma_test_downward): Likewise.
23704         (fma_test_upward): Likewise.
23705
23706 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
23707
23708         [BZ #14805]
23709         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
23710         fenv_t *.
23711
23712         [BZ #14801]
23713         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
23714         namespace for names of struct fields.
23715         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
23716         fenv_t fields.
23717         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
23718         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
23719
23720 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23721
23722         [BZ #3665]
23723         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
23724
23725 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
23726
23727         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
23728         PTR_DEMANGLE.
23729
23730         [BZ #5246]
23731         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
23732         PTR_DEMANGLE.
23733
23734 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
23735
23736         [BZ #14797]
23737         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
23738         definitely overflow as x * y not x * y + z.
23739         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
23740         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
23741         * math/libm-test.inc (fma_test): Add more tests.
23742         (fma_test_towardzero): Likewise.
23743         (fma_test_downward): Likewise.
23744         (fma_test_upward): Likewise.
23745
23746 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
23747
23748         [BZ #157]
23749
23750         * include/stub-tag.h: Remove file.
23751         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
23752         '#include' of it.
23753         * manual/maint.texi (Porting): Don't reference it.
23754         * Makerules ($(objpfx)stubs): Likewise.
23755         * dirent/closedir.c: Don't include <stub-tag.h>.
23756         * dirent/dirfd.c: Likewise.
23757         * dirent/fdopendir.c: Likewise.
23758         * dirent/getdents.c: Likewise.
23759         * dirent/getdents64.c: Likewise.
23760         * dirent/opendir.c: Likewise.
23761         * dirent/readdir.c: Likewise.
23762         * dirent/readdir64.c: Likewise.
23763         * dirent/readdir64_r.c: Likewise.
23764         * dirent/readdir_r.c: Likewise.
23765         * dirent/rewinddir.c: Likewise.
23766         * dirent/seekdir.c: Likewise.
23767         * dirent/telldir.c: Likewise.
23768         * gmon/profil.c: Likewise.
23769         * grp/setgroups.c: Likewise.
23770         * inet/if_index.c: Likewise.
23771         * io/access.c: Likewise.
23772         * io/chdir.c: Likewise.
23773         * io/chmod.c: Likewise.
23774         * io/chown.c: Likewise.
23775         * io/close.c: Likewise.
23776         * io/dup.c: Likewise.
23777         * io/dup2.c: Likewise.
23778         * io/dup3.c: Likewise.
23779         * io/euidaccess.c: Likewise.
23780         * io/faccessat.c: Likewise.
23781         * io/fchdir.c: Likewise.
23782         * io/fchmod.c: Likewise.
23783         * io/fchmodat.c: Likewise.
23784         * io/fchown.c: Likewise.
23785         * io/fchownat.c: Likewise.
23786         * io/fcntl.c: Likewise.
23787         * io/flock.c: Likewise.
23788         * io/fstatfs.c: Likewise.
23789         * io/fstatfs64.c: Likewise.
23790         * io/fstatvfs.c: Likewise.
23791         * io/fstatvfs64.c: Likewise.
23792         * io/futimens.c: Likewise.
23793         * io/fxstat.c: Likewise.
23794         * io/fxstat64.c: Likewise.
23795         * io/fxstatat.c: Likewise.
23796         * io/fxstatat64.c: Likewise.
23797         * io/getcwd.c: Likewise.
23798         * io/isatty.c: Likewise.
23799         * io/lchmod.c: Likewise.
23800         * io/lchown.c: Likewise.
23801         * io/link.c: Likewise.
23802         * io/linkat.c: Likewise.
23803         * io/lseek.c: Likewise.
23804         * io/lseek64.c: Likewise.
23805         * io/lxstat64.c: Likewise.
23806         * io/mkdir.c: Likewise.
23807         * io/mkdirat.c: Likewise.
23808         * io/mkfifo.c: Likewise.
23809         * io/mkfifoat.c: Likewise.
23810         * io/open.c: Likewise.
23811         * io/open64.c: Likewise.
23812         * io/openat.c: Likewise.
23813         * io/openat64.c: Likewise.
23814         * io/pipe.c: Likewise.
23815         * io/pipe2.c: Likewise.
23816         * io/poll.c: Likewise.
23817         * io/posix_fadvise.c: Likewise.
23818         * io/posix_fadvise64.c: Likewise.
23819         * io/posix_fallocate.c: Likewise.
23820         * io/posix_fallocate64.c: Likewise.
23821         * io/read.c: Likewise.
23822         * io/readlink.c: Likewise.
23823         * io/readlinkat.c: Likewise.
23824         * io/rmdir.c: Likewise.
23825         * io/sendfile.c: Likewise.
23826         * io/sendfile64.c: Likewise.
23827         * io/statfs.c: Likewise.
23828         * io/statfs64.c: Likewise.
23829         * io/statvfs.c: Likewise.
23830         * io/statvfs64.c: Likewise.
23831         * io/symlink.c: Likewise.
23832         * io/symlinkat.c: Likewise.
23833         * io/ttyname.c: Likewise.
23834         * io/ttyname_r.c: Likewise.
23835         * io/umask.c: Likewise.
23836         * io/unlink.c: Likewise.
23837         * io/unlinkat.c: Likewise.
23838         * io/utime.c: Likewise.
23839         * io/utimensat.c: Likewise.
23840         * io/write.c: Likewise.
23841         * io/xmknod.c: Likewise.
23842         * io/xmknodat.c: Likewise.
23843         * io/xstat.c: Likewise.
23844         * io/xstat64.c: Likewise.
23845         * login/getpt.c: Likewise.
23846         * login/grantpt.c: Likewise.
23847         * login/unlockpt.c: Likewise.
23848         * math/e_acoshl.c: Likewise.
23849         * math/e_acosl.c: Likewise.
23850         * math/e_asinl.c: Likewise.
23851         * math/e_atan2l.c: Likewise.
23852         * math/e_atanhl.c: Likewise.
23853         * math/e_coshl.c: Likewise.
23854         * math/e_expl.c: Likewise.
23855         * math/e_fmodl.c: Likewise.
23856         * math/e_gammal_r.c: Likewise.
23857         * math/e_hypotl.c: Likewise.
23858         * math/e_j0l.c: Likewise.
23859         * math/e_j1l.c: Likewise.
23860         * math/e_jnl.c: Likewise.
23861         * math/e_lgammal_r.c: Likewise.
23862         * math/e_log10l.c: Likewise.
23863         * math/e_log2l.c: Likewise.
23864         * math/e_logl.c: Likewise.
23865         * math/e_powl.c: Likewise.
23866         * math/e_rem_pio2l.c: Likewise.
23867         * math/e_sinhl.c: Likewise.
23868         * math/e_sqrtl.c: Likewise.
23869         * math/fclrexcpt.c: Likewise.
23870         * math/fedisblxcpt.c: Likewise.
23871         * math/feenablxcpt.c: Likewise.
23872         * math/fegetenv.c: Likewise.
23873         * math/fegetexcept.c: Likewise.
23874         * math/fegetround.c: Likewise.
23875         * math/feholdexcpt.c: Likewise.
23876         * math/fesetenv.c: Likewise.
23877         * math/fesetround.c: Likewise.
23878         * math/feupdateenv.c: Likewise.
23879         * math/fgetexcptflg.c: Likewise.
23880         * math/fraiseexcpt.c: Likewise.
23881         * math/fsetexcptflg.c: Likewise.
23882         * math/ftestexcept.c: Likewise.
23883         * math/k_cosl.c: Likewise.
23884         * math/k_rem_pio2l.c: Likewise.
23885         * math/k_sinl.c: Likewise.
23886         * math/k_tanl.c: Likewise.
23887         * math/s_asinhl.c: Likewise.
23888         * math/s_atanl.c: Likewise.
23889         * math/s_cbrtl.c: Likewise.
23890         * math/s_erfl.c: Likewise.
23891         * math/s_expm1l.c: Likewise.
23892         * math/s_log1pl.c: Likewise.
23893         * math/s_tanhl.c: Likewise.
23894         * misc/acct.c: Likewise.
23895         * misc/brk.c: Likewise.
23896         * misc/chflags.c: Likewise.
23897         * misc/chroot.c: Likewise.
23898         * misc/fchflags.c: Likewise.
23899         * misc/fgetxattr.c: Likewise.
23900         * misc/flistxattr.c: Likewise.
23901         * misc/fremovexattr.c: Likewise.
23902         * misc/fsetxattr.c: Likewise.
23903         * misc/fsync.c: Likewise.
23904         * misc/ftruncate.c: Likewise.
23905         * misc/futimes.c: Likewise.
23906         * misc/futimesat.c: Likewise.
23907         * misc/getdomain.c: Likewise.
23908         * misc/getdtsz.c: Likewise.
23909         * misc/gethostid.c: Likewise.
23910         * misc/gethostname.c: Likewise.
23911         * misc/getloadavg.c: Likewise.
23912         * misc/getpagesize.c: Likewise.
23913         * misc/getsysstats.c: Likewise.
23914         * misc/getxattr.c: Likewise.
23915         * misc/gtty.c: Likewise.
23916         * misc/ioctl.c: Likewise.
23917         * misc/lgetxattr.c: Likewise.
23918         * misc/listxattr.c: Likewise.
23919         * misc/llistxattr.c: Likewise.
23920         * misc/lremovexattr.c: Likewise.
23921         * misc/lsetxattr.c: Likewise.
23922         * misc/lutimes.c: Likewise.
23923         * misc/madvise.c: Likewise.
23924         * misc/mincore.c: Likewise.
23925         * misc/mlock.c: Likewise.
23926         * misc/mlockall.c: Likewise.
23927         * misc/mmap.c: Likewise.
23928         * misc/mprotect.c: Likewise.
23929         * misc/msync.c: Likewise.
23930         * misc/munlock.c: Likewise.
23931         * misc/munlockall.c: Likewise.
23932         * misc/munmap.c: Likewise.
23933         * misc/preadv.c: Likewise.
23934         * misc/preadv64.c: Likewise.
23935         * misc/ptrace.c: Likewise.
23936         * misc/pwritev.c: Likewise.
23937         * misc/pwritev64.c: Likewise.
23938         * misc/readv.c: Likewise.
23939         * misc/reboot.c: Likewise.
23940         * misc/remap_file_pages.c: Likewise.
23941         * misc/removexattr.c: Likewise.
23942         * misc/revoke.c: Likewise.
23943         * misc/select.c: Likewise.
23944         * misc/setdomain.c: Likewise.
23945         * misc/setegid.c: Likewise.
23946         * misc/seteuid.c: Likewise.
23947         * misc/sethostid.c: Likewise.
23948         * misc/sethostname.c: Likewise.
23949         * misc/setregid.c: Likewise.
23950         * misc/setreuid.c: Likewise.
23951         * misc/setxattr.c: Likewise.
23952         * misc/sstk.c: Likewise.
23953         * misc/stty.c: Likewise.
23954         * misc/swapoff.c: Likewise.
23955         * misc/swapon.c: Likewise.
23956         * misc/sync.c: Likewise.
23957         * misc/syncfs.c: Likewise.
23958         * misc/syscall.c: Likewise.
23959         * misc/truncate.c: Likewise.
23960         * misc/ualarm.c: Likewise.
23961         * misc/usleep.c: Likewise.
23962         * misc/ustat.c: Likewise.
23963         * misc/utimes.c: Likewise.
23964         * misc/vhangup.c: Likewise.
23965         * misc/writev.c: Likewise.
23966         * posix/_exit.c: Likewise.
23967         * posix/alarm.c: Likewise.
23968         * posix/execve.c: Likewise.
23969         * posix/fexecve.c: Likewise.
23970         * posix/fork.c: Likewise.
23971         * posix/fpathconf.c: Likewise.
23972         * posix/getaddrinfo.c: Likewise.
23973         * posix/getegid.c: Likewise.
23974         * posix/geteuid.c: Likewise.
23975         * posix/getgid.c: Likewise.
23976         * posix/getgroups.c: Likewise.
23977         * posix/getlogin.c: Likewise.
23978         * posix/getlogin_r.c: Likewise.
23979         * posix/getpgid.c: Likewise.
23980         * posix/getpid.c: Likewise.
23981         * posix/getppid.c: Likewise.
23982         * posix/getresgid.c: Likewise.
23983         * posix/getresuid.c: Likewise.
23984         * posix/getsid.c: Likewise.
23985         * posix/getuid.c: Likewise.
23986         * posix/glob64.c: Likewise.
23987         * posix/nanosleep.c: Likewise.
23988         * posix/pathconf.c: Likewise.
23989         * posix/pause.c: Likewise.
23990         * posix/posix_madvise.c: Likewise.
23991         * posix/pread.c: Likewise.
23992         * posix/pread64.c: Likewise.
23993         * posix/pwrite.c: Likewise.
23994         * posix/pwrite64.c: Likewise.
23995         * posix/sched_getaffinity.c: Likewise.
23996         * posix/sched_getp.c: Likewise.
23997         * posix/sched_gets.c: Likewise.
23998         * posix/sched_primax.c: Likewise.
23999         * posix/sched_primin.c: Likewise.
24000         * posix/sched_rr_gi.c: Likewise.
24001         * posix/sched_setaffinity.c: Likewise.
24002         * posix/sched_setp.c: Likewise.
24003         * posix/sched_sets.c: Likewise.
24004         * posix/sched_yield.c: Likewise.
24005         * posix/setgid.c: Likewise.
24006         * posix/setlogin.c: Likewise.
24007         * posix/setpgid.c: Likewise.
24008         * posix/setresgid.c: Likewise.
24009         * posix/setresuid.c: Likewise.
24010         * posix/setsid.c: Likewise.
24011         * posix/setuid.c: Likewise.
24012         * posix/sleep.c: Likewise.
24013         * posix/spawni.c: Likewise.
24014         * posix/sysconf.c: Likewise.
24015         * posix/times.c: Likewise.
24016         * posix/wait.c: Likewise.
24017         * posix/wait3.c: Likewise.
24018         * posix/wait4.c: Likewise.
24019         * posix/waitpid.c: Likewise.
24020         * resolv/gai_sigqueue.c: Likewise.
24021         * resource/getpriority.c: Likewise.
24022         * resource/getrlimit.c: Likewise.
24023         * resource/getrusage.c: Likewise.
24024         * resource/nice.c: Likewise.
24025         * resource/setpriority.c: Likewise.
24026         * resource/setrlimit.c: Likewise.
24027         * resource/ulimit.c: Likewise.
24028         * rt/aio_cancel.c: Likewise.
24029         * rt/aio_fsync.c: Likewise.
24030         * rt/aio_read.c: Likewise.
24031         * rt/aio_sigqueue.c: Likewise.
24032         * rt/aio_suspend.c: Likewise.
24033         * rt/aio_write.c: Likewise.
24034         * rt/clock_getres.c: Likewise.
24035         * rt/clock_gettime.c: Likewise.
24036         * rt/clock_nanosleep.c: Likewise.
24037         * rt/clock_settime.c: Likewise.
24038         * rt/lio_listio.c: Likewise.
24039         * rt/mq_close.c: Likewise.
24040         * rt/mq_getattr.c: Likewise.
24041         * rt/mq_notify.c: Likewise.
24042         * rt/mq_open.c: Likewise.
24043         * rt/mq_receive.c: Likewise.
24044         * rt/mq_send.c: Likewise.
24045         * rt/mq_setattr.c: Likewise.
24046         * rt/mq_timedreceive.c: Likewise.
24047         * rt/mq_timedsend.c: Likewise.
24048         * rt/mq_unlink.c: Likewise.
24049         * rt/shm_open.c: Likewise.
24050         * rt/shm_unlink.c: Likewise.
24051         * rt/timer_create.c: Likewise.
24052         * rt/timer_delete.c: Likewise.
24053         * rt/timer_getoverr.c: Likewise.
24054         * rt/timer_gettime.c: Likewise.
24055         * rt/timer_settime.c: Likewise.
24056         * setjmp/__longjmp.c: Likewise.
24057         * setjmp/setjmp.c: Likewise.
24058         * signal/kill.c: Likewise.
24059         * signal/killpg.c: Likewise.
24060         * signal/raise.c: Likewise.
24061         * signal/sigaction.c: Likewise.
24062         * signal/sigaltstack.c: Likewise.
24063         * signal/sigblock.c: Likewise.
24064         * signal/sigignore.c: Likewise.
24065         * signal/sigintr.c: Likewise.
24066         * signal/signal.c: Likewise.
24067         * signal/sigpause.c: Likewise.
24068         * signal/sigpending.c: Likewise.
24069         * signal/sigqueue.c: Likewise.
24070         * signal/sigreturn.c: Likewise.
24071         * signal/sigset.c: Likewise.
24072         * signal/sigsetmask.c: Likewise.
24073         * signal/sigstack.c: Likewise.
24074         * signal/sigsuspend.c: Likewise.
24075         * signal/sigtimedwait.c: Likewise.
24076         * signal/sigvec.c: Likewise.
24077         * signal/sigwait.c: Likewise.
24078         * signal/sigwaitinfo.c: Likewise.
24079         * signal/sysv_signal.c: Likewise.
24080         * socket/accept.c: Likewise.
24081         * socket/accept4.c: Likewise.
24082         * socket/bind.c: Likewise.
24083         * socket/connect.c: Likewise.
24084         * socket/getpeername.c: Likewise.
24085         * socket/getsockname.c: Likewise.
24086         * socket/getsockopt.c: Likewise.
24087         * socket/isfdtype.c: Likewise.
24088         * socket/listen.c: Likewise.
24089         * socket/recv.c: Likewise.
24090         * socket/recvfrom.c: Likewise.
24091         * socket/recvmsg.c: Likewise.
24092         * socket/send.c: Likewise.
24093         * socket/sendmsg.c: Likewise.
24094         * socket/sendto.c: Likewise.
24095         * socket/setsockopt.c: Likewise.
24096         * socket/shutdown.c: Likewise.
24097         * socket/sockatmark.c: Likewise.
24098         * socket/socket.c: Likewise.
24099         * socket/socketpair.c: Likewise.
24100         * stdio-common/ctermid.c: Likewise.
24101         * stdio-common/cuserid.c: Likewise.
24102         * stdio-common/remove.c: Likewise.
24103         * stdio-common/rename.c: Likewise.
24104         * stdio-common/renameat.c: Likewise.
24105         * stdio-common/tempname.c: Likewise.
24106         * stdlib/getcontext.c: Likewise.
24107         * stdlib/makecontext.c: Likewise.
24108         * stdlib/setcontext.c: Likewise.
24109         * stdlib/swapcontext.c: Likewise.
24110         * stdlib/system.c: Likewise.
24111         * streams/fattach.c: Likewise.
24112         * streams/fdetach.c: Likewise.
24113         * streams/getmsg.c: Likewise.
24114         * streams/getpmsg.c: Likewise.
24115         * streams/putmsg.c: Likewise.
24116         * streams/putpmsg.c: Likewise.
24117         * sysdeps/unix/bsd/getpt.c: Likewise.
24118         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
24119         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
24120         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
24121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
24122         Likewise.
24123         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
24124         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
24125         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
24126         * sysvipc/msgctl.c: Likewise.
24127         * sysvipc/msgget.c: Likewise.
24128         * sysvipc/msgrcv.c: Likewise.
24129         * sysvipc/msgsnd.c: Likewise.
24130         * sysvipc/semctl.c: Likewise.
24131         * sysvipc/semget.c: Likewise.
24132         * sysvipc/semop.c: Likewise.
24133         * sysvipc/semtimedop.c: Likewise.
24134         * sysvipc/shmat.c: Likewise.
24135         * sysvipc/shmctl.c: Likewise.
24136         * sysvipc/shmdt.c: Likewise.
24137         * sysvipc/shmget.c: Likewise.
24138         * termios/tcdrain.c: Likewise.
24139         * termios/tcflow.c: Likewise.
24140         * termios/tcflush.c: Likewise.
24141         * termios/tcgetattr.c: Likewise.
24142         * termios/tcgetpgrp.c: Likewise.
24143         * termios/tcsendbrk.c: Likewise.
24144         * termios/tcsetattr.c: Likewise.
24145         * termios/tcsetpgrp.c: Likewise.
24146         * time/adjtime.c: Likewise.
24147         * time/clock.c: Likewise.
24148         * time/getitimer.c: Likewise.
24149         * time/gettimeofday.c: Likewise.
24150         * time/setitimer.c: Likewise.
24151         * time/settimeofday.c: Likewise.
24152         * time/stime.c: Likewise.
24153         * time/time.c: Likewise.
24154
24155 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
24156
24157         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
24158         /usr/old/bin.
24159
24160         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
24161         instead of spaces.
24162         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
24163
24164 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
24165
24166         [BZ #14796]
24167         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
24168         FE_TONEAREST before applying Dekker multiplication and Knuth
24169         addition.  Clear inexact exceptions and check for exact zero
24170         results afterwards.
24171         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24172         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
24173         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24174         * math/libm-test.inc (fma_test): Add more tests.
24175         (fma_test_towardzero): Likewise.
24176         (fma_test_downward): Likewise.
24177         (fma_test_upward): Likewise.
24178         * sysdeps/generic/math_private.h (default_libc_fesetround): New
24179         function.
24180         (libc_fesetround): New macro.
24181         (libc_fesetroundf): Likewise.
24182         (libc_fesetroundl): Likewise.
24183         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
24184         function.
24185         (libc_fesetround_387): Likewise.
24186         (libc_fesetroundf): New macro.
24187         (libc_fesetround): Likewise.
24188         (libc_fesetroundl): Likewise.
24189         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
24190         function.
24191         (libc_fesetroundf): New macro.
24192         (libc_fesetround): Likewise.
24193         (libc_fesetroundl): Likewise.
24194         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
24195         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
24196         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
24197         libm_hidden_ver.
24198         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
24199         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
24200         libm_hidden_def.
24201         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
24202         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
24203         libm_hidden_ver.
24204         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
24205         libm_hidden_def.
24206
24207         [BZ #3439]
24208         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
24209         integer constant usable in #if and use that to give value to enum
24210         constant.
24211         (FE_DIVBYZERO): Likewise.
24212         (FE_UNDERFLOW): Likewise.
24213         (FE_OVERFLOW): Likewise.
24214         (FE_INVALID): Likewise.
24215         (FE_INVALID_SNAN): Likewise.
24216         (FE_INVALID_ISI): Likewise.
24217         (FE_INVALID_IDI): Likewise.
24218         (FE_INVALID_ZDZ): Likewise.
24219         (FE_INVALID_IMZ): Likewise.
24220         (FE_INVALID_COMPARE): Likewise.
24221         (FE_INVALID_SOFTWARE): Likewise.
24222         (FE_INVALID_SQRT): Likewise.
24223         (FE_INVALID_INTEGER_CONVERSION): Likewise.
24224         (FE_TONEAREST): Likewise.
24225         (FE_TOWARDZERO): Likewise.
24226         (FE_UPWARD): Likewise.
24227         (FE_DOWNWARD): Likewise.
24228         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
24229         (FE_DIVBYZERO): Likewise.
24230         (FE_OVERFLOW): Likewise.
24231         (FE_UNDERFLOW): Likewise.
24232         (FE_INEXACT): Likewise.
24233         (FE_TONEAREST): Likewise.
24234         (FE_DOWNWARD): Likewise.
24235         (FE_UPWARD): Likewise.
24236         (FE_TOWARDZERO): Likewise.
24237         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
24238         (FE_UNDERFLOW): Likewise.
24239         (FE_OVERFLOW): Likewise.
24240         (FE_DIVBYZERO): Likewise.
24241         (FE_INVALID): Likewise.
24242         (FE_TONEAREST): Likewise.
24243         (FE_TOWARDZERO): Likewise.
24244         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
24245         (FE_OVERFLOW): Likewise.
24246         (FE_UNDERFLOW): Likewise.
24247         (FE_DIVBYZERO): Likewise.
24248         (FE_INEXACT): Likewise.
24249         (FE_TONEAREST): Likewise.
24250         (FE_TOWARDZERO): Likewise.
24251         (FE_UPWARD): Likewise.
24252         (FE_DOWNWARD): Likewise.
24253         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
24254         (FE_DIVBYZERO): Likewise.
24255         (FE_OVERFLOW): Likewise.
24256         (FE_UNDERFLOW): Likewise.
24257         (FE_INEXACT): Likewise.
24258         (FE_TONEAREST): Likewise.
24259         (FE_DOWNWARD): Likewise.
24260         (FE_UPWARD): Likewise.
24261         (FE_TOWARDZERO): Likewise.
24262
24263 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
24264
24265         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
24266
24267 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
24268
24269         * scripts/cross-test-ssh.sh (command): Use newlines to separate
24270         commands.  Quote $PWD.
24271         (blacklist_exports): Don't use remove_newlines.  Replace "declare
24272         -x" by "export".
24273         (remove_newlines): Remove.
24274
24275 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
24276
24277         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
24278         * stdlib/stdlib.h (atof): Moved to ...
24279         * include/bits/stdlib-float.h: Here.  New file.
24280         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
24281         * stdlib/bits/stdlib-float.h: New file.
24282         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
24283         -mno-sse -mno-mmx.
24284         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
24285         <xmmintrin.h>.
24286
24287 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
24288
24289         * conform/conformtest.pl (@headers): Add fenv.h.
24290         * conform/data/fenv.h-data: New file.
24291         * include/fenv.h [_ISOMAC]: Disable all contents of file except
24292         include of <math/fenv.h>.
24293
24294         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
24295         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
24296         && !UNIX98].  Enables tests for XOPEN2K8.
24297         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
24298         POSIX2008]: Likewise.
24299
24300         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
24301         (struct rusage): Do not expect type or its members.
24302
24303         [BZ #3439]
24304         * math/math.h (FP_NAN): Define macro to integer constant usable in
24305         #if and use that to give value to enum constant.
24306         (FP_INFINITE): Likewise.
24307         (FP_ZERO): Likewise.
24308         (FP_SUBNORMAL): Likewise.
24309         (FP_NORMAL): Likewise.
24310
24311 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
24312
24313         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
24314         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
24315         arguments.
24316
24317 2012-11-02  Roland McGrath  <roland@hack.frob.com>
24318
24319         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
24320         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
24321         autoconf-time if not.
24322         * configure.in: Remove AC_PREREQ.
24323
24324 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24325
24326         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
24327         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
24328         of the internal implementation.
24329
24330 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
24331
24332         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
24333         except include of <misc/sys/syslog.h>.
24334
24335 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
24336
24337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
24338         function returns with a NULL context exit with zero.
24339
24340 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24341
24342         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
24343
24344 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
24345
24346         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
24347         (run_program_cmd): This.
24348         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
24349         (tst_langinfo): New variable.  Use it.
24350
24351 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
24352
24353         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
24354         floating point opcodes.
24355
24356 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
24357
24358         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
24359         variable.
24360
24361         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
24362
24363         * sysdeps/mach/hurd/powerpc: Remove directory.
24364         * sysdeps/mach/powerpc: Likewise.
24365
24366 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
24367
24368         * scripts/check-local-headers.sh: Ignore c++ headers.
24369
24370 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
24371
24372         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
24373         __libc_cleanup_region_start argument.
24374
24375 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
24376
24377         [BZ #14784]
24378         [BZ #14785]
24379         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
24380         x * y using scaling, not as x * y + z.
24381         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24382         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24383         * math/libm-test.inc (fma_test): Add more tests.
24384         (fma_test_towardzero): Likewise.
24385         (fma_test_downward): Likewise.
24386         (fma_test_upward): Likewise.
24387
24388 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
24389
24390         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
24391
24392 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
24393
24394         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
24395         New variable.
24396
24397 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
24398
24399         * rt/tst-shm.c (worker): Correct checking for mmap failure.
24400
24401 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
24402
24403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
24404         Fix sort order.
24405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
24406         Likewise.
24407
24408 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24409
24410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
24411         Fix the order of the list for glibc 2.17.
24412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
24413         Likewise.
24414
24415 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
24416
24417         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24418
24419 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
24420
24421         [BZ #14610]
24422         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
24423         for low part of x being zero before using __atanl (y).
24424         * math/libm-test.inc (atan2_test): Add another test.
24425
24426         * manual/install.texi (Configuring and compiling): Document
24427         general use of test-wrapper and test-wrapper-env.
24428         * INSTALL: Regenerated.
24429
24430         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
24431         (__fma): Do not extract and scale down low bits on after-rounding
24432         systems when result rounded to normal precision would have normal
24433         exponent.
24434         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
24435         (__fmal): Do not extract and scale down low bits on after-rounding
24436         systems when result rounded to normal precision would have normal
24437         exponent.
24438         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
24439         (__fmal): Do not extract and scale down low bits on after-rounding
24440         systems when result rounded to normal precision would have normal
24441         exponent.
24442         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
24443         macro.
24444         (fma_test): Add more tests.
24445         (fma_test_towardzero): Likewise.
24446         (fma_test_downward): Likewise.
24447         (fma_test_upward): Likewise.
24448
24449 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
24450
24451         * sysdeps/i386/tininess.h: Renamed to ...
24452         * sysdeps/x86/tininess.h: This.
24453         * sysdeps/x86_64/tininess.h: Removed.
24454
24455 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
24456
24457         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
24458         input.  Use $(build-program-cmd).
24459         ($(objpfx)tst-array1-static.out): Likewise.
24460         ($(objpfx)tst-array2.out): Likewise.
24461         ($(objpfx)tst-array3.out): Likewise.
24462         ($(objpfx)tst-array4.out): Likewise.
24463         ($(objpfx)tst-array5.out): Likewise.
24464         ($(objpfx)tst-array5-static.out): Likewise.
24465
24466 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
24467
24468         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
24469         if defined.
24470
24471         * nss/nsswitch.h (nss_interface_function): Provide new
24472         macro for use with NSS functions.
24473         * grp/initgroups.c: Use new macro.
24474         * nss/getXXbyYY.c: Likewise.
24475         * nss/getXXbyYY_r.c: Likewise.
24476         * nss/getXXent.c: Likewise.
24477         * nss/getXXent_r.c: Likewise.
24478         * sysdeps/posix/getaddrinfo.c: Likewise.
24479
24480 2012-10-30  Andreas Jaeger  <aj@suse.de>
24481
24482         * po/ru.po: Update Russion translation from translation project.
24483
24484 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
24485
24486         [BZ #14152]
24487         [BZ #14783]
24488         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
24489         result and shift together with sticky bit instead of replicating
24490         round-to-nearest rounding.
24491         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24492         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24493         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
24494         missing underflow exceptions.
24495         (fma_test_towardzero): Add more tests.
24496         (fma_test_downward): Likewise.
24497         (fma_test_upward): Likewise.
24498
24499         [BZ #14047]
24500         * sysdeps/generic/tininess.h: New file.
24501         * sysdeps/i386/tininess.h: Likewise.
24502         * sysdeps/sh/tininess.h: Likewise.
24503         * sysdeps/x86_64/tininess.h: Likewise.
24504         * stdlib/tst-strtod-underflow.c: Likewise.
24505         * stdlib/tst-tininess.c: Likewise.
24506         * stdlib/strtod_l.c: Include <tininess.h>.
24507         (round_and_return): Do not set errno for exact underflow cases.
24508         Force an underflow exception when setting errno for underflow.
24509         Determine underflow based on rounding to normal precision if
24510         TININESS_AFTER_ROUNDING.
24511         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
24512         ERANGE for exact underflow cases.
24513         * stdlib/Makefile (tests): Add tst-tininess and
24514         tst-strtod-underflow.
24515         ($(objpfx)tst-tininess): Use $(link-libm).
24516         ($(objpfx)tst-strtod-underflow): Likewise.
24517
24518 2012-10-30  Andreas Jaeger  <aj@suse.de>
24519
24520         [BZ#14767]
24521         * elf/Makefile (tests): Remove conditional for have-initfini-array
24522         since this is now always required and the variable does not exist
24523         anymore.
24524         (tests-static): Likewise.
24525         (modules-names): Likewise.
24526
24527         * po/eo.po: Add Esperanto translation from translation project.
24528
24529         * elf/tst-array1.c (fini_array): Make writeable so that it can be
24530         merged with constructor/destructor.
24531         (init_array): Likewise.
24532         * elf/tst-array2dep.c (fini_array): Likewise.
24533         (init_array): Likewise.
24534
24535 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
24536
24537         * manual/message.texi: Delete @cartouche tags.
24538
24539 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
24540
24541         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
24542         EOPNOTSUPP.
24543         * sysdeps/mach/hurd/fsync.c: Likewise.
24544
24545         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
24546         [_POSIX_REALTIME_SIGNALS]: Change condition to
24547         [_POSIX_REALTIME_SIGNALS > 0].
24548
24549 2012-10-27  Andreas Jaeger  <aj@suse.de>
24550
24551         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
24552         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
24553         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
24554         [__WORDSIZE != 64]: Likewise.
24555
24556 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
24557
24558         *  iconvdata/tst-table.sh: Remove ${SHELL}.
24559         *  iconvdata/tst-tables.sh: Likewise.
24560
24561 2012-10-25  David S. Miller  <davem@davemloft.net>
24562
24563         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
24564         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
24565         of strtoull.
24566
24567         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
24568         ifunc-impl-list.c
24569         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24570         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
24571         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
24572         file.
24573
24574 2012-10-25  Roland McGrath  <roland@hack.frob.com>
24575
24576         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
24577         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
24578         __getdirentries.
24579
24580 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
24581             Jim Blandy  <jimb@codesourcery.com>
24582
24583         * scripts/cross-test-ssh.sh: New file.
24584         * manual/install.texi (Configuring and compiling): Document use of
24585         cross-test-ssh.sh.
24586         * INSTALL: Regenerated.
24587
24588 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
24589
24590         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
24591         EOPNOTSUPP.
24592
24593 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
24594
24595         * Makeconfig (run-program-prefix): Fix comment.
24596
24597 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
24598             Jim Blandy  <jimb@codesourcery.com>
24599
24600         * Makeconfig (test-wrapper): New variable,
24601         (test-wrapper-env): Likewise.
24602         [$(cross-compiling) = yes && $(test-wrapper) != ""]
24603         (run-built-tests): Define to yes.
24604         (run-program-prefix): Use $(test-wrapper).
24605         (built-program-cmd): Likewise.
24606         * Rules (make-test-out): Use $(test-wrapper-env) and
24607         $(host-built-program-cmd).
24608         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
24609         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
24610         tst-pathopt.sh.
24611         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
24612         $(test-wrapper-env) to tst-rtld-load-self.sh.
24613         ($(objpfx)order2.out): Use $(test-wrapper).
24614         ($(objpfx)tst-initorder.out): Likewise.
24615         ($(objpfx)tst-initorder2.out): Likewise.
24616         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
24617         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
24618         (test_wrapper_env): New variable.  Use it to run ld.so.
24619         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
24620         Use it to run ld.so.
24621         (test_wrapper_env): Likewise.
24622         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
24623         $(test-wrapper) to run-iconv-test.sh.
24624         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
24625         (ICONV): Use $test_wrapper.
24626         * posix/Makefile ($(objpfx)globtest.out): Pass
24627         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
24628         globtest.sh, not $(run-program-prefix).
24629         * posix/globtest.sh (run_via_rtld_prefix): New variable.
24630         (test_wrapper): Likewise.
24631         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
24632         set together with run_via_rtld_prefix.
24633         (run_program_prefix): Define in terms of test_wrapper and
24634         run_via_rtld_prefix.
24635
24636 2012-10-24  Roland McGrath  <roland@hack.frob.com>
24637
24638         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
24639         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
24640         Targets removed.
24641
24642         [BZ #14743]
24643         * include/time.h: Remove librt_hidden_proto (clock_gettime).
24644         Declare __clock_getres, __clock_gettime, __clock_settime,
24645         __clock_nanosleep, and __clock_getcpuclockid.
24646         * rt/clock_gettime.c: Define __clock_gettime as an alias.
24647         Remove librt_hidden_def (clock_gettime).
24648         * sysdeps/unix/clock_gettime.c: Likewise.
24649         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
24650         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
24651         * rt/clock_getres.c: Define __clock_getres as an alias.
24652         * sysdeps/posix/clock_getres.c: Likewise.
24653         * rt/clock_settime.c: Define __clock_settime as an alias.
24654         * sysdeps/unix/clock_settime.c: Likewise.
24655         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
24656         * sysdeps/unix/clock_nanosleep.c: Likewise.
24657         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
24658         * rt/clock-compat.c: New file.
24659         * rt/Makefile (librt-routines): Add clock-compat and move
24660         $(clock-routines) to ...
24661         (routines): ... here, new variable.
24662         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
24663         Don't add get_clockfreq here.
24664         * rt/Versions (libc: GLIBC_2.17): New version set.
24665         Add clock_* symbols here.
24666         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
24667         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
24668         (GLIBC_2.17): Add clock_* symbols.
24669         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
24670         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
24671         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
24672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
24673         Likewise.
24674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
24675         Likewise.
24676         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
24677         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
24678         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
24679         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
24680         * NEWS: Mention the move.
24681
24682         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
24683         Use __open, __read, __close rather than their public counterparts.
24684         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
24685         (__get_clockfreq_via_cpuinfo): Likewise.
24686         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
24687         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
24688
24689         * config.h.in (HAVE_IFUNC): New #undef.
24690         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
24691         was successful.
24692         * configure: Regenerated.
24693
24694 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
24695
24696         * configure.in: Move READELF check to start of file.
24697         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
24698         libc_cv_asm_gnu_indirect_function in the process.
24699         * configure: Regenerated.
24700
24701 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
24702
24703         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
24704         send the output to /dev/null.
24705         (libc_cv_cc_with_libunwind): Likewise.
24706         (libc_cv_as_noexecstack): Likewise.
24707         * configure: Regenerate.
24708
24709 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
24710
24711         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
24712
24713         * posix/globtest.sh (TMPDIR): Do not set.
24714         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
24715         (testout): Likewise.
24716
24717 2012-10-24  Andreas Jaeger  <aj@suse.de>
24718
24719         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
24720         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
24721         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
24722         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
24723         posix_fadvise64, posix_fallocate64.
24724
24725         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
24726         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
24727         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
24728         Likewise.
24729         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
24730         Likewise.
24731         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
24732
24733         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
24734         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
24735         <bits/fcntl-linux.h>.
24736         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
24737
24738         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
24739         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
24740         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
24741         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
24742         [__WORDSIZE != 64]: Likewise.
24743
24744 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
24745
24746         * Makeconfig (run-built-tests): New variable.
24747         * Rules [$(cross-compiling) = yes]: Change condition to
24748         [$(run-built-tests) = no].
24749         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
24750         to [$(run-built-tests) = yes].
24751         * elf/Makefile [$(cross-compiling) = no]: Likewise
24752         * grp/Makefile [$(cross-compiling) = no]: Likewise.
24753         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
24754         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
24755         * intl/Makefile [$(cross-compiling) = no]: Likewise.
24756         * io/Makefile [$(cross-compiling) = no]: Likewise.
24757         * libio/Makefile [$(cross-compiling) = no]: Likewise.
24758         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
24759         * misc/Makefile [$(cross-compiling) = no]: Likewise.
24760         * posix/Makefile [$(cross-compiling) = no]: Likewise.
24761         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
24762         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
24763         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
24764         * string/Makefile [$(cross-compiling) = no]: Likewise.
24765
24766         * posix/Makefile ($(objpfx)globtest.out): Pass
24767         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
24768         $(rtld-installed-name).
24769         * posix/globtest.sh (elf_objpfx): Remove variable.
24770         (rtld_installed_name): Likewise.
24771         (library_path): Likewise.
24772         (run_program_prefix): New variable.  Use for running globtest
24773         binary.
24774
24775 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
24776             Joseph Myers  <joseph@codesourcery.com>
24777
24778         * Makeconfig (host-built-program-cmd): New variable.
24779         * elf/Makefile (tst-stackguard1-ARGS): Use
24780         $(host-built-program-cmd).
24781         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
24782         (tst-spawn-ARGS): Likewise.
24783         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
24784
24785 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
24786             Jim Blandy  <jimb@codesourcery.com>
24787
24788         * Makeconfig (run-via-rtld-prefix): New variable.
24789         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
24790         (built-program-cmd): Likewise.
24791
24792 2012-10-22  Andreas Jaeger  <aj@suse.de>
24793
24794         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
24795         __O_RSYNC if it exists, otherwise to O_SYNC.
24796
24797 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
24798             Joseph Myers  <joseph@codesourcery.com>
24799
24800         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
24801         /dev/null.
24802         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
24803         from /dev/null
24804         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
24805         /dev/null.
24806
24807 2012-10-22  Andreas Jaeger  <aj@suse.de>
24808
24809         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
24810         Define always.
24811         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
24812
24813         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24814         bits/fcntl-linux.h.
24815
24816         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
24817         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
24818
24819         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
24820         to __O_LARGEFILE.
24821         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
24822         to __O_LARGEFILE.
24823
24824 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
24825             Joseph Myers  <joseph@codesourcery.com>
24826
24827         * config.make.in (NM): New variable.
24828
24829 2012-10-21  Andreas Jaeger  <aj@suse.de>
24830
24831         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
24832         definitions and declarations that are provided by
24833         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
24834
24835 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
24836
24837         [BZ #14683]
24838         * elf/Makefile (tests-static): Add tst-leaks1-static.
24839         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
24840         ($(objpfx)tst-leaks1-static): New rule.
24841         ($(objpfx)tst-leaks1-static-mem): Likewise.
24842         (tst-leaks1-static-ENV): New macro.
24843         * elf/dl-open.c (dl_open_worker): Check the main application
24844         only if SHARED is defined.
24845         * elf/tst-leaks1-static.c: New file.
24846
24847 2012-10-20  Andreas Jaeger  <aj@suse.de>
24848
24849         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
24850         generic values for Linux.
24851         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
24852         and declarations that are provided by <bits/fcntl-linux.h> and
24853         include <bits/fcntl-linux.h>.
24854         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24855         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24856
24857 2012-10-20  Roland McGrath  <roland@hack.frob.com>
24858
24859         * io/fcntl.h: Move include of <bits/types.h> to the top and
24860         include it unconditionally.
24861
24862 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
24863
24864         * wcsmbs/Makefile (tests-ifunc): New variable.
24865         (tests): Add $(tests-ifunc).
24866         * wcsmbs/test-wcschr-ifunc.c: New file.
24867         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
24868         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
24869         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24870         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
24871         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
24872
24873         * string/Makefile (tests-ifunc): New variable.
24874         (tests): Add $(tests-ifunc).
24875         * string/test-memccpy.c (TEST_NAME): New macro.
24876         * string/test-memchr.c (TEST_NAME): Likewise.
24877         * string/test-memcmp.c (TEST_NAME): Likewise.
24878         * string/test-memcpy.c (TEST_NAME): Likewise.
24879         * string/test-memmem.c (TEST_NAME): Likewise.
24880         * string/test-memmove.c (TEST_NAME): Likewise.
24881         * string/test-memset.c (TEST_NAME): Likewise.
24882         * string/test-rawmemchr.c (TEST_NAME): Likewise.
24883         * string/test-stpcpy.c (TEST_NAME): Likewise.
24884         * string/test-stpncpy.c (TEST_NAME): Likewise.
24885         * string/test-strcasecmp.c (TEST_NAME): Likewise.
24886         * string/test-strcasestr.c (TEST_NAME): Likewise.
24887         * string/test-strcat.c (TEST_NAME): Likewise.
24888         * string/test-strchr.c (TEST_NAME): Likewise.
24889         * string/test-strcmp.c(TEST_NAME): Likewise.
24890         * string/test-strcpy.c (TEST_NAME): Likewise.
24891         * string/test-strcspn.c (TEST_NAME): Likewise.
24892         * string/test-strlen.c (TEST_NAME): Likewise.
24893         * string/test-strncasecmp.c (TEST_NAME): Likewise.
24894         * string/test-strncmp.c (TEST_NAME): Likewise.
24895         * string/test-strncpy.c (TEST_NAME): Likewise.
24896         * string/test-strnlen.c (TEST_NAME): Likewise.
24897         * string/test-strpbrk.c (TEST_NAME): Likewise.
24898         * string/test-strrchr.c (TEST_NAME): Likewise.
24899         * string/test-strspn.c (TEST_NAME): Likewise.
24900         * string/test-strstr.c (TEST_NAME): Likewise.
24901         * string/test-bcopy-ifunc.c: New file.
24902         * string/test-bzero-ifunc.c: Likewise.
24903         * string/test-memccpy-ifunc.c: Likewise.
24904         * string/test-memchr-ifunc.c: Likewise.
24905         * string/test-memcmp-ifunc.c: Likewise.
24906         * string/test-memcpy-ifunc.c: Likewise.
24907         * string/test-memmem-ifunc.c: Likewise.
24908         * string/test-memmove-ifunc.c: Likewise.
24909         * string/test-mempcpy-ifunc.c: Likewise.
24910         * string/test-memset-ifunc.c: Likewise.
24911         * string/test-rawmemchr-ifunc.c: Likewise.
24912         * string/test-stpcpy-ifunc.c: Likewise.
24913         * string/test-stpncpy-ifunc.c: Likewise.
24914         * string/test-strcasecmp-ifunc.c: Likewise.
24915         * string/test-strcasestr-ifunc.c: Likewise.
24916         * string/test-strcat-ifunc.c: Likewise.
24917         * string/test-strchr-ifunc.c: Likewise.
24918         * string/test-strchrnul-ifunc.c: Likewise.
24919         * string/test-strcmp-ifunc.c: Likewise.
24920         * string/test-strcpy-ifunc.c: Likewise.
24921         * string/test-strcspn-ifunc.c: Likewise.
24922         * string/test-strlen-ifunc.c: Likewise.
24923         * string/test-strncasecmp-ifunc.c: Likewise.
24924         * string/test-strncat-ifunc.c: Likewise.
24925         * string/test-strncmp-ifunc.c: Likewise.
24926         * string/test-strncpy-ifunc.c: Likewise.
24927         * string/test-strnlen-ifunc.c: Likewise.
24928         * string/test-strpbrk-ifunc.c: Likewise.
24929         * string/test-strrchr-ifunc.c: Likewise.
24930         * string/test-strspn-ifunc.c: Likewise.
24931         * string/test-strstr-ifunc.c: Likewise.
24932
24933         * debug/Makefile (tests-ifunc): New variable.
24934         (tests): Add $(tests-ifunc).
24935         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
24936         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
24937         * debug/test-stpcpy_chk-ifunc.c: New file.
24938         * debug/test-strcpy_chk-ifunc.c: Likewise.
24939
24940 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
24941
24942         [BZ #13601]
24943         * elf/dl-load.c (open_verify): Retry read if the entire ELF
24944         header is not read in.
24945
24946 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
24947
24948         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
24949         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
24950         directly.  Pass built executable to script as
24951         $(built-program-cmd).
24952         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
24953         $testprogram without using LD_LIBRARY_PATH and $ldso.
24954
24955         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
24956         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
24957         $(rtld-installed-name).
24958         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
24959         (rtld_installed_name): Likewise.
24960         (library_path): Likewise.
24961         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
24962         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
24963         $(run-program-prefix) to tst-tables.sh.
24964         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
24965         it to run tst-table-from and tst-table-to.
24966         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
24967         Pass it to tst-table.sh.
24968         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
24969         $(run-program-prefix) to tst-gettext.sh.
24970         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
24971         tst-translit.sh.
24972         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
24973         tst-gettext2.sh.
24974         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
24975         to run tst-gettext.
24976         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
24977         to run tst-gettext2.
24978         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
24979         to run tst-translit.
24980         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
24981         $(run-program-prefix) to tst-mtrace.sh.
24982         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
24983         to run tst-mtrace.
24984         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
24985         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
24986         $(rtld-installed-name).
24987         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
24988         (rtld_installed_name): Likewise.
24989         (run_program_prefix): New variable.  Use it to run wordexp-test.
24990
24991         * Makeconfig (ARCH): Remove all definitions.
24992         (machine): Likewise.
24993         [ARCH]: Remove conditional code.
24994         [!objdir]: Give error.
24995         [!objdir] (objpfx): Remove.
24996         [!objdir] (common-objpfx): Likewise.
24997         [!objdir] (common-objdir): Likewise.
24998         * configure.in (config_makefile): Remove.  Hardcode Makefile in
24999         AC_CONFIG_FILES call.
25000         * configure: Regenerated.
25001
25002         [BZ #13888]
25003         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
25004         or TMPDIR.
25005         (testout): Likewise.
25006
25007         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
25008         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
25009         $(rtld-installed-name).
25010         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
25011         (rtld_installed_name): Likwise.
25012         (runit): Remove function.
25013         (run_getconf): New variable,  Use it for running getconf binary.
25014
25015 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
25016
25017         [BZ #14716]
25018         * string/test-memmem.c (check_result): New function.
25019         (do_one_test): Use it.
25020         (check1): New function.
25021         (test_main): Use it.
25022
25023 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
25024
25025         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
25026
25027 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
25028
25029         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
25030         (_G_LSEEK64): Likewise.
25031         (_G_MMAP64): Likewise.
25032         (_G_FSTAT64): Likewise.
25033         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
25034         (_G_LSEEK64): Likewise.
25035         (_G_MMAP64): Likewise.
25036         (_G_FSTAT64): Likewise.
25037         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
25038         unconditional.  Call __mmap64 directly.
25039         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
25040         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
25041         __lseek64 directly.
25042         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
25043         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
25044         __mmap64 directly.
25045         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
25046         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
25047         __lseek64 directly.
25048         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
25049         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
25050         __lseek64 directly.
25051         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
25052         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
25053         __lseek64 directly.
25054         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
25055         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
25056         __fxstat64 directly.
25057         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
25058         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
25059         unconditional.
25060         (freopen64) [!_G_OPEN64]: Remove conditional code.
25061         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
25062         unconditional.
25063         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
25064         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
25065         unconditional.
25066         (ftello64) [!_G_LSEEK64]: Remove conditional code.
25067         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
25068         unconditional.
25069         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
25070         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
25071         unconditional.
25072         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
25073         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
25074         unconditional.
25075         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
25076         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
25077         unconditional.
25078         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
25079         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
25080         unconditional.
25081         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
25082
25083 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
25084
25085         [BZ #12140]
25086         * manual/memory.texi (Malloc Tunable Parameters): Add note
25087         about free list pointers overwriting some perturb bytes.
25088         Wording suggested by Roland McGrath.
25089
25090 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
25091
25092         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
25093         (lgamma_test): Likewise.
25094         (tgamma_test): Likewise.
25095
25096 2012-10-16  Florian Weimer  <fweimer@redhat.com>
25097
25098         [BZ #14700]
25099         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
25100         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
25101
25102 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
25103
25104         * NEWS: Mention BZ #14716.
25105         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
25106         when removing AVAILABLE1_USES_J macro.
25107
25108 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
25109
25110         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
25111         (__bswap_64): __uint64_t for unsigned 64-bit int.
25112
25113 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
25114
25115         * include/string.h (memmem): Declare libc hidden alias.
25116         * string/memmem.c (memmem): Define libc hidden alias.
25117         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
25118         __read, __close instead of open, read, close.
25119
25120 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
25121
25122         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
25123         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
25124         global and hidden.
25125         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
25126         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
25127         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
25128         Likewise.
25129         (__rawmemchr_sse2): Likewise.
25130         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
25131         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
25132         (__strchr_sse2): Likewise.
25133         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
25134         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
25135         (__strcasecmp_sse2): Likewise.
25136         (__strncasecmp_sse2): Likewise.
25137         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
25138         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
25139         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
25140         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
25141         (__strrchr_sse2): Likewise.
25142         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
25143         ifunc-impl-list.c.
25144         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
25145         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
25146         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
25147         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
25148         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
25149         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
25150         * sysdeps/x86_64/multiarch/memset.S: Likewise.
25151         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
25152         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
25153         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
25154         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
25155         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
25156         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
25157         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
25158         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
25159         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
25160         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
25161         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
25162         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
25163         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
25164         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
25165         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
25166         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
25167         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
25168         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
25169         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
25170         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
25171         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
25172         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
25173         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
25174
25175         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
25176         global and hidden.
25177         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
25178         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
25179         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
25180         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
25181         Likewise.
25182         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
25183         Likewise.
25184         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
25185         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
25186         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
25187         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
25188         ifunc-impl-list.c.
25189         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
25190         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
25191         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
25192         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
25193         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
25194         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
25195         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
25196         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
25197         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
25198         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
25199         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
25200         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
25201         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
25202         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
25203         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
25204         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
25205         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
25206         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
25207         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
25208         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
25209         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
25210         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
25211         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
25212         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
25213         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
25214         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
25215         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
25216         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
25217         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
25218         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
25219         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
25220         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
25221         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
25222         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
25223         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
25224         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
25225         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
25226         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
25227         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
25228         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
25229         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
25230
25231         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
25232         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
25233         * include/ifunc-impl-list.h: New file.
25234         * misc/ifunc-impl-list.c: Likewise.
25235         * misc/Makefile (routines): Add ifunc-impl-list.
25236         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
25237         * string/test-string.h: Include <ifunc-impl-list.h>.
25238         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
25239         TEST_NAME]: New variables.
25240         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
25241         are defined.
25242         (test_init): Call __libc_ifunc_impl_list to initialize
25243         func_list if TEST_IFUNC and TEST_NAME are defined.
25244
25245         * string/Makefile (strop-tests): Add bcopy and bzero.
25246         * string/test-bcopy.c: New file.
25247         * string/test-bzero.c: Likewise.
25248         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
25249         defined.
25250         * string/test-memset.c: Support bzero test if TEST_BZERO is
25251         defined.
25252         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
25253         __libc_memmove.
25254         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
25255         __libc_memset.
25256         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
25257         of memset.
25258
25259 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
25260
25261         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
25262         * configure: Regenerated.
25263
25264         * Makeconfig (+link-static-before-libc): Don't include
25265         $(link-static-libc).
25266
25267         * libio/libio.h (_IO_pos_t): Remove.
25268
25269 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
25270
25271         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
25272         McGrath.
25273
25274 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
25275
25276         * crypt/crypt-entry.c: Include fips-private.h.
25277         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
25278         * crypt/md5c-test.c (main): Tolerate disabled MD5.
25279         * sysdeps/unix/sysv/linux/fips-private.h: New file.
25280         * sysdeps/generic/fips-private.h: New file, dummy fallback.
25281
25282 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
25283
25284         * crypt/crypt-private.h: Include stdbool.h.
25285         (_ufc_setup_salt_r): Return bool.
25286         * crypt/crypt-entry.c: Include errno.h.
25287         (__crypt_r): Return NULL with EINVAL for bad salt.
25288         * crypt/crypt_util.c (bad_for_salt): New.
25289         (_ufc_setup_salt_r): Check that salt is long enough and within
25290         the specified alphabet.
25291         * crypt/badsalttest.c: New file.
25292         * crypt/Makefile (tests): Add it.
25293         ($(objpfx)badsalttest): New.
25294
25295 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
25296
25297         * NEWS: Add entry for BZ #14602.
25298
25299 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
25300
25301         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
25302         type-generic.
25303         * math/libm-test.inc: Update comment listing what functions and
25304         macros are tested.
25305         (isgreater_test): New function.
25306         (isgreaterequal_test): Likewise.
25307         (isless_test): Likewise.
25308         (islessequal_test): Likewise.
25309         (islessgreater_test): Likewise.
25310         (isunordered_test): Likewise.
25311         (main): Call the new functions.
25312
25313 2012-10-09  Roland McGrath  <roland@hack.frob.com>
25314
25315         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
25316         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
25317         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
25318         * sysdeps/i386/configure: Regenerated.
25319         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
25320         * sysdeps/mach/configure: Regenerated.
25321         * sysdeps/mach/hurd/configure: Regenerated.
25322         * sysdeps/powerpc/configure: Regenerated.
25323         * sysdeps/powerpc/powerpc32/configure: Regenerated.
25324         * sysdeps/powerpc/powerpc64/configure: Regenerated.
25325         * sysdeps/s390/s390-32/configure: Regenerated.
25326         * sysdeps/s390/s390-64/configure: Regenerated.
25327         * sysdeps/sh/configure: Regenerated.
25328         * sysdeps/sparc/configure: Regenerated.
25329         * sysdeps/unix/sysv/linux/configure: Regenerated.
25330         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
25331         * sysdeps/x86_64/configure: Regenerated.
25332
25333         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
25334         defined.  Don't check if MAP is NULL.
25335
25336 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
25337
25338         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
25339         (_G_stat64): Likewise.
25340         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
25341         (_G_stat64): Likewise.
25342         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
25343         instead of struct _G_stat64.
25344         * libio/fileops.c (mmap_remap_check): Likewise.
25345         (decide_maybe_mmap): Likewise.
25346         (_IO_new_file_seekoff): Likewise.
25347         (_IO_file_stat): Likewise.
25348         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
25349         _G_off64_t.
25350         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
25351         instead of struct _G_stat64.
25352         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
25353
25354 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
25355
25356         [BZ #14602]
25357         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
25358         Replace with ...
25359         (CHECK_EOL): New macro.
25360         (two_way_short_needle): Check beginning of haystack for EOL.  Use
25361         CHECK_EOL.
25362         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
25363         Replace with CHECK_EOL.
25364         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
25365         Replace with CHECK_EOL.
25366
25367 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
25368
25369         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
25370         type-generic.
25371         * math/libm-test.inc: Update comment listing what functions and
25372         macros are tested.
25373         (finite_test): New function.
25374         (isinf_test): Likewise.
25375         (isnan_test): Likewise.
25376         (fpclassify_test): Test subnormal input.
25377         (isfinite_test): Likewise.
25378         (isnormal_test): Likewise.
25379         (main): Call the new functions.
25380
25381 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
25382
25383         [BZ #14660]
25384         * Makerules (%.dynsym): Force C locale when running
25385         $(OBJDUMP) --dynamic-syms.
25386
25387 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
25388
25389         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
25390         <stdint.h>.
25391
25392 2012-10-06  David S. Miller  <davem@davemloft.net>
25393
25394         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
25395         upper 32-bits of the length value in %o2 since we use branch-on-register
25396         tests which consider the entire 64-bit register.
25397
25398 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
25399
25400         * string/test-strstr.c (check2): Add a test for page boundary.
25401
25402 2012-10-05  David S. Miller  <davem@davemloft.net>
25403
25404         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
25405         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
25406         file.
25407         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
25408         sysdep_routines.
25409         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
25410         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
25411         and bzero when HWCAP_SPARC_CRYPTO is present.
25412
25413 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
25414
25415         [BZ #14602]
25416         * string/test-strstr.c (check2): New function.
25417         (test_main): Call check2.
25418
25419         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
25420         and bug-strchr1.
25421         * string/bug-strcasestr1.c (do_test): Moved to ...
25422         * string/test-strcasestr.c (check1): Here.  New function.
25423         (do_one_test): Break out result checking code into ...
25424         (check_result): This.  New function.
25425         (do_one_test): Call check_result.
25426         (test_main): Call check1.
25427         * string/bug-strchr1.c (do_test): Moved to ...
25428         * string/test-strchr.c (check1): Here.  New function.
25429         (do_one_test): Break out result checking code into ...
25430         (check_result): This.  New function.
25431         (do_one_test): Call check_result.
25432         (test_main): Call check1.
25433         * string/bug-strstr1.c (main): Moved to ...
25434         * string/test-strstr.c (check1): Here.  New function.
25435         (do_one_test): Break out result checking code into ...
25436         (check_result): This.  New function.
25437         (do_one_test): Call check_result.
25438         (test_main): Call check1.
25439         * string/bug-strcasestr1.c: Removed.
25440         * string/bug-strchr1.c: Likewise.
25441         * string/bug-strstr1.c: Likewise.
25442
25443         * elf/Makefile (dl-routines): Add hwcaps.
25444         * elf/dl-support.c (_dl_important_hwcaps): Removed.
25445         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
25446         (_dl_important_hwcaps): Moved to ...
25447         * elf/dl-hwcaps.c: Here.  New file.
25448         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
25449
25450         [BZ #14557]
25451         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
25452         if IS_IN_rtld isn't defined.
25453
25454         * elf/dl-support.c (_dl_sysinfo_map): New.
25455         Include "get-dynamic-info.h" and "setup-vdso.h".
25456         (_dl_non_dynamic_init): Call setup_vdso.
25457         * elf/dynamic-link.h: Don't include <assert.h>.
25458         (elf_get_dynamic_info): Moved to ...
25459         * elf/get-dynamic-info.h: Here.  New file.
25460         * elf/dynamic-link.h: Include "get-dynamic-info.h".
25461         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
25462         * elf/setup-vdso.h: Here.  New file.
25463         * elf/rtld.c: Include "setup-vdso.h".
25464         (dl_main): Call setup_vdso.
25465
25466 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
25467
25468         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
25469         creal in comment listing functions tested.  List finite, isinf,
25470         isnan, isless, islessequal, isgreater, isgreaterequal,
25471         islessgreater, isunordered, lgamma_r and pow10 as functions and
25472         macros not tested.  Mention which functions not tested are aliases
25473         for other functions.  Fix typo.  Note that signs of NaNs are not
25474         tested.
25475
25476         * scripts/config.guess: Update from config.git.
25477         * scripts/config.sub: Likewise.
25478
25479 2012-10-04  Roland McGrath  <roland@hack.frob.com>
25480
25481         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
25482         * misc/madvise.c (madvise): Renamed to __madvise.
25483         Make madvise a weak alias.
25484         * include/sys/mman.h: Declare __madvise.
25485         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
25486         * sysdeps/unix/syscalls.list
25487         (madvise): Make __madvise the strong name, and madvise a weak alias.
25488         * sysdeps/unix/sysv/linux/syscalls.list
25489         (madvise, mmap): Remove redundant entries.
25490         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
25491         * malloc/malloc.c (mtrim): Likewise.
25492         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
25493
25494 2012-10-03  Roland McGrath  <roland@hack.frob.com>
25495
25496         * sysdeps/mach/hurd/dl-cache.c: File removed.
25497         * config.h.in (USE_LDCONFIG): New #undef.
25498         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
25499         * configure: Regenerated.
25500         * elf/Makefile (dl-routines): Add dl-cache only under
25501         [$(use-ldconfig) = yes].
25502         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
25503         cache on [USE_LDCONFIG].
25504         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
25505         [USE_LDCONFIG].
25506         * elf/rtld.c (dl_main): Likewise.
25507
25508 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
25509
25510         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
25511         _SC_LEVEL4_CACHE_LINESIZE.
25512
25513 2012-10-03  Roland McGrath  <roland@hack.frob.com>
25514
25515         * sysdeps/unix/bsd/confstr.h: File removed.
25516
25517 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
25518
25519         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
25520         sys/sdt-config.h.
25521
25522 2012-10-02  Roland McGrath  <roland@hack.frob.com>
25523
25524         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
25525         Make 'mapoff' field ElfW(Off) rather than off_t.
25526
25527 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
25528
25529         * nscd/Makefile: Remove nscd-cflags and all its users.
25530         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
25531         (CFLAGS-nonlib): Add compiler flags for nscd modules.
25532
25533         [BZ #10631]
25534         * malloc.c (malloc_printerr): Clarify error message.
25535
25536 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
25537
25538         [BZ #14648]
25539         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25540         Set bit_FMA_Usable if FMA is supported.
25541         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
25542         macro.
25543         (bit_FMA4_Usable): Updated.
25544         (index_FMA_Usable): New macro.
25545         (CPUID_FMA): Likewise
25546         (HAS_FMA): Defined with bit_FMA_Usable.
25547
25548 2012-10-01  Roland McGrath  <roland@hack.frob.com>
25549
25550         * bits/types.h (__swblk_t): Type removed.
25551         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
25552         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
25553         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
25554         (__SWBLK_T_TYPE): Likewise.
25555         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
25556         (__SWBLK_T_TYPE): Likewise.
25557         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
25558         (__SWBLK_T_TYPE): Likewise.
25559         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
25560         (__SWBLK_T_TYPE): Likewise.
25561
25562 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
25563             Honza Horak <hhorak@redhat.com>
25564
25565         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
25566         (xdr_mapname): Use YPMAXMAP as maxsize.
25567         (xdr_peername): Use YPMAXPEER as maxsize.
25568         (xdr_keydat): Use YPAXRECORD as maxsize.
25569         (xdr_valdat): Use YPMAXRECORD as maxsize.
25570
25571 2012-10-01  Roland McGrath  <roland@hack.frob.com>
25572
25573         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
25574
25575         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
25576         * csu/init-first.c: ... here.
25577         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
25578         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
25579         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
25580         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
25581         * sysdeps/i386/init-first.c: File removed.
25582         * sysdeps/sh/init-first.c: File removed.
25583
25584 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
25585
25586         [BZ #14645]
25587         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
25588         if x * y might underflow to zero and z is zero.
25589         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25590         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25591         * math/libm-test.inc (min_subnorm_value): New variable.
25592         (fma_test): Add more tests.
25593         (fma_test_towardzero): Likewise.
25594         (fma_test_downward): Likewise
25595         (fma_test_upward): Likewise.
25596         (initialize): Set min_subnorm_value.
25597
25598 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
25599
25600         [BZ #14638]
25601         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
25602         0 + 0.
25603         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
25604         mode for addition resulting in exact zero.
25605         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
25606         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
25607         exact 0 + 0.
25608         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
25609         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25610         * math/libm-test.inc (fma_test): Add more tests.
25611         (fma_test_towardzero): New function.
25612         (fma_test_downward): Likewise.
25613         (fma_test_upward): Likewise.
25614         (main): Call the new functions.
25615
25616 2012-09-28  David S. Miller  <davem@davemloft.net>
25617
25618         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
25619
25620 2012-09-28  Roland McGrath  <roland@hack.frob.com>
25621
25622         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
25623         instead of SIGALRM.
25624
25625         * sysdeps/gnu/_G_config.h: Moved to ...
25626         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
25627         * sysdeps/mach/hurd/_G_config.h: Moved to ...
25628         * sysdeps/generic/_G_config.h: ... here.
25629
25630         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
25631
25632         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
25633
25634         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
25635         Conditionalize target on [libnss_test1.so-version].
25636
25637         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
25638
25639         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
25640         (elfobjdir): Move out of conditionals.
25641
25642         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
25643         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
25644         (__nss_lookup_function): Conditionalize label remove_from_tree on
25645         [!DO_STATIC_NSS || SHARED], matching its only use.
25646
25647 2012-09-28  David S. Miller  <davem@davemloft.net>
25648
25649         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
25650         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
25651         file.
25652         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
25653         sysdep_routines.
25654         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
25655         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
25656         when HWCAP_SPARC_CRYPTO is present.
25657
25658 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
25659
25660         * io/tst-mknodat.c: Create a FIFO instead of a socket.
25661
25662 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
25663
25664         [BZ #6530]
25665         * stdio-common/vfprintf.c (process_string_arg): Revert
25666         2000-07-22 change.
25667
25668 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
25669
25670         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
25671         for testcase.
25672         * stdio-common/tst-sprintf.c: Include <locale.h>
25673         (main): Test sprintf's handling of incomplete multibyte
25674         characters.
25675
25676 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
25677
25678         * elf/dl-runtime.c (VERSYMIDX): Removed.
25679         * elf/dl-version.c (VERSYMIDX): Likewise.
25680         * elf/do-rel.h (VERSYMIDX): Likewise.
25681         (VALIDX): Likewise.
25682         * elf/dynamic-link.h (VERSYMIDX): Likewise.
25683         * elf/rtld.c (VALIDX): Likewise.
25684         (ADDRIDX): Likewise.
25685         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
25686         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
25687         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
25688         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
25689         (VALIDX): Likewise.
25690         (ADDRIDX): Likewise.
25691
25692 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
25693
25694         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
25695
25696 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
25697
25698         [BZ #11438]
25699         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
25700         to global scope.
25701         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
25702         addresses are in the same scope as 192.0.2/24.
25703         * posix/gai.conf: Document new scope table defaults.
25704
25705 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
25706
25707         [BZ #5298]
25708         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
25709         for ftell.  Compute offsets from write pointers instead.
25710         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
25711
25712 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
25713
25714         [BZ #14543]
25715         * libio/Makefile (tests): New test case tst-fseek.
25716         * libio/tst-fseek.c: New test case to verify that fseek/ftell
25717         combination works in wide mode.
25718         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
25719         state when the external buffer state changes.
25720
25721 2012-09-27  David S. Miller  <davem@davemloft.net>
25722
25723         [BZ #14376]
25724         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
25725         pass reloc->r_addend in as the 'high' argument to
25726         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
25727
25728         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25729
25730 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
25731
25732         * rt/tst-aio2.c: Include <pthread.h>.
25733         * rt/tst-aio3.c: Likewise.
25734
25735 2012-09-27  Steve Ellcey  <sellcey@mips.com>
25736
25737         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
25738
25739 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
25740
25741         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
25742         contents on [SHARED].
25743
25744 2012-09-26  Marek Polacek  <polacek@redhat.com>
25745
25746         [BZ #14530]
25747         [BZ #13741]
25748         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
25749         for C++ and GCC <4.3 as well as for non GCC compilers.
25750
25751 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
25752
25753         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25754
25755 2012-09-25  Roland McGrath  <roland@hack.frob.com>
25756
25757         * Makefile.in (all, install): Declare with .PHONY.
25758         Reported by Michael Hope <michael.hope@linaro.org>.
25759
25760 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25761
25762         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
25763         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
25764         system header.
25765         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
25766         Likewise.
25767         (sydep_routines): Add the new and the internal functions.
25768         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
25769         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
25770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
25771         (GLIBC_2.17): Add the new function.
25772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
25773         (GLIBC_2.17): Likewise.
25774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
25775         (GLIBC_2.17): Likewise.
25776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
25777         (GLIBC_2.17): Likewise.
25778         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
25779
25780 2012-09-25  Alan Modra  <amodra@gmail.com>
25781
25782         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
25783         Add release barrier before setting once_control to say
25784         initialisation is done.  Add hints on lwarx.  Use macro in
25785         place of isync.
25786         (clear_once_control): Add release barrier.
25787
25788 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
25789
25790         [BZ #13629]
25791         * math/s_clog.c (__clog): Handle more values close to |z| = 1
25792         specially.
25793         * math/s_clog10.c (__clog10): Likewise.
25794         * math/s_clog10f.c (__clog10f): Likewise.
25795         * math/s_clog10l.c (__clog10l): Likewise.
25796         * math/s_clogf.c (__clogf): Likewise.
25797         * math/s_clogl.c (__clogl): Likewise.
25798         * math/Makefile (libm-calls): Add x2y2m1.
25799         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
25800         (__x2y2m1): Likewise.
25801         (__x2y2m1l): Likewise.
25802         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
25803         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
25804         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
25805         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
25806         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
25807         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
25808         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
25809         * sysdeps/i386/fpu/libm-test-ulps: Update.
25810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25811
25812         [BZ #14621]
25813         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
25814         int as type of variable DEPTH.
25815         (glob): Use size_t instead of int as type of variables NEWCOUNT
25816         and OLD_PATHC.
25817
25818 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25819
25820         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
25821         Add s_sincosf-sse2.
25822         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
25823         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
25824         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
25825         macros for using routine as __sincosf_ia32.
25826         Use macro for function declaration and weak_alias.
25827         * sysdeps/i386/fpu/libm-test-ulps: Update.
25828
25829         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
25830         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25831
25832         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
25833         subnormal argument.
25834         * math/s_cexpf.c (__cexpf): Likewise.
25835         * math/s_csinf.c (__csinf): Likewise.
25836         * math/s_csinhf.c (__csinhf): Likewise.
25837         * math/s_ctanf.c (__ctanf): Likewise.
25838         * math/s_ctanhf.c (__ctanhf): Likewise.
25839         * math/s_ccosh.c (__ccoshf): Likewise.
25840         * math/s_cexp.c (__cexpl): Likewise.
25841         * math/s_csin.c (__csin): Likewise.
25842         * math/s_csinh.c (__csinh): Likewise.
25843         * math/s_ctan.c (__ctan): Likewise.
25844         * math/s_ctanh.c (ctanh): Likewise.
25845         * math/s_ccoshl.c (__ccoshl): Likewise.
25846         * math/s_cexpl.c (__cexpl): Likewise.
25847         * math/s_csinl.c (__csinl): Likewise.
25848         * math/s_csinhl.c (__csinhl): Likewise.
25849         * math/s_ctanl.c (__ctanl): Likewise.
25850         * math/s_ctanhl.c (__ctanhl): Likewise.
25851
25852 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
25853
25854         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
25855         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
25856         (_IO_off_t): Define to __off_t, not _G_off_t.
25857         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
25858         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
25859         (_IO_wint_t): Define to wint_t, not _G_wint_t.
25860         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
25861         type of __dummy and __dummy2 fields.
25862         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
25863         (_G_ssize_t): Likewise.
25864         (_G_off_t): Likewise.
25865         (_G_pid_t): Likewise.
25866         (_G_uid_t): Likewise.
25867         (_G_wchar_t): Likewise.
25868         (_G_wint_t): Likewise.
25869         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
25870         (_G_ssize_t): Likewise.
25871         (_G_off_t): Likewise.
25872         (_G_pid_t): Likewise.
25873         (_G_uid_t): Likewise.
25874         (_G_wchar_t): Likewise.
25875         (_G_wint_t): Likewise.
25876         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
25877         (_G_ssize_t): Likewise.
25878         (_G_off_t): Likewise.
25879         (_G_pid_t): Likewise.
25880         (_G_uid_t): Likewise.
25881         (_G_wchar_t): Likewise.
25882         (_G_wint_t): Likewise.
25883
25884 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
25885
25886         * malloc/arena.c: Include malloc-sysdep.h.
25887         (shrink_heap): Use check_may_shrink_heap to decide if madvise
25888         is sufficient to shrink the heap or an unmap is needed.
25889         * sysdeps/generic/malloc-sysdep.h: New file.  Define
25890         new function check_may_shrink_heap.
25891         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
25892         new function check_may_shrink_heap.
25893
25894 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
25895
25896         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
25897         comments.
25898
25899 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
25900
25901         * catgets/test-gencat.sh: Add "set -e".
25902         * elf/tst-pathopt.sh: Likewise.
25903         * grp/tst_fgetgrent.sh: Likewise.
25904         * iconvdata/run-iconv-test.sh: Likewise.
25905         * intl/tst-gettext.sh: Likewise.
25906         * intl/tst-gettext2.sh: Likewise.
25907         * intl/tst-gettext4.sh: Likewise.
25908         * intl/tst-gettext6.sh: Likewise.
25909         * intl/tst-translit.sh: Likewise.
25910         * io/ftwtest-sh: Likewise.
25911         * libio/test-freopen.sh: Likewise.
25912         * malloc/tst-mtrace.sh: Likewise.
25913         * posix/globtest.sh: Likewise.
25914         * posix/tst-getconf.sh: Likewise.
25915         * posix/wordexp-tst.sh: Likewise.
25916         * stdio-common/tst-printf.sh: Likewise.
25917         * stdio-common/tst-unbputc.sh: Likewise.
25918         * stdlib/tst-fmtmsg.sh: Likewise.
25919         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
25920         * catgets/Makefile: Do not specify -e option when running
25921         testsuite shell scripts.
25922         * elf/Makefile: Likewise.
25923         * grp/Makefile: Likewise.
25924         * iconvdata/Makefile: Likewise.
25925         * intl/Makefile: Likewise.
25926         * io/Makefile: Likewise.
25927         * libio/Makefile: Likewise.
25928         * malloc/Makefile: Likewise.
25929         * posix/Makefile: Likewise.
25930         * stdio-common/Makefile: Likewise.
25931         * stdlib/Makefile: Likewise.
25932         * sysdeps/x86_64/Makefile: Likewise.
25933
25934         * io/ftwtest-sh: Add copyright header.
25935         * posix/globtest.sh: Likewise.
25936         * posix/tst-getconf.sh: Likewise.
25937         * posix/wordexp-tst.sh: Likewise.
25938         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
25939
25940 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
25941
25942         [BZ #13679]
25943         * Makeconfig (+link): Defined as $(+link-static) if
25944         $(build-shared) isn't yes.
25945         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
25946         isn't yes.
25947         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
25948
25949         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
25950
25951         [BZ #14562]
25952         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
25953         new chunk size with MALLOC_ALIGN_MASK.
25954
25955 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
25956
25957         [BZ #5044]
25958         * stdio-common/printf_fphex.c: Include <stdbool.h> and
25959         <rounding-mode.h>.
25960         (__printf_fphex): Determine rounding using get_rounding_mode and
25961         round_away.
25962         * stdio-common/tst-printf-round.c (struct hex_test): New
25963         structure.
25964         (hex_tests): New variable.
25965         (test_hex_in_one_mode): New function.
25966         (do_test): Also run tests for hex float output.
25967
25968 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
25969
25970         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
25971         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
25972         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
25973         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
25974         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
25975         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
25976         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
25977         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
25978
25979 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
25980
25981         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
25982         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
25983         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
25984         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
25985
25986 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
25987
25988         [BZ #14579]
25989         * elf/rtld.c (dl_main): Limit the check for self loading to normal
25990         mode only.
25991         * elf/tst-rtld-load-self.sh: New test.
25992         * elf/Makefile: Run it.
25993
25994 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
25995
25996         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
25997         (tst-writev-ENV): Remove.
25998         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
25999
26000 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
26001
26002         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
26003
26004 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
26005
26006         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
26007         unconditional.
26008         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
26009         Likewise.
26010         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
26011         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
26012         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
26013         Likewise.
26014
26015 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
26016
26017         [BZ #14587]
26018         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
26019         * config.make.in (have-cpp-asm-debuginfo): Removed.
26020         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
26021         * configure: Regenerated.
26022
26023 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
26024
26025         [BZ #5044]
26026         * stdio-common/printf_fp.c: Include <stdbool.h> and
26027         <rounding-mode.h>.
26028         (___printf_fp): Determine rounding using get_rounding_mode and
26029         round_away.
26030         * stdio-common/tst-printf-round.c: New file.
26031         * stdio-common/Makefile (tests): Add tst-printf-round.
26032         (link-libm): New variable.
26033         ($(objpfx)tst-printf-round): Depend in $(link-libm).
26034
26035 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
26036
26037         [BZ #14576]
26038         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
26039         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
26040         Likewise.
26041         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
26042         Likewise.
26043
26044 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
26045
26046         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
26047         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
26048         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
26049         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
26050
26051 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
26052
26053         [BZ #14518]
26054         * include/rounding-mode.h: New file.
26055         * sysdeps/generic/get-rounding-mode.h: Likewise.
26056         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
26057         * stdlib/strtod_l.c: Include <rounding-mode.h>.
26058         (MAX_VALUE): New macro.
26059         (MIN_VALUE): Likewise.
26060         (overflow_value): New function.
26061         (underflow_value): Likewise.
26062         (round_and_return): Use overflow_value and underflow_value to
26063         determine return values in overflow and underflow cases.  Use
26064         round_away to determine rounding depending on rounding mode.
26065         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
26066         determine return values in overflow and underflow cases.
26067         * stdlib/tst-strtod-round.c: Include <fenv.h>.
26068         (struct test_results): New structure.
26069         (struct test): Use struct test_results to store expected results
26070         for all rounding modes.
26071         (TEST): Include expected results for all rounding modes.
26072         (test_in_one_mode): New function.
26073         (do_test): Use test_in_one_mode to compute and check results.
26074         Check results for all rounding modes.
26075         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
26076         $(link-libm).
26077
26078 2012-12-09  Allan McRae  <allan@archlinux.org>
26079
26080         * sysdeps/i386/fpu/libm-test-ulps: Update
26081
26082 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
26083
26084         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
26085         (_G_int32_t): Likewise.
26086         (_G_uint16_t): Likewise.
26087         (_G_uint32_t): Likewise.
26088         (_G_HAVE_BOOL): Likewise.
26089         (_G_HAVE_ATEXIT): Likewise.
26090         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
26091         (_G_HAVE_IO_FILE_OPEN): Likewise.
26092         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
26093         (_G_int32_t): Likewise.
26094         (_G_uint16_t): Likewise.
26095         (_G_uint32_t): Likewise.
26096         (_G_HAVE_BOOL): Likewise.
26097         (_G_HAVE_ATEXIT): Likewise.
26098         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
26099         (_G_HAVE_IO_FILE_OPEN): Likewise.
26100         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
26101         (_G_int32_t): Likewise.
26102         (_G_uint16_t): Likewise.
26103         (_G_uint32_t): Likewise.
26104         (_G_HAVE_BOOL): Likewise.
26105         (_G_HAVE_ATEXIT): Likewise.
26106         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
26107         (_G_HAVE_IO_FILE_OPEN): Likewise.
26108
26109 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
26110
26111         * csu/libc-tls.c: Update copyright years.
26112
26113 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
26114
26115         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
26116         [!_G_USING_THUNKS]: Remove conditional code.
26117         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
26118         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
26119
26120         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
26121         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
26122         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
26123         (_G_VTABLE_LABEL_PREFIX): Likewise.
26124         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
26125         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
26126         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
26127         (_G_VTABLE_LABEL_PREFIX): Likewise.
26128         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
26129         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
26130         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
26131         (_G_VTABLE_LABEL_PREFIX): Likewise.
26132         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
26133
26134 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
26135
26136         * libio/Makefile: Include ../Makeconfig before tests.
26137         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
26138         only if $(build-shared) is yes.
26139
26140         * iconv/gconv_db.c: Update copyright years.
26141
26142 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26143
26144         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
26145         unwind info if defined PIC. Fix special cases description.
26146         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
26147
26148         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
26149         DP_HI_MASK entry.
26150         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
26151
26152 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
26153
26154         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
26155
26156         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
26157         is NULL.
26158
26159         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
26160         (LDLIBS-tst-chk4): This.
26161         (LDFLAGS-tst-chk5): Renamed to ...
26162         (LDLIBS-tst-chk5): This.
26163         (LDFLAGS-tst-chk6): Renamed to ...
26164         (LDLIBS-tst-chk6): This.
26165         (LDFLAGS-tst-lfschk4): Renamed to ...
26166         (LDLIBS-tst-lfschk4): This.
26167         (LDFLAGS-tst-lfschk5): Renamed to ...
26168         (LDLIBS-tst-lfschk5): This.
26169         (LDFLAGS-tst-lfschk6): Renamed to ...
26170         (LDLIBS-tst-lfschk6): This.
26171
26172         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
26173         on $(common-objpfx)soversions.mk.
26174
26175 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
26176
26177         [BZ #10014]
26178         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
26179         example host name.
26180
26181 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
26182
26183         * malloc/arena.c (arena_get_retry): New function that gets
26184         another arena for the caller to try its request on.
26185         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
26186         current arena cannot fulfill the request.
26187         (__libc_memalign): Likewise.
26188         (__libc_memalign): Likewise.
26189         (__libc_pvalloc): Likewise.
26190         (__libc_calloc): Likewise.
26191
26192 2012-09-05  John Tobey  <john.tobey@gmail.com>
26193
26194         [BZ #13542]
26195         * manual/arith.texi (Operations on Complex): Fix description
26196         of carg branch cut.
26197
26198 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
26199
26200         [BZ #10014]
26201         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
26202         host name.
26203
26204         [BZ #10038]
26205         * manual/memory.texi (Memory): Make order of menu items match
26206         order of sections.
26207
26208 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
26209
26210         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
26211         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
26212         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
26213
26214 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
26215
26216         * csu/libc-tls.c (static_dtv): Renamed to ...
26217         (_dl_static_dtv): This.  Make it global.
26218         (_dl_initial_dtv): Removed.
26219         (__libc_setup_tls): Updated.
26220         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
26221         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
26222         DL_INITIAL_DTV.
26223
26224 2012-09-06  Petr Machata  <pmachata@redhat.com>
26225
26226         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
26227         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
26228         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
26229         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
26230
26231 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
26232
26233         [BZ #14545]
26234         * csu/libc-tls.c (_dl_initial_dtv): New variable.
26235         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
26236         freeing dtv[-1].
26237
26238 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
26239
26240         [BZ #14544]
26241         * Makeconfig (link-static-before-libc): Replace $(+prector)
26242         with $(+prectorT).
26243         (link-static-after-libc): Replace $(+postctor) with
26244         $(+postctorT).
26245         (link-bounded): Replace $(+prector)/$(+postctor) with
26246         $(+prectorT)/$(+postctorT).
26247         (+prectorT): New macro.
26248         (+postctorT): Likewise.
26249
26250 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
26251
26252         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
26253         (round_str): Handle values above the maximum for IBM long double
26254         as inexact.
26255         * stdlib/tst-strtod-round.c (tests): Regenerated.
26256
26257 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26258
26259         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
26260         assembler flag.
26261         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
26262         zarch_nohighgprs around the zarch optimized routines.
26263         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
26264         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
26265         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
26266         for zarch.
26267
26268 2012-09-05  David S. Miller  <davem@davemloft.net>
26269
26270         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26271
26272         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
26273         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
26274         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
26275         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
26276         entries.
26277
26278 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
26279
26280         * malloc/arena.c: Fold copyright years.
26281         * malloc/mcheck.c, malloc/memusage.c: Likewise.
26282
26283 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
26284
26285         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
26286
26287 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
26288
26289         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
26290
26291 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
26292
26293         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
26294         change internal state upon failure.
26295
26296 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
26297
26298         * malloc/mcheck.c (mcheck_check_all): Fix typo.
26299         * malloc/memusage.c (mmap): Likewise.
26300         (mmap64, mremap): Likewise.  Adjust name in comment.
26301
26302 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
26303
26304         * libio/fileops.c: Fix typos in comments.
26305         * libio/oldfileops.c: Likewise.
26306         * libio/wfileops.c: Likewise.
26307
26308 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
26309
26310         [BZ #1349]
26311         * malloc/Makefile (tests): Add tst-malloc-usable test case.
26312         (tst-malloc-usable-ENV): Set environment for test case.
26313         * malloc/hooks.c (malloc_check_get_size): New function to get
26314         requested size.
26315         * malloc/malloc.c (musable): Use malloc_check_get_size.
26316         * malloc/tst-malloc-usable.c: New test case.
26317
26318 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
26319
26320         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
26321
26322 2012-09-05  Allan McRae  <allan@archlinux.org>
26323
26324         [BZ #13966]
26325         * configure.in (CXX_SYSINCLUDES): Use compiler output to
26326         determine header location.
26327         * configure: Regenerated.
26328
26329 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
26330
26331         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
26332         float format.
26333         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
26334         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
26335         format.
26336         (test): Regenerate.
26337
26338 2012-09-04  David S. Miller  <davem@davemloft.net>
26339
26340         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
26341         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
26342         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
26343
26344 2012-09-04  Florian Weimer  <fweimer@redhat.com>
26345
26346         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
26347         failures.
26348
26349         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
26350
26351 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
26352
26353         [BZ #9914]
26354         * libio/iogetdelim.c: Include <limits.h>.
26355         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
26356         + len + 1 would overflow.
26357
26358 2012-09-03  Andreas Jaeger  <aj@suse.de>
26359
26360         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26361         * sysdeps/i386/fpu/libm-test-ulps: Update.
26362
26363 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26364
26365         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
26366         Add s_sinf-sse2, s_conf-sse2.
26367
26368         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
26369         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
26370         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
26371         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
26372
26373         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
26374         for using routine as __sinf_ia32.
26375         Use macro for function declaration and weak_alias.
26376         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
26377         for using routine as __cosf_ia32.
26378         Use macro for function declaration and weak_alias.
26379
26380         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
26381         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
26382
26383         * sysdeps/x86_64/fpu/s_sinf.S: New file.
26384         * sysdeps/x86_64/fpu/s_cosf.S: New file.
26385         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26386
26387         * math/libm-test.inc (cos_test): Add more test cases.
26388         (sin_test): Likewise.
26389         (sincos_test): Likewise.
26390
26391 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26392
26393         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
26394         (IFUNC_RESOLVE): Make pointers to the specialized implementations
26395         hidden.
26396         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
26397
26398 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
26399
26400         [BZ #14538]
26401         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
26402         first element of the GOT.
26403         (elf_machine_load_address): Return the difference between
26404         the runtime address of _DYNAMIC and elf_machine_dynamic ().
26405
26406 2012-09-01  Allan McRae  <allan@archlinux.org>
26407
26408         [BZ #13412]
26409         * configure.in (AWK): Require gawk version 3.0 or later.
26410         * configure: Regenerated.
26411
26412 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
26413
26414         * sysdeps/unix/sysv/linux/kernel-features.h
26415         (__ASSUME_POSIX_CPU_TIMERS): Remove.
26416         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
26417         [__NR_clock_getres]: Make code unconditional.
26418         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
26419         (clock_getcpuclockid): Remove code left unreachable by removal of
26420         conditionals.
26421         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
26422         code unconditional.
26423         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
26424         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
26425         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
26426         Make code unconditional.
26427         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
26428         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
26429         * sysdeps/unix/sysv/linux/clock_settime.c
26430         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
26431         conditional code.
26432         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
26433         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
26434
26435 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
26436
26437         [BZ #14476]
26438         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
26439         scripts/test-installation.pl.
26440
26441         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
26442         and $ld_so_version if it is set.
26443
26444 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
26445
26446         [BZ #14516]
26447         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
26448         failure if reading from procfs failed.
26449         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
26450
26451 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
26452
26453         * sysdeps/unix/sysv/linux/kernel-features.h
26454         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
26455         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
26456         Remove conditional code.
26457         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26458         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
26459         Remove conditional code.
26460         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26461         * sysdeps/unix/sysv/linux/i386/fxstat.c
26462         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
26463         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26464         * sysdeps/unix/sysv/linux/i386/fxstatat.c
26465         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
26466         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26467         * sysdeps/unix/sysv/linux/i386/lxstat.c
26468         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
26469         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26470         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
26471         Remove conditional code.
26472         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26473         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
26474         Remove conditional code.
26475         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26476         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
26477         <kernel-features.h>.
26478         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
26479         Remove.
26480         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
26481         Remove conditional code.
26482         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
26483         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
26484         Remove conditional.
26485
26486 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
26487
26488         [BZ #5400]
26489         * NEWS: Add fixed bug number.
26490
26491 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
26492
26493         [BZ #14519]
26494         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
26495         underflowing exponent in case of negative sign.
26496         * stdlib/tst-strtod-round-data: Add more tests.
26497         * stdlib/tst-strtod-round.c (tests): Regenerated.
26498
26499         [BZ #3479]
26500         * stdlib/strtod_l.c (NDIG): Remove.
26501         (HEXNDIG): Likewise.
26502         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
26503         smallest representable value.
26504         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
26505         lie within an exact representation of 1/2 ulp of the result.
26506         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
26507         unconditionally.
26508         (TENS_P9_IDX): Define unconditionally.
26509         (TENS_P9_SIZE): Likewise.
26510         (TENS_P10_IDX): Likewise.
26511         (TENS_P10_SIZE): Likewise.
26512         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
26513         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
26514         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
26515         entries for 10^2^13 and 10^2^14.
26516         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
26517         (TENS_P13_IDX): Define.
26518         (TENS_P13_SIZE): Likewise.
26519         (TENS_P14_IDX): Likewise.
26520         (TENS_P14_SIZE): Likewise.
26521         (_fpioconst_pow10): Change array size to
26522         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
26523         unconditional.
26524         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
26525         1024]: Add entries for 10^2^13 and 10^2^14.
26526         [LAST_POW10 > _LAST_POW10]: Remove #error.
26527         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
26528         (_fpioconst_pow10): Change array size to
26529         FPIOCONST_POW10_ARRAY_SIZE.
26530         * stdlib/gen-fpioconst.c: New file.
26531         * stdlib/gen-tst-strtod-round.c: Likewise.
26532         * stdlib/tst-strtod-round-data: Likewise.
26533         * stdlib/tst-strtod-round.c: Likewise.
26534         * stdlib/Makefile (tests): Add tst-strtod-round.
26535
26536         [BZ #14459]
26537         * stdlib/strtod_l.c: Include <stdint.h>.
26538         (NDEBUG): Do not define.
26539         (round_and_return): Change EXPONENT parameter to type intmax_t.
26540         Rearrange calculations to avoid internal overflow possibilities.
26541         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
26542         Rearrange calculations to avoid internal overflow possibilities.
26543         Assert that number fits inside MPNSIZE limbs.
26544         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
26545         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
26546         calculations and add assertions to avoid internal overflow
26547         possibilities.  Add casts to avoid signed/unsigned operations.
26548         * stdlib/tst-strtod-overflow.c: New file.
26549         * stdlib/Makefile (tests): Add tst-strtod-overflow.
26550
26551 2012-08-25  Marek Polacek  <polacek@redhat.com>
26552
26553         * time/time.h: Fix some typos in comments.
26554
26555 2012-08-23  Roland McGrath  <roland@hack.frob.com>
26556
26557         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
26558         * posix/tst-rfc3484-2.c: Likewise.
26559         * posix/tst-rfc3484-3.c: Likewise.
26560
26561 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
26562
26563         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
26564         (EF_ARM_ABI_FLOAT_HARD): Likewise.
26565
26566 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
26567
26568         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
26569         #include of fxstatat64.c.
26570
26571 2012-08-22  Roland McGrath  <roland@hack.frob.com>
26572
26573         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
26574         * shadow/getspent_r.c: Likewise.
26575         * shadow/getspnam.c: Likewise.
26576         * shadow/getspnam_r.c: Likewise.
26577         * gshadow/getsgent.c: Likewise.
26578         * gshadow/getsgent_r.c: Likewise.
26579         * gshadow/getsgnam.c: Likewise.
26580         * gshadow/getsgnam_r.c: Likewise.
26581         * inet/getnetbyad.c: Likewise.
26582         * inet/getnetbyad_r.c: Likewise.
26583         * inet/getnetbynm.c: Likewise.
26584         * inet/getnetbynm_r.c: Likewise.
26585         * inet/getnetent.c: Likewise.
26586         * inet/getnetent_r.c: Likewise.
26587         * inet/getproto.c: Likewise.
26588         * inet/getproto_r.c: Likewise.
26589         * inet/getprtent.c: Likewise.
26590         * inet/getprtent_r.c: Likewise.
26591         * inet/getprtname.c: Likewise.
26592         * inet/getprtname_r.c: Likewise.
26593         * inet/getrpcbyname.c: Likewise.
26594         * inet/getrpcbyname_r.c: Likewise.
26595         * inet/getrpcbynumber.c: Likewise.
26596         * inet/getrpcbynumber_r.c: Likewise.
26597         * inet/getrpcent.c: Likewise.
26598         * inet/getrpcent_r.c: Likewise.
26599         * inet/getaliasent.c: Likewise.
26600         * inet/getaliasent_r.c: Likewise.
26601         * inet/getaliasname.c: Likewise.
26602         * inet/getaliasname_r.c: Likewise.
26603         * nscd/getgrgid_r.c: Likewise.
26604         * nscd/getgrnam_r.c: Likewise.
26605         * nscd/gethstbyad_r.c: Likewise.
26606         * nscd/gethstbynm3_r.c: Likewise.
26607         * nscd/getpwnam_r.c: Likewise.
26608         * nscd/getpwuid_r.c: Likewise.
26609         * nscd/getsrvbynm_r.c: Likewise.
26610         * nscd/getsrvbypt_r.c: Likewise.
26611         * nscd/gai.c: Likewise.
26612
26613         * configure.in (build_nscd): New substituted variable, set
26614         by --disable-build-nscd and defaults to $use_nscd.
26615         * configure: Regenerated.
26616         * config.make.in (build-nscd): New substituted variable.
26617         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
26618         Change conditional to require [$(build-nscd) = yes] as well.
26619         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
26620
26621         [BZ# 13696]
26622         * configure.in (use_nscd): New substituted variable, set by
26623         --disable-nscd.  If enabled, define USE_NSCD.
26624         * configure: Regenerated.
26625         * config.h.in: Add USE_NSCD.
26626         * config.make.in (use-nscd): New substituted variable.
26627         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
26628         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
26629         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
26630         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
26631         (CFLAGS-getgrnam_r.c): Likewise.
26632         (CFLAGS-initgroups.c): Likewise.
26633         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
26634         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
26635         Variables removed.
26636         * inet/getnetgrent_r.c
26637         (nscd_setnetgrent): New function, broken out of ...
26638         (setnetgrent): ... here.  Call it.
26639         (innetgr): Conditionalize nscd bits on [USE_NSCD].
26640         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
26641         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
26642         * nscd/Makefile (routines, aux): Move definitions after include of
26643         Makeconfig.  Conditionalize on [$(use-nscd) != no].
26644         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
26645         Conditionalize on [USE_NSCD].
26646         (is_nscd, nscd_init_cb): Likewise.
26647         (nss_load_library): Conditionalize init callback on [USE_NSCD].
26648         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
26649         * nss/nss_db/db-init.c: Likewise.
26650         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
26651         [USE_NSCD].
26652         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
26653         (make_request): Use it.
26654         (cache_valid_p): New function.
26655         (__check_pf): Use it.
26656         * NEWS: Add item for --disable-nscd.
26657
26658 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
26659
26660         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
26661         to support sed >= 4.2.1-20-ga9bf076.
26662         * configure: Regenerated.
26663
26664 2012-08-22  Roland McGrath  <roland@hack.frob.com>
26665
26666         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
26667         Conditionalize whole body on [IREL].
26668
26669 2012-08-22  Jeff Law <law@redhat.com>
26670
26671         [BZ #14505]
26672         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
26673         if the family is PF_UNSPEC.
26674
26675 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
26676
26677         * Makerules (lib-version): Rename from V.
26678         (install-lib-nosubdir): Change V to lib-version.
26679
26680 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
26681
26682         [BZ #14252]
26683         * powerpc32/power6/wcschr.c: New file.
26684         * powerpc32/power6/wcscpy.c: New file.
26685         * powerpc32/power6/wcsrchr.c: New file.
26686         * powerpc64/power6/wcschr.c: New file.
26687         * powerpc64/power6/wcscpy.c: New file.
26688         * powerpc64/power6/wcsrchr.c: New file.
26689
26690 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
26691
26692         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
26693         (two_way_short_needle): Use it.
26694         * string/strstr.c (AVAILABLE1_USES_J): Define.
26695         * string/strcasestr.c: Likewise.
26696
26697         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
26698         array references.
26699         * string/strcasestr.c (TOLOWER): Make side-effect safe.
26700
26701         [BZ #11607]
26702         * NEWS: Add an entry.
26703         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
26704         define their defaults.
26705         (two_way_short_needle): Detect end-of-string on-the-fly.
26706         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
26707         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
26708         * string/bug-strcasestr1.c: New test.
26709         * string/Makefile: Run it.
26710
26711 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
26712
26713         [BZ #11607]
26714         * string/str-two-way.h (two_way_short_needle): Optimize matching of
26715         the first character.
26716
26717 2012-08-21  Roland McGrath  <roland@hack.frob.com>
26718
26719         * csu/elf-init.c (__libc_csu_irel): Function removed.
26720         * csu/libc-start.c (apply_irel): New function.
26721         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
26722
26723 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
26724
26725         * sysdeps/unix/sysv/linux/kernel-features.h
26726         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
26727         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
26728         <kernel-features.h>.
26729         [__NR_fadvise64_64]: Make code unconditional.
26730         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
26731         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
26732         !__NR_fadvise64_64)]: Likewise.
26733         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
26734         !__NR_fadvise64_64))]: Likewise.
26735         [__NR_fadvise64]: Make code unconditional.
26736         [!__NR_fadvise64]: Remove conditional code.
26737         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
26738         <kernel-features.h>.
26739         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
26740         unconditional.
26741         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
26742         conditional code.
26743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
26744         not include <kernel-features.h>.
26745         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
26746         unconditional.
26747         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
26748         conditional code.
26749         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
26750         include <kernel-features.h>.
26751         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
26752         unconditional.
26753         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
26754         conditional code.
26755
26756 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
26757
26758         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
26759         slight instruction rearrangements per scrollpipe analysis.
26760         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
26761
26762 2012-08-20  Roland McGrath  <roland@hack.frob.com>
26763
26764         * manual/syslog.texi (syslog; vsyslog, closelog):
26765         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
26766         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
26767
26768         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
26769         DSOCAPS to match condition on defining it.
26770
26771 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
26772
26773         * sysdeps/unix/sysv/linux/kernel-features.h
26774         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
26775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
26776         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
26777         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
26778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
26779         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
26780         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
26781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
26782         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
26783         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
26784
26785         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
26786         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
26787
26788         * sysdeps/unix/sysv/linux/kernel-features.h
26789         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
26790         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
26791         unconditional.
26792         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26793         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
26794         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
26795         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26796         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
26797         Make code unconditional.
26798         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26799         (__mmap64) [!__NR_mmap2]: Likewise.
26800         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
26801         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
26802         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26803         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
26804         [__NR_mmap2]: Make code unconditional.
26805         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
26806         (__mmap64) [!__NR_mmap2]: Likewise.
26807
26808 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26809
26810         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
26811
26812 2012-08-18  Andreas Jaeger  <aj@suse.de>
26813
26814         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
26815
26816 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
26817
26818         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
26819         * include/unistd.h (__have_sock_cloexec): Likewise.
26820         (__have_pipe2): Likewise.
26821         (__have_dup3): Likewise.
26822
26823 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
26824
26825         [BZ #9685]
26826         * include/unistd.h (__have_pipe2): Change define into an extern int.
26827         (__have_dup3): Likewise.
26828         * socket/have_sock_cloexec.c: Include fcntl.h.
26829         (__have_pipe2): New variable.
26830         (__have_dup3): Likewise.
26831
26832 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
26833
26834         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
26835
26836 2012-08-17  Marek Polacek  <polacek@redhat.com>
26837
26838         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
26839         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
26840
26841 2012-08-17  Roland McGrath  <roland@hack.frob.com>
26842
26843         * configure.in: Add AC_SUBST for sysheaders.
26844         * configure: Regenerated.
26845         * config.make.in (sysheaders): New substituted variable.
26846
26847         * sysdeps/unix/mkfifo.c: Moved ...
26848         * sysdeps/posix/mkfifo.c: ... here.
26849         * sysdeps/unix/mkfifoat.c: Moved ...
26850         * sysdeps/posix/mkfifoat.c: ... here.
26851
26852         * sysdeps/unix/utime.c: Moved ...
26853         * sysdeps/posix/utime.c: ... here.
26854
26855         * sysdeps/unix/time.c: Moved ...
26856         * sysdeps/posix/time.c: ... here.
26857         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
26858         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
26859
26860         * sysdeps/unix/nice.c: Moved ...
26861         * sysdeps/posix/nice.c: ... here.
26862
26863         * sysdeps/unix/alarm.c: Moved ...
26864         * sysdeps/posix/alarm.c: ... here.
26865
26866         * intl/Makefile ($(codeset_mo)): Depend on the input file.
26867
26868 2012-08-17  Jeff Law <law@redhat.com>
26869
26870         * intl/Makefile (codeset_mo): New variable.
26871         ($(codeset_mo)): New target.
26872         (tst-codeset.out): Depend on that.  Remove explicit rule.
26873         (tst-gettext3.out, tst-gettext5.out): Likewise.
26874         (LOCPATH-ENV, tst-codeset-ENV): New variables.
26875         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
26876         * intl/tst-codeset.sh: Remove.
26877         * intl/tst-gettext3.sh: Likewise.
26878         * intl/tst-gettext5.sh: Likewise.
26879
26880 2012-08-17  Roland McGrath  <roland@hack.frob.com>
26881
26882         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
26883         * sysdeps/unix/syscalls.list: ... here.
26884
26885         * sysdeps/posix/getaddrinfo.c
26886         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
26887         (gaiconf_init, gaiconf_reload): Use them.
26888         [!_STATBUF_ST_NSEC]
26889         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
26890         Define using time_t rather than struct timespec.
26891
26892         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
26893         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
26894         Macros removed.
26895         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
26896         [!NO_THREADS].
26897         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
26898         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
26899         Likewise.
26900
26901         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
26902         __libc_cleanup_push argument.
26903
26904         * bits/param.h: New file.
26905         * misc/sys/param.h: New file.
26906         * include/sys/param.h: New file.
26907         * misc/Makefile (headers): Add bits/param.h.
26908         * sysdeps/generic/sys/param.h: File removed.
26909         * sysdeps/unix/sysv/linux/bits/param.h: New file.
26910         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
26911         * sysdeps/mach/hurd/bits/param.h: New file.
26912         * sysdeps/mach/hurd/sys/param.h: File removed.
26913
26914         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
26915         last change.
26916
26917         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
26918         [_IO_MTSAFE_IO].
26919         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
26920         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
26921         New macros.
26922
26923         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
26924         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
26925         rather than -D_IO_MTSAFE_IO conditionally.
26926         * stdio-common/Makefile (CPPFLAGS): Likewise.
26927         * wcsmbs/Makefile (CPPFLAGS): Likewise.
26928         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
26929         Use $(libio-mtsafe).
26930         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
26931         of -D_IO_MTSAFE_IO.
26932         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
26933         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
26934         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
26935         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
26936         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
26937         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
26938         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
26939         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
26940         (CFLAGS-fread_u_chk.c): Likewise.
26941         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
26942         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
26943         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
26944         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
26945         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
26946         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
26947         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
26948         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
26949         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
26950
26951         * libio/Makefile: Test [$(libc-reentrant) = yes]
26952         instead of [$(filter %REENTRANT, $(defines)) nonempty].
26953
26954         * Makeconfig
26955         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
26956         * sysdeps/pthread/configure: File removed.
26957         * sysdeps/pthread/Makeconfig: New file.
26958         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
26959         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
26960
26961 2012-08-16  Gary Benson  <gbenson@redhat.com>
26962
26963         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
26964         unmapping the first object in a namespace.
26965
26966 2012-08-16  Roland McGrath  <roland@hack.frob.com>
26967
26968         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
26969         (__internal_setnetgrent): ... this.  Add internal_function to
26970         definition.  Add libc_hidden_def.
26971         (setnetgrent): Update caller.
26972         (internal_endnetgrent): Renamed to ...
26973         (__internal_endnetgrent): ... this.  Add internal_function to
26974         definition.  Add libc_hidden_def.
26975         (endnetgrent): Update caller.
26976         (internal_getnetgrent_r): Renamed to ...
26977         (__internal_getnetgrent_r): ... this.  Add internal_function to
26978         definition.  Add libc_hidden_def.
26979         (__getnetgrent_r): Update caller.
26980         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
26981
26982 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
26983
26984         * stdlib/longlong.h: Update from GCC.
26985
26986 2012-08-16  Roland McGrath  <roland@hack.frob.com>
26987
26988         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
26989         on _QL, which is set by umul_ppmm but never used.
26990         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
26991         variables, which are set by GMP macros but never used.
26992         * stdio-common/_itowa.c (_itowa): Likewise.
26993         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
26994         * stdlib/mod_1.c (mpn_mod_1): Likewise.
26995
26996 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
26997
26998         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
26999         struct La_sh_regs is not constant.
27000         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
27001         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
27002         and struct La_sparc64_regs are not constant.
27003
27004 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
27005
27006         * sysdeps/unix/sysv/linux/kernel-features.h
27007         (__ASSUME_POSIX_TIMERS): Remove.
27008         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
27009         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27010         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
27011         Make code unconditional.
27012         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27013         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
27014         Make code unconditional.
27015         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27016         * sysdeps/unix/sysv/linux/clock_nanosleep.c
27017         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
27018         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27019         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
27020         Make code unconditional.
27021         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27022         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
27023         (__libc_missing_posix_timers): Remove.
27024
27025 2012-08-15  Roland McGrath  <roland@hack.frob.com>
27026
27027         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
27028         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
27029
27030         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
27031
27032         * elf/dl-sym.c: Include <stdlib.h>.
27033
27034         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
27035         constants, which avoids warnings in 32-bit builds.
27036
27037         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
27038         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
27039
27040         * misc/lseek.c: File moved to ...
27041         * io/lseek.c: ... here.
27042
27043         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
27044
27045         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
27046         shifting LEN more than 31 bits at once.
27047
27048 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27049
27050         [BZ #14195]
27051         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
27052         segmentation fault for a case of two empty input strings.
27053         * string/test-strncasecmp.c (check1): Renamed to...
27054         (bz12205): ...this.
27055         (bz14195): Add new testcase for two empty input strings and N > 0.
27056         (test_main): Call new testcase, adapt for renamed function.
27057
27058 2012-08-15  Andreas Jaeger  <aj@suse.de>
27059
27060         [BZ #14090]
27061         * crypt/md5test2.c: New test, based on test supplied by Serge
27062         Belyshev <belyshev@depni.sinp.msu.ru>.
27063         * crypt/Makefile (xtests): Add md5test-giant..
27064         * crypt/Makefile ($(objpfx)md5test-giant): Add.
27065
27066 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27067
27068         [BZ #14090]
27069         * crypt/md5.c (md5_process_block): Don't assume the buffer
27070         length is less than 2**32.
27071         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
27072         length is less than 2**64.
27073
27074 2012-08-15  Roland McGrath  <roland@hack.frob.com>
27075
27076         * string/str-two-way.h: Include <sys/param.h>.
27077         (MAX): Macro removed.
27078
27079         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
27080         Move #define and #undef of memmove to just before and after
27081         including <string.h>.
27082
27083         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
27084         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
27085         and after including <string.h>.  Move declarations of
27086         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
27087         to before #include "string/memmove.c".
27088
27089         * include/dirent.h: Declare __getdirentries.
27090
27091         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
27092         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
27093
27094 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
27095
27096         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
27097         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
27098         * sysdeps/i386/configure: Regenerated.
27099         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
27100         STABS_CURRENT_FILE, and STABS_FUN.
27101         (END): Remove call to STABS_FUN_END.
27102         (STABS_CURRENT_FILE1): Delete.
27103         (STABS_CURRENT_FILE): Likewise.
27104         (STABS_FUN): Likewise.
27105         (STABS_FUN_END): Likewise.
27106         (STABS_FUN2): Likewise.
27107         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
27108         * sysdeps/x86_64/configure: Regenerated.
27109
27110 2012-08-14  Roland McGrath  <roland@hack.frob.com>
27111
27112         * elf/dl-open.c: Include <atomic.h>.
27113         * elf/dl-lookup.c: Likewise.
27114
27115 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
27116
27117         * sysdeps/unix/sysv/linux/kernel-features.h
27118         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
27119         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
27120         unconditionally.
27121         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
27122         unconditionally.
27123         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
27124         condition on __ASSUME_CLONE_THREAD_FLAGS.
27125
27126 2012-08-14  Andreas Jaeger  <aj@suse.de>
27127
27128         * sysdeps/i386/fpu/libm-test-ulps: Update.
27129
27130 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
27131
27132         * include/atomic.h (atomic_exchange_and_add): Split into ...
27133         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
27134         New atomic macros.
27135
27136 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
27137
27138         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27139
27140 2012-08-13  Jeff Law <law@redhat.com>
27141
27142         * manual/stdio.texi (snprintf): Clarify handling of the trailing
27143         null byte in the output string.
27144
27145 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
27146
27147         * sysdeps/unix/sysv/linux/kernel-features.h
27148         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
27149         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
27150         (__ASSUME_ARG_MAX_STACK_BASED): Define.
27151         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
27152         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
27153         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
27154         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
27155
27156 2012-08-09  Jeff Law <law@redhat.com>
27157
27158         [BZ #13939]
27159         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
27160         When avoid_arena is set, don't retry in the that arena.  Pick the
27161         next one, whatever it might be.
27162         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
27163         (arena_lock): Pass in new parameter to arena_get2.
27164         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
27165         arena_get2.
27166         (__libc_malloc): Unify retrying after main arena failure with
27167         __libc_memalign version.
27168         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
27169
27170 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
27171
27172         [BZ #14166]
27173         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
27174         to __redirect_strstr.
27175         (__strstr_sse42): Use typeof __redirect_strstr.
27176         (__strstr_ia32): Likewise.
27177         (__libc_strstr): New prototype.
27178         (strstr): Renamed to ...
27179         (__libc_strstr): This.
27180         (strstr): New strong alias of __libc_strstr.
27181         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
27182         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
27183         __redirect_time.
27184         Include <time.h>.
27185         (__libc_time): New prototype.
27186         (time_ifunc): Replace time with __libc_time.
27187         (time): New strong alias and hidden definition of __libc_time.
27188         (__GI_time): Remove strong alias.
27189         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
27190         Include <stddef.h>.
27191         (memmove): Redefined to __redirect_memmove.
27192         (__memmove_sse2): Use typeof __redirect_memmove.
27193         (__memmove_ssse3): Likewise.
27194         (__memmove_ssse3_back): Likewise.
27195         (__libc_memmove): New prototype.
27196         (memmove): Renamed to ...
27197         (__libc_memmove): This.
27198         (memmove): New strong alias of __libc_memmove.
27199
27200 2012-08-08  Mark Salter  <msalter@redhat.com>
27201
27202         * elf/elf.h
27203         (R_MN10300_TLS_GD): Define.
27204         (R_MN10300_TLS_LD): Likewise.
27205         (R_MN10300_TLS_LDO): Likewise.
27206         (R_MN10300_TLS_GOTIE): Likewise.
27207         (R_MN10300_TLS_IE): Likewise.
27208         (R_MN10300_TLS_LE): Likewise.
27209         (R_MN10300_TLS_DTPMOD): Likewise.
27210         (R_MN10300_TLS_DTPOFF): Likewise.
27211         (R_MN10300_TLS_TPOFF): Likewise.
27212         (R_MN10300_SYM_DIFF): Likewise.
27213         (R_MN10300_ALIGN): Likewise.
27214         (R_MN10300_NUM): Update.
27215
27216 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
27217
27218         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
27219         Remove.
27220
27221 2012-08-08  Roland McGrath  <roland@hack.frob.com>
27222
27223         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
27224
27225         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
27226         sysdeps/unix -> sysdeps/posix move.
27227         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27228
27229 2012-08-07      Allan McRae     <allan@archlinux.org>
27230
27231         [BZ #14303]
27232         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
27233         (SUNOS_CPP): Likewise.
27234         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
27235         not found.
27236         (open_input): Call CPP using execvp.
27237
27238 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
27239
27240         * sysdeps/unix/sysv/linux/kernel-features.h
27241         (__ASSUME_PROT_GROWSUPDOWN): Remove.
27242         (__ASSUME_NO_CLONE_DETACHED): Likewise.
27243         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
27244         (__ASSUME_WAITID_SYSCALL): Likewise.
27245         * sysdeps/unix/sysv/linux/dl-execstack.c
27246         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
27247         code unconditional.
27248         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
27249         conditional code.
27250         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
27251         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
27252         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
27253         code.
27254         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
27255         unconditional.
27256         [__ASSUME_WAITID_SYSCALL]: Likewise.
27257         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
27258
27259 2012-08-07  Roland McGrath  <roland@hack.frob.com>
27260
27261         * sysdeps/unix/closedir.c: Renamed to ...
27262         * sysdeps/posix/closedir.c: ... here.
27263         * sysdeps/unix/dirfd.c: Renamed to ...
27264         * sysdeps/posix/dirfd.c: ... here.
27265         * sysdeps/unix/dirstream.h: Renamed to ...
27266         * sysdeps/posix/dirstream.h: ... here.
27267         * sysdeps/unix/fdopendir.c: Renamed to ...
27268         * sysdeps/posix/fdopendir.c: ... here.
27269         * sysdeps/unix/opendir.c: Renamed to ...
27270         * sysdeps/posix/opendir.c: ... here.
27271         * sysdeps/unix/readdir.c: Renamed to ...
27272         * sysdeps/posix/readdir.c: ... here.
27273         * sysdeps/unix/readdir_r.c: Renamed to ...
27274         * sysdeps/posix/readdir_r.c: ... here.
27275         * sysdeps/unix/rewinddir.c: Renamed to ...
27276         * sysdeps/posix/rewinddir.c: ... here.
27277         * sysdeps/unix/seekdir.c: Renamed to ...
27278         * sysdeps/posix/seekdir.c: ... here.
27279         * sysdeps/unix/telldir.c: Renamed to ...
27280         * sysdeps/posix/telldir.c: ... here.
27281         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
27282         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
27283         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27284         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
27285
27286         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
27287         * bits/fcntl.h: ... here.
27288
27289         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
27290         not 0.
27291         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
27292         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
27293         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
27294         (struct flock): Move l_start, l_len to the beginning.
27295         Use __pid_t for l_pid.
27296         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
27297         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
27298         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
27299         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
27300         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
27301         [__USE_LARGEFILE64] (struct flock64): New type.
27302         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
27303
27304         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
27305         * bits/dirent.h: ... here.
27306
27307         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
27308         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
27309
27310 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
27311
27312         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
27313         Change from 2.6.0 to 2.6.16.
27314         * sysdeps/unix/sysv/linux/configure: Regenerated.
27315         * sysdeps/unix/sysv/linux/kernel-features.h
27316         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
27317         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
27318         version.
27319         (__ASSUME_UTIMES): Likewise.
27320         (__ASSUME_CLONE_STOPPED): Remove.
27321         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
27322         architectures, not kernel version.
27323         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
27324         (__ASSUME_NO_CLONE_DETACHED): Likewise.
27325         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
27326         (__ASSUME_WAITID_SYSCALL): Likewise.
27327         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
27328         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
27329         * README: State 2.6.16 as minimum Linux kernel version.  Do not
27330         refer to older versions.
27331
27332 2012-08-06  Roland McGrath  <roland@hack.frob.com>
27333
27334         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
27335         Define alphasort64 as an alias.
27336         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
27337         Define versionsort64 as an alias.
27338         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
27339         Define scandir64 as an alias.
27340         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
27341         Define scandirat64 as an alias.
27342         * dirent/alphasort64.c (alphasort64):
27343         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
27344         * dirent/versionsort64.c: Likewise.
27345         * dirent/scandir64.c: Likewise.
27346         * dirent/scandirat64.c: Likewise.
27347         * sysdeps/wordsize-64/alphasort.c: File removed.
27348         * sysdeps/wordsize-64/alphasort64.c: File removed.
27349         * sysdeps/wordsize-64/scandir.c: File removed.
27350         * sysdeps/wordsize-64/scandir64.c: File removed.
27351         * sysdeps/wordsize-64/scandirat.c: File removed.
27352         * sysdeps/wordsize-64/scandirat64.c: File removed.
27353         * sysdeps/wordsize-64/versionsort.c: File removed.
27354         * sysdeps/wordsize-64/versionsort64.c: File removed.
27355         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
27356         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
27357         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
27358         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
27359         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
27360         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
27361         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
27362         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
27363
27364         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
27365         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
27366         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
27367         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27368         [defined __arch64__ || defined __sparcv9]
27369         (__INO_T_MATCHES_INO64_T): New macro.
27370         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27371         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
27372         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
27373         * sysdeps/unix/sysv/linux/bits/dirent.h
27374         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
27375         (_DIRENT_MATCHES_DIRENT64): New macro.
27376
27377         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
27378         Define lockf64 as an alias.
27379         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
27380         Define fseeko64 as an alias.
27381         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
27382         Define ftello64 as an alias.
27383         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
27384         Define _IO_fgetpos64 and fgetpos64 as aliases.
27385         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
27386         Define _IO_fsetpos64 and fsetpos64 as aliases.
27387         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
27388         Conditionalize body on this.
27389         * libio/fseeko64.c: Likewise.
27390         * libio/ftello64.c: Likewise.
27391         * libio/iofgetpos64.c: Likewise.
27392         * libio/iofsetpos64.c: Likewise.
27393         * sysdeps/wordsize-64/lockf.c: File removed.
27394         * sysdeps/wordsize-64/lockf64.c: File removed.
27395         * sysdeps/wordsize-64/fseeko.c: File removed.
27396         * sysdeps/wordsize-64/fseeko64.c: File removed.
27397         * sysdeps/wordsize-64/ftello.c: File removed.
27398         * sysdeps/wordsize-64/ftello64.c: File removed.
27399         * sysdeps/wordsize-64/iofgetpos.c: File removed.
27400         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
27401         * sysdeps/wordsize-64/iofsetpos.c: File removed.
27402         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
27403         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
27404         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
27405         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
27406         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
27407         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
27408         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
27409         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
27410         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
27411         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
27412         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
27413
27414         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
27415         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
27416         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
27417         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27418         [defined __arch64__ || defined __sparcv9]
27419         (__OFF_T_MATCHES_OFF64_T): New macro.
27420         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27421         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
27422         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27423         (__OFF_T_MATCHES_OFF64_T): New macro.
27424
27425 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
27426
27427         * stdlib/secure-getenv.c (__secure_getenv): Replace
27428         GLIBC_2_16 with GLIBC_2_17.
27429
27430 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
27431
27432         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
27433         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
27434
27435 2012-08-03  David S. Miller  <davem@davemloft.net>
27436
27437         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27438
27439 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
27440
27441         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
27442         Remove.
27443         (__ASSUME_CORRECT_SI_PID): Likewise.
27444         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
27445         (__ASSUME_TMPFS_NAME): Likewise.
27446         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
27447         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
27448         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
27449         (HAVE_AUX_SECURE): Make definition unconditional.
27450         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
27451         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
27452
27453 2012-08-03  Roland McGrath  <roland@hack.frob.com>
27454
27455         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
27456         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
27457         * sysdeps/mach/hurd/eloop-threshold.h: New file.
27458         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
27459         __eloop_threshold instead of SYMLOOP_MAX.
27460
27461         * sysdeps/generic/eloop-threshold.h: New file.
27462         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
27463         of MAXSYMLINKS.
27464         * elf/chroot_canon.c (chroot_canon): Likewise.
27465
27466 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
27467
27468         [BZ #13717]
27469         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
27470         Change to 2.6.0 everywhere.
27471         * sysdeps/unix/sysv/linux/configure: Regenerated.
27472         * sysdeps/unix/sysv/linux/kernel-features.h
27473         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
27474         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
27475         kernel versions.
27476         (__ASSUME_POSIX_TIMERS): Define unconditionally.
27477         (__ASSUME_FUTEX_REQUEUE): Remove.
27478         (__ASSUME_STATFS64): Define unconditionally.
27479         (__ASSUME_AT_SECURE): Likewise.
27480         (__ASSUME_CORRECT_SI_PID): Likewise.
27481         (__ASSUME_TGKILL): Define without depending on kernel version for
27482         i386.
27483         (__ASSUME_UTIMES): Likewise.
27484         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
27485         kernel version.
27486         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
27487         (__ASSUME_TMPFS_NAME): Likewise.
27488         * README: Update reference to Linux kernel versions.
27489
27490 2012-08-02  Marek Polacek  <polacek@redhat.com>
27491
27492         [BZ# 14150]
27493         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
27494         libc_cv_asm_type_prefix with %.
27495         * configure: Regenerated.
27496         * include/libc-symbols.h: Remove comment about
27497         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
27498         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
27499         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
27500         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
27501         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
27502         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
27503         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
27504         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
27505         * elf/tst-unique2mod1.c: Likewise.
27506         * elf/tst-unique1mod2.c: Likewise.
27507         * elf/tst-unique1mod1.c: Likewise.
27508         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
27509         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
27510         Replace ASM_TYPE_DIRECTIVE with .type.
27511         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27512         * sysdeps/i386/sysdep.h: Likewise.
27513         * sysdeps/x86_64/sysdep.h: Likewise.
27514         * sysdeps/sh/sysdep.h: Likewise.
27515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27516         Do not define ASM_TYPE_DIRECTIVE.
27517         * sysdeps/powerpc/sysdep.h: Likewise.
27518         * sysdeps/powerpc/powerpc32/sysdep.h:
27519         Replace ASM_TYPE_DIRECTIVE with .type.
27520         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
27521         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
27522         * sysdeps/i386/fpu/e_powf.S: Likewise.
27523         * sysdeps/i386/fpu/e_expl.S: Likewise.
27524         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
27525         * sysdeps/i386/fpu/e_acosh.S: Likewise.
27526         * sysdeps/i386/fpu/e_pow.S: Likewise.
27527         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
27528         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
27529         * sysdeps/i386/fpu/s_expm1.S: Likewise.
27530         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
27531         * sysdeps/i386/fpu/e_log2.S: Likewise.
27532         * sysdeps/i386/fpu/e_log2l.S: Likewise.
27533         * sysdeps/i386/fpu/e_scalb.S: Likewise.
27534         * sysdeps/i386/fpu/e_powl.S: Likewise.
27535         * sysdeps/i386/fpu/e_log10f.S: Likewise.
27536         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
27537         * sysdeps/i386/fpu/e_logl.S: Likewise.
27538         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
27539         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
27540         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
27541         * sysdeps/i386/fpu/e_log2f.S: Likewise.
27542         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
27543         * sysdeps/i386/fpu/e_log.S: Likewise.
27544         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
27545         * sysdeps/i386/fpu/e_logf.S: Likewise.
27546         * sysdeps/i386/fpu/e_log10l.S: Likewise.
27547         * sysdeps/i386/fpu/e_atanh.S: Likewise.
27548         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
27549         * sysdeps/i386/fpu/e_log10.S: Likewise.
27550         * sysdeps/i386/fpu/s_frexp.S: Likewise.
27551         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
27552         * sysdeps/i386/fpu/s_asinh.S: Likewise.
27553         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
27554         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
27555         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27556         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
27557         * sysdeps/i386/i686/strtok.S: Likewise.
27558         * sysdeps/i386/i386-mcount.S: Likewise.
27559         * sysdeps/i386/strtok.S: Likewise.
27560         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
27561         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
27562         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27563         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
27564         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
27565         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
27566         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
27567         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
27568         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
27569         * sysdeps/x86_64/_mcount.S: Likewise.
27570         * sysdeps/x86_64/strtok.S: Likewise.
27571         * sysdeps/sh/_mcount.S: Likewise.
27572
27573 2012-08-01  Roland McGrath  <roland@hack.frob.com>
27574
27575         * libio/iofopen.c: Include <fcntl.h>.
27576         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
27577         (_IO_fopen64, fopen64): Define as aliases.
27578         * libio/iofopen64.c: Include <fcntl.h>.
27579         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
27580         Conditionalize body on this.
27581         * sysdeps/wordsize-64/iofopen.c: File removed.
27582         * sysdeps/wordsize-64/iofopen64.c: File removed.
27583
27584 2012-08-01  Marek Polacek  <polacek@redhat.com>
27585
27586         * libc/Makeconfig: Use elf in place of binfmt-subdir.
27587         Use dlfcn directly instead of a variable.
27588         (binfmt-subdir): Do not define.
27589         (dlfcn): Likewise.
27590
27591 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
27592
27593         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
27594         Remove all definitions.
27595         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
27596         <kernel-features.h>.
27597         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
27598         (miss_F_GETOWN_EX): Remove all definitions.
27599         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
27600         macro definition.
27601         [!__ASSUME_FCNTL64]: Remove conditional code.
27602         [__ASSUME_FCNTL64]: Make code unconditional.
27603         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
27604         <kernel-features.h>.
27605         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
27606         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
27607         (lockf64) [__NR_fcntl64]: Make code unconditional.
27608         (lockf64) [__ASSUME_FCNTL64]: Likewise.
27609
27610         * sysdeps/unix/sysv/linux/kernel-features.h
27611         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
27612         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
27613         Make code unconditional.
27614         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
27615         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
27616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
27617         [__NR_vfork]: Make code unconditional.
27618         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
27619         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
27620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
27621         [__NR_vfork]: Make code unconditional.
27622         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
27623         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
27624
27625 2012-08-01  Roland McGrath  <roland@hack.frob.com>
27626
27627         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
27628         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
27629
27630         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
27631         Define mkstemp64 as an alias.
27632         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
27633         Define mkstemps64 as an alias.
27634         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
27635         Define mkostemp64 as an alias.
27636         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
27637         Define mkostemps64 as an alias.
27638         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
27639         Conditionalize body on this.
27640         * misc/mkostemp64.c: Likewise.
27641         * misc/mkostemps64.c: Likewise.
27642         * misc/mkstemps64.c: Likewise.
27643         * sysdeps/wordsize-64/mkstemp64.c: File removed.
27644         * sysdeps/wordsize-64/mkostemp64.c: File removed.
27645         * sysdeps/wordsize-64/mkostemp.c: File removed.
27646         * sysdeps/wordsize-64/mkstemp.c: File removed.
27647         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
27648         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
27649         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
27650         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
27651
27652         [BZ #14138]
27653         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
27654         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
27655         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
27656         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
27657
27658         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
27659         compat_symbol macros from <shlib-compat.h> rather than the underlying
27660         default_symbol_version and symbol_version macros, so that DEFAULT
27661         lines in shlib-versions are respected.
27662         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
27663
27664 2012-08-01  Florian Weimer  <fweimer@redhat.com>
27665
27666         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
27667         Declare with warn_unused_result.
27668         (setgid, setregid, setegid, setresgid): Likewise.
27669         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
27670         Likewise.
27671         * WUR-REPORT: Remove set*id functions.
27672
27673 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
27674
27675         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
27676
27677 2012-07-31  Roland McGrath  <roland@hack.frob.com>
27678
27679         [BZ #10191]
27680         * include/sys/socket.h (__libc_accept, __libc_accept4):
27681         Add attribute_hidden.
27682         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
27683
27684         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
27685         use of PTR_MANGLE.
27686         * inet/getnetgrent_r.c (setup): Likewise.
27687
27688         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
27689
27690 2012-07-31  David S. Miller  <davem@davemloft.net>
27691
27692         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27693
27694 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
27695
27696         [BZ #13629]
27697         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
27698         value between 1.0 and 2.0 and smaller part has absolute value less
27699         than 1.0.
27700         * math/s_clog10.c (__clog10): Likewise.
27701         * math/s_clog10f.c (__clog10f): Likewise.
27702         * math/s_clog10l.c (__clog10l): Likewise.
27703         * math/s_clogf.c (__clogf): Likewise.
27704         * math/s_clogl.c (__clogl): Likewise.
27705         * math/libm-test.inc (clog_test): Add more tests.
27706         (clog10_test): Likewise.
27707         * sysdeps/i386/fpu/libm-test-ulps: Update.
27708         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27709
27710 2012-07-31  Florian Weimer  <fweimer@redhat.com>
27711
27712         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
27713         Exit with zero in case no suitable GID is found, and write a
27714         message to standard error.
27715
27716 2012-07-30  Roland McGrath  <roland@hack.frob.com>
27717
27718         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
27719         rather than to 1.
27720         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
27721         (MAXPATHLEN): Removed.
27722         (NOGROUP, NODEV): New macros.
27723         (setbit, clrbit, isset, isclr): New macros.
27724         (howmany, roundup, powerof2): New macros.
27725         (DEV_BSIZE): New macro.
27726
27727         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
27728         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
27729
27730         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
27731         definition on [!__NO_LONG_DOUBLE_MATH].
27732
27733         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
27734         PTR_MANGLE and PTR_DEMANGLE.
27735
27736         * socket/accept4.c (accept4): Rename to __libc_accept4.
27737         Define accept4 as a weak alias.
27738
27739         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
27740         on [_DIRENT_HAVE_D_TYPE].
27741         * io/ftw.c (ftw_dir): Likewise.
27742
27743         * io/xmknod.c (__xmknod): Don't check PATH for being null.
27744
27745         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
27746
27747         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
27748         Use the BSD numbers rather than the arbitrary ones we had.
27749         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
27750         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
27751         (SIGXCPU, SIGXFSZ): New macros.
27752         (_NSIG): Now 32.
27753
27754         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
27755         initializer on [_LIBC_REENTRANT].
27756
27757         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
27758         definitions inside [_POSIX_MAPPED_FILES].
27759
27760         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
27761
27762         * dirent/opendir.c: Include <fcntl.h>.
27763
27764         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
27765         (__libc_getspecific): Likewise.
27766         (__libc_key_create): Likewise.
27767
27768         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
27769         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
27770         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
27771         (tmpfile64): Define as alias.
27772         * sysdeps/wordsize-64/tmpfile.c: File removed.
27773         * sysdeps/wordsize-64/tmpfile64.c: File removed.
27774         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
27775         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
27776
27777         * stdio-common/vfscanf.c: Include <stdbool.h>.
27778         * nss/makedb.c: Likewise.
27779         * stdio-common/_i18n_number.h: Likewise.
27780         * argp/argp-help.c: Likewise.
27781         * posix/wordexp.c: Likewise.
27782         * sysdeps/posix/spawni.c: Likewise.
27783         * nss/nss_files/files-initgroups.c: Likewise.
27784         * stdio-common/reg-modifier.c: Include <stdlib.h>.
27785         * nss/nss_files/files-initgroups.c: Likewise.
27786         * nss/nss_db/db-netgrp.c: Likewise.
27787         * nss/nss_db/db-initgroups.c: Likewise.
27788         * io/fchmodat.c: Include <sys/stat.h>.
27789
27790         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
27791         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
27792
27793         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
27794         [HAVE_MMAP].
27795
27796         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
27797         Add multiple inclusion protection.
27798
27799 2012-07-27  David S. Miller  <davem@davemloft.net>
27800
27801         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27802
27803 2012-07-27  Gary Benson  <gbenson@redhat.com>
27804
27805         [BZ #14298]
27806         * elf/rtld.c: Include <stap-probe.h>.
27807         (dl_main): Added static probes "init_start" and "init_complete".
27808         * elf/dl-load.c: Include <stap-probe.h>.
27809         (lose): Take new parameter "nsid".
27810         Added static probe "map_failed".
27811         (_dl_map_object_from_fd): Pass namespace id to lose.
27812         Added static probe "map_start".
27813         (open_verify): Pass namespace id to lose.
27814         * elf/dl-open.c: Include <stap-probe.h>.
27815         (dl_open_worker) Added static probes "map_complete", "reloc_start"
27816         and "reloc_complete".
27817         * elf/dl-close.c: Include <stap-probe.h>.
27818         (_dl_close_worker): Added static probes "unmap_start" and
27819         "unmap_complete".
27820         * elf/rtld-debugger-interface.txt: New file documenting the above.
27821
27822 2012-07-26  Roland McGrath  <roland@hack.frob.com>
27823
27824         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
27825         rather than a string variable.
27826         * sunrpc/rpc_main.c (h_output): Likewise.
27827         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
27828
27829 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
27830
27831         * inet/check_native.c: New file.
27832
27833 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
27834
27835         [BZ #13629]
27836         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
27837         if larger part has absolute value 1.0.
27838         * math/s_clog10.c (__clog10): Likewise.
27839         * math/s_clog10f.c (__clog10f): Likewise.
27840         * math/s_clog10l.c (__clog10l): Likewise.
27841         * math/s_clogf.c (__clogf): Likewise.
27842         * math/s_clogl.c (__clogl): Likewise.
27843         * math/libm-test.inc (clog_test): Add more tests.
27844         (clog10_test): Likewise.
27845         * sysdeps/i386/fpu/libm-test-ulps: Update.
27846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27847
27848         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
27849         (pltexit): Likewise.
27850         (La_regs): Likewise.
27851         (La_retval): Likewise.
27852         (int_retval): Likewise.
27853         Update #error for removed macros to refer only to definitions in
27854         tst-audit.h.
27855         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
27856         macro.
27857         (pltexit): Likewise.
27858         (La_regs): Likewise.
27859         (La_retval): Likewise.
27860         (int_retval): Likewise.
27861         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
27862         macro.
27863         (pltexit): Likewise.
27864         (La_regs): Likewise.
27865         (La_retval): Likewise.
27866         (int_retval): Likewise.
27867         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
27868         macro.
27869         (pltexit): Likewise.
27870         (La_regs): Likewise.
27871         (La_retval): Likewise.
27872         (int_retval): Likewise.
27873         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
27874         macro.
27875         (pltexit): Likewise.
27876         (La_regs): Likewise.
27877         (La_retval): Likewise.
27878         (int_retval): Likewise.
27879         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
27880         macro.
27881         (pltexit): Likewise.
27882         (La_regs): Likewise.
27883         (La_retval): Likewise.
27884         (int_retval): Likewise.
27885         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
27886         macro.
27887         (pltexit): Likewise.
27888         (La_regs): Likewise.
27889         (La_retval): Likewise.
27890         (int_retval): Likewise.
27891         * sysdeps/generic/tst-audit.h: Update comment to refer only to
27892         macro definitions in tst-audit.h.
27893         * sysdeps/i386/tst-audit.h: New file.
27894         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
27895         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
27896         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
27897         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
27898         * sysdeps/sh/tst-audit.h: Likewise.
27899         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
27900         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
27901         * sysdeps/x86_64/tst-audit.h: Likewise.
27902
27903 2012-07-26  Andreas Jaeger  <aj@suse.de>
27904
27905         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
27906         ptrace.
27907
27908         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
27909         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
27910         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
27911         PTRACE_O_MASK.
27912         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
27913         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
27914         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
27915
27916         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
27917         value.
27918
27919         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
27920         _sigsys.
27921         (si_call_addr, si_syscall, si_arch): Define new macro.
27922         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
27923         _sigsys.
27924         (si_call_addr, si_syscall, si_arch): Define new marcro.
27925         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
27926         _sigsys.
27927         (si_call_addr, si_syscall, si_arch): Define new macro.
27928         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
27929         _sigsys.
27930         (si_call_addr, si_syscall, si_arch): Define new macro.
27931
27932 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
27933
27934         [BZ #13717]
27935         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
27936         Change to 2.4.21 where previously 2.4.1.
27937         * sysdeps/unix/sysv/linux/configure: Regenerated.
27938         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
27939         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
27940         Linux kernel version.
27941         (__ASSUME_STD_AUXV): Remove.
27942         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
27943         kernel version.
27944         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
27945         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
27946         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
27947         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
27948         (__ASSUME_NETLINK_SUPPORT): Likewise.
27949         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
27950         (__no_netlink_support): Remove conditional definition.
27951         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
27952         Remove.
27953         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
27954         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
27955         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
27956         (if_nameindex_ioctl): Remove.
27957         (if_nameindex_netlink): Do not handle __no_netlink_support.
27958         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
27959         code.
27960         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
27961         Remove conditional code.
27962         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
27963         code.
27964         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
27965         unconditional.
27966         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
27967         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
27968         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
27969         Remove.
27970         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
27971         [!__ASSUME_STD_AUXV]: Remove conditional code.
27972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
27973         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
27974         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
27975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
27976         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
27977         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
27978         code.
27979         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
27980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
27981         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
27982         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
27983         conditional code.
27984         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
27985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
27986         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
27987         code.
27988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
27989         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
27990         conditional code.
27991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
27992         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
27993         code unconditional.
27994         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27995         conditional code.
27996         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
27997         unconditional.
27998         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
27999         conditional code.
28000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
28001         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
28002         unconditional.
28003         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28004         conditional code.
28005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
28006         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
28007         code unconditional.
28008         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28009         conditional code.
28010         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
28011         unconditional.
28012         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28013         conditional code.
28014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
28015         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
28016         code unconditional.
28017         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28018         conditional code.
28019         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
28020         unconditional.
28021         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28022         conditional code.
28023
28024 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
28025
28026         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
28027         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
28028         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
28029         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
28030         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
28031         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
28032         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
28033         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
28034         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
28035         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
28036         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
28037         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
28038         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
28039         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
28040         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
28041         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
28042         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
28043         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
28044         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
28045         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
28046         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
28047         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
28048         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
28049
28050 2012-07-25  Florian Weimer  <fweimer@redhat.com>
28051
28052         * Versions.def: Add GLIBC_2.17.
28053         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
28054         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
28055         Introduce __libc_secure_getenv.
28056         * stdlib/Versions (2.17): Add secure_getenv
28057         (GLIBC_PRIVATE): Add __libc_secure_getenv.
28058         * stdlib/secure-getenv.c: Rename __secure_getenv to
28059         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
28060         symbol __secure_getenv for GLIBC_2.0.
28061         * stdlib/tst-secure-getenv.c: New.
28062         * stdlib/Makefile (tests): Add testcase.
28063         * manual/startup.texi (Environment Access): Document
28064         secure_getenv.
28065         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
28066         __libc_secure_getenv.
28067         * inet/ruserpass.c (ruserpass): Likewise.
28068         * malloc/mtrace.c (mtrace): Likewise.
28069         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
28070         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
28071         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
28072         * sysdeps/posix/tempname.c: Likewise.  Evaluate
28073         HAVE_SECURE_GETENV.
28074         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
28075         __secure_getenv to __libc_secure_getenv.
28076         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
28077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
28078         Likewise.
28079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
28080         Likewise.
28081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
28082         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
28083         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
28084         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
28085         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
28086         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
28087         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
28088
28089 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
28090
28091         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
28092         (struct La_i86_retval): Likewise.
28093         (struct La_x86_64_regs): Likewise.
28094         (struct La_x86_64_retval): Likewise.
28095         (struct La_x32_regs): Likewise.
28096         (struct La_x32_retval): Likewise.
28097         (struct La_ppc32_regs): Likewise.
28098         (struct La_ppc32_retval): Likewise.
28099         (struct La_ppc64_regs): Likewise.
28100         (struct La_ppc64_retval): Likewise.
28101         (struct La_sh_regs): Likewise.
28102         (struct La_sh_retval): Likewise.
28103         (struct La_s390_32_regs): Likewise.
28104         (struct La_s390_32_retval): Likewise.
28105         (struct La_s390_64_regs): Likewise.
28106         (struct La_s390_64_retval): Likewise.
28107         (struct La_sparc32_regs): Likewise.
28108         (struct La_sparc32_retval): Likewise.
28109         (struct La_sparc64_regs): Likewise.
28110         (struct La_sparc64_retval): Likewise.
28111         (struct audit_ifaces): Remove architecture-specific pltenter and
28112         pltexit members.
28113         * sysdeps/i386/ldsodefs.h: New file.
28114         * sysdeps/powerpc/ldsodefs.h: Likewise.
28115         * sysdeps/s390/ldsodefs.h: Likewise.
28116         * sysdeps/sh/ldsodefs.h: Likewise.
28117         * sysdeps/sparc/ldsodefs.h: Likewise.
28118         * sysdeps/x86_64/ldsodefs.h: Likewise.
28119
28120 2012-07-25  Marek Polacek  <polacek@redhat.com>
28121
28122         [BZ #6808]
28123         * math/libm-test.inc (yn_test): Add another test.
28124         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
28125         to ERANGE when the result is +-Inf.
28126         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
28127         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28128         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
28129         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
28130
28131 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
28132
28133         * conform/data/time.h-data (NULL): Use macro-constant.  Require
28134         equal to 0.
28135         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
28136         clock_t.
28137         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
28138
28139 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
28140
28141         * configure.in <sysdeps resolving>: Correct printing
28142         Implies_before.
28143         * configure: Regenerate.
28144
28145 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
28146
28147         * math/w_ilogb.c: Include <limits.h>.
28148         * math/w_ilogbl.c: Likewise.
28149
28150 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
28151
28152         * manual/lang.texi (__va_copy): Document primarily as ISO C99
28153         va_copy.  Document allowing for unavailable va_copy only as
28154         pre-C99 compatibility.
28155         * manual/string.texi (Copying and Concatenation): Use va_copy
28156         instead of __va_copy in concat example.
28157
28158 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
28159
28160         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
28161         (__sendto): Use create_address_port.  Initialize APORT and deallocate
28162         it if not null.
28163
28164         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
28165         with O_NOLINK passed to __file_name_lookup.
28166
28167         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
28168         with O_NOLINK passed to __file_name_lookup.
28169
28170         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
28171         negative N or less than NGIDS.
28172
28173         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
28174         type to string_t.  Set ERANGE as errno and return it if NAME is not big
28175         enough.  Use memcpy instead of strncpy.
28176
28177 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
28178
28179         * elf/Makefile (check-data): Remove.
28180         (localplt.data): New vpath directive.
28181         ($(objpfx)check-localplt.out): Use localplt.data from vpath
28182         instead of $(check-data).
28183         * scripts/data/localplt-generic.data: Move to ...
28184         * sysdeps/generic/localplt.data: ... here.
28185         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
28186         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
28187         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
28188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
28189         ... here.
28190         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
28191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
28192         ... here.
28193         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
28194         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
28195         ... here.
28196         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
28197         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
28198         ... here.
28199         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
28200         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
28201         ... here.
28202         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
28203         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
28204         ... here.
28205
28206 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28207
28208         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
28209         PPC32 and PPC64 files.
28210         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
28211         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
28212
28213 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28214
28215         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
28216         __makecontext_ret to ...
28217         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
28218         ... here and call exit if uc_link is NULL.  New file.
28219         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
28220         __makecontext_ret.S.
28221         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
28222         __makecontext_ret to ...
28223         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
28224         ... here and call exit if uc_link is NULL.  New file.
28225         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
28226         __makecontext_ret.S.
28227
28228 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28229
28230         * elf/elf.h (R_390_IRELATIVE): New definition.
28231         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
28232         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
28233         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
28234         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
28235         (elf_machine_lazy_rel): Likewise.
28236         * sysdeps/s390/dl-irel.h: New file.
28237         * sysdeps/s390/s390-64/memcpy.S: New asm code.
28238         * sysdeps/s390/s390-64/memset.S: New asm code.
28239         * sysdeps/s390/s390-64/memcmp.S: New asm code.
28240         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
28241         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
28242         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
28243         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
28244         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
28245         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
28246         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
28247         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
28248         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
28249         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
28250         * sysdeps/s390/s390-32/memcpy.S: New asm code.
28251         * sysdeps/s390/s390-32/memset.S: New asm code.
28252         * sysdeps/s390/s390-32/memcmp.S: New asm code.
28253
28254 2012-07-17  Marek Polacek  <polacek@redhat.com>
28255
28256         [BZ #14349]
28257         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
28258         * sysdeps/s390/s390-64/configure.in: Likewise.
28259         * sysdeps/sparc/configure.in: Likewise.
28260         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
28261         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
28262         * sysdeps/i386/configure.in: Likewise.
28263         * sysdeps/x86_64/configure.in: Likewise.
28264         * sysdeps/sh/configure.in: Likewise.
28265         * sysdeps/s390/s390-32/configure: Regenerated.
28266         * sysdeps/s390/s390-64/configure: Likewise.
28267         * sysdeps/x86_64/configure: Likewise.
28268         * sysdeps/sh/configure: Likewise.
28269         * sysdeps/powerpc/powerpc64/configure: Likewise.
28270         * sysdeps/powerpc/powerpc32/configure: Likewise.
28271         * sysdeps/sparc/configure: Likwise.
28272         * sysdeps/i386/configure: Likewise.
28273
28274         * elf/dl-open.c: Comment fixes.
28275
28276 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
28277
28278         * Makefile [CXX] (check-data): Remove.
28279         [CXX] (c++-types.data): New vpath directive.
28280         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
28281         vpath.  Do not allow for C++ type data being missing.
28282         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
28283         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
28284         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
28285         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
28286         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
28287         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
28288         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
28289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
28290         ... here.
28291         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
28292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
28293         ... here.
28294         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
28295         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
28296         ... here.
28297         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
28298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
28299         ... here.
28300         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
28301         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
28302         ... here.
28303         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
28304         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
28305         ... here.
28306         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
28307         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
28308         ... here.
28309         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
28310         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
28311
28312         * elf/tls-macros.h (TLS_LE): Move architecture-specific
28313         definitions to architecture-specific files.
28314         (TLS_IE): Likewise.
28315         (TLS_LD): Likewise.
28316         (TLS_GD): Likewise.
28317         * sysdeps/i386/tls-macros.h: New file.
28318         * sysdeps/powerpc/tls-macros.h: Likewise.
28319         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
28320         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
28321         * sysdeps/sh/tls-macros.h: Likewise.
28322         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
28323         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
28324         * sysdeps/x86_64/tls-macros.h: Likewise.
28325
28326 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
28327
28328         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
28329         zero value for regular exit case.
28330
28331         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
28332         (__start_context): Preserve zero value for regular exit case.
28333
28334 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
28335             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28336
28337         * manual/setjmp.texi (setcontext): Clarify normal process
28338         termination when uc_link is the null pointer.
28339         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
28340         exit call.
28341
28342 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
28343
28344         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
28345         preprocessor.  Test for each exception mask separately.
28346
28347 2012-07-16  Andreas Jaeger  <aj@suse.de>
28348
28349         * po/ru.po: Update from translation team.
28350
28351 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
28352
28353         * conform/data/string.h-data (NULL): Use macro-constant.  Require
28354         equal to 0.
28355         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
28356         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
28357         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
28358         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
28359         [ISO || ISO99 || ISO11] (*_t): Do not allow.
28360
28361 2012-07-13  Andreas Jaeger  <aj@suse.de>
28362
28363         * po/fr.po: Update from translation team.
28364
28365 2012-07-12  Marek Polacek  <polacek@redhat.com>
28366
28367         [BZ #14173]
28368         * math/libm-test.inc (yn_test): Add test for BZ #14173.
28369         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
28370         loop condition.
28371
28372 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
28373
28374         [BZ #13717]
28375         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28376         Change to 2.4.1 where previously 2.4.0.
28377         * sysdeps/unix/sysv/linux/configure: Regenerated.
28378         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
28379         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
28380         version.
28381         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
28382         (__ASSUME_AT_CLKTCK): Remove.
28383         (__ASSUME_AT_PAGESIZE): Likewise.
28384         (__ASSUME_AT_XID): Likewise.
28385         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
28386         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
28387         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
28388         unconditionally.
28389         (HAVE_AUX_PAGESIZE): Likewise.
28390         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
28391         [__ASSUME_AT_CLKTCK]: Make code unconditional.
28392         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
28393
28394 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
28395
28396         [BZ #14307]
28397         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
28398         the temporary buffer used to invoke __gethostbyname2_r,
28399         __gethostbyaddr_r and gethostbyname4_r to make room for struct
28400         host_data / struct gaih_addrtuple.
28401         * resolv/nss_dns/dns-host.c (global scope): Move definition of
28402         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
28403         header file nss/nsswitch.h.
28404         * nss/nsswitch.h (global scope): Add definition of implementation
28405         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
28406         resolv/nss_dns/dns-host.c).
28407
28408 2012-07-11  Andreas Jaeger  <aj@suse.de>
28409
28410         * po/fr.po: Update from translation team.
28411
28412         * po/sv.po: Update from translation team
28413         * po/fr.po: Another update from translation team.
28414
28415 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28416
28417         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
28418         for subnormals or multiply small sinh result by itself.
28419         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
28420         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28421
28422 2012-07-11  David S. Miller  <davem@davemloft.net>
28423
28424         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28425
28426 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
28427
28428         [BZ #14347]
28429         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
28430         (INTERNAL_MARK): Shift it here.
28431
28432 2012-07-10  Marek Polacek  <polacek@redhat.com>
28433
28434         [BZ #14151]
28435         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
28436         libc_cv_asm_global_directive with .globl.
28437         * configure: Regenerated.
28438         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
28439         with .globl.
28440         * sysdeps/i386/configure: Regenerated.
28441         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
28442         with .globl.
28443         * sysdeps/x86_64/configure: Regenerated.
28444         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
28445         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
28446         * elf/tst-unique2mod2.c: Likewise.
28447         * elf/tst-unique2mod1.c: Likewise.
28448         * elf/tst-unique1mod2.c: Likewise.
28449         * elf/tst-unique1mod1.c: Likewise.
28450         * sysdeps/s390/s390-32/sysdep.h: Likewise.
28451         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
28452         * sysdeps/s390/s390-64/sysdep.h: Likewise.
28453         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
28454         * sysdeps/mach/sysdep.h: Likewise.
28455         * sysdeps/i386/sysdep.h: Likewise.
28456         * sysdeps/i386/i386-mcount.S: Likewise.
28457         * sysdeps/x86_64/_mcount.S: Likewise.
28458         * sysdeps/x86_64/sysdep.h: Likewise.
28459         * sysdeps/sh/_mcount.S: Likewise.
28460         * sysdeps/sh/sysdep.h: Likewise.
28461         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
28462         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
28463         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
28464         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
28465         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
28466         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
28467         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
28468         * locale/localeinfo.h: Likewise.
28469         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
28470         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
28471
28472 2012-07-09  Roland McGrath  <roland@hack.frob.com>
28473
28474         [BZ #14336]
28475         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
28476         system".
28477         * manual/message.texi (The Uniforum approach): Likewise.
28478         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
28479         (glibc iconv Implementation): Likewise.
28480
28481 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
28482
28483         [BZ #14337]
28484         * math/s_clog.c (__clog): Avoid scaling a value down where that
28485         could result in underflow.
28486         * math/s_clog10.c (__clog10): Likewise.
28487         * math/s_clog10f.c (__clog10f): Likewise.
28488         * math/s_clog10l.c (__clog10l): Likewise.
28489         * math/s_clogf.c (__clogf): Likewise.
28490         * math/s_clogl.c (__clogl): Likewise.
28491         * math/libm-test.inc (clog_test): Add more tests.
28492         (clog10_test): Likewise.
28493         * sysdeps/i386/fpu/libm-test-ulps: Update.
28494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28495
28496 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
28497
28498         [BZ #14283]
28499         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
28500         by 7 not 8 to examine high bit of fractional part.
28501
28502         [BZ #14042]
28503         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
28504         for call to __mcount_internal.
28505         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
28506         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
28507         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
28508
28509 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
28510
28511         [BZ #14154]
28512         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
28513         approximation for values within 0x1p-13f of an odd multiple of
28514         pi/4.
28515         * math/libm-test.inc (tan_test): Do not allow spurious underflow
28516         exception.  Add more tests.
28517         * sysdeps/i386/fpu/libm-test-ulps: Update.
28518
28519         [BZ #6778]
28520         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
28521         inputs and return -1 for them.  Do not check for +Inf in case not
28522         reachable for +Inf.
28523         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
28524         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
28525         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
28526         and return -1 for them.  Do not check for +Inf in case not
28527         reachable for +Inf.
28528         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
28529         define.
28530         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
28531         and return -1 for them.  Do not check for +Inf in case not
28532         reachable for +Inf.
28533         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
28534         spurious underflow.
28535         * sysdeps/i386/fpu/libm-test-ulps: Update.
28536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28537
28538 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
28539
28540         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
28541
28542 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
28543
28544         [BZ #14157]
28545         [BZ #14331]
28546         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
28547         could result in spurious underflow.  Scale down values above
28548         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
28549         * math/s_csqrtf.c (__csqrtf): Likewise.
28550         * math/s_csqrtl.c (__csqrtl): Likewise.
28551         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
28552         spurious underflow.
28553         * sysdeps/i386/fpu/libm-test-ulps: Update.
28554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28555
28556 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
28557
28558         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
28559         xopen-msg.sed.
28560         * catgets/xopen-msg.awk: New file.
28561         * catgets/xopen-msg.sed: Removed.
28562
28563         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
28564         po2text.sed.
28565         * intl/po2test.awk: New file.
28566         * intl/po2test.sed: Removed.
28567
28568 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
28569
28570         [BZ #14328]
28571         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
28572         or multiply small sinh result by itself.
28573         * math/s_ctanf.c (__ctanf): Likewise.
28574         * math/s_ctanh.c (__ctanh): Likewise.
28575         * math/s_ctanhf.c (__ctanhf): Likewise.
28576         * math/s_ctanhl.c (__ctanhl): Likewise.
28577         * math/s_ctanl.c (__ctanl): Likewise.
28578         * math/libm-test.inc (ctan_test_tonearest): New function.
28579         (ctan_test_towardzero): Likewise.
28580         (ctan_test_downward): Likewise.
28581         (ctan_test_upward): Likewise.
28582         (ctanh_test_tonearest): Likewise.
28583         (ctanh_test_towardzero): Likewise.
28584         (ctanh_test_downward): Likewise.
28585         (ctanh_test_upward): Likewise.
28586         (main): Call these new functions.
28587         * sysdeps/i386/fpu/libm-test-ulps: Update.
28588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28589
28590 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
28591
28592         * .gitignore: Delete /ports entry.
28593
28594 2012-07-03  Andreas Jaeger  <aj@suse.de>
28595
28596         * po/bg.po: Update from translation team.
28597         * po/cs.po: Likewise.
28598         * po/de.po: Likewise.
28599         * po/hr.po: Likewise.
28600         * po/nl.pl: Likewise.
28601         * po/pl.po: Likewise.
28602         * po/vi.po: Likewise.
28603
28604 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
28605
28606         * Makeconfig [!+link] (+link-before-libc): New variable.
28607         [!+link] (+link-after-libc): Likewise.
28608         [!+link] (+link-tests): Likewise.
28609         [!+link] (+link): Define in terms of $(+link-before-libc) and
28610         $(+link-after-libc).
28611         [!+link-static] (+link-static-before-libc): New variable.
28612         [!+link-static] (+link-static-after-libc): Likewise.
28613         [!+link-static] (+link-static-tests): Likewise.
28614         [!+link-static] (+link-static): Define in terms of
28615         $(+link-static-before-libc) and $(+link-static-after-libc).
28616         [build-shared] (link-libc-before-gnulib): New variable.
28617         [build-shared] (link-libc-tests): Likewise.
28618         [build-shared] (link-libc): Define in terms of
28619         $(link-libc-before-gnulib).
28620         [!build-shared] (link-libc-tests): New variable.
28621         (link-libc-static-tests): New variable.
28622         [!gnulib] (gnulib-arch): New variable.
28623         [!gnulib] (gnulib-tests): Likewise.
28624         [!gnulib] (static-gnulib-arch): Likewise.
28625         [!gnulib] (static-gnulib-tests): Likewise.
28626         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
28627         Define with "=" instead of ":=".
28628         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
28629         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
28630         * Rules (binaries-all-notests): New variable.
28631         (binaries-all-tests): Likewise.
28632         (binaries-static-notests): Likewise.
28633         (binaries-static-tests): Likewise.
28634         (binaries-all): Define using $(binaries-all-notests) and
28635         $(binaries-all-tests).
28636         (binaries-static): Define using $(binaries-static-notests) and
28637         $(binaries-static-tests).
28638         (binaries-shared-tests): New variable.
28639         (binaries-shared-notests): Likewise.
28640         (binaries-shared): Remove variable.
28641         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
28642         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
28643         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
28644         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
28645         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
28646         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
28647         * elf/Makefile (sln-modules): New variable.
28648         (extra-objs): Add $(sln-modules:=.o).
28649         (ldconfig-modules): Add static-stubs.
28650         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
28651         * elf/static-stubs.c: New file.
28652
28653         [BZ #14283]
28654         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
28655         by 7 not 8 to examine high bit of fractional part.  Use volatile
28656         variables when splitting into final array of floats if
28657         __FLT_EVAL_METHOD__ != 0.
28658         * math/libm-test.inc (cos_test): Add another test.
28659         (sin_test): Likewise.
28660         * sysdeps/i386/fpu/libm-test-ulps: Update.
28661
28662         [BZ #14273]
28663         * math/libm-test.inc (cosh_test): Add more tests.
28664
28665         * version.h (RELEASE): Set to "development".
28666         (VERSION): Set to "2.16.90".
28667
28668 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
28669
28670         * NEWS: Update copyright. Remove last-updated date.
28671         Mention math library bug fixes and timezone data changes.
28672         * README: Mention GNU/Hurd, x32, and HPPA support status.
28673
28674 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
28675
28676         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
28677
28678 2012-06-27  Andreas Jaeger  <aj@suse.de>
28679
28680         * manual/contrib.texi (Contributors): Add Samuel Thibault.
28681
28682 2012-06-25  Andreas Jaeger  <aj@suse.de>
28683
28684         * sysdeps/s390/fpu/libm-test-ulps: Update.
28685
28686 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
28687             Thomas Schwinge  <thomas@codesourcery.com>
28688
28689         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
28690         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
28691         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
28692         fanotify_mark.
28693
28694 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
28695
28696         * sysdeps/mach/start.c: Remove file.
28697         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
28698         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
28699         * sysdeps/sh/init-first.c: Likewise.
28700
28701         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
28702         registers for frame unwinding purposes, add CFI directives.
28703         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
28704         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
28705         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
28706         Likewise.
28707
28708         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
28709         __fortify_fail returning.
28710         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
28711
28712         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
28713         sysdeps/sh/____longjmp_chk.S.
28714         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
28715         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
28716         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
28717         (gen-as-const-headers): Append sigaltstack-offsets.sym.
28718
28719         * sysdeps/sh/abort-instr.h: New file.
28720         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
28721         process in case exit returns.
28722
28723         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
28724         initialize the GOT register before use.
28725
28726         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
28727         calculation of ARGC > 4.
28728
28729         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
28730         meaningful names to some local labels.
28731
28732 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28733             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
28734
28735         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
28736         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
28737         (__arch_compare_and_exchange_val_16_acq): Likewise.
28738         (__arch_compare_and_exchange_val_32_acq): Likewise.
28739         (atomic_exchange_and_add): Fix gUSA sequence.
28740         (atomic_add): Likewise.
28741         (atomic_add_negative): Likewise.
28742         (atomic_add_zero): Likewise.
28743         (atomic_bit_test_set): Likewise.
28744
28745 2012-06-22  Andreas Schwab  <schwab@redhat.com>
28746
28747         [BZ #13579]
28748         * include/link.h (struct link_map): Add l_free_initfini.
28749         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
28750         l_initfini.
28751         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
28752         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
28753         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
28754         set.
28755
28756 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
28757
28758         * configure.in: Use AC_LANG_SOURCE.
28759         * configure: Regenerate.
28760
28761 2012-06-22  Roland McGrath  <roland@hack.frob.com>
28762
28763         * configure.in (libc_cv_localstatedir): New substituted variable.
28764         * configure: Regenerated.
28765         * config.make.in (localstatedir): New variable, substituted from
28766         libc_cv_localstatedir.
28767         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
28768         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
28769         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
28770         * sysdeps/gnu/configure: Regenerated.
28771
28772 2012-06-21  Jeff Law  <law@redhat.com>
28773
28774         [BZ #14277]
28775         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
28776         free.  Simplify list management for _LIBC case.
28777
28778 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
28779
28780         [BZ #14273]
28781         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
28782         Clear sign bit of 64-bit integer value before comparing against
28783         overflow value.
28784
28785         * sysdeps/mach/configure: Regenerated.
28786
28787 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
28788
28789         [BZ #14278]
28790         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
28791
28792 2012-06-21  Jeff Law  <law@redhat.com>
28793
28794         [BZ #13882]
28795         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
28796         uint16_t for elements in the "seen" array to avoid char overflows.
28797         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28798         * elf/dl-open.c (dl_open_worker): Likewise.
28799
28800 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
28801
28802         * scripts/list-sources.sh: Scan PORTS for translations.
28803         * po/libc.pot: Regenerated.
28804
28805 2012-06-21  Andreas Jaeger  <aj@suse.de>
28806
28807         [BZ #12194]
28808         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
28809         warning.
28810         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
28811         * bits/byteswap-16.h (__bswap_16): Likewise.
28812         * bits/byteswap.h (__bswap_constant_16): Likewise.
28813
28814 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
28815
28816         [BZ #14117]
28817         * sysdeps/i386/fpu_control.h: Removed.
28818         * sysdeps/x86_64/fpu_control.h: Moved to ...
28819         * sysdeps/x86/fpu_control.h: Here.
28820
28821         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
28822         (_FPU_SETCW): Likewise.
28823
28824 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
28825
28826         [BZ #14117]
28827         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
28828         * sysdeps/x86/fpu/bits/mathinline.h: This.
28829         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
28830
28831         [BZ #14050]
28832         [BZ #14117]
28833         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
28834         functions if __x86_64__ is defined.
28835
28836 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
28837
28838         * string/endian.h: Add !__ASSEMBLER__ condition for including
28839         conversion interfaces.
28840
28841 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
28842
28843         [BZ #14241]
28844         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
28845         of ABS(x) in calculating zero to negative powers other than odd
28846         integers.
28847         * math/libm-test.inc (pow_test): Add more tests.
28848
28849 2012-06-15  Andreas Jaeger  <aj@suse.de>
28850
28851         * manual/contrib.texi (Contributors): Update entry of Liubov
28852         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
28853         Machado Filho.
28854
28855 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
28856
28857         * string/string.h: Add __wur to GNU version of strerror_r.
28858
28859 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
28860
28861         [BZ #14229]
28862         * string/Makefile (tests): Add tst-strtok_r.
28863         * string/tst-strtok_r.c: New file.
28864         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
28865         RAX_LP/RDX_LP on SAVE_PTR.
28866
28867 2012-06-14  Roland McGrath  <roland@hack.frob.com>
28868
28869         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
28870
28871 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
28872
28873         * libm_test.inc (csqrt_test): Allow more spurious underflow
28874         exceptions.
28875         (j0_test): Likewise.
28876         (j1_test): Likewise.
28877         (y0_test): Likewise.
28878         (y1_test): Likewise.
28879
28880 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
28881
28882         * po/Makefile (libc.pot): Use UTF-8 charset.
28883
28884 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
28885
28886         [BZ #14210]
28887         Suppress sign-conversion warning from FD_SET.
28888         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
28889         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
28890         not unsigned long int.
28891         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
28892
28893 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
28894
28895         [BZ #14050]
28896         [BZ #14117]
28897         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
28898         __extern_always_inline instead of __extern_inline.
28899         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
28900         (__signbit): Likewise.
28901         (__signbitl): Support C++ namespace.
28902         (lrintf): New inline function.
28903         (lrint): Likewise.
28904         (llrintf): Likewise.
28905         (llrint): Likewise.
28906         (fmaxf): Likewise.
28907         (fmax): Likewise.
28908         (fminf): Likewise.
28909         (fmin): Likewise.
28910         (rint): Likewise.
28911         (rintf): Likewise.
28912         (ceil): Likewise.
28913         (ceilf): Likewise.
28914         (floor): Likewise.
28915         (floorf): Likewise.
28916         (nearbyint): Likewise.
28917         (nearbyintf): Likewise.
28918
28919 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
28920
28921         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
28922         non-default versions.
28923
28924 2012-06-11  Roland McGrath  <roland@hack.frob.com>
28925
28926         [BZ #14218]
28927         * manual/argp.texi (Argp): Reword argp_parse description slightly.
28928
28929 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
28930
28931         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
28932         (FE_UPWARD, FE_DOWNWARD): Don't define.
28933         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
28934         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
28935
28936         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
28937         reading it.
28938         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
28939         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28940
28941 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
28942
28943         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
28944         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
28945         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
28946         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
28947
28948 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
28949
28950         [BZ #14117]
28951         * sysdeps/i386/fpu/bits/fenv.h: Removed.
28952         * sysdeps/i386/fpu/Implies: New file.
28953         * sysdeps/x86_64/fpu/Implies: Likewise.
28954         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
28955         * sysdeps/x86/fpu/bits/fenv.h: This.
28956
28957         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
28958         __SSE_MATH__.
28959
28960 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
28961
28962         [BZ #14134]
28963         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
28964         character 0xffff that matches the last element of the
28965         conversion table.
28966
28967 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28968
28969         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
28970         fmodl commit.
28971
28972 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28973
28974         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
28975         values higher than 25.6283.
28976
28977 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28978
28979         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
28980         subnormal exponent extraction and add some __builtin_expect.
28981         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
28982         Fix for subnormal mantissa calculation.
28983
28984 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
28985
28986         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
28987         cpu2 is -1 and errno is not ENOSYS.
28988
28989 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
28990
28991         [BZ #14117]
28992         * sysdeps/i386/i486/bits/string.h: Renamed to ...
28993         * sysdeps/x86/bits/string.h: This.
28994         * sysdeps/x86_64/bits/string.h: Removed.
28995
28996         * sysdeps/i386/i486/bits/string.h: Define inline functions only
28997         if not compiling for x86-64, but compiling for >= i486.
28998
28999         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
29000         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
29001
29002         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
29003         New macro from Linux kernel 3.4.0.
29004         (FP_XSTATE_MAGIC2): Likewise.
29005         (FP_XSTATE_MAGIC2_SIZE): Likewise.
29006         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
29007         (struct _fpx_sw_bytes): New struct.
29008         (struct _xsave_hdr): Likewise.
29009         (struct _ymmh_state): Likewise.
29010         (struct _xstate): Likewise.
29011
29012         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
29013         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
29014         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
29015         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
29016         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
29017         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
29018
29019         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
29020         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
29021         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
29022         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
29023         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
29024         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
29025
29026 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
29027
29028         [BZ #13743]
29029         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
29030         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
29031         (sysdep_headers): Include sys/platform/ppc.h.
29032         * sysdeps/powerpc/test-gettimebase.c: Test for
29033         __ppc_get_timebase() to catch future ISA opcode/insn changes.
29034         * manual/Makefile (appendices): Include platform.texi.
29035         * manual/contrib.texi (Contributors): Update @node pointers.
29036         * manual/maint.texi (Maintenance): Likewise.
29037         (Platform): New node.
29038         * manual/platform.texi: New file.  Document the new features.
29039
29040 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
29041             Jakub Jelinek  <jakub@redhat.com>
29042
29043         [BZ #14188]
29044         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
29045         where __builtin_expect is unavailable.
29046
29047 2012-06-03  David S. Miller  <davem@davemloft.net>
29048
29049         * stdlib/longlong.h: Updated from GCC.
29050
29051 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
29052
29053         [BZ #14042]
29054         * sysdeps/powerpc/powerpc32/mcount.c: New file.
29055         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
29056         __mcount_internal.
29057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
29058         (GLIBC_2.16): Likewise.
29059
29060 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
29061
29062         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
29063
29064 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
29065
29066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
29067         (default-abi): New variable.
29068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
29069         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
29070         variable.
29071         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
29072         Likewise.
29073         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
29074         Likewise.
29075         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
29076         Likewise.
29077
29078         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
29079         definition.  Document in comment.
29080
29081 2012-06-01  David S. Miller  <davem@davemloft.net>
29082
29083         * stdlib/longlong.h: Updated from GCC.
29084
29085 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
29086
29087         [BZ #14117]
29088         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
29089         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
29090         sys/debugreg.h sys/io.h here.
29091         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
29092         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
29093         sys/io.h.
29094         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
29095         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
29096         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
29097         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
29098         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
29099         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
29100
29101         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
29102         Define only if __x86_64__ is defined.
29103
29104 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
29105
29106         [BZ #14048]
29107         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
29108         Use int64_t for variable i.
29109         * math/libm-test.inc (fmod_test): Add more tests.
29110
29111         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
29112         z computation is not scheduled after fetestexcept.
29113         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
29114         Use math_force_eval instead of asm to ensure calculation scheduled
29115         before exception test.
29116         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
29117         Ensure a1 + u.d computation is not scheduled after fetestexcept.
29118
29119 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
29120
29121         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
29122         computation is not scheduled after fetestexcept.
29123
29124 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
29125
29126         [BZ #14117]
29127         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
29128         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
29129
29130 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29131
29132         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
29133         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
29134
29135 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
29136
29137         [BZ #14117]
29138         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
29139         <bits/wordsize.h>.
29140         (__WCHAR_MIN): Support __WORDSIZE == 64.
29141         (__WCHAR_MAX): Likewise.
29142
29143         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
29144         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
29145
29146         [BZ #14183]
29147         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
29148         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
29149
29150         [BZ #14117]
29151         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
29152         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
29153
29154         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
29155         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
29156
29157         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
29158         Defined to 1 if __x86_64__ isn't defined.
29159         (_STAT_VER_LINUX_OLD): New.
29160         (st_atime): Remove duplicate.
29161         (st_mtime): Likewise.
29162         (st_ctime): Likewise.
29163
29164 2012-05-31  David S. Miller  <davem@davemloft.net>
29165
29166         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
29167         entries.
29168
29169 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
29170
29171         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
29172         gen-libm-test.pl.
29173
29174         [BZ #14132]
29175         * elf/dl-reloc.c: Include <_itoa.h>.
29176         (_dl_reloc_bad_type): Remove use of INTUSE.
29177         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
29178         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
29179         * stdio-common/psiginfo.c (psiginfo): Likewise.
29180         * stdio-common/psignal.c (psignal): Likewise.
29181         * string/strsignal.c (strsignal): Likewise.
29182         * include/signal.h (_sys_siglist): Declare hidden proto.
29183         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
29184         INTVARDEF with libc_hidden_data_def.
29185         * stdio-common/itoa-udigits.c: Likewise.
29186         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
29187         (_itoa_lower_digits_internal): Remove declaration.
29188         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
29189         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
29190         (_sys_sigabbrev_internal): Remove aliases.
29191         (_sys_siglist): Define hidden alias.
29192
29193 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
29194
29195         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29196         bits/sysctl.h.
29197
29198 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
29199
29200         [BZ #14117]
29201         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
29202         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
29203
29204         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
29205         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
29206         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
29207         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
29208         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
29209         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
29210
29211         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
29212         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
29213         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
29214
29215         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
29216         with __addr.
29217         (insw): Likewise.
29218         (insl): Likewise.
29219         (outsb): Likewise.
29220         (outsw): Likewise.
29221         (outsl): Likewise.
29222
29223         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
29224         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
29225         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
29226
29227         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
29228         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
29229         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
29230         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
29231         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
29232         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
29233
29234         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
29235         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
29236
29237         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
29238         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
29239
29240         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
29241         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
29242         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
29243
29244         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
29245         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
29246         to ...
29247         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
29248
29249         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
29250         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
29251         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
29252
29253         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
29254         for x86-64.
29255         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
29256
29257 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
29258
29259         * math/math.h (M_El): Use two more decimal places.
29260         (M_LOG2El): Likewise.
29261         (M_LOG10El): Likewise.
29262         (M_LN2l): Likewise.
29263         (M_LN10l): Likewise.
29264         (M_PIl): Likewise.
29265         (M_PI_2l): Likewise.
29266         (M_PI_4l): Likewise.
29267         (M_1_PIl): Likewise.
29268         (M_2_PIl): Likewise.
29269         (M_2_SQRTPIl): Likewise.
29270         (M_SQRT2l): Likewise.
29271         (M_SQRT1_2l): Likewise.
29272
29273 2012-05-31  David S. Miller  <davem@davemloft.net>
29274
29275         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
29276         values between float registers.
29277         * sysdeps/sparc/sparc64/memset.S: Likewise.
29278         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
29279
29280 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
29281
29282         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
29283         -D_FORTIFY_SOURCE=1.
29284         (CPPFLAGS-tst-longjmp_chk.c): Define.
29285         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
29286         (CPPFLAGS-tst-longjmp_chk2.c): Define.
29287         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
29288         CFLAGS-tst-wchar-h.c.
29289
29290 2012-05-31  Marek Polacek  <polacek@redhat.com>
29291
29292         [BZ #14132]
29293         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
29294         __endmntent_internal): Remove declaration.
29295         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
29296         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
29297         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
29298
29299 2012-05-30  David S. Miller  <davem@davemloft.net>
29300
29301         * sysdeps/sparc/sparc32/soft-fp/q_util.c
29302         (___Q_simulate_exceptions): Use real FP ops rather than writing
29303         into the %fsr.
29304         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
29305         Likewise.
29306
29307 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
29308
29309         [BZ #14117]
29310         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
29311         * sysdeps/x86/bits/xtitypes.h: This.
29312
29313         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
29314         * sysdeps/x86/bits/wordsize.h: This.
29315
29316         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
29317         * sysdeps/x86/bits/huge_vall.h: This.
29318
29319         * sysdeps/i386/bits/select.h: Removed.
29320         * sysdeps/x86_64/bits/select.h: Renamed to ...
29321         * sysdeps/x86/bits/select.h: This.
29322
29323         * sysdeps/i386/bits/setjmp.h: Removed.
29324         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
29325         * sysdeps/x86/bits/setjmp.h: This.
29326
29327         * sysdeps/i386/bits/mathdef.h: Removed.
29328         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
29329         * sysdeps/x86/bits/mathdef.h: This.
29330
29331 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
29332
29333         [BZ #14132]
29334         * include/sys/socket.h (__connect_internal)
29335         (__libc_sa_len_internal): Remove declaration.
29336         (__connect, __libc_sa_len): Declare hidden_proto.
29337         (SA_LEN): Remove use of INTUSE.
29338         * socket/connect.c: Add libc_hidden_def.
29339         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
29340         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
29341         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
29342         alias.
29343         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29344         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
29345         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
29346         of adding _internal alias.
29347
29348 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
29349
29350         [BZ #14117]
29351         * sysdeps/i386/bits/link.h: Removed.
29352         * sysdeps/i386/bits/linkmap.h: Likewise.
29353         * sysdeps/x86_64/bits/link.h: Renamed to ...
29354         * sysdeps/x86/bits/link.h: This.
29355         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
29356         * sysdeps/x86/bits/linkmap.h: This.
29357
29358         * sysdeps/i386/bits/endian.h: Removed.
29359         * sysdeps/x86_64/bits/endian.h: Renamed to ...
29360         * sysdeps/x86/bits/endian.h: This.
29361
29362         * sysdeps/i386/bits/byteswap.h: Removed.
29363         * sysdeps/i386/bits/byteswap-16.h: Likewise.
29364         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
29365         * sysdeps/x86/bits/byteswap.h: This.
29366         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
29367         * sysdeps/x86/bits/byteswap-16.h: This.
29368         * sysdeps/i386/Implies: Add x86.
29369         * sysdeps/x86_64/Implies: Likewise.
29370
29371 2012-05-30  David S. Miller  <davem@davemloft.net>
29372
29373         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
29374         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
29375         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
29376         (FP_TRAPPING_EXCEPTIONS): Define.
29377         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
29378         (FP_TRAPPING_EXCEPTIONS): Define.
29379         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
29380         subnormals only when inexact has been signalled or underflow
29381         exceptions are enabled.
29382         (_FP_PACK_CANONICAL): Likewise.
29383
29384 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
29385
29386         [BZ #14183]
29387         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
29388         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
29389
29390 2012-05-30  Richard Henderson  <rth@twiddle.net>
29391
29392         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
29393         with #ifndef NOT_IN_libc.
29394
29395         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
29396         marked to avoid plt entry.
29397
29398 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
29399
29400         [BZ #14112]
29401         * Makeconfig (default-abi): New macro.
29402         (abi-includes): Likewise.
29403         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
29404         $(abi-$(default-abi)-lib-soname) for soname if defined.
29405         ($(common-objpfx)gnu/lib-names.stmp): Generate from
29406         abi-variants.
29407         * Makefile (installed-stubs): Likewise.
29408         * include/stubs-biarch.h: Removed.
29409         * scripts/lib-names.awk: Only handle one library at a time.
29410         * scripts/soversions.awk: Remove WORDSIZE support.
29411         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
29412         entries.
29413         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
29414         Removed.
29415         (syscall-list-default-condition): Likewise.
29416         (syscall-list-default-condition): Likewise.
29417         (syscall-list-includes): Likewise.
29418         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
29419         syscall-list-* with abi-*.  Handle undefined abi-variants.
29420         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
29421         * sysdeps/unix/sysv/linux/i386/Implies: New file.
29422         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
29423         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
29424         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
29425         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
29426         Removed.
29427         (syscall-list-32-options): Likewise.
29428         (syscall-list-32-condition): Likewise.
29429         (syscall-list-64-options): Likewise.
29430         (syscall-list-64-condition): Likewise.
29431         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
29432         macro.
29433         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
29434         Renamed to ...
29435         (abi-*): This.
29436         (abi-64-ld-soname): New macro.
29437         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
29438         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
29439         Renamed to ...
29440         (abi-*): This.
29441         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
29442         * sysdeps/x86_64/x32/shlib-versions: Likewise.
29443
29444 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
29445
29446         * sysdeps/unix/sysv/linux/kernel-features.h
29447         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
29448         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
29449         include <kernel-features.h>.
29450         [!__NR_ftruncate64]: Remove conditional code.
29451         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29452         [__NR_ftruncate64]: Make code unconditional.
29453         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29454         * sysdeps/unix/sysv/linux/truncate64.c: Do not
29455         include <kernel-features.h>.
29456         [!__NR_ftruncate64]: Remove conditional code.
29457         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29458         [__NR_ftruncate64]: Make code unconditional.
29459         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
29461         include <kernel-features.h>.
29462         [!__NR_ftruncate64]: Remove conditional code.
29463         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29464         [__NR_ftruncate64]: Make code unconditional.
29465         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
29467         include <kernel-features.h>.
29468         [!__NR_ftruncate64]: Remove conditional code.
29469         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29470         [__NR_ftruncate64]: Make code unconditional.
29471         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
29472
29473         * configure.in (libc_cv_fpie): Weaken to a compile test using
29474         LIBC_TRY_CC_OPTION.
29475         * configure: Regenerated.
29476
29477 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29478
29479         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
29480         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
29481         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
29482         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29483         Refreshed.
29484         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
29485         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
29486         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
29487         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
29488         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
29489         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29490         Refreshed.
29491
29492 2012-05-27  David S. Miller  <davem@davemloft.net>
29493
29494         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
29495         (___Q_zero): New.
29496         (__Q_simulate_exceptions): Return void.  Change to simulate
29497         exceptions by writing into the %fsr.
29498         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
29499         (__Qp_handle_exceptions): Likewise.
29500         (numbers): Delete.
29501         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
29502         __Qp_handle_exceptions.
29503         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
29504         __Qp_handle_exceptions.
29505         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
29506         as unused and give dummy FP_RND_NEAREST initializer.
29507         (FP_INHIBIT_RESULTS): Define.
29508         (___Q_simulate_exceptions): Update declaration.
29509         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
29510         formatting.
29511         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
29512         as unused and give dummy FP_RND_NEAREST initializer.
29513         (__Qp_handle_exceptions): Update declaration.
29514         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
29515         formatting.
29516
29517 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
29518
29519         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
29520         the temporary FPU control word.
29521         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
29522         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
29523         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
29524         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
29525         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
29526         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
29527         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
29528         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
29529         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
29530         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
29531         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
29532
29533 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29534
29535         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
29536         fields.
29537
29538 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
29539
29540         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
29541         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
29542         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
29543         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
29544         Likewise.
29545         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
29546         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
29547         Likewise.
29548
29549 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
29550
29551         * po/h.po: Update from translation team.
29552
29553 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
29554
29555         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
29556
29557         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
29558         handling of denormals.
29559         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
29560         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
29561         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
29562         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
29563         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
29564         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
29565         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
29566         Likewise.
29567
29568 2012-05-26  Marek Polacek  <polacek@redhat.com>
29569
29570         [BZ #14152]
29571         * math/libm-test.inc (fma_test): Don't always expect underflow
29572         exception.
29573
29574 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29575
29576         [BZ #12416]
29577         * elf/tst-execstack.c: Include stackinfo.h.
29578         (do_test): Adjust test case to ensure that pthread_getattr_np
29579         behaviour remains the same after marking stack executable.
29580
29581 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
29582
29583         * sysdeps/unix/sysv/linux/kernel-features.h
29584         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
29585         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
29586         kernel-features.h.
29587         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
29588         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
29589         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
29590         kernel-features.h.
29591         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
29592         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
29593
29594 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
29595
29596         * configure.in: Define the default includes to being none.
29597         * configure: Regenerated.
29598
29599 2012-05-25  Roland McGrath  <roland@hack.frob.com>
29600
29601         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
29602         * sysdeps/x86_64/setjmp.S: Likewise.
29603         * sysdeps/i386/bsd-setjmp.S: Likewise.
29604         * sysdeps/i386/bsd-_setjmp.S: Likewise.
29605         * sysdeps/i386/setjmp.S: Likewise.
29606         * sysdeps/i386/__longjmp.S: Likewise.
29607         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
29608         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
29609
29610         * include/stap-probe.h: New file.
29611         * configure.in: Handle --enable-systemtap.
29612         * configure: Regenerated.
29613         * config.h.in (USE_STAP_PROBE): New #undef.
29614         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
29615         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
29616         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
29617
29618 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
29619
29620         [BZ #13717]
29621         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
29622         to 2.4.0 where earlier.
29623         * sysdeps/unix/sysv/linux/configure: Regenerated.
29624         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
29625         <kernel-features.h>.
29626         [__ASSUME_32BITUIDS]: Make code unconditional.
29627         [!__ASSUME_32BITUIDS]: Remove conditional code.
29628         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
29629         <kernel-features.h>.
29630         [__ASSUME_32BITUIDS]: Make code unconditional.
29631         [!__ASSUME_32BITUIDS]: Remove conditional code.
29632         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
29633         [__ASSUME_32BITUIDS]: Make code unconditional.
29634         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
29635         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
29636         <kernel-features.h>.
29637         [__ASSUME_32BITUIDS]: Make code unconditional.
29638         [!__ASSUME_32BITUIDS]: Remove conditional code.
29639         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
29640         <kernel-features.h>.
29641         [__ASSUME_32BITUIDS]: Make code unconditional.
29642         [!__ASSUME_32BITUIDS]: Remove conditional code.
29643         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
29644         <kernel-features.h>.
29645         [__ASSUME_32BITUIDS]: Make code unconditional.
29646         [!__ASSUME_32BITUIDS]: Remove conditional code.
29647         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
29648         <kernel-features.h>.
29649         [__ASSUME_32BITUIDS]: Make code unconditional.
29650         [!__ASSUME_32BITUIDS]: Remove conditional code.
29651         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
29652         <kernel-features.h>.
29653         [__ASSUME_32BITUIDS]: Make code unconditional.
29654         [!__ASSUME_32BITUIDS]: Remove conditional code.
29655         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
29656         <kernel-features.h>.
29657         [__ASSUME_32BITUIDS]: Make code unconditional.
29658         [!__ASSUME_32BITUIDS]: Remove conditional code.
29659         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
29660         <kernel-features.h>.
29661         [__ASSUME_32BITUIDS]: Make code unconditional.
29662         [!__ASSUME_32BITUIDS]: Remove conditional code.
29663         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
29664         <kernel-features.h>.
29665         [__ASSUME_32BITUIDS]: Make code unconditional.
29666         [!__ASSUME_32BITUIDS]: Remove conditional code.
29667         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
29668         <kernel-features.h>.
29669         [__ASSUME_32BITUIDS]: Make code unconditional.
29670         [!__ASSUME_32BITUIDS]: Remove conditional code.
29671         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
29672         <kernel-features.h>.
29673         [__ASSUME_32BITUIDS]: Make code unconditional.
29674         [!__ASSUME_32BITUIDS]: Remove conditional code.
29675         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
29676         <kernel-features.h>.
29677         [__NR_setresgid] (__setresgid): Do not declare.
29678         [__ASSUME_32BITUIDS]: Make code unconditional.
29679         [!__ASSUME_32BITUIDS]: Remove conditional code.
29680         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
29681         <kernel-features.h>.
29682         [__NR_setresuid] (__setresuid): Do not declare.
29683         [__ASSUME_32BITUIDS]: Make code unconditional.
29684         [!__ASSUME_32BITUIDS]: Remove conditional code.
29685         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
29686         <kernel-features.h>.
29687         [__ASSUME_32BITUIDS]: Make code unconditional.
29688         [!__ASSUME_32BITUIDS]: Remove conditional code.
29689         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
29690         <kernel-features.h>.
29691         [__ASSUME_32BITUIDS]: Make code unconditional.
29692         [!__ASSUME_32BITUIDS]: Remove conditional code.
29693         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
29694         <kernel-features.h>.
29695         [__ASSUME_32BITUIDS]: Make code unconditional.
29696         [!__ASSUME_32BITUIDS]: Remove conditional code.
29697         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
29698         <kernel-features.h>.
29699         [__ASSUME_32BITUIDS]: Make code unconditional.
29700         [!__ASSUME_32BITUIDS]: Remove conditional code.
29701         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
29702         <kernel-features.h>.
29703         [__ASSUME_32BITUIDS]: Make code unconditional.
29704         [!__ASSUME_32BITUIDS]: Remove conditional code.
29705         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
29706         <kernel-features.h>.
29707         [__ASSUME_32BITUIDS]: Make code unconditional.
29708         [!__ASSUME_32BITUIDS]: Remove conditional code.
29709         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
29710         <kernel-features.h>.
29711         [__ASSUME_32BITUIDS]: Make code unconditional.
29712         [!__ASSUME_32BITUIDS]: Remove conditional code.
29713         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
29714         <kernel-features.h>.
29715         [__ASSUME_32BITUIDS]: Make code unconditional.
29716         [!__ASSUME_32BITUIDS]: Remove conditional code.
29717         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
29718         <kernel-features.h>.
29719         [__ASSUME_32BITUIDS]: Make code unconditional.
29720         [!__ASSUME_32BITUIDS]: Remove conditional code.
29721         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
29722         <kernel-features.h>.
29723         [__ASSUME_32BITUIDS]: Make code unconditional.
29724         [!__ASSUME_32BITUIDS]: Remove conditional code.
29725         * sysdeps/unix/sysv/linux/kernel-features.h
29726         (__ASSUME_SETRESUID_SYSCALL): Remove.
29727         (__ASSUME_SETRESGID_SYSCALL): Likewise.
29728         (__ASSUME_32BITUIDS): Likewise.
29729         (__ASSUME_LDT_WORKS): Likewise.
29730         (__ASSUME_O_DIRECTORY): Likewise.
29731         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
29732         architecture but not kernel version.
29733         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
29734         (__ASSUME_MMAP2_SYSCALL): Likewise.
29735         (__ASSUME_STAT64_SYSCALL): Likewise.
29736         (__ASSUME_IPC64): Likewise.
29737         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
29738         <kernel-features.h>.
29739         [__ASSUME_32BITUIDS]: Make code unconditional.
29740         [!__ASSUME_32BITUIDS]: Remove conditional code.
29741         * sysdeps/unix/sysv/linux/opendir.c: Do not include
29742         <kernel-features.h>.
29743         [__ASSUME_O_DIRECTORY]: Make code unconditional.
29744         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
29745         132096]: Remove conditional code.
29746         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
29747         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
29748         <kernel-features.h>.
29749         [__ASSUME_32BITUIDS]: Make code unconditional.
29750         [!__ASSUME_32BITUIDS]: Remove conditional code.
29751         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
29752         <kernel-features.h>.
29753         [__ASSUME_32BITUIDS]: Make code unconditional.
29754         [!__ASSUME_32BITUIDS]: Remove conditional code.
29755         * sysdeps/unix/sysv/linux/setegid.c: Do not include
29756         <kernel-features.h>.
29757         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
29758         unconditional.
29759         (__setresgid): Do not declare.
29760         [__ASSUME_32BITUIDS]: Make code unconditional.
29761         [!__ASSUME_32BITUIDS]: Remove conditional code.
29762         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
29763         <kernel-features.h>.
29764         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
29765         unconditional.
29766         (__setresuid): Do not declare.
29767         [__ASSUME_32BITUIDS]: Make code unconditional.
29768         [!__ASSUME_32BITUIDS]: Remove conditional code.
29769         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
29770         <kernel-features.h>.
29771         [__ASSUME_32BITUIDS]: Make code unconditional.
29772         [!__ASSUME_32BITUIDS]: Remove conditional code.
29773         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
29774         <kernel-features.h>.
29775         [__ASSUME_32BITUIDS]: Make code unconditional.
29776         [!__ASSUME_32BITUIDS]: Remove conditional code.
29777
29778 2012-05-25  Richard Henderson  <rth@twiddle.net>
29779
29780         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
29781         dl_hwcap to ifunc resolver.
29782         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
29783         elf_ifunc_invoke.
29784         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
29785         dl_hwcap to ifunc resolver.
29786         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
29787
29788 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
29789
29790         [BZ #14153]
29791         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
29792         for |x| <= 2**-26, not 2**-57.
29793         * math/libm-test.inc (acos_test): Do not allow spurious underflow
29794         exception.
29795
29796 2012-05-24  Jeff Law  <law@redhat.com>
29797
29798         * stdio-common/Makefile (tests): Add bug25.
29799         * stdio-common/bug25.c: New test.
29800
29801 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
29802
29803         [BZ #13576]
29804         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
29805         multiple of MALLOC_ALIGNMENT in size.
29806         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
29807
29808 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
29809
29810         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
29811         Require >= 256.
29812         (FILENAME_MAX): Use macro-int-constant.
29813         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
29814         (_IOFBF): Use macro-int-constant.
29815         (_IOLBF): Likewise.
29816         (_IONBF): Likewise.
29817         (SEEK_CUR): Likewise.
29818         (SEEK_END): Likewise.
29819         (SEEK_SET): Likewise.
29820         (TMP_MAX): Likewise.
29821         (EOF): Use macro-int-constant.  Require < 0.
29822         (NULL): Use macro-constant.  Require == 0.
29823         (stdin): Require type to be FILE *.
29824         (stdout): Likewise.
29825         (stderr): Likewise.
29826         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
29827         macro-int-constant.
29828         (EXIT_SUCCESS): Likewise.
29829         (NULL): Use macro-constant.  Require == 0.
29830         (RAND_MAX): Use macro-int-constant.
29831         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
29832         [C99-based standards] (strtof): Require function.
29833         [C99-based standards] (strtold): Likewise.
29834         [C99-based standards] (strtoll): Likewise.
29835         [C99-based standards] (strtoull): Likewise.
29836         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
29837         [ISO || ISO99 || ISO11] (limits.h): Likewise.
29838         [ISO || ISO99 || ISO11] (math.h): Likewise.
29839         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
29840         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
29841         [ISO || ISO99 || ISO11] (*_t): Do not allow.
29842
29843 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
29844
29845         [BZ #14132]
29846         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
29847         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
29848         * intl/dgettext.c (DCGETTEXT): Likewise.
29849         * intl/gettext.c (DCGETTEXT): Likewise.
29850         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
29851         * posix/regex_internal.h (gettext): Likewise.
29852         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
29853         Remove declaration.
29854         * include/argz.h (__argz_count_internal)
29855         (__argz_stringify_internal): Remove declaration.
29856         (__argz_count, __argz_stringify): Declare hidden proto.
29857         * intl/dcgettext.c: Remove use of INTDEF.
29858         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
29859         * string/argz-stringify.c: Likewise.
29860         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
29861         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
29862         Declare hidden proto.
29863         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
29864         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
29865         Declare hidden proto.
29866         * include/stdio.h (__asprintf_internal): Don't declare.
29867         (__asprintf): Don't define as macro.  Declare hidden proto.
29868         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
29869         (__fsetlocking): Declare hidden proto.
29870         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
29871         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
29872         hidden proto.
29873         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
29874         (_IO_setlinebuf): Remove use of INTUSE.
29875         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
29876         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
29877         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
29878         Remove declaration.
29879         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
29880         (_IO_do_flush): Remove use of INTUSE.
29881         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
29882         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
29883         (_IO_adjust_column, _IO_least_wmarker)
29884         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
29885         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
29886         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
29887         (_IO_default_doallocate, _IO_wdefault_doallocate)
29888         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
29889         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
29890         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
29891         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
29892         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
29893         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
29894         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
29895         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
29896         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
29897         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
29898         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
29899         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
29900         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
29901         proto.
29902         (_IO_flush_all_internal, _IO_adjust_column_internal)
29903         (_IO_default_uflow_internal, _IO_default_finish_internal)
29904         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
29905         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
29906         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
29907         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
29908         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
29909         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
29910         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
29911         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
29912         (_IO_file_close_internal, _IO_file_close_it_internal)
29913         (_IO_file_underflow_internal, _IO_file_overflow_internal)
29914         (_IO_file_init_internal, _IO_file_attach_internal)
29915         (_IO_file_fopen_internal, _IO_file_read_internal)
29916         (_IO_file_sync_internal, _IO_file_seek_internal)
29917         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
29918         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
29919         (_IO_str_underflow_internal, _IO_str_overflow_internal)
29920         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
29921         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
29922         (_IO_list_all_internal, _IO_link_in_internal)
29923         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
29924         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
29925         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
29926         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
29927         (_IO_do_write_internal, _IO_padn_internal)
29928         (_IO_getline_info_internal, _IO_getline_internal)
29929         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
29930         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
29931         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
29932         (_IO_vfscanf_internal, _IO_vfprintf_internal)
29933         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
29934         (_IO_init_internal, _IO_un_link_internal): Don't declare.
29935         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
29936         with libc_hidden_ver, remove use of INTUSE.
29937         * libio/genops.c: Likewise.
29938         * libio/freopen.c: Likewise.
29939         * libio/freopen64.c: Likewise.
29940         * libio/iofclose.c: Likewise.
29941         * libio/iofdopen.c: Likewise.
29942         * libio/iofflush.c: Likewise.
29943         * libio/iofflush_u.c: Likewise.
29944         * libio/iofgets.c: Likewise.
29945         * libio/iofgets_u.c: Likewise.
29946         * libio/iofopen.c: Likewise.
29947         * libio/iofopncook.c: Likewise.
29948         * libio/iofread.c: Likewise.
29949         * libio/iofread_u.c: Likewise.
29950         * libio/ioftell.c: Likewise.
29951         * libio/iofwrite.c: Likewise.
29952         * libio/iogetline.c: Likewise.
29953         * libio/iogets.c: Likewise.
29954         * libio/iogetwline.c: Likewise.
29955         * libio/iopadn.c: Likewise.
29956         * libio/iopopen.c: Likewise.
29957         * libio/ioseekoff.c: Likewise.
29958         * libio/ioseekpos.c: Likewise.
29959         * libio/iosetbuffer.c: Likewise.
29960         * libio/iosetvbuf.c: Likewise.
29961         * libio/ioungetc.c: Likewise.
29962         * libio/ioungetwc.c: Likewise.
29963         * libio/iovdprintf.c: Likewise.
29964         * libio/iovsprintf.c: Likewise.
29965         * libio/iovsscanf.c: Likewise.
29966         * libio/memstream.c: Likewise.
29967         * libio/obprintf.c: Likewise.
29968         * libio/oldfileops.c: Likewise.
29969         * libio/oldiofclose.c: Likewise.
29970         * libio/oldiofdopen.c: Likewise.
29971         * libio/oldiofopen.c: Likewise.
29972         * libio/oldiopopen.c: Likewise.
29973         * libio/oldstdfiles.c: Likewise.
29974         * libio/putc.c: Likewise.
29975         * libio/setbuf.c: Likewise.
29976         * libio/setlinebuf.c: Likewise.
29977         * libio/stdfiles.c: Likewise.
29978         * libio/strops.c: Likewise.
29979         * libio/vasprintf.c: Likewise.
29980         * libio/vscanf.c: Likewise.
29981         * libio/vsnprintf.c: Likewise.
29982         * libio/vswprintf.c: Likewise.
29983         * libio/wfiledoalloc.c: Likewise.
29984         * libio/wfileops.c: Likewise.
29985         * libio/wgenops.c: Likewise.
29986         * libio/wmemstream.c: Likewise.
29987         * libio/wstrops.c: Likewise.
29988         * libio/__fpurge.c: Likewise.
29989         * libio/__fsetlocking.c: Likewise.
29990         * assert/assert.c: Likewise.
29991         * debug/fgets_chk.c: Likewise.
29992         * debug/fgets_u_chk.c: Likewise.
29993         * debug/fread_chk.c: Likewise.
29994         * debug/fread_u_chk.c: Likewise.
29995         * debug/gets_chk.c: Likewise.
29996         * debug/obprintf_chk.c: Likewise.
29997         * debug/vasprintf_chk.c: Likewise.
29998         * debug/vdprintf_chk.c: Likewise.
29999         * debug/vsnprintf_chk.c: Likewise.
30000         * debug/vsprintf_chk.c: Likewise.
30001         * malloc/mtrace.c: Likewise.
30002         * misc/error.c: Likewise.
30003         * misc/syslog.c: Likewise.
30004         * stdio-common/asprintf.c: Likewise.
30005         * stdio-common/fxprintf.c: Likewise.
30006         * stdio-common/getw.c: Likewise.
30007         * stdio-common/isoc99_fscanf.c: Likewise.
30008         * stdio-common/isoc99_scanf.c: Likewise.
30009         * stdio-common/isoc99_vfscanf.c: Likewise.
30010         * stdio-common/isoc99_vscanf.c: Likewise.
30011         * stdio-common/isoc99_vsscanf.c: Likewise.
30012         * stdio-common/printf-prs.c: Likewise.
30013         * stdio-common/printf_fp.c: Likewise.
30014         * stdio-common/printf_fphex.c: Likewise.
30015         * stdio-common/printf_size.c: Likewise.
30016         * stdio-common/putw.c: Likewise.
30017         * stdio-common/scanf.c: Likewise.
30018         * stdio-common/sprintf.c: Likewise.
30019         * stdio-common/tmpfile.c: Likewise.
30020         * stdio-common/vfprintf.c: Likewise.
30021         * stdio-common/vfscanf.c: Likewise.
30022         * stdlib/strfmon_l.c: Likewise.
30023         * sunrpc/openchild.c: Likewise.
30024         * sunrpc/xdr_stdio.c: Likewise.
30025         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
30026         * sysdeps/mach/hurd/tmpfile.c: Likewise.
30027
30028 2012-05-24  Roland McGrath  <roland@hack.frob.com>
30029
30030         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
30031
30032         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
30033         in the third column, to generate for the shared library an IFUNC
30034         that uses _dl_vdso_vsym.
30035         * Makerules (COMPILE.c, compile-stdin.c): New variables.
30036         * Makeconfig (object-suffixes-noshared): New variable.
30037
30038         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
30039         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
30040         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
30041         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
30042
30043         [BZ #14132]
30044         * include/sys/time.h (__gettimeofday): Remove macro.
30045         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
30046         * time/gettimeofday.c (__gettimeofday): Remove #undef.
30047         Remove INTDEF.
30048         (__gettimeofday): Add libc_hidden_def.
30049         (gettimeofday): Add libc_hidden_weak.
30050         * sysdeps/mach/gettimeofday.c: Likewise.
30051         * sysdeps/posix/gettimeofday.c: Likewise.
30052         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
30053         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
30054         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
30055         (__gettimeofday_internal): Remove strong_alias.
30056         (__gettimeofday): Add libc_hidden_def.
30057         (gettimeofday): Add libc_hidden_weak.
30058         * sysdeps/unix/syscalls.list (gettimeofday):
30059         Remove __gettimeofday_internal alias.
30060
30061 2012-05-24  Daniel Jacobowitz  <drow@false.org>
30062             H.J. Lu  <hongjiu.lu@intel.com>
30063
30064         [BZ #12495]
30065         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
30066         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
30067         (largebin_index_32_big): New.
30068         (largebin_index): Use it for 16-byte alignment.
30069         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
30070         correction with front_misalign.
30071
30072 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
30073
30074         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
30075         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
30076         Likewise.
30077         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
30078         Likewise.
30079         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
30080         Likewise.
30081         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
30082         Likewise.
30083         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
30084         Likewise.
30085         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
30086         Likewise.
30087         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
30088         Likewise.
30089         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
30090         Likewise.
30091         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
30092         Likewise.
30093         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
30094         Likewise.
30095         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
30096         Likewise.
30097         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
30098         Likewise.
30099
30100         * scripts/data/c++-types-x32-linux-gnu.data: New file.
30101         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
30102
30103 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
30104
30105         [BZ #10846]
30106         [BZ #14036]
30107         * math/libm-test.inc (exp_test): Add test from bug 14036.
30108         (pow_test): Add test from bug 10846.
30109
30110         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
30111         and other flags.
30112         (special_function): Do not include flags in test name.
30113         (parse_args): Likewise.
30114         * sysdeps/i386/fpu/libm-test-ulps: Update.
30115         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30116         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30117         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30118         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30119
30120         * math/gen-libm-test.pl (%beautify): Add entries for underflow
30121         exceptions.
30122         * math/libm-test.inc ("Philosophy"): Update comment about
30123         exception testing.
30124         (UNDERFLOW_EXCEPTION): New macro.
30125         (UNDERFLOW_EXCEPTION_OK): Likewise.
30126         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
30127         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
30128         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
30129         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
30130         (INVALID_EXCEPTION_OK): Update value.
30131         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
30132         (OVERFLOW_EXCEPTION_OK): Likewise.
30133         (IGNORE_ZERO_INF_SIGN): Likewise.
30134         (test_exceptions): Handle underflow exceptions.
30135         (acos_test): Update for underflow exception expectations.
30136         (cexp_test): Likewise.
30137         (clog_test): Likewise.
30138         (clog10_test): Likewise.
30139         (csqrt_test): Likewise.
30140         (ctan_test): Likewise.
30141         (ctanh_test): Likewise.
30142         (exp_test): Likewise.
30143         (exp10_test): Likewise.
30144         (exp2_test): Likewise.
30145         (expm1_test): Likewise.
30146         (fma_test): Likewise.
30147         (j0_test): Likewise.
30148         (jn_test): Likewise.
30149         (nexttoward_test): Likewise.
30150         (pow_test): Likewise.
30151         (scalbn_test): Likewise.
30152         (scalbln_test): Likewise.
30153         (tan_test): Likewise.
30154         (y1_test): Likewise.
30155         * sysdeps/i386/fpu/libm-test-ulps: Update.
30156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30157
30158 2012-05-23  David S. Miller  <davem@davemloft.net>
30159
30160         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
30161         (__libc_sigaction): Remove unused local variables.
30162
30163 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
30164
30165         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
30166
30167 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
30168
30169         mktime: avoid signed integer overflow
30170         * time/mktime.c (__mktime_internal): Do not mishandle the case
30171         where diff == INT_MIN.
30172
30173         mktime: simplify computation of average
30174         * time/mktime.c (ranged_convert): Use new time_t_avg function
30175         instead of rolling our own (probably-slower) code.
30176
30177         mktime: do not assume signed right shift propagates sign bit
30178         * time/mktime.c (isdst_differ): New static function.
30179         (__mktime_internal): No need to normalize tm_isdst now.
30180         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
30181         tm_isdst values.
30182
30183         mktime: merge another wrapv change from gnulib
30184         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
30185         from some compilers.
30186
30187         mktime: remove incorrect attempt at unusual arithmetics
30188         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
30189         The code didn't really work on such machines anyway.
30190         (TYPE_MINIMUM): Assume two's complement.
30191         (twos_complement_arithmetic): Verify that long_int and time_t
30192         are two's complement (or unsigned, in the latter case).
30193
30194         mktime: check signed shifts on long_int and time_t, too
30195         * time/mktime.c (SHR): Check that shifts work as desired
30196         on the types long_int and time_t too, as SHR is used on
30197         such types.
30198
30199         mktime: do not assume 'long' is wide enough
30200         * time/mktime.c (verify): Move decl up.
30201         (long_int): New type.
30202         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
30203         to remove assumption in the code that 'long' is wide enough to
30204         store year values.  This assumption is not true on x32 and on
30205         some non-glibc platforms.
30206
30207         mktime: merge wrapv change from gnulib
30208         * time/mktime.c (WRAPV): New macro.
30209         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
30210         (guess_time_tm, __mktime_internal): Do not assume that signed
30211         integer overflow wraps around; modern compilers generate code
30212         where this assumption is no longer valid.
30213
30214 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
30215
30216         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
30217         Replace "jmp L(pseudo_end)" with "ret".
30218         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
30219         Likewise.
30220
30221 2012-05-23  Andreas Jaeger  <aj@suse.de>
30222
30223         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
30224         * sysdeps/unix/sysv/linux/poll.c: Remove file.
30225
30226 2012-05-23  Andreas Jaeger  <aj@suse.de>
30227             Maximilian Attems  <max@stro.at>
30228
30229         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
30230         New macros.
30231
30232 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
30233
30234         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
30235         code so that pseudo_end is just ret and the stack pointer is
30236         correct also for static library in error case.
30237
30238 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
30239
30240         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
30241         move to syscalls.list.
30242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
30243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
30244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
30245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
30246
30247         * manual/install.texi (Running make install): Do not mention Linux
30248         kernel version for which pt_chown is not needed.
30249         (Linux): Do not mention problems with nscd with 2.0 kernels.
30250         * INSTALL: Regenerated.
30251
30252 2012-05-23  Andreas Jaeger  <aj@suse.de>
30253
30254         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
30255         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
30256         macro.
30257         * sysdeps/unix/sysv/linux/s390/bits/mman.h
30258         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
30259         * sysdeps/unix/sysv/linux/sh/bits/mman.h
30260         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
30261         * sysdeps/unix/sysv/linux/i386/bits/mman.h
30262         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
30263         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
30264         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
30265         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
30266         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
30267         * sysdeps/unix/sysv/linux/bits/in.h
30268         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
30269
30270 2012-05-22  Roland McGrath  <roland@hack.frob.com>
30271
30272         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
30273         (PREPARE_VERSION): Just use assert instead, it will be elided
30274         under [NDEBUG] anyway.
30275
30276 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
30277
30278         * sysdeps/unix/sysv/linux/Makefile: Include
30279         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
30280         (sysdep_routines): Remove sysctl.
30281         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
30282         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
30283         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
30284         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
30285         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
30286
30287 2012-05-22  Andreas Jaeger  <aj@suse.de>
30288
30289         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
30290         that pseudo_end is just ret and the stack pointer is correct also
30291         for static library in error case.
30292
30293 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
30294
30295         [BZ #14122]
30296         * nss/nsswitch.c (defconfig_entries): New variable.
30297         (__nss_database_lookup): Don't leak defconfig entries.
30298         (nss_parse_service_list): Don't leak on error paths.
30299         (free_database_entries): New function.
30300         (free_defconfig): New function.
30301         (free_mem): Move common code to free_database_entries.
30302
30303 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
30304
30305         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
30306         Add arch_prctl.
30307         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
30308
30309         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
30310         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
30311         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
30312         New macro.
30313         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
30314         (INTERNAL_SYSCALL_TYPES): Likewise.
30315         (LOAD_ARGS_TYPES_[1-6]): Likewise.
30316         (LOAD_REGS_TYPES_[1-6]): Likewise.
30317         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
30318         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
30319
30320 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30321
30322         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
30323         copysignl for GLIBC_2_0.
30324         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
30325         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
30326         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
30327         logbl for GLIBC_2_0.
30328         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
30329         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
30330
30331 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
30332
30333         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
30334         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
30335
30336         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
30337         Use "neg %eax".
30338
30339         * time/mktime.c: Update copyright years.
30340
30341 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30342
30343         mktime: merge comment-quoting-style change from gnulib
30344         * time/mktime.c: Quote 'like this' in comments.
30345         The GNU coding standards suggest that we no longer quote `like this',
30346         as "`" and "'" are typically rendered asymmetrically nowadays.
30347         The typical gnulib style is to quote 'like this' when quoting
30348         code, and "like this" when quoting English.
30349
30350         * time/mktime.c (compile-command): Add "-I.".
30351
30352         mktime: merge mktime-internal.h change from gnulib
30353         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
30354
30355         mktime: merge time_r change from gnulib
30356         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
30357
30358         mktime: merge DEBUG change from gnulib
30359         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
30360         case system <time.h> has a #define.
30361
30362         mktime: merge <sys/types.h> change from gnulib
30363         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
30364         since <time.t> is now guaranteed to define time_t.
30365
30366         mktime: merge HAVE_CONFIG_H change from gnulib
30367         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
30368
30369 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
30370
30371         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
30372         Use "neg %eax".
30373
30374         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
30375         __rlim_t cast.
30376         (struct rusage): Use anonymous union to pad each field to
30377         __syscall_slong_t.
30378
30379 2012-05-21  David S. Miller  <davem@davemloft.net>
30380
30381         * Makefules (o-iterator): Remove .s cases.
30382         (compile-command.s): Delete.
30383         (COMPILE.s): Delete.
30384         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
30385
30386 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
30387
30388         * configure.in (libc_cv_predef_stack_protector): Only consider
30389         "foobar" and "__stack_chk_fail" lines in libc_undefs.
30390         * configure: Regenerated.
30391
30392 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
30393
30394         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
30395         New macro.  Use R*LP on int and pointer.
30396         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
30397         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
30398         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
30399         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
30400
30401         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
30402         [__WORDSIZE_TIME64_COMPAT32] instead of
30403         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
30404         (struct utmp): Likewise.
30405         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
30406         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
30407         Renamed to ...
30408         (__WORDSIZE_TIME64_COMPAT32): This.
30409         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
30410         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
30411         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
30412         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
30413         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
30414         (__WORDSIZE_TIME64_COMPAT32): New macro.
30415
30416 2012-05-21  Andreas Jaeger  <aj@suse.de>
30417
30418         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
30419         only if [SHARED]. Add prototype for __wcschr_ia32.
30420
30421 2012-05-21  Roland McGrath  <roland@hack.frob.com>
30422
30423         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
30424         of %rbp unmolested in the jmp_buf while mangling the low bits.
30425         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
30426         unmolested high bits of %rbp while demangling the low bits.
30427         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
30428
30429 2012-05-21  Andreas Jaeger  <aj@suse.de>
30430
30431         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
30432         * sunrpc/svc_simple.c: Use it for registerrpc.
30433         * sunrpc/xcrypt.c: Use it for passwd2des.
30434
30435         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
30436
30437 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
30438
30439         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
30440         Don't define if [__SYSCALL_WORDSIZE != 32].
30441         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
30442         New macro.
30443
30444 2012-05-21  Bruno Haible  <bruno@clisp.org>
30445             Andreas Jaeger  <aj@suse.de>
30446
30447         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
30448         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
30449         inptr and inend for must_buffer_ch.
30450         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
30451         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
30452         * stdio-common/Makefile (tests): Remove bug15.
30453         (bug15-ENV): Remove macro.
30454         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
30455         anymore.
30456
30457 2012-05-19  Andreas Jaeger  <aj@suse.de>
30458             Roland McGrath  <roland@hack.frob.com>
30459
30460         * manual/contrib.texi: Completely rewritten. It contains now an
30461         alphabetical list of contributors and their contributions.
30462
30463 2012-05-21  Richard Henderson  <rth@twiddle.net>
30464
30465         * misc/getauxval.c (__getauxval): Use unsigned long int.
30466         * misc/sys/auxv.h: Include <sys/cdefs.h>.
30467         (getauxval): Use unsigned long int.
30468
30469 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
30470
30471         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
30472
30473 2012-05-21  Roland McGrath  <roland@hack.frob.com>
30474
30475         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
30476         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
30477         __alignof__ (long double).
30478
30479 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30480
30481         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30482
30483 2012-05-20  Richard Henderson  <rth@twiddle.net>
30484
30485         * misc/getauxval.c: New file.
30486         * misc/sys/auxv.h: New file.
30487         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
30488         (routines): Add getauxval.
30489         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
30490         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
30491         * elf/dl-sysdep.c (_dl_auxv): Remove.
30492         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
30493         * elf/dl-support.c (_dl_auxv): New variable.
30494         (_dl_aux_init): Initialize it.
30495         * manual/startup.texi (Auxiliary Vector): New node.
30496         * sysdeps/generic/bits/hwcap.h: New file.
30497         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
30498         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
30499         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
30500         * sysdeps/sparc/sysdep.h: ... here.  Include it.
30501         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
30502         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
30503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30504         Update.
30505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
30506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
30507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
30508         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
30509         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
30510         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
30511         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
30512         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
30513
30514 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30515
30516         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30517
30518 2012-05-19  David S. Miller  <davem@davemloft.net>
30519
30520         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30521
30522 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
30523
30524         [BZ #14123]
30525         * math/s_ccosh.c: Include <float.h>
30526         (__ccosh): Avoid internal overflow calculating sinh and cosh
30527         values before multiplying by sin and cos values.
30528         * math/s_ccoshf.c: Likewise.
30529         * math/s_ccoshl.c: Likewise.
30530         * math/s_csin.c: Likewise.
30531         * math/s_csinf.c: Likewise.
30532         * math/s_csinl.c: Likewise.
30533         * math/s_csinh.c: Likewise.
30534         * math/s_csinhf.c: Likewise.
30535         * math/s_csinhl.c: Likewise.
30536         * math/libm-test.inc (ccos_test): Add more tests.
30537         (ccosh_test): Likewise.
30538         (csin_test): Likewise.
30539         (csinh_test): Likewise.
30540         * sysdeps/i386/fpu/libm-test-ulps: Update.
30541         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30542
30543 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
30544
30545         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
30546         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
30547
30548         * sysdeps/x86_64/x32/_itoa.h: Add comment.
30549
30550 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
30551
30552         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
30553         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
30554         * sysdeps/powerpc/soft-fp/Versions: Likewise.
30555         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
30556         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
30557         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
30558         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
30559         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
30560         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
30561         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
30562         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
30563         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
30564         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
30565         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
30566         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
30567         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
30568         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
30569         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
30570         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
30571         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
30572         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
30573         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
30574         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
30575         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
30576         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
30577         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
30578         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
30579         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
30580         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
30581         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
30582         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
30583
30584 2012-05-18  Andreas Jaeger  <aj@suse.de>
30585
30586         * csu/.gitignore: Delete.
30587
30588 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
30589
30590         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
30591         (timex): Use __syscall_slong_t.
30592
30593 2012-05-18  Andreas Jaeger  <aj@suse.de>
30594             Carlos O'Donell  <carlos_odonell@mentor.com>
30595
30596         * manual/install.texi (Configuring and compiling): Update
30597         description about files modified in the source directory.
30598         * INSTALL: Regenerated.
30599
30600 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
30601
30602         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
30603         value.  Use "or" to set return value to -1.
30604         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
30605         negate return value.
30606
30607 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30608
30609         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
30610         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
30611         failure if the compiler has Graphite support disabled.
30612         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
30613         Likewise.
30614         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
30615         (CFLAGS-memmove.c): Likewise.
30616         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
30617         Likewise.
30618
30619 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
30620
30621         * sysdeps/x86_64/x32/_itoa.h: New file.
30622
30623         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
30624         getdents system call only if kernel and user dirents have the
30625         same d_ino and d_off.
30626
30627         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
30628         LLONG_MAX != LONG_MAX.
30629         (_itoa_word): Use _ITOA_WORD_TYPE on value.
30630         (_fitoa_word): Likewise.
30631
30632         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
30633         years.
30634         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
30635         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
30636         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
30637
30638         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
30639         include <bits/wordsize.h>.  Check __x86_64__ instead of
30640         __WORDSIZE.
30641         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
30642         if __x86_64__ is defined.  Use anonymous union on fpstate.
30643
30644         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
30645         anonymous union.
30646
30647 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
30648
30649         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
30650         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
30651         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
30652         Refer to _rtld_local_ro instead of _rtld_global_ro.
30653         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
30654         Likewise.
30655         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
30656         Likewise.
30657         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
30658         Likewise.
30659         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
30660         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
30661         of _rtld_global, and rtld_progname instead of _dl_argv[0].
30662
30663         * sysdeps/powerpc/powerpc32/dl-machine.c
30664         (__elf_machine_runtime_setup) [PROF]: Don't reference
30665         _dl_prof_resolve.
30666
30667 2012-05-18  Andreas Jaeger  <aj@suse.de>
30668
30669         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
30670         function only available for GCCs before 3.4 since GCC 3.4
30671         introduced a builtin.
30672         (lrint): Likewise.
30673         (llrintf): Likewise.
30674         (llrint): Likewise.
30675         (fmaxf): Likewise.
30676         (fmax): Likewise.
30677         (fminf): Likewise.
30678         (fmin): Likewise.
30679         (rint): Likewise.
30680         (rintf): Likewise.
30681         (nearbyint): Likewise.
30682         (nearbyintf): Likewise.
30683         (ceil): Likewise.
30684         (ceilf): Likewise.
30685         (floor): Likewise.
30686         (floorf): Likewise.
30687
30688 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30689
30690         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
30691         on both fields and cast pointer to __syscall_ulong_t.
30692
30693         * bits/types.h (__fsword_t): New type.
30694         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
30695         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
30696         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
30697         (__FSWORD_T_TYPE): Likewise.
30698         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
30699         (__FSWORD_T_TYPE): Likewise.
30700         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
30701         (__FSWORD_T_TYPE): Likewise.
30702         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
30703         (__FSWORD_T_TYPE): Likewise.
30704         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
30705         __SWORD_TYPE with __fsword_t.
30706         (statfs64): Likewise.
30707
30708 2012-05-17  David S. Miller  <davem@davemloft.net>
30709
30710         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
30711
30712 2012-05-17  Andreas Jaeger  <aj@suse.de>
30713
30714         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
30715         warning.
30716
30717 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30718
30719         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
30720
30721 2012-05-17  Andreas Jaeger  <aj@suse.de>
30722
30723         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
30724         when it is used.
30725
30726 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
30727
30728         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
30729
30730 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30731
30732         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
30733         * sysdeps/x86_64/tst-mallocalign1.c: New file.
30734
30735 2012-05-17  Andreas Jaeger  <aj@suse.de>
30736             Carlos O'Donell  <carlos_odonell@mentor.com>
30737
30738         [BZ #14059]
30739         * sysdeps/x86_64/multiarch/init-arch.h
30740         (bit_YMM_Usable): Rename to...
30741         (bit_AVX_Usable): ... this.
30742         (bit_FMA4_Usable): New macro.
30743         (bit_XMM_state): New macro.
30744         (bit_YMM_state): New macro.
30745         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
30746         [__ASSEMBLER__] (index_AVX_Usable): ... this.
30747         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
30748         (CPUID_OSXSAVE): New macro.
30749         (CPUID_AVX): New macro.
30750         (CPUID_FMA4): New macro.
30751         (index_YMM_Usable): Rename to...
30752         (index_AVX_Usable): ... this.
30753         (HAS_AVX): Use HAS_ARCH_FEATURE.
30754         (HAS_FMA4): Likewise.
30755         (HAS_YMM_USABLE): Remove.
30756         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30757         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
30758         are present.
30759         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
30760         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
30761         * sysdeps/x86_64/multiarch/Makefile: Likewise.
30762         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
30763         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
30764
30765 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
30766
30767         * math/libm-test.c: Support platforms without multiple rounding modes.
30768         * math/bug-nextafter.c: Support platforms without FP exceptions.
30769         * math/bug-nexttoward.c: Likewise.
30770         * math/test-fenv.c: Likewise.
30771         * math/test-misc.c: Likewise.
30772         * stdlib/bug-getcontext.c: Likewise.
30773
30774 2012-05-17  Andreas Jaeger  <aj@suse.de>
30775
30776         * manual/examples/search.c (critter_cmp): Change signature to
30777         avoid warnings.
30778         * manual/string.texi (Collation Functions): Likewise.
30779
30780 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30781
30782         * bits/types.h: Fold copyright years.
30783         * bits/typesizes.h: Likewise.
30784         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
30785         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
30786         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
30787         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
30788         * time/time.h: Likewise.
30789
30790 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
30791
30792         [BZ #208]
30793         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
30794         in instead of returning them.  Return void.
30795         (__libc_mallinfo): Accumulate over all arenas.
30796         (__malloc_stats): Adjust for change in int_mallinfo interface.
30797
30798 2012-05-16  Roland McGrath  <roland@hack.frob.com>
30799
30800         [BZ #10375]
30801         * configure.in (NM): Add AC_CHECK_TOOL for it.
30802         (libc_extra_cflags): New substituted variable.
30803         Check for -fstack-protector being used implicitly.
30804         * configure: Regenerated.
30805         * config.make.in (config-extra-cflags): New variable,
30806         gets @libc_extra_cflags@.
30807         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
30808
30809         [BZ #10375]
30810         * configure.in: Check for _FORTIFY_SOURCE being predefined.
30811         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
30812         * configure: Regenerated.
30813         * config.make.in (CPPUNDEFS): New substituted variable.
30814         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
30815         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
30816         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
30817
30818 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30819
30820         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
30821         (mq_attr): Use __syscall_slong_t.
30822
30823 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30824
30825         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
30826         Check __x86_64__ instead of __WORDSIZE.
30827         (_STAT_VER_LINUX): Likewise.
30828         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
30829         __syscall_ulong_t and __syscall_slong_t.
30830         (stat64): Likewise.
30831
30832 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30833
30834         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
30835
30836 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30837
30838         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
30839
30840 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30841
30842         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
30843         __syscall_ulong_t.
30844
30845         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
30846         include <bits/wordsize.h>.  Check __x86_64__ instead of
30847         __WORDSIZE.
30848         (greg_t): Use "__extension__ long long int" if __x86_64__ is
30849         defined.
30850         (mcontext_t): Replace "unsigned long" with "unsigned long long".
30851
30852         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
30853         include <bits/wordsize.h>.  Check __x86_64__ instead of
30854         __WORDSIZE.
30855         (user_regs_struct): Use "__extension__ unsigned long long"
30856         instead of "unsigned long" if __x86_64__ is defined.
30857         (user): Likewise.  Pad after pointer field if __ILP32__ is
30858         defined.
30859
30860 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
30861
30862         * configure.in (makeinfo): Require version 4.5 or later.  Allow
30863         versions 5 to 9.
30864         * configure: Regenerated.
30865         * manual/install.texi (texinfo): Increase version requirement to
30866         4.5 or later.
30867         * INSTALL: Regenerated.
30868
30869         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
30870
30871 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30872
30873         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
30874
30875         * sysdeps/x86_64/x32/ffs.c: New file.
30876
30877         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
30878         __syscall_ulong_t.
30879         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
30880         defined.  Use __syscall_ulong_t.
30881         (shminfo): Use __syscall_ulong_t.
30882         (shm_info): Likewise.
30883
30884         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
30885         __syscall_ulong_t.
30886
30887         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
30888         <bits/wordsize.h>.
30889         (msgqnum_t): Use __syscall_ulong_t.
30890         (msglen_t): Likewise.
30891         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
30892         __syscall_ulong_t.
30893
30894         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
30895         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
30896
30897         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
30898
30899         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
30900         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
30901
30902         * sysvipc/sys/msg.h (msgbuf): Replace long int with
30903         __syscall_slong_t.
30904
30905         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
30906         include <bits/wordsize.h>.  Check __x86_64__ instead of
30907         __WORDSIZE.
30908
30909         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
30910         "unsigned long long int" if __x86_64__ is defined.
30911         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
30912
30913         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
30914         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
30915         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
30916
30917         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
30918         <stdint.h>.
30919         (GET_PC): Cast to uintptr_t first.
30920         (GET_FRAME): Likewise.
30921         (GET_STACK): Likewise.
30922
30923         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
30924         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
30925         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
30926         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
30927         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
30928         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
30929         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
30930         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
30931         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30932         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
30933         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
30934         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
30935         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
30936         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
30937         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
30938         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
30939         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
30940         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
30941         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
30942         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
30943         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
30944         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
30945         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
30946         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
30947         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
30948         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
30949         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
30950         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
30951         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
30952
30953 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
30954
30955         * Makerules (+depfiles): Also collect depfiles from .oS in
30956         $(extra-objs).
30957         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
30958         .oS, $(libnldbl-routines)).
30959
30960         * Makerules (native-compile-mkdep-flags): Define.
30961         * sunrpc/Makefile (extra-objs): Add $(addprefix
30962         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
30963         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
30964         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
30965         calling $(make-target-directory).
30966
30967 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30968
30969         * bits/types.h (__snseconds_t): Removed.
30970         * time/time.h (struct timespec): Replace __snseconds_t with
30971         __syscall_slong_t.
30972         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
30973         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
30974         Likewise.
30975         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
30976         (__SNSECONDS_T_TYPE): Likewise.
30977         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
30978         (__SNSECONDS_T_TYPE): Likewise.
30979         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
30980         (__SNSECONDS_T_TYPE): Likewise.
30981
30982 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30983
30984         * sysdeps/mach/hurd/bits/typesizes.h
30985         (__SYSCALL_SLONG_TYPE): New macro.
30986         (__SYSCALL_ULONG_TYPE): Likewise.
30987
30988 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
30989
30990         * bits/types.h (__syscall_slong_t): New type.
30991         (__syscall_ulong_t): Likewise.
30992
30993         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
30994         (__SYSCALL_ULONG_TYPE): Likewise.
30995         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
30996         (__SYSCALL_SLONG_TYPE): Likewise.
30997         (__SYSCALL_ULONG_TYPE): Likewise.
30998         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
30999         (__SYSCALL_SLONG_TYPE): Likewise.
31000         (__SYSCALL_ULONG_TYPE): Likewise.
31001         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
31002         (__SYSCALL_SLONG_TYPE): Likewise.
31003         (__SYSCALL_ULONG_TYPE): Likewise.
31004
31005 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31006
31007         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
31008         Add sigaltstack-offsets.sym.
31009         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
31010         <sigaltstack-offsets.h>.
31011         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
31012         longjmp_msg pointer.
31013         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
31014         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
31015         signal stack.
31016         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
31017
31018 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
31019
31020         * elf/stackguard-macros.h: Remove file.
31021         * sysdeps/generic/stackguard-macros.h: New file.
31022         * sysdeps/i386/stackguard-macros.h: Likewise.
31023         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
31024         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
31025         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
31026         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
31027         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
31028         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
31029         * sysdeps/x86_64/stackguard-macros.h: Likewise.
31030         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
31031         <elf/stackguard-macros.h>.
31032
31033         [BZ #14109]
31034         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
31035         __aligned__ in attribute.
31036         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
31037         (gregset_t): Likewise.
31038
31039 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31040
31041         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
31042         * sysdeps/x86_64/64/Implies-after: Here.  New file.
31043         * sysdeps/x86_64/x32/Implies-after: New file.
31044
31045 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31046
31047         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
31048         and access return value for _dl_profile_fixup.  Use R10_LP to
31049         load frame size.
31050
31051 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31052
31053         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
31054
31055 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31056
31057         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
31058         * sysdeps/x86_64/x32/sysdep.h: New file.
31059
31060 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31061
31062         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
31063         * sysdeps/x86_64/setjmp.S: Likewise.
31064
31065 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31066
31067         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
31068         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
31069         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
31070         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
31071         remove unused global constant.
31072
31073 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
31074
31075         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
31076         include of <not-cancel.h>.
31077
31078 2012-05-15  Roland McGrath  <roland@hack.frob.com>
31079
31080         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
31081
31082 2012-05-15  Jeff Law  <law@redhat.com>
31083             Andreas Jaeger  <aj@suse.de>
31084
31085         [BZ #13594]
31086         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
31087         out from...
31088         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
31089         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
31090         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
31091         code changing __hst_map_handle.map.
31092
31093 2012-05-15  Roland McGrath  <roland@hack.frob.com>
31094
31095         * configure.in (sysnames): Look for Implies-before and Implies-after
31096         files.
31097         * configure: Regenerated.
31098
31099 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31100
31101         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
31102         8-byte data alignment with LP_SIZE alignment.
31103
31104 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31105
31106         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
31107         into R10_LP.
31108
31109 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31110
31111         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
31112
31113 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31114
31115         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
31116         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
31117         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
31118         Likewise.
31119         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
31120
31121 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31122
31123         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
31124         (stackinfo_sub_sp): Likewise.
31125
31126 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31127
31128         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
31129         RAX_LP.
31130
31131 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31132
31133         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
31134         into R*_LP.
31135
31136 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31137
31138         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
31139         sizes into R*_LP.
31140
31141 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31142
31143         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
31144
31145 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31146
31147         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
31148         into R11_LP and load __x86_64_shared_cache_size_half into
31149         R8_LP.
31150
31151 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31152
31153         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
31154         R8_LP.
31155
31156 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31157
31158         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
31159         logb for POWER7.
31160         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
31161         logbf for POWER7.
31162         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
31163         logbl for POWER7.
31164         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
31165         powerpc32/power7/fpu/s_logb.c via #include.
31166         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
31167         powerpc32/power7/fpu/s_logbf.c via #include.
31168         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
31169         powerpc32/power7/fpu/s_logbl.c via #include.
31170
31171 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
31172
31173         * README.libm: Remove file.
31174
31175 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31176
31177         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
31178         count for x32.  Use R*_LP and omit operand-size suffix.
31179
31180 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31181
31182         * shlib-versions: Move x86_64-.*-linux.* entries to ...
31183         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
31184         * sysdeps/x86_64/x32/shlib-versions: New file.
31185
31186 2012-05-14  Roland McGrath  <roland@hack.frob.com>
31187
31188         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
31189         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
31190         Use _dl_fatal_printf instead.
31191
31192 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
31193
31194         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
31195         set if not set by the user.  Do not allow for being unset.
31196         * sysdeps/unix/sysv/linux/configure: Regenerated.
31197
31198 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31199
31200         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
31201         the `q' suffix from lea and replace .quad with ASM_ADDR.
31202
31203 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31204
31205         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
31206         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
31207         instead of $17.
31208         (PTR_DEMANGLE): Likewise.
31209
31210 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31211
31212         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
31213         (LP_OP): Likewise.
31214         (ASM_ADDR): Likewise.
31215         (RAX_LP): Likewise.
31216         (RBP_LP): Likewise.
31217         (RBX_LP): Likewise.
31218         (RCX_LP): Likewise.
31219         (RDI_LP): Likewise.
31220         (RSI_LP): Likewise.
31221         (RSP_LP): Likewise.
31222         (R8_LP): Likewise.
31223         (R9_LP): Likewise.
31224         (R10_LP): Likewise.
31225         (R10_LP): Likewise.
31226         (R11_LP): Likewise.
31227         (R12_LP): Likewise.
31228         (R13_LP): Likewise.
31229         (R14_LP): Likewise.
31230         (R15_LP): Likewise.
31231
31232 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31233
31234         * sysdeps/x86_64/x32/dl-machine.h: New file.
31235
31236 2012-05-14  Andreas Jaeger  <aj@suse.de>
31237
31238         * manual/Makefile (subdir): Remove export of subdir.
31239         (all): Remove target.
31240         (.PHONY): Remove all from list.
31241         (mkinstalldirs): Remove.
31242         (.PHONY): Remove installdirs from list.
31243         ($(inst_infodir)/libc.info): Use make-target-directory.
31244         (installdirs): Remove.
31245         (subdir_%): Remove.
31246         (glibc-targets): Remove.
31247         (lib): Remove.
31248         (stubs): Remove.
31249         ($(objpfx)stubs ../po/manual.pot): Remove.
31250         ($(objpfx)stamp%): Remove.
31251         (make-target-directory): Remove.
31252         (subdir_install): Remove.
31253         (routines): Remove.
31254         (aux): Remove.
31255         (sources): Remove.
31256         (objects): Remove.
31257         (headers): Remove.
31258
31259         [BZ #13750]
31260         * manual/.gitignore: Remove, it's not needed anymore.
31261         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
31262         all files in it.
31263         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
31264         directory.
31265         (texis): Renamed to $(objpfx)texis.
31266         (texis-path): New, contains path to generated files.
31267         (chapters.%): Use texis-path for complete path, add extra argument
31268         libc-texinfo.sh.
31269         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
31270         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
31271         (summary,texi, stamp-summary): Use complete path of
31272         files. Generate files in build dir.
31273         (dir-add.texi): Build in build dir.
31274         (libm-err.texi,stamp-libm-err): Likewise.
31275         (version.texi, stamp-version): Likewise.
31276         (.%c.texi): Likewise.
31277         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
31278         (mostlyclean): Remove target.
31279         (realclean): Remove target.
31280         (generated): Add new variable with contents from mostlyclean and
31281         realclean, remove entries duplicated in common-mostlyclean, add
31282         stamp-libm-err and stamp-version.
31283         (generated-dirs): Add libc directory.
31284         ($(inst_infodir)/libc.info): Install files from build dir.
31285
31286         * manual/install.texi (Configuring and compiling): Adjust since
31287         the info files are not part of the tar ball anymore.
31288
31289 2012-05-14  Andreas Jaeger  <aj@suse.de>
31290
31291         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
31292         variable.
31293
31294 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
31295
31296         [BZ #13717]
31297         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
31298         to 2.2.0 where earlier.
31299         * sysdeps/unix/sysv/linux/configure: Regenerated.
31300         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
31301         Remove conditional code.
31302         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
31303         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
31304         Remove conditional code.
31305         [!__NR_lchown]: Likewise.
31306         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
31307         [__NR_lchown]: Likewise.
31308         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
31309         comment referencing __ASSUME_LCHOWN_SYSCALL.
31310         * sysdeps/unix/sysv/linux/i386/sigaction.c
31311         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
31312         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
31313         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
31314         Remove conditional code.
31315         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
31316         (__protocol_available): Remove #if 0 code.
31317         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
31318         conditional code.
31319         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
31320         * sysdeps/unix/sysv/linux/kernel-features.h
31321         (__ASSUME_GETCWD_SYSCALL): Don't define.
31322         (__ASSUME_REALTIME_SIGNALS): Likewise.
31323         (__ASSUME_PREAD_SYSCALL): Likewise.
31324         (__ASSUME_PWRITE_SYSCALL): Likewise.
31325         (__ASSUME_POLL_SYSCALL): Likewise.
31326         (__ASSUME_LCHOWN_SYSCALL): Likewise.
31327         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
31328         non-SPARC.
31329         (__ASSUME_SIOCGIFNAME): Don't define.
31330         (__ASSUME_MSG_NOSIGNAL): Likewise.
31331         (__ASSUME_SENDFILE): Define unconditionally.
31332         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
31333         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
31334         conditional code.
31335         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
31336         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
31337         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
31338         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
31339         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
31340         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
31341         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
31342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
31343         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
31344         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
31345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
31346         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
31347         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
31348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
31349         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
31350         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
31351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
31352         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
31353         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
31354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
31355         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
31356         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
31357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
31358         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
31359         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
31360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
31361         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
31362         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
31363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
31364         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
31365         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
31366         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
31367         Remove conditional code.
31368         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
31369         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
31370         Remove conditional code.
31371         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
31372         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
31373         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
31374         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
31375         Remove conditional code.
31376         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
31377         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
31378         Remove conditional code.
31379         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
31380         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
31381         Remove conditional code.
31382         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
31383         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
31384         Remove conditional code.
31385         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
31386         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
31387         Remove conditional code.
31388         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
31389         * sysdeps/unix/sysv/linux/sh/pwrite64.c
31390         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
31391         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
31392         * sysdeps/unix/sysv/linux/sigaction.c
31393         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
31394         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
31395         * sysdeps/unix/sysv/linux/sigpending.c
31396         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
31397         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
31398         * sysdeps/unix/sysv/linux/sigprocmask.c
31399         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
31400         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
31401         * sysdeps/unix/sysv/linux/sigsuspend.c
31402         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
31403         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
31404         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
31405         (__libc_missing_rt_sigs): Remove.
31406         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
31407         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
31408         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
31409         Remove conditional code.
31410         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
31411         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
31412         return 1.
31413         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
31414         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
31415         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
31416         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
31417
31418 2012-05-14  Andreas Jaeger  <aj@suse.de>
31419
31420         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
31421         it's not used in glibc.
31422         (__coshm1): Likewise.
31423         (__acosh1p): Likewise.
31424         (__sgn): Likewise.
31425
31426         * manual/string.texi (Copying and Concatenation): Add missing
31427         variable in concat example.
31428         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
31429
31430 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31431
31432         [BZ #14103]
31433         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
31434         __builtin_clzl with __builtin_clzll.
31435
31436 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
31437
31438         [BZ #14104]
31439         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
31440         libc_freeres_ptr.
31441
31442 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31443
31444         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
31445         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
31446         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
31447         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
31448
31449 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
31450
31451         * NEWS: Update ia64 info.
31452
31453 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
31454
31455         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
31456         used as bcopy.
31457
31458 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
31459
31460         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
31461         * sysdeps/unix/syscalls.list (dup3): Likewise.
31462         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
31463         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
31464
31465 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
31466
31467         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
31468         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
31469
31470 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
31471
31472         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
31473         thread pointer.
31474         (TLS_IE): Use mov/add instead of movq/addq to load thread
31475         pointer.
31476         (TLS_GD_PREFIX): New.
31477         (TLS_GD): Use it.
31478
31479 2012-05-11  David S. Miller  <davem@davemloft.net>
31480
31481         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
31482         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
31483         (_FPU_SETCW): Likewise.
31484
31485 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31486
31487         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
31488         is 32-byte aligned.
31489
31490 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
31491
31492         [BZ #11837]
31493         * iconvdata/gb18030.c: Update tables.
31494         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
31495         characters specially.
31496         (BODY for TO_LOOP): Add encoding of missing ranges.
31497
31498 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
31499
31500         [BZ #13673]
31501         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
31502         * sysdeps/mach/hurd/dup3.c: Likewise.
31503         * sysdeps/mach/hurd/readlinkat.c: Likewise.
31504         * sysdeps/powerpc/memmove.c:: Likewise.
31505
31506 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31507
31508         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
31509         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
31510
31511 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31512
31513         * elf/elf.h (R_X86_64_RELATIVE64): New.
31514         (R_X86_64_NUM): Updated.
31515         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
31516         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
31517         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
31518         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
31519         tst-quad1pie tst-quad2pie
31520         (modules-names): Add tst-quadmod1 tst-quadmod2.
31521         ($(objpfx)tst-quad1): New dependency.
31522         ($(objpfx)tst-quad2): Likewise.
31523         ($(objpfx)tst-quad1pie): Likewise.
31524         ($(objpfx)tst-quad2pie): Likewise.
31525         * sysdeps/x86_64/tst-quad1.c: New file.
31526         * sysdeps/x86_64/tst-quad1pie.c: New file.
31527         * sysdeps/x86_64/tst-quad2.c: Likewise.
31528         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
31529         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
31530         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
31531         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
31532         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
31533
31534 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31535
31536         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
31537         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
31538         * streams/stropts.h (t_scalar_t): Define type.
31539
31540         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
31541         (_PATH_PRESERVE): Set to "/var/lib".
31542         (_PATH_RWHODIR): Set to "/var/spool/rwho".
31543
31544         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
31545         instead of int.
31546
31547         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
31548         if __dir_mkfile succeeded.
31549
31550         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
31551         checking for _hurd_dtablesize.  Unlock it right after having
31552         finished _hurd_dtable allocation.
31553
31554 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31555
31556         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
31557         * sysdeps/mach/hurd/configure: Regenerated.
31558         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
31559         special-casing to...
31560         * sysdeps/gnu/configure.in: ... this new file.
31561         * sysdeps/unix/sysv/linux/configure: Regenerated.
31562         * sysdeps/gnu/configure: New generated file.
31563
31564         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
31565         for Linux: use nsec instead of usec, as well as:
31566         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
31567         members of type struct timespec.
31568         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
31569         New macros.
31570         (struct stat64): Likewise.
31571         (_STATBUF_ST_NSEC): New macro.
31572         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
31573
31574         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
31575         __strtoul_internal rather than strtoul.
31576
31577 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
31578
31579         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
31580         and reject them.
31581
31582 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31583
31584         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
31585         which preserves existing values.
31586         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
31587
31588 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
31589
31590         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
31591         TIMEOUT values.  Return EINVAL for NFDS values either negative or
31592         greater than FD_SETSIZE.
31593
31594 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31595
31596         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
31597         allocated, call __vm_protect to finish enabling the existing space, and
31598         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
31599         allocate the remainder.
31600
31601 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
31602
31603         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
31604         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
31605
31606 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31607
31608         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
31609         sysdeps/mach/hurd/readlink.c.
31610
31611         * posix/tst-sysconf.c (posix_options): Only use
31612         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
31613         _POSIX_SYNCHRONIZED_IO when they are defined
31614         * sysdeps/mach/hurd/bits/posix_opt.h:
31615         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
31616         (_XOPEN_REALTIME): Undefine macro.
31617         (_XOPEN_REALTIME_THREADS): Undefine macro.
31618         (_XOPEN_SHM): Undefine macro.
31619         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
31620         macro to -1.
31621         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
31622         macro to -1.
31623         (_POSIX_ASYNC_IO): Undefine macro.
31624         (_POSIX_PRIORITIZED_IO): Undefine macro.
31625         (_POSIX_SPIN_LOCKS): Define macro to -1.
31626
31627         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
31628         SA_NODEFER, SA_RESETHAND.
31629         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
31630         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
31631         F_DUPFD_CLOEXEC.
31632
31633 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31634
31635         * elf/Makefile (pldd-modules): Define unconditionally.
31636
31637 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31638
31639         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
31640
31641 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31642
31643         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
31644         Return ENOENT when name is empty.
31645         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
31646
31647 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31648
31649         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
31650
31651         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
31652
31653 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31654
31655         Fix mlock in all cases except non-readable pages.
31656         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
31657         instead of VM_PROT_ALL as parameter to __vm_wire function.
31658
31659         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
31660         (__mkdir): When path is `/', just fail with EEXIST.
31661         * sysdeps/mach/hurd/mkdirat.c: Likewise.
31662
31663 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31664
31665         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
31666         <sys/uio.h> (for writev).
31667         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
31668         and <sys/param.h> (for MIN).
31669
31670 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
31671
31672         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
31673         REQUESTED_TIME.  Properly set the remaining time and return EINTR
31674         if interrupted.
31675
31676 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31677
31678         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
31679         Depend on against $(link-rpcuserlibs).
31680
31681 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31682
31683         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
31684         (__libc_stack_end): Do not use attribute_relro.
31685         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
31686         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
31687         to libthread-provided value.
31688         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
31689         attribute_relro.
31690
31691 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31692
31693         [BZ #3748]
31694         * bits/libc-lock.h (__libc_once_get): New macro.
31695         * sysdeps/mach/bits/libc-lock.h: Likewise.
31696         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
31697         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
31698         instead of using implementation details.
31699
31700         * libio/fileops.c: Unconditionally include <kernel-features.h>.
31701         * libio/freopen.c: Likewise.
31702         * libio/freopen64.c: Likewise.
31703         * misc/syslog.c: Likewise.
31704         * nscd/connections.c: Likewise.
31705         * nscd/netgroupcache.c: Likewise.
31706         * sysdeps/posix/getcwd.c: Likewise.
31707
31708 2012-05-10  Roland McGrath  <roland@hack.frob.com>
31709
31710         * math/w_ilogbf.c: Add #include <limits.h>.
31711
31712 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31713
31714         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
31715         path instead of returning without unlocking.
31716
31717         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
31718         immediate-write ioctls.
31719         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
31720
31721 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31722
31723         * sysdeps/mach/hurd/i386/init-first.c (init): Use
31724         __builtin_frame_address instead of making assumptions about the
31725         location of the return address relative to DATA.  Force early load of
31726         the return address.
31727         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
31728         __builtin_frame_address.
31729
31730         dup3 for GNU Hurd.
31731         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
31732         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
31733         implement dup3 and do some further code clean-ups.
31734         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
31735         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
31736
31737 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31738
31739         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
31740
31741         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
31742         HURD_CRITICAL_END around holding _hurd_dtable_lock.
31743         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
31744         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
31745         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
31746         d->port.lock.
31747
31748         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
31749         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
31750         when handler == SIG_ERR, not when handler != SIG_ERR.
31751
31752 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31753
31754         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
31755         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
31756         definitions.
31757
31758         accept4 for GNU Hurd.
31759         * include/sys/socket.h (__libc_accept4): New prototype.
31760         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
31761         to implement __libc_accept4.
31762         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
31763         __libc_accept4.
31764         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
31765
31766         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
31767         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
31768         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
31769         signal-defines.sym.
31770
31771 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31772
31773         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
31774
31775 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
31776
31777         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
31778         assertion on O_CLOEXEC flag.
31779         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
31780         * hurd/intern-fd.c: Likewise.
31781         * hurd/port2fd.c: Likewise.
31782
31783 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31784
31785         [BZ #3906]
31786         * bits/in.h (IPV6_PKTINFO): Define new macro.
31787         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
31788
31789 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31790
31791         [BZ #13954]
31792         [BZ #13955]
31793         [BZ #13956]
31794         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
31795         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31796         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
31797         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31798         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31799         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31800         * math/libm-test.inc (logb_test) : Additional logb tests.
31801
31802 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
31803             Andreas Jaeger  <aj@suse.de>
31804
31805         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
31806         * configure: Regenerated.
31807         * config.h.in (LINK_OBSOLETE_RPC): New macro.
31808         * config.make.in (link-obsolete-rpc): New substituted variable.
31809         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
31810         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
31811         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
31812         (shared-only-routines): Don't set it under [link-obsolete-rpc],
31813         so that libc.a contains the symbols.
31814         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
31815         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
31816         * sunrpc/auth_none.c: Likewise.
31817         * sunrpc/auth_unix.c: Likewise.
31818         * sunrpc/authdes_prot.c: Likewise.
31819         * sunrpc/authuxprot.c: Likewise.
31820         * sunrpc/clnt_gen.c: Likewise.
31821         * sunrpc/clnt_perr.c: Likewise.
31822         * sunrpc/clnt_raw.c: Likewise.
31823         * sunrpc/clnt_simp.c: Likewise.
31824         * sunrpc/clnt_tcp.c: Likewise.
31825         * sunrpc/clnt_udp.c: Likewise.
31826         * sunrpc/clnt_unix.c: Likewise.
31827         * sunrpc/des_crypt.c: Likewise.
31828         * sunrpc/des_soft.c: Likewise.
31829         * sunrpc/get_myaddr.c: Likewise.
31830         * sunrpc/key_call.c: Likewise.
31831         * sunrpc/key_prot.c: Likewise.
31832         * sunrpc/netname.c: Likewise.
31833         * sunrpc/pm_getmaps.c: Likewise.
31834         * sunrpc/pm_getport.c: Likewise.
31835         * sunrpc/pmap_clnt.c: Likewise.
31836         * sunrpc/pmap_prot.c: Likewise.
31837         * sunrpc/pmap_prot2.c: Likewise.
31838         * sunrpc/pmap_rmt.c: Likewise.
31839         * sunrpc/publickey.c: Likewise.
31840         * sunrpc/rpc_cmsg.c: Likewise.
31841         * sunrpc/rpc_common.c: Likewise.
31842         * sunrpc/rpc_dtable.c: Likewise.
31843         * sunrpc/rpc_prot.c: Likewise.
31844         * sunrpc/rpc_thread.c: Likewise.
31845         * sunrpc/rtime.c: Likewise.
31846         * sunrpc/svc.c: Likewise.
31847         * sunrpc/svc_auth.c: Likewise.
31848         * sunrpc/svc_raw.c: Likewise.
31849         * sunrpc/svc_run.c: Likewise.
31850         * sunrpc/svc_tcp.c: Likewise.
31851         * sunrpc/svc_udp.c: Likewise.
31852         * sunrpc/svc_unix.c: Likewise.
31853         * sunrpc/svcauth_des.c: Likewise.
31854         * sunrpc/xcrypt.c: Likewise.
31855         * sunrpc/xdr.c: Likewise.
31856         * sunrpc/xdr_array.c: Likewise.
31857         * sunrpc/xdr_float.c: Likewise.
31858         * sunrpc/xdr_intXX_t.c: Likewise.
31859         * sunrpc/xdr_mem.c: Likewise.
31860         * sunrpc/xdr_rec.c: Likewise.
31861         * sunrpc/xdr_ref.c: Likewise.
31862         * sunrpc/xdr_sizeof.c: Likewise.
31863         * sunrpc/xdr_stdio.c: Likewise.
31864
31865 2012-05-10  Roland McGrath  <roland@hack.frob.com>
31866
31867         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
31868         change.  Update copyright years.
31869
31870 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
31871
31872         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
31873
31874 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
31875             Joseph Myers  <joseph@codesourcery.com>
31876             Paul Pluzhnikov  <ppluzhnikov@google.com>
31877
31878         [BZ #14012]
31879         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
31880         requiring rpcgen.
31881         [cross-compiling] (extra-libs): Likewise.
31882         [cross-compiling] (extra-libs-others): Likewise.
31883         [cross-compiling] (librpcsvc-routines): Likewise.
31884         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
31885         [cross-compiling] (omit-deps): Likewise.
31886         (sunrpc-CPPFLAGS): New variable.
31887         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
31888         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
31889         (cross-rpcgen-objs): New variable.
31890         (extra-objs): Append $(cross-rpcgen-objs).
31891         ($(cross-rpcgen-objs)): New rule.
31892         ($(objpfx)cross-rpcgen): Likewise.
31893         (rpcgen-cmd): Define to use $(built-program-file).  Expand
31894         comment.
31895         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
31896         ($(objpfx)x%.stmp): Likewise.
31897         * sunrpc/proto.h [IS_IN_build] (_): Define.
31898         [IS_IN_build] (_libc_intl_domainname): Likewise.
31899
31900 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31901
31902         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
31903         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
31904         and R_X86_64_TPOFF64.
31905
31906 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
31907
31908         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
31909         sysdeps/unix/sysv/syscalls.list.
31910         (stime): Likewise.
31911         (utime): Likewise.
31912         * sysdeps/unix/sysv/syscalls.list: Remove file.
31913
31914 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
31915
31916         [BZ #3440]
31917         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
31918         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
31919         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
31920         (__LC_IDENTIFICATION): Make these macros useful in #if
31921         expressions, as required by C99.
31922
31923 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
31924
31925         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
31926         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
31927         after this.
31928
31929 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
31930
31931         * stdlib/longlong.h: Updated from GCC.
31932
31933 2012-05-09  Andreas Jaeger  <aj@suse.de>
31934
31935         * nscd/nscd.c (run_modes): Make named enum, reorder so that
31936         default is first entry.
31937         (run_mode): Set type.
31938         (main): Remove informal message about syslog.
31939         (options): Fix typo.
31940
31941         [BZ #14053]
31942         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
31943         to asm.
31944         (lrint): Likewise.
31945         (llrintf): Likewise.
31946         (llrint): Likewise.
31947         (rint): Likewise.
31948         (rintf): Likewise.
31949         (nearbyint): Likewise.
31950         (nearbyintf): Likewise.
31951
31952 2012-05-09  Andreas Jaeger  <aj@suse.de>
31953             Pedro Alves  <palves@redhat.com>
31954
31955         * nscd/nscd.c (run_mode): Use enum.
31956         (main): Cleanup coding style issue.
31957
31958 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
31959             Andreas Jaeger  <aj@suse.de>
31960
31961         * nscd/nscd.c (go_background): Replaced with...
31962         (run_mode): ... this.
31963         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
31964         (options): Add -F --foreground.
31965         (main): Implement it.
31966         (parse_opt): Parse it.
31967
31968 2012-05-09  Andreas Jaeger  <aj@suse.de>
31969
31970         [BZ #14083]
31971         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
31972         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
31973         -Wconversion warning.
31974         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
31975         Likewise.
31976
31977 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
31978
31979         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
31980         == 0.
31981         (LC_ALL): Use macro-int-constant.
31982         (LC_COLLATE): Likewise.
31983         (LC_CTYPE): Likewise.
31984         (LC_MESSAGES): Likewise.
31985         (LC_MONETARY): Likewise.
31986         (LC_NUMERIC): Likewise.
31987         (LC_TIME): Likewise.
31988         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
31989         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
31990         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31991         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
31992         Specify type.
31993         [C99-based standards] (float_t): Expect type.
31994         [C99-based standards] (double_t): Expect type.
31995         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
31996         type.
31997         [C99-based standards] (HUGE_VALL): Likewise.
31998         [C99-based standards] (INFINITY): Likewise.
31999         [C99-based standards] (NAN): Likewise.
32000         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
32001         [C99-based standards] (FP_NAN): Likewise.
32002         [C99-based standards] (FP_NORMAL): Likewise.
32003         [C99-based standards] (FP_SUBNORMAL): Likewise.
32004         [C99-based standards] (FP_ZERO): Likewise.
32005         [C99-based standards] (FP_FAST_FMA): Use
32006         optional-macro-int-constant.  Specify type.  Require == 1.
32007         [C99-based standards] (FP_FAST_FMAF): Likewise.
32008         [C99-based standards] (FP_FAST_FMAL): Likewise.
32009         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
32010         [C99-based standards] (FP_ILOGBNAN): Likewise.
32011         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
32012         Specify type.
32013         [C99-based standards] (MATH_ERREXCEPT): Likewise.
32014         [C99-based standards] (math_errhandling): Specify type.
32015         [ISO99 || ISO11] (signgam): Do not allow.
32016         [non-C99-based standards] (copysignf): Do not allow.
32017         [non-C99-based standards] (exp2f): Likewise.
32018         [non-C99-based standards] (log2f): Likewise.
32019         [non-C99-based standards] (modff): Allow.
32020         [non-C99-based standards] (erff): Do not allow.
32021         [non-C99-based standards] (erfcf): Likewise.
32022         [non-C99-based standards] (gammaf): Likewise.
32023         [non-C99-based standards] (hypotf): Likewise.
32024         [non-C99-based standards] (j0f): Likewise.
32025         [non-C99-based standards] (j1f): Likewise.
32026         [non-C99-based standards] (jnf): Likewise.
32027         [non-C99-based standards] (lgammaf): Likewise.
32028         [non-C99-based standards] (tgammaf): Likewise.
32029         [non-C99-based standards] (y0f): Likewise.
32030         [non-C99-based standards] (y1f): Likewise.
32031         [non-C99-based standards] (ynf): Likewise.
32032         [non-C99-based standards] (isnanf): Likewise.
32033         [non-C99-based standards] (acoshf): Likewise.
32034         [non-C99-based standards] (asinhf): Likewise.
32035         [non-C99-based standards] (atanhf): Likewise.
32036         [non-C99-based standards] (cbrtf): Likewise.
32037         [non-C99-based standards] (expm1f): Likewise.
32038         [non-C99-based standards] (ilogbf): Likewise.
32039         [non-C99-based standards] (log1pf): Likewise.
32040         [non-C99-based standards] (logbf): Likewise.
32041         [non-C99-based standards] (nextafterf): Likewise.
32042         [non-C99-based standards] (remainderf): Likewise.
32043         [non-C99-based standards] (rintf): Likewise.
32044         [non-C99-based standards] (scalbf): Likewise.
32045         [non-C99-based standards] (copysignl): Likewise.
32046         [non-C99-based standards] (exp2l): Likewise.
32047         [non-C99-based standards] (log2l): Likewise.
32048         [non-C99-based standards] (modfl): Allow.
32049         [non-C99-based standards] (erfl): Do not allow.
32050         [non-C99-based standards] (erfcl): Likewise.
32051         [non-C99-based standards] (gammal): Likewise.
32052         [non-C99-based standards] (hypotl): Likewise.
32053         [non-C99-based standards] (j0l): Likewise.
32054         [non-C99-based standards] (j1l): Likewise.
32055         [non-C99-based standards] (jnl): Likewise.
32056         [non-C99-based standards] (lgammal): Likewise.
32057         [non-C99-based standards] (tgammal): Likewise.
32058         [non-C99-based standards] (y0l): Likewise.
32059         [non-C99-based standards] (y1l): Likewise.
32060         [non-C99-based standards] (ynl): Likewise.
32061         [non-C99-based standards] (isnanl): Likewise.
32062         [non-C99-based standards] (acoshl): Likewise.
32063         [non-C99-based standards] (asinhl): Likewise.
32064         [non-C99-based standards] (atanhl): Likewise.
32065         [non-C99-based standards] (cbrtl): Likewise.
32066         [non-C99-based standards] (expm1l): Likewise.
32067         [non-C99-based standards] (ilogbl): Likewise.
32068         [non-C99-based standards] (log1pl): Likewise.
32069         [non-C99-based standards] (logbl): Likewise.
32070         [non-C99-based standards] (nextafterl): Likewise.
32071         [non-C99-based standards] (remainderl): Likewise.
32072         [non-C99-based standards] (rintl): Likewise.
32073         [non-C99-based standards] (scalbl): Likewise.
32074         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32075         [non-C99-based standards] (FP_*): Do not allow.
32076         [C99-based standards] (FP_*): Change to
32077         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
32078         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
32079         allow.
32080         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
32081         (SIG_ERR): Likewise.
32082         [X/Open-based standards] (SIG_HOLD): Likewise.
32083         (SIG_IGN): Likewise.
32084         (SIGABRT): Use macro-int-constant.  Specify type.  Require
32085         positive value.
32086         (SIGFPE): Likewise.
32087         (SIGILL): Likewise.
32088         (SIGINT): Likewise.
32089         (SIGSEGV): Likewise.
32090         (SIGTER): Likewise.
32091         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
32092         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
32093         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
32094         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
32095         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
32096         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
32097         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
32098         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
32099         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
32100         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
32101         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
32102         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
32103         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
32104         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
32105         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
32106         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
32107         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
32108         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
32109         [X/Open-based standards] (SIGTRAP): Likewise.
32110         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
32111         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
32112         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
32113         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
32114         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
32115         allow.
32116
32117 2012-05-08  Ian Wienand  <ianw@vmware.com>
32118
32119         [BZ #14080]
32120         * time/tzset.c (__tzset_parse_tz): Update default rules for
32121         daylight time changes in the Energy Policy Act of 2005.
32122
32123 2012-05-09  Andreas Jaeger  <aj@suse.de>
32124
32125         [BZ #13983]
32126         * elf/ldconfig.c (parse_conf): Change string to make clear that
32127         ldconfig only issued a warning if ld.so.conf does not exist.
32128
32129 2012-05-08  David S. Miller  <davem@davemloft.net>
32130
32131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
32132         movxtod instead of popping the value on the stack.
32133
32134         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32135
32136 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
32137
32138         * config.h.in: Add HAVE_ARM_PCS_VFP.
32139
32140 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
32141
32142         [BZ #13979]
32143         * include/features.h: Warn if user requests __FORTIFY_SOURCE
32144         checking but the checks are disabled for any reason.
32145
32146 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
32147
32148         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
32149         and ELF64_R_TYPE with ELFW(R_TYPE).
32150
32151 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
32152
32153         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
32154         (ulimit): Likewise.
32155
32156         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
32157         (settimeofday): Likewise.
32158
32159 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
32160
32161         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
32162         a struct th_u2 inside the union, and move tu_block/tu_code into
32163         a new th_u3 union of tu_block/tu_code inside of that.  Move
32164         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
32165         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
32166         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
32167         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
32168         (th_stuff): Change to th_u1.tu_stuff.
32169         (th_data): Define.
32170         (th_msg): Change to th_u1.th_u2.tu_data.
32171
32172 2012-05-07  David S. Miller  <davem@davemloft.net>
32173
32174         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32175
32176         [BZ #14074]
32177         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
32178         (SETUP_PIC_REG): Use it.
32179         (SETUP_PIC_REG_LEAF): Use it.
32180
32181 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
32182
32183         [BZ #13885]
32184         [BZ #13923]
32185         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
32186         USE_AS_EXPM1L.
32187         (EXPL_FINITE): Likewise.
32188         (FLDLOG): Likewise.
32189         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
32190         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
32191         e_expl.S.
32192         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
32193         USE_AS_EXPM1L.
32194         (EXPL_FINITE): Likewise.
32195         (FLDLOG): Likewise.
32196         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
32197         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
32198         e_expl.S.
32199         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
32200         test of -max_value argument for long double.
32201         * sysdeps/i386/fpu/libm-test-ulps: Update.
32202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32203
32204 2012-05-06  David S. Miller  <davem@davemloft.net>
32205
32206         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
32207         quad soft-float symbols whose references which are compiler
32208         generated.
32209         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
32210
32211 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
32212
32213         [BZ #13884]
32214         [BZ #13914]
32215         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
32216         USE_AS_EXP10L.
32217         (EXPL_FINITE): Likewise.
32218         (FLDLOG): Likewise.
32219         (c0): Likewise.
32220         (c1): Likewise.
32221         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
32222         Adjust comments for base varying.
32223         (__expl_finite): Change alias to EXPL_FINITE.
32224         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
32225         e_expl.S.
32226         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
32227         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
32228         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
32229         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
32230         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
32231         USE_AS_EXP10L.
32232         (EXPL_FINITE): Likewise.
32233         (FLDLOG): Likewise.
32234         (c0): Likewise.
32235         (c1): Likewise.
32236         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
32237         Adjust comments for base varying.
32238         (__expl_finite): Change alias to EXPL_FINITE.
32239         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
32240         tests for bugs.
32241         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32242
32243         [BZ #14064]
32244         * math/libm-test.inc (check_float_internal): Correct ulp
32245         calculation for subnormal expected results.
32246
32247 2012-05-06  Andreas Jaeger  <aj@suse.de>
32248
32249         * Makeconfig (+math-flags): New, set to -frounding-math.
32250         (+cflags): Add +math-flags so that all of glibc gets compiled with
32251         it.
32252
32253         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
32254
32255 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
32256
32257         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
32258         Disable one test.
32259
32260         [BZ #13787]
32261         [BZ #13922]
32262         [BZ #14036]
32263         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
32264         (__ieee754_expl): Allow for and saturate large arguments.
32265         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
32266         (u_threshold): Likewise.
32267         (__exp): Call __ieee754_exp before checking for overflow and
32268         underflow.
32269         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
32270         (u_threshold): Likewise.
32271         (__expf): Call __ieee754_expf before checking for overflow and
32272         underflow.
32273         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
32274         (u_threshold): Likewise.
32275         (__expl): Call __ieee754_expl before checking for overflow and
32276         underflow.
32277         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
32278         (__ieee754_expl): Allow for and saturate large arguments.
32279         * math/libm-test.inc (exp_test): Add another test.  Do not allow
32280         missing overflow exception on overflow.
32281         (expm1_test): Do not allow missing overflow exception on overflow.
32282
32283         * sysdeps/i386/fpu/e_expl.c: Move to ...
32284         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
32285         rather than using inline asm.
32286         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
32287         * sysdeps/x86_64/fpu/e_expl.S: Copy from
32288         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
32289
32290         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
32291         (nice): Likewise.
32292         (poll): Likewise.
32293         (signal): Likewise.
32294         (time): Likewise.
32295         (times): Likewise.
32296
32297 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
32298
32299         * sysdeps/unix/syscalls.list (adjtime): Add entry from
32300         sysdeps/unix/common/syscalls.list.
32301         (fchmod): Likewise.
32302         (fchown): Likewise.
32303         (ftruncate): Likewise.
32304         (getrusage): Likewise.
32305         (gettimeofday): Likewise.
32306         (setpgid): Likewise.
32307         (setregid): Likewise.
32308         (setreuid): Likewise.
32309         (sigaction): Likewise.
32310         (truncate): Likewise.
32311         (vhangup): Likewise.
32312         * sysdeps/unix/common/syscalls.list: Remove file.
32313         * sysdeps/unix/bsd/Implies: Don't include unix/common.
32314         * sysdeps/unix/sysv/linux/Implies: Likewise.
32315
32316 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
32317
32318         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
32319         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
32320         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
32321         Moved to ...
32322         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32323         Here.
32324         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
32325         to ...
32326         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
32327         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
32328         to ...
32329         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
32330         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
32331         to ...
32332         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
32333         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
32334         to ...
32335         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
32336         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
32337         to ...
32338         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
32339         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
32340         to ...
32341         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
32342         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
32343         to ...
32344         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
32345         Here.
32346         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
32347         to ...
32348         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
32349         Here.
32350         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
32351         to ...
32352         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
32353         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
32354         Moved to ...
32355         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
32356         Here.
32357         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
32358         to ...
32359         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
32360
32361 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
32362
32363         * sysdeps/unix/common/bits/dirent.h: Remove file.
32364         * sysdeps/unix/common/bits/fcntl.h: Likewise.
32365
32366         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
32367         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
32368         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
32369         * sysdeps/unix/bsd/isatty.c: Likewise.
32370         * sysdeps/unix/bsd/tcdrain.c: Likewise.
32371         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
32372         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
32373
32374 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32375
32376         [BZ #13563]
32377         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
32378         long double comparison inaccuracies.
32379         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
32380         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32381
32382 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
32383
32384         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
32385         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
32386
32387 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
32388
32389         [BZ #14049]
32390         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
32391         nonzero digits before rounding a hex value.
32392         * stdlib/tst-strtod.c (tests): Add another test.
32393
32394 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32395
32396         * sysdeps/s390/fpu/libm-test-ulps: Update.
32397
32398 2012-05-03  Andreas Jaeger  <aj@suse.de>
32399
32400         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
32401         does not get optimized out.
32402         (malloc_opt_barrier): New.
32403
32404 2012-05-03  Andreas Jaeger  <aj@suse.de>
32405             Roland McGrath  <roland@hack.frob.com>
32406
32407         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
32408         intermediate file deletion.
32409         (generated): Add .symlist files.
32410
32411 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
32412
32413         [BZ #13775]
32414         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
32415         Redirect under this condition.
32416         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
32417         [__USE_GNU] (__dprintf_chk): Not under this condition.
32418         [__USE_GNU] (__vdprintf_chk): Likewise.
32419         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
32420         under this condition.
32421         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
32422         [__USE_XOPEN2K8] (dprintf): Define under this condition.
32423         [__USE_XOPEN2K8] (vdprintf): Likewise.
32424         [__USE_GNU] (__dprintf_chk): Not under this condition.
32425         [__USE_GNU] (__vdprintf_chk): Likewise.
32426         [__USE_GNU] (dprintf): Likewise.
32427         [__USE_GNU] (vdprintf): Likewise.
32428
32429 2012-05-03  Roland McGrath  <roland@hack.frob.com>
32430
32431         * elf/Makefile (common-generated): Set this instead of generated for
32432         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
32433         $(all-built-dso)-derived lists.
32434
32435 2012-05-03  Andreas Jaeger  <aj@suse.de>
32436
32437         * sysdeps/i386/fpu/libm-test-ulps: Update.
32438
32439         * FAQ: Removed.
32440         * FAQ.in: Likewise.
32441         * scripts/gen-FAQ.pl: Likewise.
32442         * manual/install.texi (Installation): Point to online location of
32443         FAQ.
32444         * Makefile (files-for-dist): Remove FAQ.
32445         (FAQ): Remove.
32446
32447 2012-05-02  Allan McRae  <allan@archlinux.org>
32448
32449         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
32450         (LDFLAGS-reldepmod5.so): Likewise.
32451         (LDFLAGS-reldep6mod1.so): Likewise.
32452         (LDFLAGS-reldep6mod4.so): Likewise.
32453         (LDFLAGS-reldep8mod3.so): Likewise.
32454         (LDFLAGS-unload4mod1.so): Likewise.
32455         (LDFLAGS-unload4mod2.so): Likewise.
32456         (LDFLAGS-tst-initorder): Likewise.
32457         (LDFLAGS-tst-initordera2.so): Likewise.
32458         (LDFLAGS-tst-initordera3.so): Likewise.
32459         (LDFLAGS-tst-initordera4.so): Likewise.
32460         (LDFLAGS-tst-initorderb2.so): Likewise.
32461         (LDFLAGS-noload): Likewise.
32462         (LDFLAGS-next): Likewise.
32463         (LDFLAGS-order2mod1.so): Likewise.
32464         (LDFLAGS-order2mod2.so): Likewise.
32465         (LDFLAGS-tst-initorder2): Likewise.
32466         (LDFLAGS-tst-initorder2a.so): Likewise.
32467         (LDFLAGS-tst-initorder2b.so): Likewise.
32468         (LDFLAGS-tst-initorder2c.so): Likewise.
32469         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
32470
32471 2012-05-02  David S. Miller  <davem@davemloft.net>
32472
32473         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32474
32475 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
32476
32477         [BZ #14055]
32478         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
32479
32480 2012-05-02  Andreas Jaeger  <aj@suse.de>
32481
32482         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
32483         since we manipulate rounding mode.
32484         (CPPFLAGS-test-idouble.c): Likewise.
32485         (CPPFLAGS-test-ifloat.c): Likewise.
32486         (CFLAGS-test-ldouble.c): Likewise.
32487         (CFLAGS-test-double.c): Likewise.
32488         (CFLAGS-test-float.c): Likewise.
32489         (CFLAGS-test-misc.c): Likewise.
32490         (CFLAGS-test-test-fenv.c): Likewise.
32491
32492 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32493
32494         [BZ #2550]
32495         [BZ #2570]
32496         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
32497         comparisons to determine direction to adjust input.
32498
32499 2012-05-01  Roland McGrath  <roland@hack.frob.com>
32500
32501         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
32502         output to the target.
32503
32504         * scripts/localplt.awk: New file.
32505         * elf/Makefile ($(objpfx)check-localplt): Target removed.
32506         (check-localplt-CFLAGS): Variable removed.
32507         ($(all-built-dso:=.jmprel)): New static pattern rule.
32508         (generated): Add those targets.
32509         (localplt-built-dso): New variable.
32510         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
32511
32512         * elf/check-localplt.c: File removed.
32513
32514         * scripts/check-execstack.awk: New file.
32515         * elf/Makefile ($(objpfx)check-execstack): Target removed.
32516         (check-execstack-CFLAGS): Variable removed.
32517         ($(objpfx)check-execstack.h): Target removed.
32518         ($(objpfx)execstack-default): New target.
32519         (generated): Add that instead of check-execstack.h.
32520         ($(all-built-dso:=.phdr)): New static pattern rule.
32521         (generated): Add those targets.
32522         * elf/check-execstack.c: File removed.
32523
32524         * scripts/check-textrel.awk: New file.
32525         * elf/Makefile ($(objpfx)check-textrel): Target removed.
32526         (check-textrel-CFLAGS): Variable removed.
32527         (all-built-dso): Use := to define.o
32528         ($(all-built-dso:=.dyn)): New static pattern rule.
32529         (generated): Add those targets.
32530         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
32531         * config.make.in (READELF): New substituted variable.
32532         * elf/check-textrel.c: File removed.
32533
32534 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
32535
32536         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
32537         allow.
32538         * conform/data/ctype.h-data [C99-based standards] (isblank):
32539         Expect function.
32540         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
32541         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
32542         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32543         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
32544         Specify type.  Require positive value.
32545         (EILSEQ): Likewise.
32546         (ERANGE): Likewise.
32547         [ISO || POSIX] (EILSEQ): Do not expect.
32548         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
32549         Specify type.  Require positive value.
32550         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
32551         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
32552         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
32553         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
32554         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
32555         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
32556         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
32557         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
32558         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
32559         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
32560         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
32561         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
32562         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
32563         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
32564         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
32565         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
32566         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
32567         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
32568         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
32569         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
32570         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
32571         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
32572         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
32573         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
32574         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
32575         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
32576         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
32577         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
32578         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
32579         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
32580         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
32581         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
32582         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
32583         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
32584         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
32585         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
32586         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
32587         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
32588         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
32589         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
32590         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
32591         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
32592         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
32593         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
32594         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
32595         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
32596         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
32597         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
32598         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
32599         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
32600         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
32601         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
32602         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
32603         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
32604         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
32605         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
32606         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
32607         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
32608         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
32609         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
32610         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
32611         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
32612         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
32613         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
32614         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
32615         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
32616         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
32617         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
32618         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
32619         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
32620         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
32621         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
32622         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
32623         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
32624         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
32625         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
32626         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
32627         Require >= 2.
32628         (FLT_ROUNDS): Expect as macro, not constant.
32629         (FLT_MANT_DIG): Use macro-int-constant.
32630         (DBL_MANT_DIG): Likewise.
32631         (LDBL_MANT_DIG): Likewise.
32632         (FLT_DIG): Likewise.
32633         (DBL_DIG): Likewise.
32634         (LDBL_DIG): Likewise.
32635         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
32636         (DBL_MIN_EXP): Likewise.
32637         (LDBL_MIN_EXP): Likewise.
32638         (FLT_MAX_EXP): Use macro-int-constant.
32639         (DBL_MAX_EXP): Likewise.
32640         (LDBL_MAX_EXP): Likewise.
32641         (FLT_MAX_10_EXP): Likewise.
32642         (DBL_MAX_10_EXP): Likewise.
32643         (LDBL_MAX_10_EXP): Likewise.
32644         (FLT_MAX): Use macro-constant.
32645         (DBL_MAX): Likewise.
32646         (LDBL_MAX): Likewise.
32647         (FLT_EPSILON): Use macro-constant.  Give upper bound.
32648         (DBL_EPSILON): Likewise.
32649         (LDBL_EPSILON): Likewise.
32650         (FLT_MIN): Likewise.
32651         (DBL_MIN): Likewise.
32652         (LDBL_MIN): Likewise.
32653         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
32654         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
32655         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
32656         [ISO11] (FLT_HAS_SUBNORM): Likewise.
32657         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
32658         [ISO11] (DBL_DECIMAL_DIG): Likewise.
32659         [ISO11] (FLT_DECIMAL_DIG): Likewise.
32660         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
32661         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
32662         [ISO11] (FLT_TRUE_MIN): Likewise.
32663         [ISO11] (LDBL_TRUE_MIN): Likewise.
32664         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32665         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
32666         (SCHAR_MIN): Use macro-int-constant.  Specify type.
32667         (SCHAR_MAX): Likewise.
32668         (UCHAR_MAX): Likewise.
32669         (CHAR_MIN): Likewise.
32670         (CHAR_MAX): Likewise.
32671         (MB_LEN_MAX): Use macro-int-constant.
32672         (SHRT_MIN): Use macro-int-constant.  Specify type.
32673         (SHRT_MAX): Likewise.
32674         (USHRT_MAX): Likewise.
32675         (INT_MAX): Likewise.
32676         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
32677         bound negative.
32678         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
32679         bound with "U".
32680         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
32681         bound with "L".
32682         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
32683         bound negative.  Suffix upper bound with "L".
32684         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
32685         bound with "UL".
32686         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
32687         Specify type.
32688         [C99-based standards] (LLONG_MAX): Likewise.
32689         [C99-based standards] (ULLONG_MAX): Likewise.
32690         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
32691         == 0.
32692         [ISO11] (max_align_t): Require type.
32693         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32694
32695         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
32696         from $CFLAGS, without defining away __attribute__ calls.
32697         (checknamespace): Use $CFLAGS_namespace.
32698
32699         * conform/conformtest.pl (@keywords): Only include C99 keywords
32700         for standards based on C99 or C11.
32701
32702         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
32703         Disable tests.
32704         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
32705         UNIX98]: Likewise.
32706
32707         * conform/conformtest.pl: Handle "macro-int-constant" and test for
32708         usability of symbols in #if.
32709
32710         * conform/conformtest.pl: If macro or constant types start
32711         "promoted:", expect the symbol to be of the following type
32712         promoted by the integer promotions.
32713
32714         * conform/conformtest.pl: Parse all "constant" and "macro" lines
32715         in one place.  Also handle "macro-constant".
32716
32717         * conform/conformtest.pl: Only accept expected macro values with
32718         "==".  Parse all "macro" lines in one place.
32719         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
32720
32721         * conform/conformtest.pl: Handle braced types on "constant" lines
32722         instead of handling "typed-constant".
32723         * conform/data/signal.h-data: Use "constant" instead of
32724         "typed-constant".
32725
32726         * conform/conformtest.pl: Handle "optional-" at start of lines in
32727         one place rather than duplicating several cases.  Handle each
32728         format of "macro" line with initial "optional-".
32729
32730         * conform/conformtest.pl: Only accept expected constant or
32731         optional-constant values with "==".  Parse all "constant" lines in
32732         one place.  Parse all "optional-constant" lines in one place.
32733         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
32734         * conform/data/fmtmsg.h-data: Likewise.
32735         * conform/data/netinet/in.h-data: Likewise.
32736         * conform/data/tar.h-data: Likewise.
32737         * conform/data/limits.h-data: Use "==" form on "constant" and
32738         "optional-constant" lines.
32739
32740         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
32741         Use -std=c99 for XOPEN2K.
32742         (@knownproblems): Remove.
32743         (newtoken): Don't check %isknown.
32744
32745         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
32746         Do not expect macro.
32747         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
32748         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
32749         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
32750         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
32751         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
32752         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
32753         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
32754         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
32755         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
32756         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
32757         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
32758         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
32759         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
32760         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
32761         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
32762         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
32763         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
32764         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
32765         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
32766         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
32767         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
32768         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
32769         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
32770         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
32771         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
32772         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
32773         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
32774         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
32775         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
32776         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
32777         [XPG3] (acosh): Likewise.
32778         [XPG3] (asinh): Likewise.
32779         [XPG3] (atanh): Likewise.
32780         [XPG3] (cbrt): Likewise.
32781         [XPG3] (expm1): Likewise.
32782         [XPG3] (ilogb): Likewise.
32783         [XPG3] (log1p): Likewise.
32784         [XPG3] (logb): Likewise.
32785         [XPG3] (nextafter): Likewise.
32786         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
32787         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
32788         [XPG3] (remainder): Likewise.
32789         [XPG3] (rint): Likewise.
32790         [XPG3 || XPG4 || UNIX98] (round): Likewise.
32791         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
32792         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
32793         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
32794         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
32795         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
32796         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
32797         [UNIX98 || XOPEN2K] (scalb): Expect.
32798         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
32799         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
32800         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
32801         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
32802         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
32803         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
32804         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
32805         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
32806         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
32807         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
32808         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
32809         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
32810         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
32811         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
32812         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
32813         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
32814         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
32815         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
32816         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
32817         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
32818         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
32819         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
32820         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
32821         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
32822         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
32823         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
32824         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
32825         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
32826         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
32827         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
32828         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
32829         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
32830         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
32831         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
32832         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
32833         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
32834         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
32835         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
32836         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
32837         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
32838         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
32839         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
32840         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
32841         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
32842         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
32843         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
32844         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
32845         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
32846         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
32847         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
32848         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
32849         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
32850         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
32851         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
32852         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
32853         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
32854         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
32855         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
32856         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
32857         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
32858         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
32859         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
32860         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
32861         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
32862         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
32863         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
32864         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
32865         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
32866         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
32867         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
32868         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
32869         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
32870         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
32871         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
32872         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
32873         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
32874         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
32875         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
32876         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
32877         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
32878         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
32879         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
32880         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
32881         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
32882         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
32883         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
32884         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
32885         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
32886         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
32887         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
32888         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
32889         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
32890         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
32891         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
32892         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
32893         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
32894         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
32895         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
32896         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
32897         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
32898         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
32899         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
32900         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
32901         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
32902         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
32903         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
32904         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
32905         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
32906         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
32907         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
32908         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
32909         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
32910         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
32911         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
32912         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
32913         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
32914         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
32915         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
32916         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
32917         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
32918         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
32919         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
32920         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
32921         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
32922         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
32923         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
32924         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
32925         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
32926         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
32927         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
32928         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
32929         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
32930         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
32931         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
32932         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
32933         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
32934         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
32935
32936         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
32937         _XOPEN_SOURCE_EXTENDED for XPG4.
32938
32939         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
32940
32941         * Makeconfig (localtime): Remove variable.
32942         (inst_localtime-file): Likewise.
32943
32944 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32945
32946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
32947         Update.
32948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32949         Update.
32950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
32951         Update.
32952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
32953         Update.
32954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
32955         Update.
32956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
32957         Update.
32958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
32959         Update.
32960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
32961         Update.
32962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
32963         Update.
32964
32965 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
32966
32967         [BZ #2550]
32968         [BZ #2570]
32969         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
32970         comparisons to determine direction to adjust input.
32971         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32972         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
32973         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32974         Likewise.
32975         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32976         Likewise.
32977         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32978         Likewise.
32979         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32980         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32981         Likewise.
32982         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32983         Likewise.
32984         * math/libm-test.inc (nexttoward_test): Add more tests.
32985
32986 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32987
32988         [BZ #14040]
32989         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
32990         in version GLIBC_2.1, not GLIBC_2.0.
32991         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
32992         Likewise.
32993
32994 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
32995
32996         [BZ #13942]
32997         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
32998         (1 - x) * (1 + x).
32999         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
33000         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
33001         * math/libm-test.inc (acos_test): Add more tests.
33002         (asin_test): Likewise.
33003         * sysdeps/i386/fpu/libm-test-ulps: Update.
33004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33005
33006         [BZ #14034]
33007         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
33008         of square root.
33009         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
33010         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
33011         * math/libm-test.inc (acos_test_tonearest): New function.
33012         (acos_test_towardzero): Likewise.
33013         (acos_test_downward): Likewise.
33014         (acos_test_upward): Likewise.
33015         (asin_test_tonearest): Likewise.
33016         (asin_test_towardzero): Likewise.
33017         (asin_test_downward): Likewise.
33018         (asin_test_upward): Likewise.
33019         (main): Call the new functions.
33020         * sysdeps/i386/fpu/libm-test-ulps: Update.
33021         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33022
33023         [BZ #13884]
33024         [BZ #13924]
33025         * math/e_exp10.c: Include <float.h>.
33026         (__ieee754_exp10): Handle underflow here rather than multiplying
33027         large negative argument by M_LN10.
33028         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
33029         of __ieee754_expf.
33030         * math/e_exp10l.c: Include <float.h>.
33031         (__ieee754_exp10l): Handle underflow here rather than multiplying
33032         large negative argument by M_LN10l.
33033         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
33034         spurious overflow exception on underflow.
33035
33036 2012-04-29  Marek Polacek  <polacek@redhat.com>
33037
33038         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
33039         (__fortify_function): New macro.
33040         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
33041         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
33042         __extern_always_inline.
33043         * libio/bits/stdio2.h: Likewise.
33044         * libio/bits/stdio.h: Likewise.
33045         * string/string.h: Likewise.
33046         * string/bits/string3.h: Likewise.
33047         * include/stdio.h: Likewise.
33048         * stdlib/bits/stdlib.h: Likewise.
33049         * stdlib/stdlib.h: Likewise.
33050         * rt/bits/mqueue2.h: Likewise.
33051         * rt/mqueue.h: Likewise.
33052         * posix/bits/unistd.h: Likewise.
33053         * posix/unistd.h: Likewise.
33054         * io/bits/poll2.h: Likewise.
33055         * io/bits/fcntl2.h: Likewise.
33056         * io/fcntl.h: Likewise.
33057         * io/sys/poll.h: Likewise.
33058         * misc/bits/syslog.h: Likewise.
33059         * misc/bits/syslog-ldbl.h: Likewise.
33060         * misc/sys/syslog.h: Likewise.
33061         * socket/bits/socket2.h: Likewise.
33062         * socket/sys/socket.h: Likewise.
33063         * debug/tst-chk1.c: Likewise.
33064         * wcsmbs/bits/wchar2.h: Likewise.
33065         * wcsmbs/bits/wchar-ldbl.h: Likewise.
33066         * wcsmbs/wchar.h: Likewise.
33067
33068 2012-04-29  Andreas Jaeger  <aj@suse.de>
33069
33070         * Makerules (tests): Remove enable-check-abi protection.
33071         (check-abi-warn): Remove.
33072         (check-abi-%): Remove check-abi-warn usage.
33073
33074         * configure.in: Remove check-abi configure option.
33075         * configure: Regenerated.
33076         * config.make.in (enable-check-abi): Remove.
33077
33078 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
33079
33080         [BZ #14033]
33081         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
33082         double functions to double *_finite functions.
33083
33084         [BZ #13941]
33085         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
33086         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
33087         LDBL_MIN_EXP.
33088         * stdio-common/Makefile (tests): Add tst-sprintf3.
33089         * stdio-common/tst-sprintf3.c: New file.
33090
33091         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
33092         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
33093
33094 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
33095
33096         * conform/conformtest.pl: Remove duplicate typed-constant
33097         handling.
33098
33099 2012-04-28  David S. Miller  <davem@davemloft.net>
33100
33101         * Makerules (%.abilist): Add vpath on sysdep_dirs.
33102         (check-abi-%): Remove AWK script prerequisite and explicit
33103         abilist directory.
33104         (check-abi): Rewrite to just diff the symlist with the abilist.
33105         (config-tls, config-abi-config): Delete, no longer used.
33106         (update-abi-%): Remove AWK script and explicit abilist directory.
33107         (update-abi): Rewrite to simply compare and conditionally copy the
33108         symlist and the sysdep abilist file.  Remove update-abi-config
33109         checks.
33110         * abilist/ld.abilist: Remove.
33111         * abilist/libBrokenLocale.abilist: Remove.
33112         * abilist/libanl.abilist: Remove.
33113         * abilist/libcrypt.abilist: Remove.
33114         * abilist/libdl.abilist: Remove.
33115         * abilist/librt.abilist: Remove.
33116         * abilist/libthread_db.abilist: Remove.
33117         * abilist/libutil.abilist: Remove.
33118         * scripts/extract-abilist.awk: Remove.
33119         * scripts/merge-abilist.awk: Remove.
33120         * sysdeps/generic/libcidn.abilist: New file.
33121         * sysdeps/generic/libnss_compat.abilist: New file.
33122         * sysdeps/generic/libnss_db.abilist: New file.
33123         * sysdeps/generic/libnss_dns.abilist: New file.
33124         * sysdeps/generic/libnss_files.abilist: New file.
33125         * sysdeps/generic/libnss_hesiod.abilist: New file.
33126         * sysdeps/generic/libnss_nis.abilist: New file.
33127         * sysdeps/generic/libnss_nisplus.abilist: New file.
33128         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
33129         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
33130         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
33131         file.
33132         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
33133         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
33134         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
33135         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
33136         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
33137         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
33138         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
33139         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
33140         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
33141         file.
33142         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
33143         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
33144         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
33145         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
33146         file.
33147         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
33148         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
33149         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
33150         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
33151         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
33152         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
33153         file.
33154         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
33155         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
33156         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
33157         file.
33158         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
33159         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
33160         New file.
33161         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
33162         New file.
33163         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
33164         New file.
33165         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
33166         New file.
33167         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
33168         New file.
33169         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
33170         New file.
33171         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
33172         New file.
33173         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
33174         New file.
33175         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
33176         New file.
33177         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
33178         New file.
33179         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
33180         New file.
33181         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
33182         New file.
33183         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
33184         New file.
33185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
33186         file.
33187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
33188         New file.
33189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
33190         New file.
33191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
33192         file.
33193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
33194         New file.
33195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
33196         New file.
33197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
33198         file.
33199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
33200         New file.
33201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
33202         New file.
33203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
33204         New file.
33205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
33206         New file.
33207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
33208         New file.
33209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
33210         New file.
33211         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
33212         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
33213         file.
33214         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
33215         New file.
33216         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
33217         file.
33218         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
33219         file.
33220         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
33221         file.
33222         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
33223         file.
33224         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
33225         file.
33226         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
33227         New file.
33228         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
33229         file.
33230         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
33231         file.
33232         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
33233         New file.
33234         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
33235         file.
33236         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
33237         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
33238         file.
33239         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
33240         New file.
33241         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
33242         file.
33243         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
33244         file.
33245         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
33246         file.
33247         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
33248         file.
33249         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
33250         file.
33251         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
33252         New file.
33253         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
33254         file.
33255         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
33256         file.
33257         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
33258         New file.
33259         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
33260         file.
33261         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
33262         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
33263         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
33264         file.
33265         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
33266         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
33267         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
33268         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
33269         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
33270         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
33271         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
33272         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
33273         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
33274         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
33275         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
33276         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
33277         file.
33278         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
33279         New file.
33280         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
33281         file.
33282         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
33283         file.
33284         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
33285         file.
33286         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
33287         file.
33288         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
33289         file.
33290         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
33291         New file.
33292         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
33293         New file.
33294         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
33295         file.
33296         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
33297         New file.
33298         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
33299         file.
33300         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
33301         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
33302         file.
33303         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
33304         New file.
33305         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
33306         file.
33307         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
33308         file.
33309         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
33310         file.
33311         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
33312         file.
33313         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
33314         file.
33315         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
33316         New file.
33317         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
33318         New file.
33319         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
33320         file.
33321         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
33322         New file.
33323         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
33324         file.
33325
33326 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
33327
33328         * conform/conformtest.pl: Fix typo in handling typed-constant from
33329         allow-header.
33330
33331 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
33332
33333         * README: Cut down references to pre-2.6 Linux kernels and
33334         Linuxthreads.  Update lists of configurations in libc and ports
33335         and sort alphabetically.  Say "or newer" with Linux kernel version
33336         requirements.
33337
33338         * config.h.in [IS_IN_build]: Allow compiling without optimization.
33339
33340 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
33341
33342         [BZ #887]
33343         * math/libm-test.inc (logb_test_downward): New test to expose
33344         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
33345         rounding mode.
33346
33347 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
33348
33349         [BZ #14027]
33350         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
33351         to be done.
33352         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
33353         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
33354
33355 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
33356
33357         * sysdeps/unix/i386/brk.S: Remove file.
33358         * sysdeps/unix/i386/dl-brk.S: Likewise.
33359         * sysdeps/unix/i386/pipe.S: Likewise.
33360         * sysdeps/unix/i386/sigreturn.S: Likewise.
33361         * sysdeps/unix/i386/syscall.S: Likewise.
33362         * sysdeps/unix/i386/vfork.S: Likewise.
33363         * sysdeps/unix/i386/wait.S: Likewise.
33364
33365         * sysdeps/unix/common/tcsendbrk.c: Move to ...
33366         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
33367
33368         * configure.in (arm*-none*): Do not allow without
33369         --enable-hacker-mode.
33370         (netbsd*): Remove case setting base_os.
33371         (386bsd*): Likewise.
33372         (freebsd*): Likewise.
33373         (bsdi*): Likewise.
33374         (osf*): Likewise.
33375         (sunos*): Likewise.
33376         (ultrix*): Likewise.
33377         (newsos*): Likewise.
33378         (dynix*): Likewise.
33379         (*bsd*): Likewise.
33380         (sysv*): Likewise.
33381         (isc*): Likewise.
33382         (esix*): Likewise.
33383         (sco*): Likewise.
33384         (minix*): Likewise.
33385         (irix4*): Likewise.
33386         (irix6*): Likewise.
33387         (solaris[2-9]*): Likewise.
33388         (none): Likewise.
33389         * configure: Regenerated.
33390
33391 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33392
33393         [BZ #11521]
33394         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
33395         overflow or cancellation in calculating denominator.
33396         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
33397         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
33398         down expression to avoid unexpected rounding in newer GCCs.
33399         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
33400
33401 2012-04-26  David S. Miller  <davem@davemloft.net>
33402
33403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
33404         long-double compat symbols.
33405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
33406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
33407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
33408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
33409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
33410         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
33411         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
33412         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
33413         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
33414         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
33415         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
33416         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
33417         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
33418
33419 2012-04-25  David S. Miller  <davem@davemloft.net>
33420
33421         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
33422         HWCAP_* values only after the memory barriers have been defined.
33423         (atomic_full_barrier): Define.
33424         (atomic_read_barrier): Define.
33425         (atomic_write_barrier): Define.
33426
33427 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
33428
33429         * shlib-versions: Add libgcc_s version information.
33430         * sysdeps/generic/libgcc_s.h: Remove.
33431         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
33432         libgcc_s.h.
33433         * sysdeps/gnu/unwind-resume.c: Likewise.
33434         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
33435
33436 2012-04-25  David S. Miller  <davem@davemloft.net>
33437
33438         * sysdeps/unix/sparc/brk.S: Delete.
33439         * sysdeps/unix/sparc/dl-brk.S: Delete.
33440         * sysdeps/unix/sparc/pipe.S: Delete.
33441         * sysdeps/unix/sparc/sysdep.S: Delete.
33442         * sysdeps/unix/sparc/sysdep.h: Delete.
33443         * sysdeps/unix/sparc/vfork.S: Delete.
33444         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
33445         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
33446         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
33447         (ret_ERRVAL, r0, r1, MOVE): Define.
33448         (JUMPTARGET): Remove.
33449         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
33450         sysdeps/unix/sparc/sysdep.h
33451         (ENTRY, END): Remove.
33452         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33453
33454 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
33455
33456         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
33457         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
33458         -DIS_IN_build.
33459
33460         * timezone/README: Update upstream location and email address for
33461         tzcode and tzdata.
33462         * timezone/zdump.c: Update from tzcode 2012b.
33463         * timezone/zic.c: Likewise.
33464
33465         * configure.in (libc_cv_as_needed): Remove test.
33466         * configure: Regenerated.
33467         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
33468         conditional definition.
33469         [$(have-as-needed) != yes] (no-as-needed): Likewise.
33470         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
33471         * config.make.in (have-as-needed): Remove variable.
33472
33473 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
33474             Paul Pluzhnikov  <ppluzhnikov@google.com>
33475
33476         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
33477         strings correctly.
33478
33479 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
33480
33481         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
33482         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
33483         * sysdeps/sh/strlen.S: Likewise.
33484
33485 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
33486
33487         * sysdeps/unix/fork.S: Remove file.
33488         * sysdeps/unix/i386/fork.S: Likewise.
33489         * sysdeps/unix/sparc/fork.S: Likewise.
33490
33491         * sysdeps/unix/system.c: Remove file.
33492         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
33493
33494         * sysdeps/unix/getegid.S: Remove file.
33495         * sysdeps/unix/geteuid.S: Likewise.
33496
33497 2012-04-24  Roland McGrath  <roland@hack.frob.com>
33498
33499         * scripts/check-localplt.awk: New file.
33500         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
33501         of diff.
33502         * scripts/data/localplt-generic.data: Add a comment.
33503
33504         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
33505         NODE when __dir_mkfile failed.
33506         * sysdeps/mach/hurd/symlinkat.c: Likewise.
33507         Reported by Ludovic Courtès <ludo@gnu.org>.
33508
33509 2012-04-24  Andreas Jaeger  <aj@suse.de>
33510
33511         * Makerules (common-clean): Also remove gen-as-const-headers
33512         files.
33513
33514 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
33515
33516         * Makerules (native-compile): Do not change working directory for
33517         build.  Use $(OUTPUT_OPTION) in command.
33518         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
33519
33520 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33521
33522         [BZ #13886]
33523         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
33524         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
33525         * math/libm-test.inc (floor_test): Add more tests.
33526         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
33527
33528 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
33529
33530         * sysdeps/unix/getdents.c: Remove file.
33531         * sysdeps/unix/sysv/getdents.c: Likewise.
33532         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
33533
33534         * sysdeps/unix/syscalls.list (madvise): Add syscall from
33535         sysdeps/unix/mman/syscalls.list.
33536         (mmap): Likewise.
33537         (mprotect): Likewise.
33538         (msync): Likewise.
33539         (munmap): Likewise.
33540         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
33541         * sysdeps/unix/mman/syscalls.list: Remove.
33542         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
33543
33544         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
33545         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
33546         * configure: Regenerated.
33547         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
33548         $(libgcc_s_suffix).
33549         * config.make.in (libgcc_s_suffix): Remove variable.
33550
33551 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
33552
33553         * sysdeps/unix/sysv/gethostname.c: Move to ...
33554         * sysdeps/posix/gethostname.c: ... here.
33555
33556         * sysdeps/unix/execve.S: Remove file.
33557
33558         * sysdeps/unix/_exit.S: Remove file.
33559
33560 2012-04-23  Andreas Jaeger  <aj@suse.de>
33561
33562         [BZ #13739]
33563         * manual/Makefile: Remove make dist support, there's no
33564         need for a stand-alone documentation tar ball.
33565         (TEXI2DVI): Define always, it's not in Makeconfig.
33566         (dist): Removed.
33567         (tar-it): Removed.
33568         (edition): Removed.
33569         (glibc-doc-$(edition).tar): Removed
33570         (%.Z): Removed.
33571         (%.gz): Removed.
33572         (%.uu): Removed.
33573         (ETAGS): Remove, it's in Makeconfig.
33574         (move-if-change): Remove, it's in Makeconfig.
33575
33576 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
33577
33578         [BZ #13970]
33579         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
33580         (strtod, strtof, strtold, strtol, strtoul, strtoq)
33581         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
33582         (strtod_l, strtof_l, strtold_l): Remove __wur.
33583         It is not necessarily an error to ignore strtol's return value.
33584         One can reliably look at the stored endptr to decide whether
33585         the number had valid syntax.
33586
33587 2012-04-21  Andreas Jaeger  <aj@suse.de>
33588
33589         [BZ #13739]
33590         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
33591
33592 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
33593
33594         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
33595         * sysdeps/unix/sysv/Versions: Remove file.
33596
33597 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
33598
33599         [BZ #13927]
33600         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33601
33602 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
33603
33604         [BZ #7064]
33605         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
33606         version from __vm86.
33607
33608 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
33609
33610         * sysdeps/unix/common/lxstat.c: Remove file.
33611         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
33612
33613         * sysdeps/unix/sysv/Makefile: Remove file.
33614
33615         * sysdeps/unix/sysv/direct.h: Remove file.
33616
33617         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
33618         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
33619         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
33620         * sysdeps/unix/sysv/bits/signum.h: Likewise.
33621         * sysdeps/unix/sysv/bits/stat.h: Likewise.
33622         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
33623         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
33624
33625         * sysdeps/unix/sysv/setrlimit.c: Remove file.
33626
33627         * sysdeps/unix/xmknod.c: Remove file.
33628         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
33629
33630         * sysdeps/unix/sysv/settimeofday.c: Remove file.
33631
33632         * sysdeps/unix/sysv/i386/time.S: Remove file.
33633
33634         * sysdeps/unix/fxstat.c: Remove file.
33635         * sysdeps/unix/xstat.c: Likewise.
33636         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
33637
33638         * sysdeps/unix/sysv/sigaction.c: Remove file.
33639
33640         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
33641         (sysdep_headers): Remove variable.
33642         [termio.h not in sysdep_headers] (generated): Likewise.
33643         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
33644         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
33645         * sysdeps/unix/sysv/tcdrain.c: Likewise.
33646         * sysdeps/unix/sysv/tcflow.c: Likewise.
33647         * sysdeps/unix/sysv/tcflush.c: Likewise.
33648         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
33649         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
33650         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
33651         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
33652         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
33653
33654         * sysdeps/unix/siglist.c: Remove file.
33655
33656         * sysdeps/unix/getppid.S: Remove file.
33657
33658         * sysdeps/unix/mkdir.c: Remove file.
33659         * sysdeps/unix/rmdir.c: Likewise.
33660
33661 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
33662
33663         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
33664         ERR_MAX value.
33665         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
33666         errlist-compat value.
33667
33668 2012-04-18  David S. Miller  <davem@davemloft.net>
33669
33670         * sysdeps/generic/memcopy.h (reg_char): Delete.
33671         * debug/strcat_chk.c: Use char, not reg_char.
33672         * debug/strcpy_chk.c: Likewise.
33673         * debug/strncat_chk.c: Likewise.
33674         * debug/strncpy_chk.c: Likewise.
33675         * string/memchr.c: Likewise.
33676         * string/memrchr.c: Likewise.
33677         * string/rawmemchr.c: Likewise.
33678         * string/strcat.c: Likewise.
33679         * string/strchr.c: Likewise.
33680         * string/strchrnul.c: Likewise.
33681         * string/strcmp.c: Likewise.
33682         * string/strcpy.c: Likewise.
33683         * string/strncat.c: Likewise.
33684         * string/strncmp.c: Likewise.
33685         * string/strncpy.c: Likewise.
33686
33687 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
33688
33689         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
33690         __builtin_memcopy is called when src and dest ranges are known to not
33691         overlap.
33692
33693 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
33694
33695         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
33696         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
33697         fwd_align_merge macro call.
33698         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
33699         bwd_align_merge macro call.
33700         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
33701
33702 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
33703
33704         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
33705         bwd_align_merge macros.
33706         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
33707         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
33708         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
33709
33710 2012-04-18  David S. Miller  <davem@davemloft.net>
33711
33712         * sysdeps/sparc/sparc64/memcopy.h: Delete.
33713
33714 2012-04-18  Andreas Jaeger  <aj@suse.de>
33715
33716         [BZ# 6794]
33717         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
33718         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
33719         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
33720
33721         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
33722         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
33723         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
33724
33725         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
33726         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
33727         Adjust for changed ldbl-128 files.
33728
33729         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
33730         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
33731         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
33732
33733 2012-04-17  David S. Miller  <davem@davemloft.net>
33734
33735         * sysdeps/sparc/sparc32/memcopy.h: Delete.
33736
33737 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
33738
33739         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
33740         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
33741         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
33742         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
33743         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
33744         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
33745
33746 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33747
33748         [BZ #6794]
33749         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
33750         * math/libm-test.inc: Add ilogb errno and exception tests.
33751         * math/w_ilogb.c: New file: ilogb wrapper.
33752         * math/w_ilogbf.c: New file: ilogbf wrapper.
33753         * math/w_ilogbl.c: New file: ilogbl wrapper.
33754         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
33755         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
33756         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
33757         exception being thrown with 0.0 as argument.
33758         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
33759         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
33760         exception being thrown with 0.0 as argument.
33761         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
33762         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
33763         exception being thrown with 0.0 as argument.
33764         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
33765         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
33766         exception being thrown with 0.0 as argument.
33767         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
33768         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
33769         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
33770         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
33771         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
33772         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
33773         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
33774         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
33775         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
33776
33777 2012-04-17  Petr Baudis  <pasky@ucw.cz>
33778
33779         * include/sys/uio.h: Change __vector to __iovec to avoid clash
33780         with altivec.
33781
33782 2012-04-16  Marek Polacek  <polacek@redhat.com>
33783
33784         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
33785
33786 2012-04-16  Marek Polacek  <polacek@redhat.com>
33787
33788         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
33789         operands of fdivp instruction.
33790
33791 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
33792
33793         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
33794         * elf/tst-auditmod3b.c: Likewise.
33795         * elf/tst-auditmod4b.c: Likewise.
33796         * elf/tst-auditmod5b.c: Likewise.
33797         * elf/tst-auditmod6b.c: Likewise.
33798         * elf/tst-auditmod6c.c: Likewise.
33799         * elf/tst-auditmod7b.c: Likewise.
33800         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
33801         * sysdeps/x86_64/preconfigure.in: Likewise.
33802         * sysdeps/x86_64/preconfigure: Regenerated.
33803
33804 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
33805
33806         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
33807         __ILP32__.
33808
33809 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
33810
33811         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
33812         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
33813
33814 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
33815
33816         [BZ #13973]
33817         * locale/iso-639.def: Fix gl language name. Spotted by
33818         Yaron Shahrabani.
33819
33820 2012-04-12  Roland McGrath  <roland@hack.frob.com>
33821
33822         [BZ #2074]
33823         * libio/libio.h (__io_write_fn): Update comment.
33824
33825 2012-04-12  Petr Baudis  <pasky@ucw.cz>
33826
33827         [BZ #2074]
33828         * stdio.texi (Hook Functions): The user provided writer function
33829         is not allowed to return -1.
33830
33831 2012-04-11  David S. Miller  <davem@davemloft.net>
33832
33833         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33834
33835 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
33836
33837         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
33838         Add a leading slash to rtkaio.
33839
33840 2012-04-11  Jim Meyering  <meyering@redhat.com>
33841
33842         [BZ #11959]
33843         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
33844         It is not necessarily an error to ignore fwrite's return
33845         value.  One can reliably use ferror to test for errors after
33846         the fact.
33847
33848 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
33849
33850         * bits/types.h (__snseconds_t): New type.
33851         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
33852
33853         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
33854         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33855         (__SNSECONDS_T_TYPE): Likewise.
33856         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33857         (__SNSECONDS_T_TYPE): Likewise.
33858         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33859         (__SNSECONDS_T_TYPE): Likewise.
33860
33861 2012-04-10  Andreas Jaeger  <aj@suse.de>
33862
33863         [BZ #2636]
33864         * manual/time.texi (Processor Time): Return type of times is
33865         elapsed real time since an arbitrary point in the past.
33866         (CPU Time): Move CLK_TCK from here...
33867         (Processor Time): ...to here.  Correct description.
33868         * manual/conf.texi (Constants for Sysconf): Correct description of
33869         _SC_CLK_TCK.
33870
33871 2012-04-10  David S. Miller  <davem@davemloft.net>
33872
33873         [BZ #13967]
33874         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
33875         where the is a gap between DT_REL(A) and DT_JMPREL.
33876
33877 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
33878
33879         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
33880         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
33881         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
33882
33883 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33884
33885         * elf/dl-support.c (_dl_inhibit_cache): New variable.
33886         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
33887         (dl_main): Handle --inhibit-cache.
33888         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
33889         _dl_inhibit_cache.
33890         * elf/dl-load.c (_dl_map_object): Use it.
33891         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
33892
33893 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
33894
33895         [BZ #13872]
33896         * sysdeps/i386/fpu/e_powl.S (p78): New object.
33897         (__ieee754_powl): Saturate large exponents rather than testing for
33898         overflow of y*log2(x).
33899         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33900         * math/libm-test.inc (pow_test): Do not permit spurious overflow
33901         exceptions.
33902
33903         [BZ #11521]
33904         * math/s_ctan.c: Include <float.h>.
33905         (__ctan): Avoid internal overflow or cancellation in calculating
33906         denominator.
33907         * math/s_ctanf.c: Likewise.
33908         * math/s_ctanl.c: Likewise.
33909         * math/s_ctanh.c: Likewise.
33910         * math/s_ctanhf.c: Likewise.
33911         * math/s_ctanhl.c: Likewise.
33912         * math/libm-test.inc (ctan_test): Add more tests.
33913         (ctanh_test): Likewise.
33914         * sysdeps/i386/fpu/libm-test-ulps: Update.
33915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33916
33917 2012-04-09  Andreas Jaeger  <aj@suse.de>
33918
33919         [BZ #6894]
33920         * manual/filesys.texi (Directory Entries): Mention that d_namlen
33921         is an optional BSD extension.
33922
33923         [BZ #10254]
33924         * manual/stdio.texi (Opening Streams): Document additional fopen
33925         parameters.
33926
33927 2012-04-09  Roland McGrath  <roland@hack.frob.com>
33928
33929         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
33930         %eax without telling the compiler.
33931
33932 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
33933
33934         [BZ # 13963]
33935         * manual/install.texi: Use sourceware.org.
33936
33937 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
33938
33939         [BZ #13873]
33940         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
33941         (__ieee754_pow): Generate overflow and underflow using huge*huge
33942         and tiny*tiny rather than just returning constant infinity or zero
33943         for large exponents.
33944         * math/libm-test.inc (pow_test): Require overflow exceptions for
33945         applicable cases of large exponents.
33946
33947         [BZ #706]
33948         * sysdeps/i386/fpu/e_pow.S (p10): New object.
33949         (__ieee754_pow): Use iterative multiplication algorithm only for
33950         integer exponents with absolute value below 1024.  Check for odd
33951         integer exponents when using algorithm for real exponents.
33952         * math/libm-test.inc (pow_test): Add more tests.
33953         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33954
33955 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
33956
33957         [BZ #13705]
33958         * math/libm-test.inc (exp_test): Do not allow overflow exception
33959         on underflow test.
33960
33961 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
33962
33963         [BZ #13705]
33964         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
33965         instead of __kernel_standard_f.
33966
33967 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
33968
33969         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
33970         * sysdeps/x86_64/memset_chk.S: Likewise.
33971
33972 2012-04-08  Andreas Jaeger  <aj@suse.de>
33973
33974         [BZ #10153]
33975         * manual/startup.texi (Environment Access): Describe return value
33976         for putenv and setenv.
33977
33978         [BZ #6895]
33979         * manual/filesys.texi (Directory Entries): Add description for
33980         DT_LNK.
33981
33982         [BZ #6890]
33983         * manual/filesys.texi (Directory Entries): Clarify that it's file
33984         system not operating system in the description of DT_UNKNOWN.
33985
33986         [BZ #6578]
33987         * manual/syslog.texi (closelog): Fix reference, it's openlog.
33988
33989 2012-04-08  Stephen Compall  <s11@member.fsf.org>
33990
33991         [BZ #6649]
33992         * manual/llio.texi (Opening and Closing Files): Add cross
33993         reference to explain mode argument.
33994
33995 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
33996
33997         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
33998         * sysdeps/x86_64/memset_chk.S: Likewise.
33999
34000 2012-04-07  David S. Miller  <davem@davemloft.net>
34001
34002         * elf/elf.h (R_SPARC_WDISP10): Define.
34003         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
34004         R_SPARC_SIZE32.
34005         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
34006         R_SPARC_SIZE64 and R_SPARC_H34.
34007
34008 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
34009
34010         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
34011         conditions and remove no longer applicable assertion.
34012
34013 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
34014
34015         * bits/byteswap.h: Include <features.h>.
34016         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
34017         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
34018
34019 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
34020
34021         * bits/byteswap.h (__bswap_16): Removed.
34022         Include <bits/byteswap-16.h> to get __bswap_16.
34023         * sysdeps/i386/bits/byteswap.h: Likewise.
34024         * sysdeps/s390/bits/byteswap.h: Likewise.
34025         * sysdeps/x86_64/bits/byteswap.h: Likewise.
34026         * bits/byteswap-16.h: New file.
34027         * sysdeps/i386/bits/byteswap-16.h: Likewise.
34028         * sysdeps/s390/bits/byteswap-16.h: Likewise.
34029         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
34030         * string/Makefile (headers): Add bits/byteswap-16.h.
34031
34032 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
34033
34034         [BZ #13895]
34035         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
34036         extra indirection.
34037         * nss/Makefile (tests-static, tests): Add tst-nss-static.
34038         * nss/tst-nss-static.c: New.
34039
34040 2012-04-06  Robert Millan  <rmh@gnu.org>
34041
34042         [BZ #6486]
34043         * manual/llio.texi (File Position Primitive): lseek
34044         refers to WHENCE when it really means OFFSET.
34045
34046 2012-04-06  Andreas Jaeger  <aj@suse.de>
34047
34048         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
34049         strncmp declarations.
34050
34051         * abilist/libc.abilist: Add __poll and __ppoll.
34052
34053 2012-04-05  David S. Miller  <davem@davemloft.net>
34054
34055         * scripts/check-local-headers.sh: Accept a host triplet in the
34056         path matched by the exclude regexp.
34057
34058         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
34059         definition.
34060         * sysdeps/powerpc/powerpc32/dl-machine.h
34061         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
34062         * sysdeps/s390/s390-32/dl-machine.h
34063         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
34064         * sysdeps/sparc/sparc32/dl-machine.h
34065         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
34066         * sysdeps/sparc/sparc64/dl-machine.h
34067         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
34068
34069         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
34070         lazy binding.
34071         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
34072         undefined symbol errors.
34073
34074         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
34075         DT_NEEDED entries.
34076
34077 2012-04-05  Michael Matz  <matz@suse.de>
34078
34079         [BZ #13592]
34080         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
34081
34082 2012-04-05  Andreas Jaeger  <aj@suse.de>
34083
34084         [BZ #13908]
34085         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
34086         comment.
34087
34088 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
34089
34090         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
34091         which ROUND is no valid rounding mode.
34092
34093 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
34094
34095         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
34096         read again.
34097         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
34098
34099 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
34100
34101         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
34102         an exception using FPU order intentionally.
34103
34104 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
34105
34106         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
34107         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
34108         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
34109         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
34110
34111 2012-04-05  Simon Josefsson  <simon@josefsson.org>
34112
34113         [BZ #12340]
34114         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
34115         EINVAL when BUFLEN is too smal.
34116
34117 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
34118
34119         [BZ #13553]
34120         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
34121         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
34122
34123 2012-04-03  Andreas Jaeger  <aj@suse.de>
34124
34125         [BZ #13938]
34126         * manual/setjmp.texi (System V contexts): Fix sentence.
34127
34128         [BZ #13926]
34129         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
34130         New macro for this case.
34131         [!__GNUC__] (__bswap_64): New inline function for this case.
34132         * sysdeps/x86_64/bits/byteswap.h: Likewise.
34133         * bits/byteswap.h: Likewise.
34134         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
34135         ull, guard with __GLIBC_HAVE_LONG_LONG.
34136
34137         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
34138         __GLIBC_HAVE_LONG_LONG.
34139
34140         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
34141         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
34142
34143 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
34144
34145         [BZ #13691]
34146         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
34147         inptr and inend, rather than using last_ch.
34148
34149 2012-04-02  David S. Miller  <davem@davemloft.net>
34150
34151         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
34152         * stdio-common/printf-parse.h (read_int): Change return type to
34153         'int', return -1 on INT_MAX overflow.
34154         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
34155         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
34156         overflows INT_MAX.  Check for overflow of in-format-string precision
34157         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
34158         SIZE_MAX not INT_MAX for integer overflow test.
34159         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
34160         skip the construct in the format string but do not record anything.
34161         * stdio-common/bug22.c: Adjust to test both width/prevision
34162         INT_MAX overflow as well as total length INT_MAX overflow.  Check
34163         explicitly for proper errno values.
34164
34165 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
34166
34167         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
34168         CHAR_MAX.
34169         * string/test-strcmp.c [! WIDE]: Likewise.
34170         * time/tst-mktime2.c: Likewise for INT_MAX.
34171         * string/test-string.h: #include <sys/param.h> for MIN.
34172
34173         * csu/init-first.c (__libc_init_first): Call __ctype_init.
34174         * sysdeps/i386/init-first.c (init): Likewise.
34175         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
34176         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
34177         * sysdeps/sh/init-first.c (init): Likewise.
34178
34179 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
34180
34181         * po/ru.po: Update from translation team.
34182         * po/vi.po: Likewise.
34183
34184 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
34185
34186         * resolv/nss_dns/dns-host.c: Merge copyright years.
34187
34188 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34189
34190         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
34191         Optimize memcpy with prefetch if
34192         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
34193         src, dst pointers have unequal 16 byte alignments.
34194
34195 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34196
34197         [BZ #13928]
34198         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
34199         from a CNAME entry and return the minimum ttl for the query.
34200         (gaih_getanswer_slice): Likewise.
34201
34202 2012-03-30  Jeff Law  <law@redhat.com>
34203
34204         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
34205         due to long keys.
34206         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
34207         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
34208
34209         * resolv/nss_dns/dns-host.c: Update copyright year.
34210
34211 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
34212
34213         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
34214         requests to save a system call.  Fix check that all bytes are sent.
34215
34216         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
34217         comments for sendmmsg.
34218
34219 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
34220
34221         [BZ #13691]
34222         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
34223         with only 1 character between 0x0041 and 0x01b0.
34224         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
34225         * wcsmbs/tst-mbsnrtowcs.c: New file.
34226
34227 2012-03-29  David S. Miller  <davem@davemloft.net>
34228
34229         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
34230         small copies by hand.
34231
34232 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
34233
34234         [BZ #13761]
34235         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
34236         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
34237         group memberships.
34238
34239 2012-03-28  David S. Miller  <davem@davemloft.net>
34240
34241         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
34242         that branches into memcpy.
34243         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
34244         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
34245         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
34246         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
34247         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
34248         bits.
34249         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
34250         implementation too.
34251         * sysdeps/sparc/mempcpy.S: New file.
34252
34253         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
34254         the IFUNC routine in the libc case.
34255         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
34256
34257         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
34258         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
34259         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
34260         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
34261         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
34262         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
34263         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
34264         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
34265
34266         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
34267         loop to 256 bytes instead of 64 bytes and fix test signedness.
34268
34269         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
34270         * sysdeps/sparc/sparc32/Makefile: rather than here...
34271         * sysdeps/sparc/sparc64/Makefile: and here.
34272
34273 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
34274
34275         * malloc/mallocbug.c: Avoid warnings about unused variables.
34276
34277 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34278
34279         [BZ #13760]
34280         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
34281         in the right place. Discard and retry query if response is
34282         larger than input buffer size.
34283
34284 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
34285
34286         [BZ #369]
34287         [BZ #2678]
34288         [BZ #3866]
34289         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
34290         x for large integer exponent.
34291         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
34292         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
34293         sign of result as needed afterwards.
34294         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
34295         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
34296         result for underflowing pow the same as for overflow.
34297         (__kernel_standard_l): Handle powl overflow and underflow here
34298         rather than calling __kernel_standard.
34299         * math/libm-test.inc (pow_test): Add more tests.
34300
34301         [BZ #3868]
34302         [BZ #13879]
34303         [BZ #13910]
34304         [BZ #13911]
34305         [BZ #13912]
34306         [BZ #13913]
34307         [BZ #13915]
34308         [BZ #13916]
34309         [BZ #13917]
34310         [BZ #13918]
34311         [BZ #13919]
34312         [BZ #13920]
34313         [BZ #13921]
34314         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
34315         * sysdeps/ieee754/k_standard.c: Include <float.h>.
34316         (__kernel_standard_l): New function.
34317         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
34318         __kernel_standard.
34319         * math/w_acosl.c (__acosl): Likewise.
34320         * math/w_asinl.c (__asinl): Likewise.
34321         * math/w_atan2l.c (__atan2l): Likewise.
34322         * math/w_atanhl.c (__atanhl): Likewise.
34323         * math/w_coshl.c (__coshl): Likewise.
34324         * math/w_exp10l.c (__exp10l): Likewise.
34325         * math/w_exp2l.c (__exp2l): Likewise.
34326         * math/w_fmodl.c (__fmodl): Likewise.
34327         * math/w_hypotl.c (__hypotl): Likewise.
34328         * math/w_j0l.c (__j0l, __y0l): Likewise.
34329         * math/w_j1l.c (__j1l, __y1l): Likewise.
34330         * math/w_jnl.c (__jnl, __ynl): Likewise.
34331         * math/w_lgammal.c (__lgammal): Likewise.
34332         * math/w_log10l.c (__log10l): Likewise.
34333         * math/w_log2l.c (__log2l): Likewise.
34334         * math/w_logl.c (__logl): Likewise.
34335         * math/w_powl.c (__powl): Likewise.
34336         * math/w_remainderl.c (__remainderl): Likewise.
34337         * math/w_scalbl.c (sysv_scalbl): Likewise.
34338         * math/w_sinhl.c (__sinhl): Likewise.
34339         * math/w_sqrtl.c (__sqrtl): Likewise.
34340         * math/w_tgammal.c (__tgammal): Likewise.
34341         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
34342         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
34343         * math/libm-test.inc (acos_test): Add more tests.
34344         (acosh_test): Likewise.
34345         (asin_test): Likewise.
34346         (atanh_test): Likewise.
34347         (exp_test): Likewise.
34348         (exp10_test): Likewise.
34349         (exp2_test): Likewise.
34350         (expm1_test): Likewise.
34351         (lgamma_test): Likewise.
34352         (log_test): Likewise.
34353         (log10_test): Likewise.
34354         (log1p_test): Likewise.
34355         (log2_test): Likewise.
34356         (pow_test): Do not allow some spurious overflow exceptions.
34357         (sqrt_test): Add more tests.
34358         (tgamma_test): Likewise.
34359         (y0_test): Likewise.
34360         (y1_test): Likewise.
34361         (yn_test): Likewise.
34362
34363 2012-03-27  Anton Blanchard  <anton@samba.org>
34364
34365         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
34366         MAP_HUGETLB.
34367         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
34368         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
34369         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
34370
34371 2012-03-27  David S. Miller  <davem@davemloft.net>
34372
34373         * conform/Makefile: Run run-conformtest.sh using $(BASH).
34374
34375         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
34376         have-as-vis3 check.
34377
34378 2012-03-27  Andreas Jaeger  <aj@suse.de>
34379
34380         * sysdeps/x86_64/elf/configure.in: Moved to ...
34381         * sysdeps/x86_64/configure.in: ... here.
34382         * sysdeps/x86_64/elf/start.S: Moved to ...
34383         * sysdeps/x86_64/start.S: ... here.
34384         * sysdeps/x86_64/elf/configure: Delete.
34385
34386         * sysdeps/x86_64/configure.in: Merge contents from
34387         sysdeps/i386/configure.in (without i686 check).
34388
34389         * sysdeps/i386/elf/Versions: Merge into ...
34390         * sysdeps/i386/Versions: ... this.
34391         * sysdeps/i386/elf/Versions: Delete file.
34392         * sysdeps/i386/elf/start.S: Moved to ...
34393         * sysdeps/i386/start.S: ...here.
34394         * sysdeps/i386/elf/configure.in: Merge into...
34395         * sysdeps/i386/configure.in: ...here.
34396         * sysdeps/i386/elf/configure.in: Delete file.
34397         * sysdeps/i386/elf/configure: Delete file.
34398
34399         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
34400         * debug/backtracesyms.c: ... here.
34401         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
34402         * debug/backtracesymsfd.c: ... here.
34403         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
34404         * sysdeps/generic/ifunc-sel.h: ... here.
34405
34406         * sysdeps/unix/i386/start.c: Delete file.
34407         * sysdeps/unix/sparc/start.c: Delete file.
34408         * sysdeps/unix/start.c: Delete file.
34409
34410         * sysdeps/sh/elf/configure.in: Moved to ...
34411         * sysdeps/sh/configure.in: ... here.
34412         * sysdeps/sh/elf/start.S: Moved to ...
34413         * sysdeps/sh/start.S: ... here.
34414         * sysdeps/sh/elf/configure: Delete file.
34415
34416         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
34417         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
34418         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
34419         * sysdeps/powerpc/powerpc64/entry.h: ... here.
34420         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
34421         * sysdeps/powerpc/powerpc64/start.S: here.
34422         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
34423         * sysdeps/powerpc/powerpc64/Makefile: ... this.
34424         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
34425         * sysdeps/powerpc/powerpc64/configure.in: ... this.
34426         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
34427
34428         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
34429         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
34430         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
34431         * sysdeps/powerpc/powerpc32/start.S: ... here.
34432         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
34433         * sysdeps/powerpc/powerpc32/configure.in: ... this.
34434         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
34435
34436         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
34437         * sysdeps/powerpc/ifunc-sel.h: ... here.
34438         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
34439         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
34440
34441         * sysdeps/sparc/elf/configure.in: Moved to ...
34442         * sysdeps/sparc/configure.in: ... here.
34443         * sysdeps/sparc/elf/configure: Delete file.
34444         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
34445         * sysdeps/sparc/sparc32/start.S: ... here.
34446         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
34447         * sysdeps/sparc/sparc64/start.S: ... here.
34448         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
34449         * sysdeps/sparc/sparc32/Makefile: ... this.
34450         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
34451         * sysdeps/sparc/sparc64/Makefile: ... this.
34452
34453         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
34454         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
34455         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
34456         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
34457         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
34458         * sysdeps/s390/s390-32/setjmp.S: ... here.
34459         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
34460         * sysdeps/s390/s390-32/configure.in: ... here.
34461         * sysdeps/s390/s390-32/elf/configure: Delete file.
34462         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
34463         * sysdeps/s390/s390-32/start.S: ... here.
34464
34465         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
34466         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
34467         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
34468         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
34469         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
34470         * sysdeps/s390/s390-64/setjmp.S: ... here.
34471         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
34472         * sysdeps/s390/s390-64/configure.in: ... here
34473         * sysdeps/s390/s390-64/elf/configure: Delete file.
34474         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
34475         * sysdeps/s390/s390-64/start.S: ... here.
34476         * sysdeps/s390/s390-64/elf/configure: Delete.
34477
34478         * configure.in: Remove support for elf directories in sysdeps.
34479
34480         * configure: Regenerated.
34481         * sysdeps/i386/configure: Regenerated.
34482         * sysdeps/powerpc/powerpc32/configure: Regenerated.
34483         * sysdeps/powerpc/powerpc64/configure: Regenerated.
34484         * sysdeps/s390/s390-32/configure: Regenerated.
34485         * sysdeps/s390/s390-64/configure: Regenerated.
34486         * sysdeps/sh/configure: Regenerated.
34487         * sysdeps/sparc/configure: Regenerated.
34488         * sysdeps/x86_64/configure: Regenerated.
34489
34490 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
34491
34492         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34493
34494         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
34495         denormal result into account.
34496
34497 2012-03-25  Roland McGrath  <roland@hack.frob.com>
34498
34499         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
34500         Reported by Allan McRae <allan@archlinux.org>.
34501
34502 2012-03-23  Jeff Law  <law@redhat.com>
34503
34504         * nss/getnssent.c (__nss_getent): Fix typo.
34505
34506 2012-03-23  David S. Miller  <davem@davemloft.net>
34507
34508         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34509
34510 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
34511
34512         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
34513         to pad to uint64_t for each field.
34514         (dl_tls_index): Replace unsigned long with uint64_t.
34515
34516 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
34517         Paul Pluzhnikov  <ppluzhnikov@google.com>
34518
34519         [BZ #6528]
34520         * grp/Makefile (otherlibs): Don't set it.
34521         * inet/Makefile (otherlibs): Likewise.
34522         * login/Makefile (otherlibs): Likewise.
34523         * nscd/Makefile (otherlibs): Likewise.
34524         * posix/Makefile (otherlibs): Likewise.
34525         * pwd/Makefile (otherlibs): Likewise.
34526         * rt/Makefile (otherlibs): Likewise.
34527         * sunrpc/Makefile (otherlibs): Likewise.
34528         * nss/Makefile (otherlibs): Likewise.
34529         Add libnss_files to routines and static-only-routines.
34530         ($(objpfx)getent): Remove rule.
34531         * resolv/Makefile: Add libnss_dns and libresolv to routines and
34532         static-only-routines.
34533
34534 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
34535
34536         [BZ #13892]
34537         * math/s_cexp.c: Include <float.h>.
34538         (__cexp): Handle exp result overflowing not necessarily
34539         overflowing both real and imaginary parts of result.
34540         * math/s_cexpf.c: Likewise.
34541         * math/s_cexpl.c: Likewise.
34542         * math/libm-test.inc (cexp_test): Add more tests.
34543         * sysdeps/i386/fpu/libm-test-ulps: Update.
34544         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34545
34546 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34547
34548         * include/link.h (ELFW): New macro.
34549         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
34550         Replace ELF64_R_TYPE with ELFW(R_TYPE).
34551
34552 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34553
34554         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
34555         with uint64_t.
34556
34557 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34558
34559         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
34560         declaration.
34561         (struct La_x32_retval): Likewise.
34562
34563 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34564
34565         * sysdeps/x86_64/preconfigure.in: New file.
34566         * sysdeps/x86_64/preconfigure: New generated file.
34567
34568 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
34569
34570         [BZ #13824]
34571         * math/e_exp2l.c: Include <float.h>.
34572         (__ieee754_exp2l): Handle overflow and underflow cases
34573         separately.  Only pass fractional part of argument to
34574         __ieee754_expl.
34575         * math/libm-test.inc (exp2_test): Add more tests.
34576
34577         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
34578         negating x to take absolute value.
34579         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34580         Likewise.
34581         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34582         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
34583         Likewise.
34584         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
34585         computing low part if x was negated.
34586         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34587
34588 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
34589
34590         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
34591         la_x32_gnu_pltexit.
34592         (pltexit): Cast int_retval to ptrdiff_t.
34593         * elf/tst-auditmod3b.c: Likewise.
34594         * elf/tst-auditmod4b.c: Likewise.
34595         * elf/tst-auditmod5b.c: Likewise.
34596         * elf/tst-auditmod6b.c: Likewise.
34597         * elf/tst-auditmod6c.c: Likewise.
34598         * elf/tst-auditmod7b.c: Likewise.
34599
34600         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
34601         and x32_gnu_pltexit.
34602
34603         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
34604         __ELF_NATIVE_CLASS.
34605         (La_x32_regs): New macro.
34606         (La_x32_retval): Likewise.
34607         (la_x32_gnu_pltenter): New function prototype.
34608         (la_x32_gnu_pltexit): Likewise.
34609
34610 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
34611
34612         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
34613         exponent.
34614
34615         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34616
34617         * configure.in (libc_cv_cc_nofma): Check for option to disable
34618         generation of FMA instructions.
34619         * configure: Regenerate.
34620         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
34621         * sysdeps/ieee754/dbl-64/Makefile: New file.
34622         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34623         Remove brandred-fma4.
34624         (CFLAGS-brandred-fma4.c): Remove.
34625         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
34626         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
34627         define.
34628         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
34629         define.
34630
34631 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
34632
34633         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
34634         LLONG_MAX != LONG_MAX.
34635         (_itoa_word): Use _ITOA_WORD_TYPE on value.
34636         (_fitoa_word): Likewise.
34637         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
34638         LLONG_MAX != LONG_MAX.
34639         * stdio-common/_itowa.h: Include <_itoa.h>.
34640         (_itowa_word): Use _ITOA_WORD_TYPE on value.
34641         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
34642         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
34643         only if not defined.
34644         (_ITOA_WORD_TYPE): Likewise.
34645         (_itoa_word): Use _ITOA_WORD_TYPE on value.
34646         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
34647
34648 2012-03-21  David S. Miller  <davem@davemloft.net>
34649
34650         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34651
34652 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
34653
34654         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
34655         of x86_64 when setting libc_cv_slibdir, libdir and
34656         libc_cv_localedir.
34657         * sysdeps/unix/sysv/linux/configure: Regenerated.
34658
34659 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
34660
34661         * manual/lang.texi (Old Varargs): Remove section.
34662         (How Variadic): Update menu.
34663         (va_start): Do not mention varargs.h.
34664
34665 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
34666             Joseph Myers  <joseph@codesourcery.com>
34667
34668         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
34669         link test.
34670         * configure: Regenerated.
34671
34672 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
34673
34674         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
34675         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
34676         conformtest.pl
34677
34678 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
34679
34680         * NOTES: Remove.
34681         * Makefile (files-for-dist): Remove NOTES.
34682         (NOTES): Remove rule.
34683         * README: Don't refer to NOTES.
34684         * manual/creature.texi: Don't include macros.texi.
34685         * manual/intro.texi (creature.texi): Remove comment referring to
34686         NOTES.
34687
34688         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
34689         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
34690         * configure: Regenerated.
34691         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
34692         LIBC_TRY_CC_OPTION.
34693         (libc_cv_as_i686): Likewise.
34694         (libc_cv_cc_avx): Likewise.
34695         (libc_cv_cc_sse2avx): Likewise.
34696         (libc_cv_cc_fma4): Likewise.
34697         (libc_cv_cc_novzeroupper): Likewise.
34698         * sysdeps/i386/configure: Regenerated.
34699
34700         [BZ #13883]
34701         * sysdeps/i386/fpu/s_cexp.S: Remove.
34702         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
34703         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
34704         * math/libm-test.inc (cexp_test): Add more tests.
34705         * sysdeps/i386/fpu/libm-test-ulps: Update.
34706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34707
34708 2012-03-21  Allan McRae  <allan@archlinux.org>
34709
34710         * timezone/Makefile: Do not install iso3166.tab and zone.tab
34711
34712 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
34713
34714         [BZ #13871]
34715         * math/w_exp2.c: Do not include <float.h>.
34716         (o_threshold, u_threshold): Remove.
34717         (__exp2): Calculate result before checking finiteness and calling
34718         __kernel_standard.
34719         * math/w_exp2f.c: Likewise.
34720         * math/w_exp2l.c: Likewise.
34721         * math/libm-test.inc (exp2_test): Require overflow exception for
34722         1e6 input.
34723
34724         [BZ #3866]
34725         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
34726         range of signed 64-bit integers before using fistpll.  Remove
34727         checks for whether integers fit in mantissa bits.
34728         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
34729         the range of signed 32-bit integers before using fistpl.  Remove
34730         checks for whether integers fit in mantissa bits.
34731         * sysdeps/i386/fpu/e_powl.S (p64): New object.
34732         (__ieee754_powl): Test for y outside the range of signed 64-bit
34733         integers before using fistpll.  Reduce 64-bit values to 63-bit
34734         ones as needed.
34735         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
34736         divide-by-zero is raised for zero to large negative powers.
34737         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
34738         (__ieee754_powl): Test for y outside the range of signed 64-bit
34739         integers before using fistpll.  Reduce 64-bit values to 63-bit
34740         ones as needed.
34741         * math/libm-test.inc (pow_test): Add more tests.
34742
34743 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34744
34745         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
34746         <stdio-common/_itoa.h>.
34747         * debug/segfault.c: Likewise.
34748         * elf/dl-cache.c: Likewise.
34749         * elf/dl-minimal.c: Likewise.
34750         * elf/dl-misc.c: Likewise.
34751         * elf/dl-sysdep.c: Likewise.
34752         * elf/dl-version.c: Likewise.
34753         * elf/rtld.c: Likewise.
34754         * hurd/hurdsock.c: Likewise.
34755         * hurd/lookup-retry.c: Likewise.
34756         * malloc/malloc.c: Likewise.
34757         * malloc/mtrace.c: Likewise.
34758         * nscd/nscd_getgr_r.c: Likewise.
34759         * nscd/nscd_getpw_r.c: Likewise.
34760         * nscd/nscd_getserv_r.c: Likewise.
34761         * posix/getopt_init.c: Likewise.
34762         * posix/wordexp.c: Likewise.
34763         * stdio-common/_itoa.c: Likewise.
34764         * stdio-common/printf_fphex.c: Likewise.
34765         * stdio-common/vfprintf.c: Likewise.
34766         * string/_strerror.c: Likewise.
34767         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
34768         * sysdeps/i386/i686/hp-timing.h: Likewise.
34769         * sysdeps/mach/_strerror.c: Likewise.
34770         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
34771         * sysdeps/mach/hurd/sethostid.c: Likewise.
34772         * sysdeps/mach/hurd/xmknodat.c: Likewise.
34773         * sysdeps/mach/xpg-strerror.c: Likewise.
34774         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
34775         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
34776         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
34777         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
34778         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
34779         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
34780         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
34781         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
34782         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
34783         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
34784         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
34785         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
34786         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
34787         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
34788         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
34789         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
34790         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
34791         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
34792         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
34793         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
34794         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
34795
34796         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
34797
34798         * stdio-common/_itoa.h: Moved to ...
34799         * sysdeps/generic/_itoa.h: Here.
34800
34801         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
34802
34803         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
34804         instead of "_itoa.h" and "_itowa.h".
34805         * stdio-common/vfprintf.: Likewise.
34806
34807 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34808
34809         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
34810         <bits/wordsize.h>.
34811         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
34812         (__signbit): Likwise.
34813         (llrintf): Likwise.
34814         (llrint): Likwise.
34815
34816 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
34817
34818         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
34819         __WORDSIZE != 64.
34820
34821 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
34822
34823         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
34824         OVERFLOW_EXCEPTION_OK.
34825         * math/libm-test.inc ("Philosophy"): Update comment about
34826         exception testing.
34827         (OVERFLOW_EXCEPTION): Define.
34828         (OVERFLOW_EXCEPTION_OK): Likewise.
34829         (INVALID_EXCEPTION_OK): Renumber.
34830         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
34831         (IGNORE_ZERO_INF_SIGN): Likewise.
34832         (test_exceptions): Handle FE_OVERFLOW.
34833         (exp10_test): Expect overflow exceptions.
34834         (exp2_test): Likewise.
34835         (expm1_test): Likewise.
34836         (nextafter_test): Likewise.
34837         (pow_test): Likewise.
34838         (scalbn_test): Likewise.
34839         (scalbln_test): Likewise.
34840
34841 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34842
34843         * sysdeps/x86_64/bits/atomic.h
34844         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
34845         64bit integer.
34846         (atomic_exchange_acq): Likewise.
34847         (__arch_exchange_and_add_body): Likewise.
34848         (__arch_add_body): Likewise.
34849         (atomic_add_negative): Likewise.
34850         (atomic_add_zero): Likewise.
34851
34852 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34853
34854         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
34855         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
34856
34857 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34858
34859         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
34860         Check __x86_64__ instead of __WORDSIZE.
34861
34862 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34863
34864         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
34865
34866 2012-03-19  David S. Miller  <davem@davemloft.net>
34867
34868         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34869
34870         * sysdeps/sparc/fpu/fenv_private.h: New file.
34871         * sysdeps/sparc/fpu/math_private.h: Use it.
34872         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
34873         Remove.
34874         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
34875         (libc_feholdexcept_setroundl): Remove.
34876         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
34877         Remove.
34878         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
34879         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
34880
34881 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34882
34883         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
34884         int64_t instead of long int.
34885         (INSERT_WORDS64): Likwise.
34886
34887 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
34888
34889         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
34890         _Unwind_GetCFA return to _Unwind_Ptr first.
34891
34892 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
34893
34894         [BZ #13629]
34895         * math/s_clog.c: Include <float.h>.
34896         (__clog): Scale large or subnormal inputs.
34897         * math/s_clogf.c: Likewise.
34898         * math/s_clogl.c: Likewise.
34899         * math/s_clog10.c: Include <float.h>.
34900         (M_LOG10_2): Define.
34901         (__clog10): Scale large or subnormal inputs.
34902         * math/s_clog10f.c: Likewise.
34903         * math/s_clog10l.c: Likewise.
34904         * math/libm-test.inc (clog_test): Add more tests.
34905         (clog10_test): Likewise.
34906         * sysdeps/i386/fpu/libm-test-ulps: Update.
34907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34908
34909         [BZ #11451]
34910         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
34911         x and y.
34912         * math/libm-test.inc (atan2_test): Add another test.
34913
34914         * Makerules (common-objdir-compile): Remove.
34915         * sysdeps/unix/Makefile (config-generated): Do not add
34916         $(unix-generated) to variable.
34917         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
34918         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
34919         Remove rule.
34920         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
34921         Likewise.
34922         [generic bits/local_lim.h] (before-compile): Do not append to
34923         variable.
34924         [generic bits/local_lim.h] (common-generated): Likewise.
34925         [generic sys/param.h] (before-compile): Do not append to variable.
34926         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
34927         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
34928         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
34929         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
34930         include.
34931         [generic sys/param.h] (sys/param.h-includes): Remove variable.
34932         [generic sys/param.h] (sys/param.h-includes): Remove rule.
34933         [generic sys/param.h] ($(addprefix
34934         $(common-objpfx),$(sys/param.h-includes))): Likewise.
34935         [generic sys/param.h] (common-generated): Do not append to
34936         variable.
34937         [generic sys/param.h] (sysdep_headers): Likewise.
34938         [generic bits/errno.h] (before-compile): Do not append to
34939         variable.
34940         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
34941         rule.
34942         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
34943         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
34944         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
34945         [generic bits/errno.h] (common-generated): Do not append to
34946         variable.
34947         [generic bits/ioctls.h] (before-compile): Do not append to
34948         variable.
34949         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
34950         rule.
34951         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
34952         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
34953         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
34954         rule.
34955         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
34956         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
34957         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
34958         [generic bits/ioctls.h] (common-generated): Do not append to
34959         variable.
34960         [generic sys/syscall.h] (syscall.h): Remove variable.
34961         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
34962         rule.
34963         [generic sys/syscall.h] (before-compile): Do not append to
34964         variable.
34965         [generic sys/syscall.h] (common-generated): Likewise.
34966         * sysdeps/unix/errnos-tmpl.c: Remove file.
34967         * sysdeps/unix/errnos.awk: Likewise.
34968         * sysdeps/unix/ioctls-tmpl.c: Likewise.
34969         * sysdeps/unix/ioctls.awk: Likewise.
34970         * sysdeps/unix/mk-local_lim.c: Likewise.
34971         * sysdeps/unix/snarf-ioctls: Likewise.
34972
34973 2012-03-19  Richard Henderson  <rth@twiddle.net>
34974
34975         * sysdeps/i386/fpu/fenv_private.h: New file.
34976         * sysdeps/i386/fpu/math_private.h: Use it.
34977         (math_opt_barrier, math_force_eval): Remove.
34978         (libc_feholdexcept_setround_53bit): Remove.
34979         (libc_feupdateenv_53bit): Remove.
34980         * sysdeps/x86_64/fpu/math_private.h: Likewise.
34981         (math_opt_barrier, math_force_eval): Remove.
34982         (libc_feholdexcept): Remove.
34983         (libc_feholdexcept_setround): Remove.
34984         (libc_fetestexcept, libc_fesetenv): Remove.
34985         (libc_feupdateenv_test): Remove.
34986         (libc_feupdateenv, libc_feholdsetround): Remove.
34987         (libc_feresetround): Remove.
34988
34989         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
34990         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
34991
34992         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
34993         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
34994         (libc_feupdateenv_testl): New.
34995         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
34996         (libc_feupdateenv_testf): New.
34997         (libc_feupdateenv): Use libc_feupdateenv_test.
34998         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
34999         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
35000
35001         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
35002         (libc_feholdsetroundf, libc_feholdsetroundl): New.
35003         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
35004         (libc_feresetround_noex): New.
35005         (libc_feresetround_noexf): New.
35006         (libc_feresetround_noexl): New.
35007         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
35008         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
35009         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
35010         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
35011         SET_RESTORE_ROUND.
35012         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
35013         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
35014         (__cos): Likewise.
35015         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
35016         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
35017         SET_RESTORE_ROUND_NOEX.
35018         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
35019         SET_RESTORE_ROUND_NOEXF.
35020         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
35021         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
35022         (libc_feholdsetroundf): New.
35023         (libc_feresetround, libc_feresetroundf): New.
35024
35025         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
35026         (libc_feholdexcept_setround_53bit): Convert from macro to function.
35027         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
35028
35029         * sysdeps/generic/math_private.h: Include <fenv.h>.
35030         (default_libc_feholdexcept): New.
35031         (default_libc_feholdexcept_setround): New.
35032         (default_libc_fesetenv, default_libc_feupdateenv): New.
35033         (libc_feholdexcept): Only define if undefined.
35034         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
35035         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
35036         (libc_feholdexcept_setroundl): Likewise.
35037         (libc_feholdexcept_setround_53bit): Likewise.
35038         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
35039         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
35040         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
35041         (libc_feupdateenv_53bit): Likewise.
35042         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
35043         (libc_feholdexcept): Convert from macro to inline function.
35044         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
35045         (libc_fesetenv, libc_feupdateenv): Likewise.
35046
35047         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
35048         not previously defined.
35049         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
35050         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
35051         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
35052         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
35053         * sysdeps/ieee754/flt-32/math_private.h: New file.
35054         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
35055         math_private.h below SET_FLOAT_WORD.
35056         (__isnan, __isinf_ns, __finite): Remove.
35057         (__isnanf, __isinf_nsf, __finitef): Remove.
35058
35059 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
35060
35061         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35062
35063 2012-03-17  David S. Miller  <davem@davemloft.net>
35064
35065         [BZ #6471]
35066         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
35067         for 2.16.
35068
35069 2012-03-16  David S. Miller  <davem@davemloft.net>
35070
35071         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
35072         warnings.
35073
35074         [BZ #6471]
35075         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
35076         properly.
35077         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
35078         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
35079         sysdep_routines when subdir is sysvipc.
35080         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
35081         __getshmlba helper.
35082
35083         * sysdeps/sparc/fpu/libm-test/ulps: Update.
35084
35085 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
35086
35087         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
35088         [__LP64__].
35089
35090 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
35091
35092         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
35093         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
35094         (__lround): Renamed to ...
35095         (__llround): This.  Replace long int with long long int.
35096         Define lround functions as aliases of llround functions.
35097         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
35098
35099 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
35100
35101         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
35102         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
35103         adresses to uintptr_t.  Replace "long int" and "unsigned long
35104         int" with "greg_t" on va_arg.
35105
35106 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
35107
35108         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
35109         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
35110
35111         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
35112         Move e_machine check before EI_CLASS check.  Handle x32
35113         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
35114         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
35115         SKIP_EM_IA_64 and include
35116         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
35117
35118         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
35119         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
35120         (add_system_dir): New macro.
35121
35122         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
35123         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
35124
35125 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
35126
35127         [BZ #2551]
35128         [BZ #2552]
35129         [BZ #2553]
35130         [BZ #2554]
35131         [BZ #2562]
35132         [BZ #2563]
35133         [BZ #2565]
35134         [BZ #2566]
35135         [BZ #2576]
35136         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
35137         (y0): Likewise.
35138         * math/w_j0f.c (j0f): Likewise.
35139         (y0f): Likewise.
35140         * math/w_j0l.c (__j0l): Likewise.
35141         (__y0l): Likewise.
35142         * math/w_j1.c (j1): Likewise.
35143         (y1): Likewise.
35144         * math/w_j1f.c (j1f): Likewise.
35145         (y1f): Likewise.
35146         * math/w_j1l.c (__j1l): Likewise.
35147         (__y1l): Likewise.
35148         * math/w_jn.c (jn): Likewise.
35149         (yn): Likewise.
35150         * math/w_jnf.c (jnf): Likewise.
35151         (ynf): Likewise.
35152         * math/w_jnl.c (__jnl): Likewise.
35153         (__ynl): Likewise.
35154         * math/libm-test.inc (j0_test): Add more tests.
35155         (j1_test): Likewise.
35156         (jn_test): Likewise.  Add trailing semicolon to existing test.
35157         (y0_test): Likewise.
35158         (y1_test): Likewise.
35159         * sysdeps/i386/fpu/libm-test-ulps: Update.
35160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35161
35162         [BZ #13851]
35163         [BZ #13854]
35164         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
35165         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
35166         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
35167         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
35168         (__tanl): Set errno for infinite argument.
35169         * sysdeps/i386/fpu/mptan.c: Remove.
35170         * sysdeps/i386/fpu/s_tan.S: Likewise.
35171         * sysdeps/i386/fpu/s_tanl.S: Likewise.
35172         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
35173         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
35174         * math/libm-test.inc (tan_test): Add more tests and enable more
35175         tests for double and long double.
35176         * sysdeps/i386/fpu/libm-test-ulps: Update.
35177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35178
35179 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
35180
35181         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
35182         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
35183
35184 2012-03-16  Roland McGrath  <roland@hack.frob.com>
35185
35186         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
35187         * configure.in: Use it for both main tree and add-ons.
35188         * configure: Regenerated.
35189
35190 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
35191
35192         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
35193
35194 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
35195
35196         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
35197         in comment.
35198
35199         [BZ #13851]
35200         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
35201         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
35202         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
35203         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
35204         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
35205         infinite argument.
35206         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
35207         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
35208         != 0 for prec == 2.
35209         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
35210         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
35211         * sysdeps/i386/fpu/s_cosl.S: Likewise.
35212         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
35213         * sysdeps/i386/fpu/s_sinl.S: Likewise.
35214         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
35215         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
35216         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
35217         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
35218         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
35219         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
35220         * math/libm-test.inc (cos_test): Add more tests and enable more
35221         tests for long double.
35222         (sin_test): Likewise.
35223         (sincos_test): Likewise.
35224         * sysdeps/i386/fpu/libm-test-ulps: Update.
35225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35226
35227 2012-03-16  David S. Miller  <davem@davemloft.net>
35228
35229         * sysdeps/sparc/fpu/math_private.h: New file.
35230
35231 2012-03-15  David S. Miller  <davem@davemloft.net>
35232
35233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
35234         file.
35235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
35236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
35237         file.
35238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
35239         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
35240         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
35241         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
35242         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
35243         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
35244         sysdep routines.
35245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
35246
35247         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
35248         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
35249
35250         * sysdeps/sparc/sparc-ifunc.h: New file.
35251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
35252         sparc-ifunc.h
35253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
35254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
35255         Likewise.
35256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
35257         Likewise.
35258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
35259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
35260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
35261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
35262         Likewise.
35263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
35264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
35265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
35266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
35267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
35268         Likewise.
35269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
35270         Likewise.
35271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
35272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
35273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
35274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
35275         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
35276         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
35277         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
35278         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
35279         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
35280         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
35281         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
35282         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
35283         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
35284         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
35285         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
35286         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
35287         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
35288         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
35289         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
35290         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
35291         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
35292         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
35293         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
35294         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
35295
35296 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
35297
35298         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
35299         scaling.
35300         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35301
35302 2012-03-15  Andreas Jaeger  <aj@suse.de>
35303
35304         [BZ #13852]
35305         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
35306         ieee754/flt-32 implementation for sin, cos and sincos.
35307         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
35308         * sysdeps/i386/fpu/s_cosf.S: Likewise.
35309         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
35310         * sysdeps/i386/fpu/s_sinf.S: Likewise.
35311         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
35312         ieee754/flt-32 implementation for tan.
35313
35314         * math/libm-test.inc (cos_test): Enable some large input tests for
35315         float as well
35316         (sin_test): Likewise.
35317         (sincos_test): Likewise.
35318         (tan_test): Add tests for large input.
35319
35320         * sysdeps/i386/fpu/libm-test-ulps: Update.
35321
35322 2012-03-15  Andreas Jaeger  <aj@suse.de>
35323
35324         [BZ #13658]
35325         * math/libm-test.inc (cos_test): Add more test cases.
35326         (sin_test): Likewise.
35327         (sincos_test): Likewise.
35328
35329 2012-03-15  Andreas Jaeger  <aj@suse.de>
35330
35331         [BZ #13837]
35332         * math/libm-test.inc (cos_test): Add a test case for large input
35333         value.
35334         (sin_test): Likewise.
35335         (sincos_test): Likewise.
35336
35337 2012-03-15  Andreas Jaeger  <aj@suse.de>
35338             Joseph Myers  <joseph@codesourcery.com>
35339
35340         [BZ #13658]
35341         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
35342         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
35343         * sysdeps/i386/fpu/branred.c: Likewise.
35344         * sysdeps/i386/fpu/dosincos.c: Likewise.
35345         * sysdeps/i386/fpu/mpa.c: Likewise.
35346         * sysdeps/i386/fpu/s_cos.S: Likewise.
35347         * sysdeps/i386/fpu/s_sin.S: Likewise.
35348         * sysdeps/i386/fpu/s_sincos.S: Likewise.
35349         * sysdeps/i386/fpu/sincos32.c: Likewise.
35350
35351         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
35352         Define.
35353         (libc_feupdateenv_53bit): Define.
35354         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
35355         Define.
35356         (libc_feupdateenv_53bit): Define.
35357
35358         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
35359         53 bit (without extend i386 double precision).
35360
35361         * math/libm-test.inc (sincos_test): Add tests for large input.
35362         (sin): Likewise.
35363         (cos): Likewise.
35364
35365         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
35366
35367 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
35368
35369         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35370
35371 2012-03-15  David S. Miller  <davem@davemloft.net>
35372
35373         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
35374         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
35375         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
35376         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
35377         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
35378         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
35379         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
35380         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
35381         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
35382         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
35383         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
35384         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
35385         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
35386         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
35387         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
35388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
35389         file.
35390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
35391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
35392         file.
35393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
35394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
35395         file.
35396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
35397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
35398         file.
35399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
35400         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
35401         fmin/fmax sysdep routines.
35402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
35403
35404 2012-03-14  David S. Miller  <davem@davemloft.net>
35405
35406         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
35407         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
35408         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
35409         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
35410         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
35411         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
35412         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
35413         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
35414         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
35415         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
35416         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
35417         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
35418         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
35419         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
35420         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
35421         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
35422         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
35423         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
35424         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
35425         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
35426         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
35427         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
35428         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
35429         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
35430         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
35431         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
35432         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
35433         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
35434         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
35435         routines.
35436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
35437         file.
35438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
35439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
35440         file.
35441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
35442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
35443         file.
35444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
35445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
35446         file.
35447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
35448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
35449         file.
35450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
35451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
35452         file.
35453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
35454         file.
35455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
35456         file.
35457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
35458         file.
35459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
35460         New file.
35461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
35462         file.
35463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
35464         file.
35465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
35466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
35467         file.
35468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
35469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
35470         file.
35471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
35472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
35473         file.
35474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
35475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
35476         VIS3 routines.
35477
35478         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
35479         New file.
35480
35481         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35482
35483         * sysdeps/sparc/configure.in: New file.
35484         * sysdeps/sparc/configure: Generate.
35485         * configure.in (libc_cv_sparc_as_vis3): Substitute.
35486         * configure: Regenerate.
35487         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
35488         * config.make.in (have-as-vis3): New.
35489         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
35490         available use -Av9d instead of -Av9a.
35491         * sysdeps/sparc/sparc64/Makefile: Likewise.
35492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
35493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
35494         New file.
35495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
35496         file.
35497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
35498         New file.
35499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
35500         file.
35501         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
35502         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
35503         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
35504         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
35505         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
35506
35507         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
35508         fzeros/fnegs to load 0x80000000 into a float register instead of
35509         using the stack.
35510         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
35511
35512 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
35513
35514         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
35515         bits/syscall.h.
35516         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
35517         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
35518         ($(inst_includedir)/bits/syscall.h): Remove rule.
35519         ($(objpfx)bits/syscall.d): Include instead of
35520         $(objpfx)syscall-list.d.
35521         (generated): Change syscall-list.h and syscall-list.d to
35522         bits/syscall.h and bits/syscall.d.
35523
35524 2012-03-14  Roland McGrath  <roland@hack.frob.com>
35525
35526         [BZ #13846]
35527         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
35528
35529 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
35530
35531         [BZ #13841]
35532         * math/s_csqrt.c: Include <float.h>.
35533         (__csqrt): Scale large or subnormal inputs.
35534         * math/s_csqrtf.c: Likewise.
35535         * math/s_csqrtl.c: Likewise.
35536         * math/libm-test.inc (csqrt_test): Add more tests.
35537         * sysdeps/i386/fpu/libm-test-ulps: Update.
35538         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35539
35540         [BZ #13840]
35541         * math/libm-test.inc (hypot_test): Add more tests.
35542
35543 2012-03-13  David S. Miller  <davem@davemloft.net>
35544
35545         [BZ #13840]
35546         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
35547         double-precision for the calculation instead of scaling.
35548
35549 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
35550
35551         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
35552         manipulate bits before adding and subtracting TWO52[sx].
35553         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
35554         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
35555         Likewise.
35556         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
35557
35558 2012-03-13  David S. Miller  <davem@davemloft.net>
35559
35560         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
35561         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
35562         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
35563         rtld-global-offsets.h
35564         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
35565
35566         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
35567         large parameters.
35568
35569         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
35570
35571         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
35572         'err' in the ifdef scope in which it is actually used.
35573
35574         * nss/nss_db/db-init.c: Include string.h
35575
35576 2012-03-12  David S. Miller  <davem@davemloft.net>
35577
35578         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
35579         masking out of the most significant byte of random value used.
35580         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35581         Fix coding style in previous change.
35582
35583         * sysdeps/unix/sysv/linux/kernel-features.h
35584         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
35585         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
35586         expression.
35587         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
35588         later.
35589
35590 2012-03-11  David S. Miller  <davem@davemloft.net>
35591
35592         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
35593         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
35594         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
35595         for 'resultvar' otherwise things get truncated on 64-bit.
35596
35597         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35598         Fix masking out of the most significant byte of random value used.
35599
35600         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35601
35602 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
35603
35604         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35605
35606 2012-03-09  David S. Miller  <davem@davemloft.net>
35607
35608         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
35609         variables with appropriate CPP guards.
35610         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
35611         from the frame pointer, not the stack pointer.  Correct layout
35612         comments.  Fix test on resulting framesize and the management of
35613         the outregs buffer for pltexit.  Preserve floating point return
35614         values across _dl_call_pltexit call.
35615         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
35616         framesize and the management of the outregs buffer for pltexit.
35617         Preserve floating point return values across _dl_call_pltexit
35618         call.
35619         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
35620         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
35621         (la_sparc64_gnu_pltexit): New functions.
35622         (print_exit): Fix format string for return register value.
35623
35624 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
35625
35626         * sunrpc/Makefile (others): Add rpcgen.
35627         ($(objpfx)rpcgen): Remove special build rule and dependency on
35628         libc.
35629         * sunrpc/rpcgen.c: New file.
35630
35631 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
35632
35633         [BZ #13673]
35634         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
35635         * stdio-common/bug-vfprintf-nargs.c: Likewise.
35636         * sysdeps/i386/crti.S: Likewise.
35637         * sysdeps/i386/crtn.S: Likewise.
35638         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
35639         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
35640         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
35641         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
35642         * sysdeps/sh/crti.S: Likewise.
35643         * sysdeps/sh/crtn.S: Likewise.
35644         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
35645
35646         [BZ #13673]
35647         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
35648         with URL.
35649         * locale/programs/locfile-kw.gperf: Likewise.
35650         * locale/programs/charmap-kw.h: Regenerated.
35651         * locale/programs/locfile-kw.h: Likewise.
35652
35653         [BZ #13673]
35654         * intl/plural.y: Replace FSF snail mail address with URL.
35655         * intl/plural.c: Regenerated.
35656
35657 2012-03-09  Richard Henderson  <rth@twiddle.net>
35658
35659         * include/math_private.h: Remove file.
35660         * math/math_private.h: Move file ...
35661         * sysdeps/generic/math_private.h: ... here.
35662
35663         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
35664         * sysdeps/powerpc/fpu/math_private.h: Likewise.
35665         * sysdeps/x86_64/fpu/math_private.h: Likewise.
35666
35667         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
35668         and <math_private.h>.
35669         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
35670         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
35671         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
35672         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
35673         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
35674         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
35675         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
35676         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
35677         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
35678         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
35679         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
35680         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
35681         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
35682         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
35683         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
35684         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
35685         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
35686         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
35687         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
35688         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
35689         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
35690         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
35691         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
35692         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
35693         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
35694         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
35695         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
35696         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
35697         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
35698         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
35699         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
35700         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
35701         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
35702         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
35703         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
35704         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
35705         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
35706         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
35707         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
35708         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
35709         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
35710         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
35711         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
35712         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
35713         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
35714         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
35715         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
35716         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
35717         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
35718         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
35719         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
35720         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
35721         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
35722         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
35723         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
35724         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
35725         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
35726         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
35727         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
35728         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
35729         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
35730         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
35731         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
35732         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
35733         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
35734         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
35735         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
35736         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
35737         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
35738         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
35739         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
35740         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
35741         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
35742         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
35743         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
35744         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
35745         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
35746         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
35747         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
35748         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
35749         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
35750         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
35751         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
35752         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
35753         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
35754         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
35755         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
35756         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
35757         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
35758         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
35759         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
35760         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
35761         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
35762         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
35763         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
35764         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
35765         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
35766         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
35767         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
35768         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
35769         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
35770         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
35771         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
35772         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
35773         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
35774         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
35775         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
35776         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
35777         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
35778         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
35779         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
35780         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
35781         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
35782         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
35783         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
35784         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
35785         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
35786         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
35787         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
35788         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
35789         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
35790         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
35791         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
35792         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
35793         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
35794         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
35795         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
35796         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
35797         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
35798         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
35799         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
35800         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
35801         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
35802         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
35803         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
35804         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
35805         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
35806         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
35807         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
35808         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
35809         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
35810         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
35811         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
35812         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
35813         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
35814         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
35815         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
35816         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
35817         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
35818         * sysdeps/ieee754/k_standard.c: Likewise.
35819         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
35820         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
35821         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
35822         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
35823         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
35824         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
35825         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
35826         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
35827         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
35828         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
35829         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
35830         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
35831         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
35832         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
35833         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
35834         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
35835         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
35836         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
35837         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
35838         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
35839         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
35840         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
35841         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
35842         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
35843         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
35844         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
35845         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
35846         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
35847         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
35848         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
35849         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
35850         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
35851         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
35852         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
35853         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
35854         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
35855         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
35856         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
35857         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
35858         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
35859         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
35860         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
35861         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
35862         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
35863         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
35864         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
35865         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
35866         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
35867         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
35868         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
35869         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
35870         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
35871         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
35872         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
35873         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
35874         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
35875         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
35876         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
35877         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
35878         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
35879         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
35880         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
35881         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
35882         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
35883         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
35884         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
35885         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
35886         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
35887         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
35888         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
35889         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
35890         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
35891         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
35892         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
35893         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
35894         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
35895         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
35896         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
35897         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
35898         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
35899         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
35900         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
35901         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
35902         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
35903         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
35904         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
35905         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
35906         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
35907         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
35908         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
35909         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
35910         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
35911         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
35912         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
35913         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
35914         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
35915         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
35916         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
35917         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
35918         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
35919         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
35920         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
35921         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
35922         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
35923         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
35924         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
35925         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
35926         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
35927         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
35928         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
35929         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
35930         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
35931         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
35932         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
35933         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
35934         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
35935         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
35936         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
35937         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
35938         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
35939         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
35940         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
35941         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
35942         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
35943         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
35944         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
35945         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
35946         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
35947         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
35948         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
35949         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
35950         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
35951         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
35952         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
35953         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
35954         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
35955         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
35956         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
35957         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
35958         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
35959         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
35960         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
35961         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
35962         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
35963         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
35964         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
35965         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
35966         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
35967         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
35968         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
35969         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
35970         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
35971         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
35972         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
35973         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
35974         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
35975         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
35976         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
35977         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
35978         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
35979         * sysdeps/ieee754/s_lib_version.c: Likewise.
35980         * sysdeps/ieee754/s_matherr.c: Likewise.
35981         * sysdeps/ieee754/s_signgam.c: Likewise.
35982         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
35983         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
35984         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
35985         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
35986         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
35987         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
35988         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
35989         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
35990         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
35991         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
35992         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
35993         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
35994         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
35995         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
35996         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
35997         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
35998         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
35999         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
36000         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
36001         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
36002         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
36003
36004 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
36005
36006         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
36007         * sunrpc/rpc_main.c: Likewise.
36008         * sunrpc/rpc_svcout.c: Likewise.
36009
36010 2012-03-09  David S. Miller  <davem@davemloft.net>
36011
36012         * include/math_private.h: New file.
36013
36014 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
36015
36016         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
36017         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
36018         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
36019         from <bits/socket_type.h>.
36020         (enum __socket_type): Don't define here.
36021         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
36022         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36023         bits/socket_type.h.
36024
36025         [BZ #13566]
36026         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
36027         checking __USE_GNU.
36028
36029         * Makerules ($(inst_includedir)/%.h): New rule.
36030         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
36031         (install-others): Remove variable setting.
36032         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
36033
36034 2012-03-08  Richard Henderson  <rth@twiddle.net>
36035
36036         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
36037         from macro to inline function; merge with the
36038         !__LIBC_INTERNAL_MATH_INLINES version.
36039         (__ieee754_sqrtf): Likewise.
36040
36041         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
36042         to inline function.
36043         (__rintf, __floor, __floorf): Likewise.
36044
36045         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
36046         macro to inline function.
36047         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
36048
36049         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
36050         not <math/math_private.h>.
36051
36052 2012-03-08  David S. Miller  <davem@davemloft.net>
36053
36054         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
36055         copyright year.
36056         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
36057
36058 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
36059
36060         * resolv/gai_misc.c (handle_requests): Fix struct timespec
36061         normalization.
36062         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
36063         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
36064
36065 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
36066
36067         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
36068         be defined individually, they must be defined as a block.  Define
36069         S for printing a string instead of hidint the different by using a
36070         macro for adding the 'l'.
36071         * stdio-common/tst-fphex-wide.c: Adjust.
36072
36073 2012-03-07  Marek Polacek  <polacek@redhat.com>
36074
36075         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
36076
36077 2012-03-08  Marek Polacek  <polacek@redhat.com>
36078
36079         [BZ #13806]
36080         * stdio-common/Makefile (tests): Add tst-fphex-wide.
36081         * stdio-common/tst-fphex.c: Define a few macros to make the
36082         test reusable.  Use them.
36083         * stdio-common/tst-fphex-wide.c: New file.
36084
36085 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
36086
36087         [BZ #6911]
36088         * manual/macros.texi (gnusystems): New macro.
36089         (nongnusystems): Likewise.
36090         (gnulinuxhurdsystems): Likewise.
36091         (gnuhurdsystems): Likewise..
36092         (gnulinuxsystems): Likewise.
36093         * manual/charset.texi: Use new macros or @theglibc{} to refer to
36094         variants of the GNU system, not "GNU system".
36095         * manual/conf.texi: Likewise.
36096         * manual/errno.texi: Likewise.  Update example of errno macro
36097         expansion.
36098         * manual/filesys.texi: Likewise.
36099         (getumask): Document as specific to GNU/Hurd.
36100         * manual/install.texi: Likewise.  Reword some references to
36101         GNU/Linux.
36102         * manual/intro.texi: Likewise.
36103         * manual/io.texi: Likewise.
36104         (File Name Portability): Detail which constraints are inapplicable
36105         to all GNU systems and which are only inapplicable to GNU/Hurd.
36106         * manual/job.texi: Likewise.
36107         * manual/llio.texi: Likewise.
36108         (O_NOCTTY): Document as present on GNU/Linux.
36109         * manual/maint.texi: Likewise.
36110         * manual/memory.texi: Likewise.
36111         * manual/pattern.texi: Likewise.
36112         * manual/pipe.texi: Likewise.
36113         * manual/process.texi: Likewise.
36114         * manual/resource.texi: Likewise.
36115         (RUSAGE_CHILDREN): Remove statement about specifying a particular
36116         child on GNU/Hurd.
36117         * manual/setjmp.texi: Likewise.
36118         * manual/signal.texi: Likewise.
36119         * manual/startup.texi: Likewise.
36120         * manual/stdio.texi: Likewise.
36121         * manual/terminal.texi: Likewise.
36122         (ONLCR): Document as POSIX.
36123         (OXTABS): Document availability on GNU/Linux as XTABS.
36124         (ONOEOT): Document availability separately from other bits.
36125         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
36126         * manual/time.texi: Likewise.
36127         * manual/users.texi: Likewise.
36128         * INSTALL: Regenerated.
36129         * sysdeps/gnu/errlist.c: Regenerated.
36130
36131         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
36132         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
36133         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
36134         puts.
36135         * configure: Regenerated.
36136
36137 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
36138
36139         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
36140         default includes instead of AC_HEADER_CHECK.
36141         * sysdeps/i386/configure: Regenerated.
36142
36143         [BZ #10716]
36144         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
36145         * math/s_cacoshf.c (__cacoshf): Likewise.
36146         * math/s_cacoshl.c (__cacoshl): Likewise.
36147         * math/s_casinh.c (__casinh): Set signs of result from argument.
36148         * math/s_casinhf.c (__casinhf): Likewise.
36149         * math/s_casinhl.c (__casinhl): Likewise.
36150         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
36151         (casinh_test): Add more tests.
36152         * sysdeps/i386/fpu/libm-test-ulps: Update.
36153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36154
36155 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
36156
36157         * po/zh_TW.po: Update from translation team.
36158
36159         * login/Makefile (distribute): Remove variable.
36160         * catgets/Makefile: Likewise.
36161         * mach/Makefile: Likewise.
36162         * malloc/Makefile: Likewise.
36163         * misc/Makefile: Likewise.
36164         * iconv/Makefile: Likewise.
36165         * nscd/Makefile: Likewise.
36166         * hurd/Makefile: Likewise.
36167         * manual/Makefile: Likewise.
36168         * locale/Makefile: Likewise.
36169         * intl/Makefile: Likewise.
36170         * conform/Makefile: Likewise.
36171         * nss/Makefile: Likewise.
36172         * time/Makefile: Likewise.
36173         * soft-fp/Makefile: Likewise.
36174         * dirent/Makefile: Likewise.
36175         * gmon/Makefile: Likewise.
36176         * po/Makefile: Likewise.
36177         * rt/Makefile: Likewise.
36178         * socket/Makefile: Likewise.
36179         * math/Makefile: Likewise.
36180         * signal/Makefile: Likewise.
36181         * debug/Makefile: Likewise.
36182         * elf/Makefile: Likewise.
36183         * timezone/Makefile: Likewise.
36184         * stdlib/Makefile: Likewise.
36185         * iconvdata/Makefile: Likewise.
36186         * sunrpc/Makefile: Likewise.
36187         * io/Makefile: Likewise.
36188         * argp/Makefile: Likewise.
36189         * inet/Makefile: Likewise.
36190         * hesiod/Makefile: Likewise.
36191         * grp/Makefile: Likewise.
36192         * csu/Makefile: Likewise.
36193         * wctype/Makefile: Likewise.
36194         * crypt/Makefile: Likewise.
36195         * libio/Makefile: Likewise.
36196         * string/Makefile: Likewise.
36197         * nis/Makefile: Likewise.
36198         * resolv/Makefile: Likewise.
36199         * stdio-common/Makefile: Likewise.
36200         * wcsmbs/Makefile: Likewise.
36201         * dlfcn/Makefile: Likewise.
36202         * posix/Makefile: Likewise.
36203
36204         [BZ #6959]
36205         * timezone/Makefile: Don't install timezone files, just the programs
36206         and scripts.
36207
36208 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
36209
36210         * nss/databases.def: Add missing gshadow entry.
36211
36212         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
36213
36214 2012-03-06  Marek Polacek  <polacek@redhat.com>
36215
36216         [BZ #13726]
36217         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
36218         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
36219         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
36220         * stdio-common/tst-long-dbl-fphex.c: New file.
36221
36222 2012-03-06  David S. Miller  <davem@davemloft.net>
36223
36224         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
36225         (set_obp_int): New function.
36226         (get_obp_int): New function.
36227         (__get_clockfreq_via_dev_openprom): Likewise.
36228         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
36229         Avoid unused variable warnings on 'val' and use builtin_expect.
36230         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
36231         __builtin_expect.
36232         (INLINE_CLONE_SYSCALL): Likewise.
36233
36234 2012-03-05  David S. Miller  <davem@davemloft.net>
36235
36236         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36237
36238 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
36239
36240         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36241
36242         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
36243         only for |x| >= 40.
36244         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
36245
36246 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
36247
36248         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
36249         Replace gettimeofday with __vdso_gettimeofday.
36250
36251         * sysdeps/unix/sysv/linux/x86_64/init-first.c
36252         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
36253         __vdso_clock_gettime and __vdso_getcpu.
36254
36255         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
36256         time with __vdso_time.
36257
36258 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
36259
36260         * manual/lang.texi (size_t): Note types to which size_t may be
36261         equivalent with the GNU C Library, but do not describe when
36262         differences between them are significant.
36263
36264 2012-03-05  Andreas Jaeger  <aj@suse.de>
36265
36266         * sysdeps/i386/fpu/libm-test-ulps: Update.
36267
36268 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
36269
36270         [BZ #3976]
36271         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
36272         (__ieee754_pow): Save and restore rounding mode and use
36273         round-to-nearest for main computations.
36274         * math/libm-test.inc (pow_test_tonearest): New function.
36275         (pow_test_towardzero): Likewise.
36276         (pow_test_downward): Likewise.
36277         (pow_test_upward): Likewise.
36278         (main): Call the new functions.
36279         * sysdeps/i386/fpu/libm-test-ulps: Update.
36280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36281
36282         [BZ #3976]
36283         * math/libm-test.inc (cosh_test_tonearest): New function.
36284         (cosh_test_towardzero): Likewise.
36285         (cosh_test_downward): Likewise.
36286         (cosh_test_upward): Likewise.
36287         (sinh_test_tonearest): Likewise.
36288         (sinh_test_towardzero): Likewise.
36289         (sinh_test_downward): Likewise.
36290         (sinh_test_upward): Likewise.
36291         (main): Call the new functions.
36292         * sysdeps/i386/fpu/libm-test-ulps: Update.
36293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36294
36295 2012-03-05  Tom de Vries  <tom@codesourcery.com>
36296
36297         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
36298         default stack guard is set in last bytes.
36299         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
36300
36301 2012-03-05  Kees Cook  <keescook@chromium.org>
36302
36303         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
36304
36305         [BZ #13656]
36306         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
36307         possibly allocate from heap instead of stack.
36308         * stdio-common/bug-vfprintf-nargs.c: New file.
36309         * stdio-common/Makefile (tests): Add nargs overflow test.
36310
36311 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
36312
36313         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36314
36315 2012-03-03  Marek Polacek  <polacek@redhat.com>
36316
36317         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
36318         * math/math_private.h: Likewise.
36319         * stdlib/tst-strtod.c: Likewise.
36320         * sysdeps/i386/i486/bits/atomic.h: Likewise.
36321         * sysdeps/x86_64/bits/atomic.h: Likewise.
36322
36323 2012-03-02  David S. Miller  <davem@davemloft.net>
36324
36325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
36326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
36327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
36328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
36329         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
36330         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
36331         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
36332         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
36333
36334 2012-03-02  Roland McGrath  <roland@hack.frob.com>
36335
36336         [BZ #13792]
36337         * manual/examples/README: New file, says the example source files
36338         can be used under GPL>=2.
36339         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
36340         line containing just "*/".
36341         * manual/examples/add.c: Add copyright header (GPL>=2).
36342         * manual/examples/argp-ex1.c: Likewise.
36343         * manual/examples/argp-ex2.c: Likewise.
36344         * manual/examples/argp-ex3.c: Likewise.
36345         * manual/examples/argp-ex4.c: Likewise.
36346         * manual/examples/atexit.c: Likewise.
36347         * manual/examples/db.c: Likewise.
36348         * manual/examples/dir.c: Likewise.
36349         * manual/examples/dir2.c: Likewise.
36350         * manual/examples/execinfo.c: Likewise.
36351         * manual/examples/filecli.c: Likewise.
36352         * manual/examples/filesrv.c: Likewise.
36353         * manual/examples/fmtmsgexpl.c: Likewise.
36354         * manual/examples/genpass.c: Likewise.
36355         * manual/examples/inetcli.c: Likewise.
36356         * manual/examples/inetsrv.c: Likewise.
36357         * manual/examples/isockad.c: Likewise.
36358         * manual/examples/longopt.c: Likewise.
36359         * manual/examples/memopen.c: Likewise.
36360         * manual/examples/memstrm.c: Likewise.
36361         * manual/examples/mkfsock.c: Likewise.
36362         * manual/examples/mkisock.c: Likewise.
36363         * manual/examples/mygetpass.c: Likewise.
36364         * manual/examples/pipe.c: Likewise.
36365         * manual/examples/popen.c: Likewise.
36366         * manual/examples/rprintf.c: Likewise.
36367         * manual/examples/search.c: Likewise.
36368         * manual/examples/select.c: Likewise.
36369         * manual/examples/setjmp.c: Likewise.
36370         * manual/examples/sigh1.c: Likewise.
36371         * manual/examples/sigusr.c: Likewise.
36372         * manual/examples/stpcpy.c: Likewise.
36373         * manual/examples/strdupa.c: Likewise.
36374         * manual/examples/strftim.c: Likewise.
36375         * manual/examples/strncat.c: Likewise.
36376         * manual/examples/subopt.c: Likewise.
36377         * manual/examples/swapcontext.c: Likewise.
36378         * manual/examples/termios.c: Likewise.
36379         * manual/examples/testopt.c: Likewise.
36380         * manual/examples/testpass.c: Likewise.
36381         * manual/examples/timeval_subtract.c: Likewise.
36382
36383         [BZ #13792]
36384         * manual/time.texi (Elapsed Time): Move timeval_subtract example
36385         function to ...
36386         * manual/timeval_subtract.c.texi: ... here, new file.
36387
36388 2012-03-02  David S. Miller  <davem@davemloft.net>
36389
36390         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
36391
36392 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
36393
36394         [BZ #3976]
36395         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
36396         (__sin): Save and restore rounding mode and use round-to-nearest
36397         for all computations.
36398         (__cos): Save and restore rounding mode and use round-to-nearest
36399         for all computations.
36400         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
36401         <fenv.h>.
36402         (tan): Save and restore rounding mode and use round-to-nearest for
36403         all computations.
36404         * math/libm-test.inc (cos_test_tonearest): New function.
36405         (cos_test_towardzero): Likewise.
36406         (cos_test_downward): Likewise.
36407         (cos_test_upward): Likewise.
36408         (sin_test_tonearest): Likewise.
36409         (sin_test_towardzero): Likewise.
36410         (sin_test_downward): Likewise.
36411         (sin_test_upward): Likewise.
36412         (tan_test_tonearest): Likewise.
36413         (tan_test_towardzero): Likewise.
36414         (tan_test_downward): Likewise.
36415         (tan_test_upward): Likewise.
36416         (main): Call the new functions.
36417         * sysdeps/i386/fpu/libm-test-ulps: Update.
36418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36419
36420         [BZ #10135]
36421         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
36422         small n, then large n, before computing and testing k+n.
36423         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
36424         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
36425         Likewise.
36426         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
36427         Likewise.
36428         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
36429         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
36430         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
36431         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
36432         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
36433         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
36434         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
36435         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
36436         * math/libm-test.inc (scalbn_test): Add more tests.
36437         (scalbln_test): Likewise.
36438
36439         * manual/filesys.texi (mode_t): Describe constraints on size and
36440         signedness, not exact equivalence to a particular type.
36441         (ino_t): Likewise.
36442         (ino64_t): Likewise.
36443         (dev_t): Likewise.
36444         (nlink_t): Likewise.
36445         (blkcnt_t): Likewise.
36446         (blkcnt64_t): Likewise.
36447         * manual/llio.texi (off_t): Likewise.
36448
36449         [BZ #3976]
36450         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
36451         (__ieee754_exp): Save and restore rounding mode and use
36452         round-to-nearest for all computations.
36453         * math/libm-test.inc (exp_test_tonearest): New function.
36454         (exp_test_towardzero): Likewise.
36455         (exp_test_downward): Likewise.
36456         (exp_test_upward): Likewise.
36457         (main): Call the new functions.
36458         * sysdeps/i386/fpu/libm-test-ulps: Update.
36459         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36460
36461 2012-03-01  Chris Demetriou  <cgd@google.com>
36462
36463         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
36464         have predictable order.
36465
36466 2012-03-01  David S. Miller  <davem@davemloft.net>
36467
36468         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
36469
36470         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
36471         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
36472         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
36473         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
36474
36475         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
36476         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
36477         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
36478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
36479         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
36480         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
36481         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
36482         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
36483         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
36484
36485         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36486
36487         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
36488         * sysdeps/sparc/fpu/libm-test-ulps: to here.
36489         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
36490
36491         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
36492         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
36493         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
36494         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
36495         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
36496         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
36497         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
36498         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
36499         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
36500         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
36501         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
36502         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
36503         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
36504         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
36505         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
36506         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
36507         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
36508         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
36509         * sysdeps/sparc/elf/configure: Regenerated.
36510
36511 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
36512
36513         * configure.in (AS, LD): Require binutils 2.20 or later.
36514         * configure: Regenerated.
36515         * manual/install.texi (Tools for Compilation): Give binutils 2.20
36516         as required minimum version.
36517         * INSTALL: Regenerated.
36518
36519         [BZ #2541]
36520         [BZ #4108]
36521         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
36522         before squaring exponent.
36523         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
36524         bottom long double and 27 bits of top long double before squaring
36525         exponent.
36526         * math/libm-test.inc (erfc_test): Add more tests.
36527         * sysdeps/i386/fpu/libm-test-ulps: Update.
36528         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36530
36531 2012-03-01  Kai Tietz  <ktietz@redhat.com>
36532
36533         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
36534         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
36535         containing bit-fields.
36536         * soft-fp/extended.h (_FP_UNION_E): Likewise.
36537         * soft-fp/single.h (_FP_UNION_S): Likewise.
36538         * soft-fp/double.h (_FP_UNION_D): Likewise.
36539
36540 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
36541
36542         [BZ #13786]
36543         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
36544         not include ../strcmp.S.
36545         [USE_AS_STRNCASECMP_L]: Likewise.
36546         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
36547         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
36548         * sysdeps/i386/i686/multiarch/strncase_l-c.c
36549         (__strncasecmp_l_ia32): Define as alias to
36550         __strncasecmp_l_nonascii.
36551
36552         [BZ #5794]
36553         * math/libm-test.inc (expm1_test): Add test for bug 5794.
36554         * sysdeps/i386/fpu/libm-test-ulps: Update.
36555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36556
36557         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
36558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36559
36560 2012-02-29  Jeff Law  <law@redhat.com>
36561
36562         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
36563         out of bounds read.
36564
36565 2012-02-29  Marek Polacek  <polacek@redhat.com>
36566
36567         [BZ #13706]
36568         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
36569         * elf/Makefile: Add rules to run tst-unused-dep.out.
36570
36571 2012-02-28  David S. Miller  <davem@davemloft.net>
36572
36573         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
36574         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
36575         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
36576         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
36577         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
36578         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
36579
36580 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
36581
36582         * math/libm-test.inc (llround_test): Move one test from
36583         lround_test.  Use TEST_f_L in moved test.
36584         (lround_test): Move misplaced test to llround_test.  Add testcase
36585         from bug 2561.
36586
36587 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
36588
36589         * sysdeps/x86_64/fpu/e_expf.S: New file.
36590         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
36591
36592 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
36593
36594         [BZ #13637]
36595         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
36596         of remain_len that may cause incomplete multi-byte character and
36597         false match.
36598         * posix/bug-regex33.c: New file.
36599         * posix/Makefile (tests): Add bug-regex33.
36600
36601 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
36602
36603         * manual/macros.texi: New file.
36604         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
36605         * manual/libc.texinfo: Include macros.texi.
36606         * manual/creatute.texi: Likewise.
36607         * manual/install.texi: Likewise.
36608         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
36609         @glibcadj{} in references to the GNU C Library.
36610         * manual/charset.texi: Likewise.
36611         * manual/conf.texi: Likewise.
36612         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
36613         when not using those macros.
36614         * manual/creature.texi: Likewise.
36615         * manual/crypt.texi: Likewise.
36616         * manual/errno.texi: Likewise.
36617         * manual/filesys.texi: Likewise.
36618         * manual/header.texi: Likewise.
36619         * manual/install.texi: Likewise.
36620         * manual/intro.texi: Likewise.
36621         * manual/io.texi: Likewise.
36622         * manual/job.texi: Likewise.
36623         * manual/lang.texi: Likewise.
36624         * manual/libc.texiinfo: Likewise.
36625         * manual/llio.texi: Likewise.
36626         * manual/locale.texi: Likewise.
36627         * manual/maint.texi: Likewise.
36628         * manual/math.texi: Likewise.
36629         * manual/memory.texi: Likewise.
36630         * manual/message.texi: Likewise.
36631         * manual/nss.texi: Likewise.
36632         * manual/pattern.texi: Likewise.
36633         * manual/process.texi: Likewise.
36634         * manual/resource.texi: Likewise.
36635         * manual/search.texi: Likewise.
36636         * manual/setjmp.texi: Likewise.
36637         * manual/signal.texi: Likewise.
36638         * manual/socket.texi: Likewise.
36639         * manual/startup.texi: Likewise.
36640         * manual/stdio.texi: Likewise.
36641         * manual/string.texi: Likewise.
36642         * manual/sysinfo.texi: Likewise.
36643         * manual/syslog.texi: Likewise.
36644         * manual/terminal.texi: Likewise.
36645         * manual/time.texi: Likewise.
36646         * manual/users.texi: Likewise.
36647         * INSTALL: Regenerated.
36648         * NOTES: Regenerated.
36649         * sysdeps/gnu/errlist.c: Regenerated.
36650
36651 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
36652
36653         * include/dirent.h: Include <dirstream.h> before
36654         <dirent/dirent.h>.
36655
36656 2012-02-28  David S. Miller  <davem@davemloft.net>
36657
36658         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
36659         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
36660         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
36661         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
36662
36663 2012-02-27  David S. Miller  <davem@davemloft.net>
36664
36665         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
36666         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
36667         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
36668         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
36669
36670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
36671         frame pointer instead of stack pointer relative arg slot.
36672         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
36673         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
36674         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
36675
36676 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
36677
36678         [BZ #3992]
36679         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
36680
36681 2012-02-27  David S. Miller  <davem@davemloft.net>
36682
36683         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
36684         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
36685         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
36686         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
36687         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
36688         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
36689         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
36690         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
36691
36692 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
36693
36694         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
36695         later.  Allow versions 5-9.
36696         * configure: Regenerated.
36697         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
36698         required minimum version and 4.6 as recommended version.  Do not
36699         mention bugs in GCC 2.7 and 2.8.
36700         * INSTALL: Regenerated.
36701
36702 2012-02-27  David S. Miller  <davem@davemloft.net>
36703
36704         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
36705         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
36706         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
36707         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
36708         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
36709         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
36710         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
36711         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
36712
36713         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
36714         manipulate bits before adding and subtracting TWO112[sx].
36715         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
36716
36717 2012-02-27  Roland McGrath  <roland@hack.frob.com>
36718
36719         [BZ #13775]
36720         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
36721         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
36722         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
36723         being in POSIX, because they are in 1003.1-2008.
36724
36725         * rt/tst-aio.c: Include <fcntl.h>.
36726         * rt/tst-aio7.c: Likewise.
36727         * rt/tst-aio64.c: Likewise.
36728
36729         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
36730
36731 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
36732
36733         * manual/install.texi (--with-headers): Describe headers as
36734         interface headers, not private headers.
36735         (Specific advice for GNU/Linux systems): Describe use of headers
36736         from "make headers_install", not private headers from older
36737         kernels.
36738         * INSTALL: Regenerated.
36739         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
36740         Change to 2.6.19.
36741         * sysdeps/unix/sysv/linux/configure: Regenerated.
36742
36743         * manual/llio.texi (fclean): Remove documentation.
36744
36745         * manual/Makefile (libc-texi-generated): New variable.  Include
36746         version.texi.
36747         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
36748         $(libc-texi-generated), not duplicated list of files.
36749         (version.texi, stamp-version): New rules.
36750         (realclean): Remove $(libc-texi-generated), not individual files
36751         from that list.  Do not remove dir-add.texinfo.
36752         * manual/libc.texinfo: Comment out uses of edition numbers and
36753         references to printed manual.  Remove last-updated dates.
36754         (EDITION): Comment out.
36755         (ISBN): Likewise.
36756         (VERSION, UPDATED): Remove.
36757         (version.texi): Include.
36758
36759 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
36760
36761         * sysdeps/posix/spawni.c: Include <signal.h>.
36762         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
36763         * sysdeps/pthread/aio_fsync.c: Likewise.
36764
36765 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
36766
36767         * conform/Makefile (tests): Run only when not cross-compiling and
36768         when fast-check is not defined.
36769
36770         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
36771         * conform/data/limits.h-data: Fixes for POSIX2008.
36772         * conform/run-conformtest.sh: Run all tests.
36773         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
36774         headers.
36775         * include/bits/dlfcn.h: Likewise.
36776         * include/langinfo.h: Likewise.
36777         * include/monetary.h: Likewise.
36778         * include/sys/poll.h: Likewise.
36779
36780         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
36781         for __USE_GNU.
36782         * posix/spawn.h: Define __need_sigset_t.
36783         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
36784         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
36785         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
36786         to get sigevent_t only.
36787         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
36788         only for __USE_GNU.
36789         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
36790         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
36791         process_vm_writev only for __USE_GNU.
36792         * termios/termios.h: Declare tcgetsid also for POSIX2008.
36793
36794         * conform/Makefile: For now ignore errors from run-conformtest.
36795         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
36796         POSIX to avoid namespace pollution.  Don't prepend headers.
36797         * conform/data/aio.h-data: Fixes for POSIX testing.
36798         * conform/data/fcntl.h-data: Likewise.
36799         * conform/data/glob.h-data: Likewise.
36800         * conform/data/grp.h-data: Likewise.
36801         * conform/data/pthread.h-data: Likewise.
36802         * conform/data/pwd.h-data: Likewise.
36803         * conform/data/signal.h-data: Likewise.
36804         * conform/data/spawn.h-data: Likewise.
36805         * conform/data/stdio.h-data: Likewise.
36806         * conform/data/stdlib.h-data: Likewise.
36807         * conform/data/stropts.h-data: Likewise.
36808         * conform/data/sys/mman.h-data: Likewise.
36809         * conform/data/sys/stat.h-data: Likewise.
36810         * conform/data/sys/types.h-data: Likewise.
36811         * conform/data/sys/wait.h-data: Likewise.
36812         * conform/data/time.h-data: Likewise.
36813         * conform/data/unistd.h-data: Likewise.
36814         * conform/data/utime.h-data: Likewise.
36815
36816         * io/sys/stat.h: fchmod was always in POSIX.
36817         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
36818         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
36819         * rt/aio.h: Define __need_timespec before including <time.h>.
36820         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
36821         struct.  Add forward declaration of pthread_attr_t and use it in
36822         sigevent.
36823         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
36824         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
36825         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
36826         always remove CLK_TCK definition.
36827
36828 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
36829
36830         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
36831
36832 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
36833
36834         * conform/run-conformtest.sh: New file.
36835         * conform/Makefile: Run run-conformtest for tests.
36836         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
36837         support.
36838
36839         * conform/data/uchar.h-data: New file.
36840         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
36841         * conform/data/arpa/inet.h-data: Likewise.
36842         * conform/data/assert.h-data: Likewise.
36843         * conform/data/complex.h-data: Likewise.
36844         * conform/data/cpio.h-data: Likewise.
36845         * conform/data/ctype.h-data: Likewise.
36846         * conform/data/dirent.h-data: Likewise.
36847         * conform/data/dlfcn.h-data: Likewise.
36848         * conform/data/errno.h-data: Likewise.
36849         * conform/data/fcntl.h-data: Likewise.
36850         * conform/data/float.h-data: Likewise.
36851         * conform/data/fmtmsg.h-data: Likewise.
36852         * conform/data/fnmatch.h-data: Likewise.
36853         * conform/data/ftw.h-data: Likewise.
36854         * conform/data/glob.h-data: Likewise.
36855         * conform/data/grp.h-data: Likewise.
36856         * conform/data/iconv.h-data: Likewise.
36857         * conform/data/inttypes.h-data: Likewise.
36858         * conform/data/langinfo.h-data: Likewise.
36859         * conform/data/libgen.h-data: Likewise.
36860         * conform/data/limits.h-data: Likewise.
36861         * conform/data/locale.h-data: Likewise.
36862         * conform/data/math.h-data: Likewise.
36863         * conform/data/monetary.h-data: Likewise.
36864         * conform/data/mqueue.h-data: Likewise.
36865         * conform/data/ndbm.h-data: Likewise.
36866         * conform/data/net/if.h-data: Likewise.
36867         * conform/data/netdb.h-data: Likewise.
36868         * conform/data/netinet/in.h-data: Likewise.
36869         * conform/data/nl_types.h-data: Likewise.
36870         * conform/data/poll.h-data: Likewise.
36871         * conform/data/pthread.h-data: Likewise.
36872         * conform/data/pwd.h-data: Likewise.
36873         * conform/data/regex.h-data: Likewise.
36874         * conform/data/sched.h-data: Likewise.
36875         * conform/data/search.h-data: Likewise.
36876         * conform/data/semaphore.h-data: Likewise.
36877         * conform/data/setjmp.h-data: Likewise.
36878         * conform/data/signal.h-data: Likewise.
36879         * conform/data/spawn.h-data: Likewise.
36880         * conform/data/stdarg.h-data: Likewise.
36881         * conform/data/stdio.h-data: Likewise.
36882         * conform/data/stdlib.h-data: Likewise.
36883         * conform/data/string.h-data: Likewise.
36884         * conform/data/strings.h-data: Likewise.
36885         * conform/data/stropts.h-data: Likewise.
36886         * conform/data/sys/ipc.h-data: Likewise.
36887         * conform/data/sys/mman.h-data: Likewise.
36888         * conform/data/sys/msg.h-data: Likewise.
36889         * conform/data/sys/resource.h-data: Likewise.
36890         * conform/data/sys/select.h-data: Likewise.
36891         * conform/data/sys/sem.h-data: Likewise.
36892         * conform/data/sys/shm.h-data: Likewise.
36893         * conform/data/sys/socket.h-data: Likewise.
36894         * conform/data/sys/stat.h-data: Likewise.
36895         * conform/data/sys/statvfs.h-data: Likewise.
36896         * conform/data/sys/time.h-data: Likewise.
36897         * conform/data/sys/timeb.h-data: Likewise.
36898         * conform/data/sys/times.h-data: Likewise.
36899         * conform/data/sys/types.h-data: Likewise.
36900         * conform/data/sys/uio.h-data: Likewise.
36901         * conform/data/sys/un.h-data: Likewise.
36902         * conform/data/sys/utsname.h-data: Likewise.
36903         * conform/data/sys/wait.h-data: Likewise.
36904         * conform/data/syslog.h-data: Likewise.
36905         * conform/data/tar.h-data: Likewise.
36906         * conform/data/termios.h-data: Likewise.
36907         * conform/data/utime.h-data: Likewise.
36908         * conform/data/utmpx.h-data: Likewise.
36909         * conform/data/varargs.h-data: Likewise.
36910         * conform/data/wchar.h-data: Likewise.
36911         * conform/data/wctype.h-data: Likewise.
36912         * conform/data/wordexp.h-data: Likewise.
36913
36914         * include/stropts.h: New file.
36915         * include/uchar.h: New file.
36916         * include/aio.h: Changes to allow conformtest.pl to use the headers.
36917         * include/assert.h: Likewise.
36918         * include/ctype.h: Likewise.
36919         * include/dirent.h: Likewise.
36920         * include/dlfcn.h: Likewise.
36921         * include/fcntl.h: Likewise.
36922         * include/fnmatch.h: Likewise.
36923         * include/glob.h: Likewise.
36924         * include/grp.h: Likewise.
36925         * include/libio.h: Likewise.
36926         * include/locale.h: Likewise.
36927         * include/math.h: Likewise.
36928         * include/net/if.h: Likewise.
36929         * include/netdb.h: Likewise.
36930         * include/netinet/in.h: Likewise.
36931         * include/pthread.h: Likewise.
36932         * include/pwd.h: Likewise.
36933         * include/regex.h: Likewise.
36934         * include/sched.h: Likewise.
36935         * include/search.h: Likewise.
36936         * include/setjmp.h: Likewise.
36937         * include/signal.h: Likewise.
36938         * include/stdio.h: Likewise.
36939         * include/stdlib.h: Likewise.
36940         * include/string.h: Likewise.
36941         * include/sys/cdefs.h: Likewise.
36942         * include/sys/mman.h: Likewise.
36943         * include/sys/msg.h: Likewise.
36944         * include/sys/resource.h: Likewise.
36945         * include/sys/select.h: Likewise.
36946         * include/sys/socket.h: Likewise.
36947         * include/sys/stat.h: Likewise.
36948         * include/sys/statvfs.h: Likewise.
36949         * include/sys/time.h: Likewise.
36950         * include/sys/times.h: Likewise.
36951         * include/sys/uio.h: Likewise.
36952         * include/sys/utsname.h: Likewise.
36953         * include/sys/wait.h: Likewise.
36954         * include/termios.h: Likewise.
36955         * include/time.h: Likewise.
36956         * include/ulimit.h: Likewise.
36957         * include/unistd.h: Likewise.
36958         * include/utime.h: Likewise.
36959         * include/wchar.h: Likewise.
36960         * include/wctype.h: Likewise.
36961         * include/wordexp.h: Likewise.
36962
36963         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
36964
36965         * time/time.h: TIME_UTC must be a macro.
36966         Make timespec_get available for ISO C11 only as well.
36967
36968 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
36969
36970         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
36971         Reported by Peng Haitao <penght@cn.fujitsu.com>.
36972
36973 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
36974
36975         * configure.in: Use -o not -a in test for unsupported multi-arch.
36976
36977 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
36978
36979         * manual/texinfo.tex: Update to version 2012-01-19.16.
36980
36981 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
36982
36983         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
36984
36985 2012-02-24  Roland McGrath  <roland@hack.frob.com>
36986
36987         [BZ #13738]
36988         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
36989         * manual/fdl-1.3.texi: New file.
36990         * manual/fdl-1.1.texi: File removed.
36991
36992         [BZ #13738]
36993         * manual/libc.texinfo (FDL_VERSION): New @set.
36994         Use it for mention of FDL in cover text.
36995         (Documentation License): Use it in @include file name.
36996
36997 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
36998             Roland McGrath  <roland@hack.frob.com>
36999
37000         [BZ #5461]
37001         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
37002         (not LONG_LONG_MAX and LONG_LONG_MIN.
37003         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
37004         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
37005         name.
37006         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
37007
37008 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
37009
37010         [BZ #2547]
37011         [BZ #11365]
37012         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
37013         manipulate bits before adding and subtracting TWO23[sx].
37014         * math/libm-test.inc (nearbyint_test): Add more tests.
37015
37016 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
37017
37018         [BZ #2548]
37019         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
37020         bits before adding and subtracting TWO23[sx].
37021         * math/libm-test.inc (rint_test): Add more tests.
37022         (rint_test_tonearest): Likewise.
37023         (rint_test_towardzero): Likewise.
37024         (rint_test_downward): Likewise.
37025         (rint_test_upward: Likewise.
37026
37027 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
37028
37029         [BZ #10110]
37030         * include/stdc-predef.h: New file.  Extracted from features.h.
37031         * include/features.h: Include stdc-predef.h.
37032         * Makefile (headers): Add stdc-predef.h.
37033         * CONFORMANCE (Compiler limitations): Update.
37034
37035 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
37036
37037         * manual/libc.texinfo (VERSION, UPDATED): Revert.
37038
37039 2012-02-21  David S. Miller  <davem@davemloft.net>
37040
37041         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
37042         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
37043
37044 2012-02-20  David S. Miller  <davem@davemloft.net>
37045
37046         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
37047         using a normal save/restore sequence, rather than allocating a
37048         dummy stack frame just to store a frame pointer and restore.
37049         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
37050
37051 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
37052
37053         * manual/install.texi: Fix stray word in line-wrapped comment.
37054
37055 2012-02-20  David S. Miller  <davem@davemloft.net>
37056
37057         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
37058         both binutils and gcc support GOTDATA.
37059
37060         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
37061         "rd %pc" in the PIC register setup sequences.
37062
37063         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
37064         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
37065         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
37066         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
37067         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
37068         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
37069         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37070         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
37071         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
37072         (SYSCALL_ERROR_HANDLER): Likewise.
37073         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
37074         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37075         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
37076         (SYSCALL_ERROR_HANDLER): Likewise.
37077
37078         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
37079         (HAVE_GCC_GOTDATA): New.
37080         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
37081         relocation support in both binutils and gcc.
37082         * sysdeps/sparc/elf/configure: Regenerate.
37083
37084         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
37085         * sysdeps/sparc/sparc32/elf/configure: Delete.
37086         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
37087         * sysdeps/sparc/sparc64/elf/configure: Delete.
37088         * sysdeps/sparc/elf/configure.in: New file.
37089         * sysdeps/sparc/elf/configure: Generate.
37090
37091         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
37092         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
37093         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
37094         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
37095         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
37096
37097 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
37098
37099         * manual/install.texi: Do not mention specific glibc version
37100         numbers.
37101         * manual/libc.texinfo (VERSION, UPDATED): Update.
37102         (@copying): Use @copyright{} and range of years.
37103
37104 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
37105
37106         [BZ #13695]
37107         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
37108         [crti.S not in sysdirs] (generated): Do not append.
37109         [crti.S not in sysdirs] (omit-deps): Likewise.
37110         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
37111         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
37112         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
37113         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
37114         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
37115         Likewise.
37116         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
37117         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
37118         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
37119         * csu/defs.awk: Remove file.
37120         * sysdeps/generic/initfini.c: Likewise.
37121         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
37122         variable.
37123         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
37124         Likewise.
37125
37126 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
37127
37128         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
37129         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
37130         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
37131         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
37132         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
37133         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
37134         <bits/epoll.h>.
37135         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
37136         (__EPOLL_PACKED): Define to empty if not defined by
37137         <bits/epoll.h>.
37138         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
37139         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37140         bits/epoll.h.
37141
37142 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
37143
37144         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
37145         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
37146         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
37147         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
37148         <bits/timerfd.h>.
37149         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
37150         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37151         bits/timerfd.h.
37152
37153 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
37154
37155         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
37156         in C locale.
37157         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
37158         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
37159         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
37160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37161
37162 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
37163
37164         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
37165         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
37166
37167 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
37168
37169         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
37170         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
37171         defined.
37172         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
37173         Likewise.
37174         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
37175         entry for 2.16.
37176
37177 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
37178
37179         * math/w_acos.c: Use non-signaling floating-point comparisons.
37180         * math/w_acosf.c: Likewise.
37181         * math/w_acosh.c: Likewise.
37182         * math/w_acoshf.c: Likewise.
37183         * math/w_acoshl.c: Likewise.
37184         * math/w_acosl.c: Likewise.
37185         * math/w_asin.c: Likewise.
37186         * math/w_asinf.c: Likewise.
37187         * math/w_asinl.c: Likewise.
37188         * math/w_atanh.c: Likewise.
37189         * math/w_atanhf.c: Likewise.
37190         * math/w_atanhl.c: Likewise.
37191         * math/w_exp2.c: Likewise.
37192         * math/w_exp2f.c: Likewise.
37193         * math/w_exp2l.c: Likewise.
37194         * math/w_j0.c: Likewise.
37195         * math/w_j0f.c: Likewise.
37196         * math/w_j0l.c: Likewise.
37197         * math/w_j1.c: Likewise.
37198         * math/w_j1f.c: Likewise.
37199         * math/w_j1l.c: Likewise.
37200         * math/w_jn.c: Likewise.
37201         * math/w_jnf.c: Likewise.
37202         * math/w_log.c: Likewise.
37203         * math/w_log10.c: Likewise.
37204         * math/w_log10f.c: Likewise.
37205         * math/w_log10l.c: Likewise.
37206         * math/w_log2.c: Likewise.
37207         * math/w_log2f.c: Likewise.
37208         * math/w_log2l.c: Likewise.
37209         * math/w_logf.c: Likewise.
37210         * math/w_logl.c: Likewise.
37211         * math/w_sqrt.c: Likewise.
37212         * math/w_sqrtf.c: Likewise.
37213         * math/w_sqrtl.c: Likewise.
37214         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
37215         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
37216         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
37217         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
37218         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
37219
37220 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
37221
37222         [BZ #9739]
37223         * manual/string.texi (strnlen): Use correct parameter name in
37224         equivalent expression.
37225
37226 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
37227
37228         [BZ #11174]
37229         * manual/users.texi (seteuid): Consistently use neweuid for
37230         argument name.
37231
37232 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
37233
37234         [BZ #13704]
37235         * manual/nss.texi (Services in the NSS configuration): Correct
37236         list of services in example configuration file.
37237
37238 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
37239
37240         [BZ #11322]
37241         * manual/arith.texi: Remove statements about negative zero
37242         behaving identically to zero.
37243
37244 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
37245
37246         [BZ #5993]
37247         * manual/install.texi: Do not document upgrading from libc5.
37248
37249 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
37250
37251         [BZ #4596]
37252         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
37253
37254 2012-02-18  David S. Miller  <davem@davemloft.net>
37255
37256         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
37257         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
37258         %o7 across the call.
37259         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
37260         instead.
37261         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
37262         SETUP_PIC_REG_LEAF.
37263         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37264         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
37265         * sysdeps/sparc/crtn.S: Likewise.
37266
37267 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
37268
37269         * aout/Makefile: Remove.
37270
37271 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
37272
37273         [BZ #13058]
37274         * manual/examples/argp-ex1.c (main): Format definition in GNU
37275         style.
37276         * manual/examples/argp-ex2.c (main): Likewise.
37277         * manual/examples/argp-ex3.c (main): Likewise.
37278         * manual/examples/argp-ex4.c (main): Likewise.
37279         * manual/examples/longopt.c (main): Use new-style prototype
37280         definition.
37281         * manual/examples/strncat.c (main): Specify return type and use
37282         (void) for arguments.
37283         * manual/examples/subopt.c (main): Use char **argv argument.
37284
37285 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
37286
37287         [BZ #5077]
37288         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
37289         rounding modes.
37290
37291 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
37292
37293         [BZ #6907]
37294         * manual/string.texi (strchr): Change when strchrnul is
37295         recommended.
37296
37297 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
37298
37299         [BZ #174]
37300         * manual/locale.texi (setlocale): Document LOCPATH.
37301
37302 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
37303
37304         [BZ #10210]
37305         * manual/process.texi (execle): Move @dots{} before last argument.
37306
37307 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
37308
37309         [BZ #12047]
37310         * manual/charset.texi (Generic Charset Conversion): Fix typo
37311         (LC_TYPE -> LC_CTYPE).
37312
37313 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
37314
37315         [BZ #5805]
37316         * manual/arith.texi (scalbn): Use @var{} on parameter names.
37317         (scalbnf): Likewise.
37318         (scalbnl): Likewise.
37319         (scalbln): Likewise.
37320         (scalblnf): Likewise.
37321         (scalblnl): Likewise.
37322         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
37323         (vwarnx): Likewise.
37324         (verr): Likewise.
37325         (verrx): Likewise.
37326         * manual/filesys.texi (telldir): Use braces around return type.
37327         * manual/llio.texi (mmap): Add space after comma.
37328         (mmap64): Likewise.
37329         * manual/math.texi (jn): Use @var{} on parameter names.
37330         (jnf): Likewise.
37331         (jnl): Likewise.
37332         (yn): Likewise.
37333         (ynf): Likewise.
37334         (ynl): Likewise.
37335         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
37336         line.
37337         * manual/resource.texi (ulimit): Use @dots{} instead of literal
37338         "...".
37339         (sched_get_priority_min): Remove semicolon on @deftypefun line.
37340         (sched_get_priority_max): Likewise.
37341         * manual/signal.texi (sigvec): Add space after comma.
37342         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
37343         names.
37344         (if_indextoname): Likewise.
37345         (if_freenameindex): Likewise.
37346         (sendto): Use ',' instead of '.' in prototype.
37347         * manual/startup.texi (syscall): Use @dots{} instead of literal
37348         "...".
37349         * manual/stdio.texi (__fpending): Separate initial words of
37350         paragraph from @deftypefun line.
37351         * manual/syslog.texi (syslog): Use @dots{} instead of literal
37352         "...".
37353         (vsyslog): Use @var{} on parameter names.
37354         * manual/terminal.texi (stty): Use @var{} on parameter names.
37355         * manual/users.texi (getutmp): Use @var{} on parameter names.
37356         (getutmpx): Likewise.
37357
37358 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
37359
37360         [BZ #6884]
37361         * manual/stdio.texi (fopen): Fix typos in description of
37362         ",ccs=STRING".
37363
37364 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
37365
37366         [BZ #4026]
37367         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
37368         get clock_id definition.
37369
37370 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
37371
37372         [BZ #4822]
37373         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
37374         (madvise): Cast every argument to void on its own.
37375
37376 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
37377
37378         [BZ #9902]
37379         * manual/startup.texi (Exit Status): Fix typo.
37380
37381 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
37382
37383         [BZ #10140]
37384         * manual/examples/argp-ex1.c: Include <stdlib.h>.
37385         * manual/examples/argp-ex2.c: Likewise.
37386         * manual/examples/argp-ex3.c: Likewise.
37387
37388 2012-02-16  Richard Henderson  <rth@redhat.com>
37389
37390         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
37391         * sysdeps/s390/s390-32/initfini.c: Remove.
37392         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
37393         * sysdeps/s390/s390-64/initfini.c: Remove.
37394
37395 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
37396
37397         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
37398         compiler output for sysdeps/generic/initfini.c.
37399         * sysdeps/sh/elf/initfini.c: Remove file.
37400
37401 2012-02-16  David S. Miller  <davem@davemloft.net>
37402
37403         [BZ #11494]
37404         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
37405
37406         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
37407         * sysdeps/sparc/crti.S: New file.
37408         * sysdeps/sparc/crtn.S: New file.
37409         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
37410         * sysdeps/sparc/sparc64/Makefile: Likewise.
37411
37412 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
37413
37414         [BZ #3335]
37415         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
37416
37417 2012-02-15  Roland McGrath  <roland@hack.frob.com>
37418
37419         [BZ #4822]
37420         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
37421
37422         * mach/devstream.c (cookie_io_functions_t): Macro removed.
37423         (write, read, close): Likewise.
37424         Patch by Aurelien Jarno <aurelien@aurel32.net>.
37425
37426 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
37427
37428         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
37429         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
37430         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
37431         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
37432         <bits/signalfd.h>.
37433         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
37434         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37435         bits/signalfd.h.
37436
37437 2012-02-14  Marek Polacek  <polacek@redhat.com>
37438
37439         * sysdeps/x86_64/crti.S: New file.
37440         * sysdeps/x86_64/crtn.S: New file.
37441         * sysdeps/x86_64/elf/initfini.c: Remove file.
37442
37443 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
37444
37445         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
37446         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
37447         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
37448         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
37449         <bits/inotify.h>.
37450         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
37451         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37452         bits/inotify.h.
37453
37454 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
37455
37456         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
37457         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
37458         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
37459         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
37460         <bits/eventfd.h>.
37461         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
37462         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37463         bits/eventfd.h.
37464
37465 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
37466
37467         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
37468         __feraiseexcept instead of feraiseexcept.
37469
37470         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
37471         nanosleep invocations.
37472         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
37473         strings, and add error checking for a nanosleep invocations.
37474
37475 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
37476
37477         Replace FSF snail mail address with URLs, as per GNU coding standards.
37478         Most of the snail mail addresses were wrong anyway, and omitting
37479         them makes the source code easier to maintain.  Almost all of the
37480         changes are to license notices and to locale LC_IDENTIFICATION
37481         addresses, except for this one:
37482         * manual/libc.texinfo: In "Published by", give the FSF's URL,
37483         not its snail mail address.
37484
37485 2012-02-09  Richard Henderson  <rth@twiddle.net>
37486
37487         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
37488         of kernel-features.h.
37489
37490         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
37491
37492 2012-02-08  Marek Polacek  <polacek@redhat.com>
37493
37494         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
37495         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
37496         * sysdeps/gnu/_G_config.h: Likewise.
37497         * sysdeps/generic/_G_config.h: Likewise.
37498
37499 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
37500
37501         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
37502         tests.
37503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37504
37505         * sysdeps/powerpc/powerpc32/crti.S: New file.
37506         * sysdeps/powerpc/powerpc32/crtn.S: New file.
37507         * sysdeps/powerpc/powerpc64/crti.S: New file.
37508         * sysdeps/powerpc/powerpc64/crtn.S: New file.
37509
37510         * Makeconfig (have-initfini): Don't set.
37511         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
37512         * configure.in (nopic_initfini): Don't substitute.
37513         * config.h.in (HAVE_INITFINI): Don't #undef.
37514         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
37515         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
37516
37517 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
37518
37519         Support crti.S and crtn.S provided directly by architectures.
37520         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
37521         [crti.S in sysdirs] (omit-deps): Likewise.
37522         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
37523         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
37524         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
37525         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
37526         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
37527         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
37528         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
37529         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
37530         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
37531         compiler output for sysdeps/generic/initfini.c.
37532         * sysdeps/i386/elf/Makefile: Remove file.
37533         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
37534
37535 2012-02-07  Marek Polacek  <polacek@redhat.com>
37536
37537         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
37538         * sysdeps/gnu/_G_config.h: Likewise.
37539         * sysdeps/mach/hurd/_G_config.h: Likewise.
37540
37541 2012-02-07  Marek Polacek  <polacek@redhat.com>
37542
37543         * math/Makefile (tests): Add tst-CMPLX2.
37544         * math/tst-CMPLX2.c: New file.
37545
37546 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
37547
37548         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
37549
37550         * math/libm-test.inc (jn_test): Add missing L suffix.
37551
37552 2012-02-06  Marek Polacek  <polacek@redhat.com>
37553
37554         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
37555         * sysdeps/i386/fpu/e_powf.S: Likewise.
37556         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
37557         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
37558         * sysdeps/i386/fpu/e_acosh.S: Likewise.
37559         * sysdeps/i386/fpu/e_pow.S: Likewise.
37560         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
37561         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
37562         * sysdeps/i386/fpu/s_expm1.S: Likewise.
37563         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
37564         * sysdeps/i386/fpu/e_log2.S: Likewise.
37565         * sysdeps/i386/fpu/e_log2l.S: Likewise.
37566         * sysdeps/i386/fpu/e_scalb.S: Likewise.
37567         * sysdeps/i386/fpu/e_powl.S: Likewise.
37568         * sysdeps/i386/fpu/s_log1p.S: Likewise.
37569         * sysdeps/i386/fpu/e_log10f.S: Likewise.
37570         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
37571         * sysdeps/i386/fpu/e_logl.S: Likewise.
37572         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
37573         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
37574         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
37575         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
37576         * sysdeps/i386/fpu/e_log2f.S: Likewise.
37577         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
37578         * sysdeps/i386/fpu/e_log.S: Likewise.
37579         * sysdeps/i386/fpu/s_cexp.S: Likewise.
37580         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
37581         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
37582         * sysdeps/i386/fpu/e_logf.S: Likewise.
37583         * sysdeps/i386/fpu/e_log10l.S: Likewise.
37584         * sysdeps/i386/fpu/e_atanh.S: Likewise.
37585         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
37586         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
37587         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
37588         * sysdeps/i386/fpu/e_log10.S: Likewise.
37589         * sysdeps/i386/fpu/s_frexp.S: Likewise.
37590         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
37591         * sysdeps/i386/fpu/s_asinh.S: Likewise.
37592         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
37593         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
37594         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
37595         * sysdeps/i386/asm-syntax.h: Likewise.
37596         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
37597         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
37598         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
37599         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
37600         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
37601         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
37602         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
37603         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
37604         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
37605         * sysdeps/powerpc/sysdep.h: Likewise.
37606         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
37607         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
37608
37609 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
37610
37611         [BZ #411]
37612         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
37613
37614 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
37615
37616         * sysdeps/i386/sysdep.h: Include <features.h>.
37617         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
37618         version.
37619
37620 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
37621
37622         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
37623         Define.
37624         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
37625         LOAD_PIC_REG_STR.
37626
37627 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
37628
37629         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
37630         (SETUP_PIC_REG): Use GET_PC_THUNK.
37631         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
37632         macro.
37633
37634 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
37635
37636         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
37637         for non-PIC compilation.
37638         (SETUP_PIC_REG): Add .p2align directive.
37639         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
37640         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
37641         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37642         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37643         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
37644         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37645         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
37646         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
37647         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37648         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37649         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37650         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37651         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37652         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37653         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37654         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
37655         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
37656         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37657         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37658         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37659         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37660         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
37661         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37662         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
37663         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
37664         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
37665         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37666         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
37667         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37668         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37669         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37670         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37671         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37672         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37673         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37674         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37675         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37676         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37677         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37678         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37679         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37680
37681 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
37682
37683         * math/tst-CMPLX.c: Include <stdio.h>.
37684
37685 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
37686
37687         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
37688         float.
37689         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
37690         * sysdeps/sparc/bits/mathdef.h: Likewise.
37691
37692 2012-01-31  Marek Polacek  <polacek@redhat.com>
37693
37694         * libio/libio.h: Don't define _PARAMS.
37695         * locale/programs/config.h: Don't define PARAMS.
37696         * stdlib/strtol_l.c: Likewise.
37697         (__strtol_l): Remove PARAMS from the prototype.
37698
37699 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
37700
37701         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
37702         names.  Just use the correct names.  Remove unnecessary wrapper
37703         functions.
37704         * malloc/arena.c: Likewise.
37705         * malloc/hooks.c: Likewise.
37706
37707         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
37708         ARENA_TEST says not to.  Simplify test for creation of a new arena.
37709         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
37710
37711 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
37712
37713         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
37714         into tail calls.
37715         (update_get_addr): New function.
37716         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
37717         GET_ADDR_MODULE parameter.
37718
37719 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
37720
37721         * crypt/cert.c: Remove __STDC__ conditionals.
37722         * crypt/crypt-entry.c: Likewise.
37723         * crypt/crypt_util.c: Likewise.
37724         * libio/filedoalloc.c: Likewise.
37725         * libio/fileops.c: Likewise.
37726         * libio/genops.c: Likewise.
37727         * libio/iofclose.c: Likewise.
37728         * libio/iofdopen.c: Likewise.
37729         * libio/iofopen.c: Likewise.
37730         * libio/iofopen64.c: Likewise.
37731         * libio/iogetdelim.c: Likewise.
37732         * libio/iopopen.c: Likewise.
37733         * libio/obprintf.c: Likewise.
37734         * libio/oldfileops.c: Likewise.
37735         * libio/oldiofclose.c: Likewise.
37736         * libio/oldiofdopen.c: Likewise.
37737         * libio/oldiofopen.c: Likewise.
37738         * libio/oldiopopen.c: Likewise.
37739         * libio/wfiledoalloc.c: Likewise.
37740         * libio/wgenops.c: Likewise.
37741         * locale/programs/xmalloc.c: Likewise.
37742         * misc/syslog.c: Likewise.
37743         * stdio-common/xbug.c: Likewise.
37744         * string/memchr.c: Likewise.
37745         * string/memcmp.c: Likewise.
37746         * string/memrchr.c: Likewise.
37747         * string/rawmemchr.c: Likewise.
37748         * sysdeps/posix/getcwd.c: Likewise.
37749         * time/strftime_l.c: Likewise.
37750
37751 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
37752
37753         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
37754         * config.make.in (config-cflags-sse2avx): Define.
37755         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
37756         Fix typo.
37757
37758 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
37759
37760         * scripts/config.guess: Update from upstream config git repository.
37761         * scripts/config.sub: Likewise.
37762
37763 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
37764
37765         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
37766         (EM_NUM): Update.
37767         (R_TILEPRO_*, R_TILEGX_*): New macros.
37768
37769         * scripts/firstversions.awk: Fix bug in version range handling.
37770
37771         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
37772
37773         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
37774
37775         * include/sys/epoll.h: New file.
37776         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
37777         libc_hidden_def.
37778
37779 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
37780
37781         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
37782         Avoid unnecessary __WORDSIZE == 64 test.
37783         (fmaxf): Use VEX format if possible.
37784         (fmax): Likewise.
37785         (fminf): Likewise.
37786         (fmin): Likewise.
37787
37788         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
37789         * math/math_private.h: Remove libc_fegetround* and
37790         libc_fesetround*.
37791         * sysdeps/i386/configure.in: Check for -msse2avx.
37792         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
37793         also if SSE2AVX is defined.
37794         Remove libc_fegetround* and libc_fesetround*.
37795         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
37796         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
37797         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
37798         of HAS_YMM_USABLE.
37799         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37800         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37801         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37802         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37803         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37804
37805         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
37806
37807 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37808
37809         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
37810         size is not set.
37811         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37812
37813 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
37814
37815         [BZ #13618]
37816         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
37817         relocation.
37818         * Makeconfig (libm): Define.
37819         * elf/Makefile: Add rules to build and run tst-relsort1.
37820         * elf/tst-relsort1.c: New file.
37821         * elf/tst-relsort1mod1.c: New file.
37822         * elf/tst-relsort1mod2.c: New file.
37823
37824 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
37825
37826         * math/s_ldexp.c: Remove __STDC__ conditionals.
37827         * math/s_ldexpf.c: Likewise.
37828         * math/s_ldexpl.c: Likewise.
37829         * math/s_nextafter.c: Likewise.
37830         * math/s_nexttowardf.c: Likewise.
37831         * math/s_significand.c: Likewise.
37832         * math/s_significandf.c: Likewise.
37833         * math/s_significandl.c: Likewise.
37834         * math/w_jnl.c: Likewise.
37835         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37836         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37837         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37838         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37839         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37840         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37841         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
37842         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37843         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37844         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37845         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37846         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37847         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37848         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37849         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37850         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37851         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37852         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37853         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37854         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37855         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37856         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37857         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37858         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37859         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37860         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37861         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37862         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37863         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37864         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37865         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37866         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37867         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37868         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37869         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37870         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37871         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37872         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37873         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37874         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37875         * sysdeps/ieee754/k_standard.c: Likewise.
37876         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37877         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37878         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37879         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37880         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37881         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37882         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37883         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37884         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37885         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37886         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37887         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37888         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37889         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37890         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37891         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37892         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37893         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37894         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37895         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37896         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37897         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37898         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37899         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37900         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37901         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37902         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37903         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37904         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37905         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37906         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37907         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
37908         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37909         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37910         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37911         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37912         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
37913         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37914         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37915         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
37916         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
37917         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37918         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
37919         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
37920         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37921         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
37922         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
37923         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37924         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37925         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
37926         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
37927         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37928         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37929         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37930         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37931         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37932         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
37933         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37934         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37935         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37936         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37937         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37938         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37939         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37940         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37941         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37942         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37943         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37944         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37945         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37946         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37947         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37948         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37949         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37950         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37951         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37952         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37953         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37954         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37955         * sysdeps/ieee754/s_matherr.c: Likewise.
37956         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37957         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37958         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37959         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37960
37961 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
37962
37963         * crypt/md5.h: Remove __STDC__ conditionals.
37964         * libio/libioP.h: Likewise.
37965         * locale/programs/config.h: Likewise.
37966         * sysdeps/generic/sysdep.h: Likewise.
37967         * sysdeps/i386/asm-syntax.h: Likewise.
37968         * sysdeps/s390/asm-syntax.h: Likewise.
37969         * sysdeps/unix/sysdep.h: Likewise.
37970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
37971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
37972
37973 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
37974
37975         * libio/libio.h: Remove __STDC__ conditionals.
37976         * malloc/obstack.h: Likewise.
37977         * math/complex.h: Likewise.
37978         * math/math.h: Likewise.
37979         * sysdeps/generic/_G_config.h: Likewise.
37980         * sysdeps/gnu/_G_config.h: Likewise.
37981         * sysdeps/mach/hurd/_G_config.h: Likewise.
37982         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37983         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
37984         * sysdeps/sparc/bits/mathdef.h: Likewise.
37985
37986 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
37987
37988         [BZ #13583]
37989         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
37990         Clean up HAS_* macros.
37991         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
37992         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
37993         possible.
37994         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
37995         HAS_AVX.
37996         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37997         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37998         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37999         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38000         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38001
38002 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
38003
38004         * elf/tst-unique3.cc (gets): Remove declaration.
38005         * elf/tst-unique3lib.cc (gets): Likewise.
38006         * elf/tst-unique3lib2.cc (gets): Likewise.
38007         * elf/tst-unique4.cc (gets): Likewise.
38008
38009 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
38010
38011         * include/stdio.h: Add C++ protection.  Add gets declarations and
38012         definitions.
38013         * debug/tst-chk1.c: Don't declare gets here.
38014         * stdio-common/tst-gets.c: Likewise.
38015
38016 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
38017
38018         * posix/glob: Remove directory.
38019
38020 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
38021
38022         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
38023
38024 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
38025
38026         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
38027         of the non-standard EPFNOSUPPORT.
38028
38029 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38030
38031         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
38032         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
38033         ANYWHERE set to 1 only on KERN_NO_SPACE error.
38034
38035 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
38036
38037         * wcsmbs/uchar.h: Test __STDC_VERSION__.
38038
38039 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
38040
38041         * nscd/aicache.c (addhstaiX): Do not cache negative results of
38042         transient errors.
38043         * nscd/grpcache.c (cache_addgr): Likewise.
38044         * nscd/hstcache.c (cache_addhst): Likewise.
38045         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38046         * nscd/pwdcache.c (cache_addpw): Likewise.
38047         * nscd/servicescache.c (cache_addserv): Likewise.
38048
38049 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
38050
38051         * malloc/malloc.c: Various cleanups.
38052         * malloc/hooks.c: Likewise.
38053
38054         * stdlib/Makefile (tests): Add bug-fmtmsg1.
38055         * stdlib/bug-fmtmsg1.c: New file.
38056
38057         * stdlib/fmtmsg.c (init): Add missing unlock.
38058         Patch by Peng Haitao <penght@cn.fujitsu.com>.
38059
38060 2012-01-12  Marek Polacek  <polacek@redhat.com>
38061
38062         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
38063         and _GNU_SOURCE.
38064
38065 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
38066
38067         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
38068         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
38069         macro to ensure uniqueness of label name.
38070         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
38071         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
38072
38073 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
38074
38075         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
38076
38077         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
38078         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
38079         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
38080         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
38081
38082 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
38083
38084         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
38085
38086         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
38087         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
38088         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
38089
38090         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
38091
38092         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
38093         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
38094         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
38095         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
38096
38097         * math/bits/math-finite.h: Add ldexp support.
38098
38099 2012-01-10  Marek Polacek  <polacek@redhat.com>
38100
38101         * locale/programs/localedef.h (show_archive_content): Add noreturn
38102         attribute.
38103
38104 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
38105
38106         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
38107
38108 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
38109
38110         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
38111
38112         * io/Makefile (headers): Add bits/poll2.h.
38113
38114 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
38115
38116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
38117         typo #include statement.
38118
38119 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
38120
38121         * include/sys/cdefs.h: Define __attribute_alloc_size.
38122         * catgets/gencat.c: Add alloc_size attribute and apply consistently
38123         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
38124         * elf/pldd.c: Likewise.
38125         * iconv/iconv_charmap.c: Likewise.
38126         * iconv/iconvconfig.c: Likewise.
38127         * iconv/strtab.c: Likewise.
38128         * locale/programs/locale.c: Likewise.
38129         * locale/programs/localedef.h: Likewise.
38130         * locale/programs/simple-hash.c: Likewise.
38131         * nscd/nscd.h: Likewise.
38132         * nss/makedb.c: Likewise.
38133         * sysdeps/generic/ldconfig.h: Likewise.
38134         * locale/programs/localedef.c: Remove xmalloc prototype.
38135         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
38136
38137 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
38138
38139         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
38140         appropriate.
38141
38142 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
38143
38144         * math/Makefile (tests): Add tst-CMPLX.
38145         * math/tst-CMPLX.c: New file.
38146
38147         * math/complex.h (CMPLXL): Fix typo.
38148
38149         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
38150         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
38151         GLIBC_2.16.
38152         * debug/tst-chk1.c: Add poll and ppoll tests.
38153         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
38154         * include/sys/poll.h: Add hidden proto for ppoll.
38155         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
38156         * sysdeps/mach/hurd/ppoll.c: Likewise.
38157         * io/ppoll.c: Likewise.
38158         * debug/poll_chk.c: New file.
38159         * debug/ppoll_chk.c: New file.
38160         * include/bits/poll2.h: New file.
38161         * io/bits/poll2.h: New file.
38162
38163         [BZ #1350]
38164         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
38165
38166         * configure.in: static is always set to yes.  Remove.
38167         * config.make.in: Don't set build-static.
38168         * Makeconfig: Remove use of build-static.
38169         * dlfcn/Makefile: Likewise.
38170         * elf/Makefile: Likewise.
38171         * math/Makefile: Likewise.
38172         * misc/Makefile: Likewise.
38173         * nptl/Makefile: Likewise.
38174         * sysdeps/mach/hurd/Makefile: Likewise.
38175
38176         * configure.in: PWD_P is not used anymore.
38177         * config.make.in: Remove PWD_P entry.
38178
38179         * configure.in: Remove last remnants of RANLIB.
38180         No need to check for signed size_t anymore.
38181         Don't set libc_commonpagesize and libc_relro_required here for Alpha
38182         and IA-64.
38183         Remove __builtin_expect test because we require at least gcc 3.4.
38184         * aclocal.m4: Likewise.
38185
38186         * wcsmbs/mbrtoc16.c: Implement using towc function.
38187         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
38188         * wcsmbs/wcsmbsload.c: Likewise.
38189         * iconv/gconv_simple.c: Likewise.
38190         * iconv/gconv_int.h: Likewise.
38191         * iconv/gconv_builtin.h: Likewise.
38192         * iconv/iconv_prog.c: Remove CHAR16 handling.
38193
38194         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
38195
38196         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
38197
38198         * configure.in: Remove --with-elf and --enable-bounded options.
38199         Dont set base_machine for ia64.  More non-ELF conditions removed.
38200         Remove testing and setting of leading underscore information.
38201         * config.make.in (build-bounded): Set to no.
38202         * config.h.in: Remove NO_UNDERSCORES entry.
38203         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
38204         them.
38205         * csu/start.c: Remove !NO_UNDERSCORE code.
38206         * locale/localeinfo.h: Likewise.
38207         * sysdeps/generic/machine-gmon.h: Likewise.
38208         * sysdeps/generic/sysdep.h: Likewise.
38209         * sysdeps/i386/sysdep.h: Likewise.
38210         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
38211         * sysdeps/mach/sysdep.h: Likewise.
38212         * sysdeps/s390/s390-32/sysdep.h: Likewise.
38213         * sysdeps/s390/s390-64/sysdep.h: Likewise.
38214         * sysdeps/sh/sysdep.h: Likewise.
38215         * sysdeps/sparc/sparc32/alloca.S: Likewise.
38216         * sysdeps/unix/i386/sysdep.S: Likewise.
38217         * sysdeps/unix/sparc/start.c: Likewise.
38218         * sysdeps/unix/sparc/sysdep.S: Likewise.
38219         * sysdeps/unix/sparc/sysdep.h: Likewise.
38220         * sysdeps/unix/start.c: Likewise.
38221         * sysdeps/unix/x86_64/sysdep.S: Likewise.
38222         * sysdeps/x86_64/sysdep.h: Likewise.
38223
38224 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
38225
38226         [BZ #13553]
38227         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
38228         for non-gcc.
38229         * argp/argp-fmtstream.h: Use const instead __const.
38230         * argp/argp.h: Likewise.
38231         * assert/assert.h: Likewise.
38232         * bits/fenv.h: Likewise.
38233         * bits/sched.h: Likewise.
38234         * bits/sigset.h: Likewise.
38235         * bits/sigthread.h: Likewise.
38236         * catgets/nl_types.h: Likewise.
38237         * conform/data/pthread.h-data: Likewise.
38238         * crypt/crypt-private.h: Likewise.
38239         * crypt/crypt.h: Likewise.
38240         * crypt/crypt_util.c: Likewise.
38241         * ctype/ctype.h: Likewise.
38242         * debug/execinfo.h: Likewise.
38243         * debug/mbsnrtowcs_chk.c: Likewise.
38244         * debug/mbsrtowcs_chk.c: Likewise.
38245         * debug/wcsnrtombs_chk.c: Likewise.
38246         * debug/wcsrtombs_chk.c: Likewise.
38247         * debug/wcstombs_chk.c: Likewise.
38248         * dirent/dirent.h: Likewise.
38249         * dlfcn/dlfcn.h: Likewise.
38250         * elf/neededtest4.c: Likewise.
38251         * grp/grp.h: Likewise.
38252         * gshadow/gshadow.h: Likewise.
38253         * iconv/gconv.h: Likewise.
38254         * iconv/gconv_int.h: Likewise.
38255         * iconv/gconv_simple.c: Likewise.
38256         * iconv/iconv.h: Likewise.
38257         * iconv/loop.c: Likewise.
38258         * iconv/skeleton.c: Likewise.
38259         * include/aio.h: Likewise.
38260         * include/aliases.h: Likewise.
38261         * include/argz.h: Likewise.
38262         * include/arpa/inet.h: Likewise.
38263         * include/assert.h: Likewise.
38264         * include/dirent.h: Likewise.
38265         * include/dlfcn.h: Likewise.
38266         * include/execinfo.h: Likewise.
38267         * include/fcntl.h: Likewise.
38268         * include/fenv.h: Likewise.
38269         * include/glob.h: Likewise.
38270         * include/grp.h: Likewise.
38271         * include/libintl.h: Likewise.
38272         * include/mntent.h: Likewise.
38273         * include/netdb.h: Likewise.
38274         * include/pwd.h: Likewise.
38275         * include/rpc/netdb.h: Likewise.
38276         * include/sched.h: Likewise.
38277         * include/search.h: Likewise.
38278         * include/shadow.h: Likewise.
38279         * include/signal.h: Likewise.
38280         * include/stdio.h: Likewise.
38281         * include/stdlib.h: Likewise.
38282         * include/string.h: Likewise.
38283         * include/sys/socket.h: Likewise.
38284         * include/sys/stat.h: Likewise.
38285         * include/sys/statfs.h: Likewise.
38286         * include/sys/statvfs.h: Likewise.
38287         * include/sys/syslog.h: Likewise.
38288         * include/sys/time.h: Likewise.
38289         * include/sys/uio.h: Likewise.
38290         * include/time.h: Likewise.
38291         * include/unistd.h: Likewise.
38292         * include/utmp.h: Likewise.
38293         * include/wchar.h: Likewise.
38294         * include/wctype.h: Likewise.
38295         * inet/aliases.h: Likewise.
38296         * inet/arpa/inet.h: Likewise.
38297         * inet/netinet/ether.h: Likewise.
38298         * inet/netinet/in.h: Likewise.
38299         * intl/libintl.h: Likewise.
38300         * io/bits/fcntl2.h: Likewise.
38301         * io/fcntl.h: Likewise.
38302         * io/ftw.h: Likewise.
38303         * io/sys/poll.h: Likewise.
38304         * io/sys/stat.h: Likewise.
38305         * io/sys/statfs.h: Likewise.
38306         * io/sys/statvfs.h: Likewise.
38307         * io/utime.h: Likewise.
38308         * libio/bits/stdio.h: Likewise.
38309         * libio/bits/stdio2.h: Likewise.
38310         * libio/libio.h: Likewise.
38311         * libio/libioP.h: Likewise.
38312         * libio/stdio.h: Likewise.
38313         * locale/lc-ctype.c: Likewise.
38314         * locale/locale.h: Likewise.
38315         * login/utmp.h: Likewise.
38316         * malloc/arena.c: Likewise.
38317         * malloc/malloc.c: Likewise.
38318         * malloc/malloc.h: Likewise.
38319         * malloc/mcheck.c: Likewise.
38320         * malloc/mtrace.c: Likewise.
38321         * math/bits/mathcalls.h: Likewise.
38322         * math/fenv.h: Likewise.
38323         * math/math_private.h: Likewise.
38324         * misc/bits/error.h: Likewise.
38325         * misc/bits/syslog.h: Likewise.
38326         * misc/err.h: Likewise.
38327         * misc/error.h: Likewise.
38328         * misc/fstab.h: Likewise.
38329         * misc/mntent.h: Likewise.
38330         * misc/regexp.h: Likewise.
38331         * misc/search.h: Likewise.
38332         * misc/sgtty.h: Likewise.
38333         * misc/sys/mman.h: Likewise.
38334         * misc/sys/syslog.h: Likewise.
38335         * misc/sys/uio.h: Likewise.
38336         * misc/sys/xattr.h: Likewise.
38337         * misc/ttyent.h: Likewise.
38338         * nis/rpcsvc/ypclnt.h: Likewise.
38339         * nss/nss.h: Likewise.
38340         * posix/bits/unistd.h: Likewise.
38341         * posix/fnmatch.h: Likewise.
38342         * posix/glob.h: Likewise.
38343         * posix/sched.h: Likewise.
38344         * posix/spawn.h: Likewise.
38345         * posix/sys/wait.h: Likewise.
38346         * posix/unistd.h: Likewise.
38347         * posix/wordexp.h: Likewise.
38348         * pwd/pwd.h: Likewise.
38349         * resolv/netdb.h: Likewise.
38350         * resource/sys/resource.h: Likewise.
38351         * rt/aio.h: Likewise.
38352         * rt/bits/mqueue2.h: Likewise.
38353         * rt/mqueue.h: Likewise.
38354         * shadow/shadow.h: Likewise.
38355         * signal/signal.h: Likewise.
38356         * socket/send.c: Likewise.
38357         * socket/sendto.c: Likewise.
38358         * socket/sys/socket.h: Likewise.
38359         * stdio-common/printf.h: Likewise.
38360         * stdlib/bits/stdlib.h: Likewise.
38361         * stdlib/fmtmsg.h: Likewise.
38362         * stdlib/monetary.h: Likewise.
38363         * stdlib/stdlib.h: Likewise.
38364         * stdlib/ucontext.h: Likewise.
38365         * streams/stropts.h: Likewise.
38366         * string/argz.h: Likewise.
38367         * string/bits/string2.h: Likewise.
38368         * string/string.h: Likewise.
38369         * string/strings.h: Likewise.
38370         * sunrpc/rpc/auth.h: Likewise.
38371         * sunrpc/rpc/auth_des.h: Likewise.
38372         * sunrpc/rpc/clnt.h: Likewise.
38373         * sunrpc/rpc/netdb.h: Likewise.
38374         * sunrpc/rpc/pmap_clnt.h: Likewise.
38375         * sunrpc/rpc/xdr.h: Likewise.
38376         * sysdeps/generic/inttypes.h: Likewise.
38377         * sysdeps/generic/net/if.h: Likewise.
38378         * sysdeps/generic/sys/swap.h: Likewise.
38379         * sysdeps/gnu/net/if.h: Likewise.
38380         * sysdeps/gnu/utmpx.h: Likewise.
38381         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
38382         * sysdeps/i386/i486/bits/string.h: Likewise.
38383         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
38384         * sysdeps/s390/bits/string.h: Likewise.
38385         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
38386         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
38387         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
38388         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
38389         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
38390         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
38391         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
38392         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
38393         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
38394         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
38395         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
38396         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
38397         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
38398         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
38399         * sysdeps/unix/sysv/linux/readv.c: Likewise.
38400         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
38401         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
38402         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
38403         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
38404         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
38405         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
38406         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
38407         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
38408         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
38409         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
38410         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
38411         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
38412         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38413         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
38414         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
38415         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
38416         * sysvipc/sys/ipc.h: Likewise.
38417         * sysvipc/sys/msg.h: Likewise.
38418         * sysvipc/sys/sem.h: Likewise.
38419         * sysvipc/sys/shm.h: Likewise.
38420         * termios/termios.h: Likewise.
38421         * time/sys/time.h: Likewise.
38422         * time/time.h: Likewise.
38423         * wcsmbs/bits/wchar2.h: Likewise.
38424         * wcsmbs/uchar.h: Likewise.
38425         * wcsmbs/wchar.h: Likewise.
38426         * wctype/wctype.h: Likewise.
38427
38428         [BZ #13551]
38429         * Makeconfig: Remove all but ELF support including AIX support.
38430         * Makerules: Likewise.
38431         * config.h.in: Likewise.
38432         * config.make.in: Likewise.
38433         * configure: Likewise.
38434         * configure.in: Likewise.
38435         * csu/Makefile: Likewise.
38436         * csu/version.c: Likewise.
38437         * debug/Makefile: Likewise.
38438         * dlfcn/Makefile: Likewise.
38439         * elf/Makefile: Likewise.
38440         * extra-lib.mk: Likewise.
38441         * iconv/Makefile: Likewise.
38442         * include/libc-symbols.h: Likewise.
38443         * include/shlib-compat.h: Likewise.
38444         * resolv/Makefile: Likewise.
38445         * resolv/res_libc.c: Likewise.
38446         * rt/Makefile: Likewise.
38447         * sysdeps/i386/asm-syntax.h: Likewise.
38448         * sysdeps/i386/sysdep.h: Likewise.
38449         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
38450         * sysdeps/mach/sysdep.h: Likewise.
38451         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
38452         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
38453         * sysdeps/s390/asm-syntax.h: Likewise.
38454         * sysdeps/s390/s390-32/sysdep.h: Likewise.
38455         * sysdeps/s390/s390-64/sysdep.h: Likewise.
38456         * sysdeps/sh/sysdep.h: Likewise.
38457         * sysdeps/unix/sparc/sysdep.h: Likewise.
38458         * sysdeps/wordsize-32/divdi3.c: Likewise.
38459         * sysdeps/x86_64/sysdep.h: Likewise.
38460
38461         * argp/Versions: Remove _argp_unlock_xxx.
38462
38463         [BZ #13559]
38464         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
38465         * abilist/libBrokenLocale.abilist: Likewise.
38466         * abilist/libanl.abilist: Likewise.
38467         * abilist/libc.abilist: Likewise.
38468         * abilist/libcrypt.abilist: Likewise.
38469         * abilist/libdl.abilist: Likewise.
38470         * abilist/libm.abilist: Likewise.
38471         * abilist/libnsl.abilist: Likewise.
38472         * abilist/libpthread.abilist: Likewise.
38473         * abilist/libresolv.abilist: Likewise.
38474         * abilist/librt.abilist: Likewise.
38475         * abilist/libthread_db.abilist: Likewise.
38476         * abilist/libutil.abilist: Likewise.
38477         * abilist/libnss_db.abilist: New file.
38478
38479         * scripts/abilist.awk: Add support for indirect functions.
38480
38481         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
38482
38483         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
38484
38485         * shlib-versions: Remove entries for ports architectures.
38486
38487         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
38488         files in ports.
38489         * elf/stackguard-macros.h: Remove support for IA-64.
38490         * elf/tst-auditmod1.c: Likewise.
38491         * sysdeps/generic/ldsodefs.h: Likewise.
38492
38493         * sysdeps/unix/sysv/linux/configure.in: Ports should define
38494         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
38495         configure files.
38496
38497         [BZ #13552]
38498         * configure.in: Remove --enable-omitfp support.
38499         * FAQ.in: Adjust.
38500         * config.make.in: Likewise.
38501         * Makeconfig: Likewise.
38502         * manual/install.texi: Likewise.
38503
38504         In case anyone cares, the IA-64 architecture could move to ports.
38505         * sysdeps/ia64/*: Removed.
38506         * sysdeps/unix/sysv/linux/ia64/*: Removed.
38507         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
38508
38509         [BZ #13555]
38510         * configure.in: Remove entries for unsupported architectures.
38511
38512         [BZ #13533]
38513         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
38514         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
38515         routines.
38516         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
38517         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
38518         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
38519         fall back to using wcrtomb.
38520         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
38521         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
38522         renaming.
38523         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
38524         * wcsmbs/tst-c16c32-1.c: New file.
38525
38526         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
38527         local variable.
38528
38529         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
38530
38531         * elf/tst-unique3.cc: Add explicit declaration of gets.
38532         * elf/tst-unique3lib.cc: Likewise.
38533         * elf/tst-unique3lib2.cc: Likewise.
38534         * elf/tst-unique4.cc: Likewise.
38535
38536         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
38537
38538 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
38539
38540         [BZ #13566]
38541         * assert/assert.h (static_assert): Don't define for C++.
38542         * libio/stdio.h (gets): Do declare for C++ <= C++11.
38543         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
38544
38545 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
38546
38547         * iconv/loop.c (single loop): Fix assertion in storing of
38548         remaining bytes.
38549
38550         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
38551
38552 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
38553
38554         * posix/getconf.c: Update copyright year.
38555         * nss/getent.c: Likewise.
38556         * nss/makedb.c: Likewise.
38557         * iconv/iconvconfig.c: Likewise.
38558         * iconv/iconv_prog.c: Likewise.
38559         * elf/ldconfig.c: Likewise.
38560         * elf/pldd.c: Likewise.
38561         * elf/sotruss.ksh: Likewise.
38562         * catgets/gencat.c: Likewise.
38563         * csu/version.c: Likewise.
38564         * elf/ldd.bash.in: Likewise.
38565         * elf/sprof.c (print_version): Likewise.
38566         * locale/programs/locale.c: Likewise.
38567         * locale/programs/localedef.c: Likewise.
38568         * login/programs/pt_chown.c: Likewise.
38569         * nscd/nscd.c (print_version): Likewise.
38570         * debug/xtrace.sh: Likewise.
38571         * malloc/memusage.sh: Likewise.
38572         * malloc/mtrace.pl: Likewise.
38573         * debug/catchsegv.sh: Likewise.
38574
38575 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
38576
38577         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
38578         pure attribute.
38579
38580 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
38581
38582         [BZ #13533]
38583         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
38584         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
38585         transformations.
38586         * iconv/gconv_int.h: Likewise.
38587         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
38588         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
38589         from libc for GLIBC_2.16.
38590         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
38591         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
38592         * wcsmbs/uchar.h: Really define mbstate_t.
38593         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
38594         * wcsmbs/c16rtomb.c: New file.
38595         * wcsmbs/mbrtoc16.c: New file.
38596         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
38597         for C/POSIX locale.
38598         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
38599         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
38600
38601         * wcsmbs/wchar.h: Add missing __restrict.
38602
38603 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
38604
38605         [BZ #13532]
38606         * time/Makefile (routines): Add timespec_get.
38607         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
38608         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
38609         timespec for ISO C11.
38610         * time/timespec_get.c: New file.
38611         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
38612         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
38613
38614         [BZ #13531]
38615         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
38616         * stdlib/stdlib.h: Declare aligned_alloc.
38617         * Versions.def: Add GLIBC_2.16 for libc.
38618         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
38619
38620         [BZ 13527]
38621         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
38622         ISO C11.
38623
38624         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
38625         code.
38626
38627         [BZ #13528]
38628         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
38629
38630         [BZ #13529]
38631         * assert/assert.h (static_assert): Define.
38632
38633         * version.h: Update for 2.16 development version.
38634
38635         [BZ #13526]
38636         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
38637         _ISOC11_SOURCE.
38638
38639         * version.h (RELEASE): Bump for 2.15 release.
38640         * include/features.h (__GLIBC_MINOR__): Bump to 15.
38641
38642         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
38643         Patch by Marek Polacek <mpolacek@redhat.com>.
38644
38645         * bits/byteswap.h: Protect long long constants with __extension__.
38646         * sysdeps/i386/bits/byteswap.h: Likewise.
38647         * sysdeps/ia64/bits/byteswap.h: Likewise.
38648         * sysdeps/s390/bits/byteswap.h: Likewise.
38649         * sysdeps/x86_64/bits/byteswap.h: Likewise.
38650
38651 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38652
38653         [BZ #13540]
38654         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
38655         destination buffer.
38656         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
38657
38658 2011-12-23  Marek Polacek  <polacek@redhat.com>
38659
38660         * elf/dl-addr.c (determine_info): Add inline keyword.
38661         * elf/tst-auditmod4b.c (check_avx): Likewise.
38662         * elf/tst-auditmod6b.c (check_avx): Likewise.
38663         * elf/tst-auditmod6c.c (check_avx): Likewise.
38664         * elf/tst-auditmod7b.c (check_avx): Likewise.
38665
38666 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
38667
38668         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
38669         !__SSE_MATH__.
38670
38671 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38672
38673         [BZ #13540]
38674         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
38675         processing for last bytes.
38676
38677 2011-08-06  Bruno Haible  <bruno@clisp.org>
38678
38679         [BZ #13061]
38680         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
38681         U+0385, not to U+1FEE.
38682
38683         [BZ #13062]
38684         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
38685         entry for U+00A5 U+0301.
38686
38687 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
38688
38689         [BZ #13166]
38690         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
38691         buffer for the output is too small.
38692
38693         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
38694         optimization.
38695
38696         [BZ #13185]
38697         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
38698         SSE flags if possible.
38699
38700 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38701
38702         [BZ #13540]
38703         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
38704         processing for last bytes.
38705
38706 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
38707
38708         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
38709         (syscall-list-default-options, syscall-list-default-condition)
38710         (syscall-list-includes): Define.
38711         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
38712         list of ABIs and options and #if conditions for each ABI.  Do not
38713         handle common syscalls between ABIs specially.
38714         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
38715         Remove.
38716         (syscall-list-variants, syscall-list-32bit-options)
38717         (syscall-list-32bit-condition, syscall-list-64bit-options)
38718         (syscall-list-64bit-condition): Define.
38719         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
38720         (syscall-list-variants, syscall-list-32bit-options)
38721         (syscall-list-32bit-condition, syscall-list-64bit-options)
38722         (syscall-list-64bit-condition): Define.
38723         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
38724         Remove.
38725         (syscall-list-variants, syscall-list-32bit-options)
38726         (syscall-list-32bit-condition, syscall-list-64bit-options)
38727         (syscall-list-64bit-condition): Define.
38728         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
38729         Remove.
38730         (syscall-list-variants, syscall-list-32bit-options)
38731         (syscall-list-32bit-condition, syscall-list-64bit-options)
38732         (syscall-list-64bit-condition): Define.
38733
38734 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
38735
38736         * locale/iso-639.def: Add brx entry.
38737
38738         [BZ #13328]
38739         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
38740         Proposed by Mariusz_Cukr <marcukr@op.pl>.
38741
38742         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
38743         __feraiseexcept_renamed.
38744
38745 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
38746
38747         [BZ #13538]
38748         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
38749         EPOLLET with unsigned values.
38750         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38751         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
38752
38753         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
38754         to large cancellation.
38755         * math/s_cacoshf.c: Likewise.
38756         * math/s_cacoshl.c: Likewise.
38757
38758 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
38759
38760         [BZ #13305]
38761         [BZ #12786]
38762         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
38763         * math/s_cacoshf.c: Likewise.
38764         * math/s_cacoshl.c: Likewise.
38765
38766 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
38767
38768         [BZ #13439]
38769         * iconv/gconv.h: Define __GCONV_SWAP.
38770         * iconvdata/unicode.c: The swap bit must be stored in __flags.
38771         * iconvdata/utf-16.c: Likewise.
38772         * iconvdata/utf-32.c: Likewise.
38773
38774 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
38775
38776         [BZ #13524]
38777         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
38778         numerator after shifting it by one limb.
38779
38780 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
38781
38782         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
38783         under [__USE_EXTERN_INLINES].
38784
38785 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
38786
38787         [BZ #13446]
38788         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
38789
38790 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38791
38792         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
38793         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
38794         optimized code.
38795         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
38796         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
38797         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
38798         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
38799         for strncasecmp/strncasecmp_l compilation.
38800         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
38801         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
38802
38803 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
38804
38805         [BZ #13484]
38806         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
38807         of __asm__.
38808
38809 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
38810
38811         [BZ #13506]
38812         * time/tzfile.c (__tzfile_read): Check values from file header.
38813
38814 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
38815
38816         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
38817         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
38818         * powerpc/powerpc32/dl-start.S: Likewise.
38819         * powerpc/powerpc32/elf/start.S: Likewise.
38820         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
38821         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
38822         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
38823         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
38824         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
38825         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
38826         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
38827         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
38828         * powerpc/powerpc32/fpu/s_round.S: Likewise.
38829         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
38830         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
38831         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
38832         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
38833         * powerpc/powerpc32/memset.S: Likewise.
38834         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
38835         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
38836         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
38837         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
38838         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
38839         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
38840         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
38841         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
38842         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
38843         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
38844         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
38845         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
38846         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
38847
38848 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38849
38850         * math/libm-test.inc: Added more nearbyint tests.
38851         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
38852         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
38853         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
38854         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
38855
38856 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
38857
38858         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
38859         FD_CLOEXEC.
38860
38861 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38862
38863         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
38864         Add wcscpy-ssse3 wcscpy-c.
38865         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
38866         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
38867         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
38868         * sysdeps/x86_64/wcschr.S: New file.
38869         * sysdeps/x86_64/wcsrchr.S: New file.
38870         * string/test-strcmp.c: Remove checking of wcscmp function for
38871         wrong alignments.
38872         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
38873         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
38874         wcsrchr-sse2 wcsrchr-c.
38875         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
38876         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
38877         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
38878         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
38879         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
38880         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
38881         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
38882         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
38883         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
38884         * wcsmbc/wcschr.c (WCSCHR): New macro.
38885
38886 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
38887
38888         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
38889         * wcsmbs/test-wcsrchr.c: New file.
38890         * string/test-strrchr.c: Add wcsrchr support.
38891         (WIDE): New macro.
38892         * wcsmbs/test-wcscpy.c: New file.
38893         * string/test-strcpy.c: Add wcscpy support.
38894         (WIDE): New macro.
38895
38896 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
38897
38898         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
38899         the inner loop.
38900
38901 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
38902
38903         [BZ #13472]
38904         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
38905
38906 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
38907
38908         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
38909         Minor optimizations.
38910
38911         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
38912         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
38913         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
38914
38915 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
38916
38917         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
38918         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
38919         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
38920         for gcc to avoid warnings.
38921         * inet/Makefile (tests): Add tst-checks.
38922         * inet/tst-checks.c: New file.
38923
38924         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
38925         warning.
38926
38927         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
38928         __wmemcmp_sse2.
38929
38930         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
38931         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
38932
38933         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
38934
38935 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
38936
38937         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
38938         problem.
38939
38940         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
38941
38942 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
38943
38944         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
38945         conditional on GCC version.
38946         (__arch_compare_and_exchange_val_8_acq)
38947         (__arch_compare_and_exchange_val_16_acq)
38948         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
38949         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
38950         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
38951
38952 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
38953
38954         * sysdeps/sh/backtrace.c: New file.
38955
38956 2011-12-02  Andreas Schwab  <schwab@redhat.com>
38957
38958         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
38959         parenthesis.
38960
38961 2011-12-01  Andreas Schwab  <schwab@redhat.com>
38962
38963         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
38964         falling back to utime.
38965
38966 2011-11-30  Andreas Schwab  <schwab@redhat.com>
38967
38968         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
38969         expectations for float.
38970
38971 2011-11-29  Andreas Schwab  <schwab@redhat.com>
38972
38973         * locale/weight.h (findidx): Add parameter len.
38974         * locale/weightwc.h (findidx): Likewise.
38975         * posix/fnmatch_loop.c (FCT): Adjust caller.
38976         * posix/regcomp.c (build_equiv_class): Likewise.
38977         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
38978         * posix/regexec.c (check_node_accept_bytes): Likewise.
38979         * string/strcoll_l.c (STRCOLL): Likewise.
38980         * string/strxfrm_l.c (STRXFRM): Likewise.
38981
38982 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
38983
38984         * Makefile.in: Remove CVSOPT handling.
38985         * configure.in: Remove use of AC_REVISION.
38986         * iconvdata/Makefile (distribute): No need to filter out CVS.
38987         * scripts/list-sources.sh: Remove CVS, subversion and monotone
38988         handling.
38989
38990 2011-11-16  Andreas Schwab  <schwab@redhat.com>
38991
38992         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
38993         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
38994         [USE_AS_STRNCASECMP_L]: Likewise.
38995         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
38996         NO_TLS_DIRECT_SEG_REFS.
38997         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
38998         Fix argument offsets for non-PIC.
38999         [USE_AS_STRNCASECMP_L]: Likewise.
39000         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
39001         NO_TLS_DIRECT_SEG_REFS.
39002
39003 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
39004
39005         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
39006         O_CLOEXEC.
39007         * locale/loadlocale.c (_nl_load_locale): Likewise.
39008
39009 2011-11-15  Andreas Schwab  <schwab@redhat.com>
39010
39011         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
39012         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
39013         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
39014         (SYSCALL_GETTIME): Set errno on error.
39015
39016         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
39017         count references to noai6ai_cached.
39018
39019 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
39020
39021         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
39022
39023         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
39024         FD_CLOEXEC for /proc/self/maps.
39025
39026         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
39027         FD_CLOEXEC for /proc/meminfo.
39028
39029         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
39030         gai.conf.
39031
39032         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
39033         FD_CLOEXEC for given file.
39034
39035         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
39036
39037         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
39038         FD_CLOEXEC for /etc/hosts.
39039         (_gethtent): Likewise.
39040
39041         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
39042
39043         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
39044         cancellation and set FD_CLOEXEC for /etc/netgroup.
39045
39046         * nss/nss_files/files-key.c (search): Don't allow cancellation when
39047         reading /etc/publickey.
39048
39049         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
39050         allow cancellation when reading /etc/group.
39051
39052         * nss/nss_files/files-alias.c (internal_setent): Don't allow
39053         cancellation.
39054         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
39055
39056         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
39057         when using data file.
39058
39059         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
39060
39061         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
39062         (write_nis_obj): Use "c" and "e" in fopen.
39063
39064         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
39065
39066         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
39067
39068         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
39069
39070         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
39071
39072         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
39073         locale.alias.
39074
39075         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
39076
39077         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
39078
39079         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
39080
39081         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
39082         file parsing and set FD_CLOEXEC.
39083
39084 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
39085
39086         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
39087
39088 2011-11-14  Andreas Schwab  <schwab@redhat.com>
39089
39090         * malloc/arena.c (arena_get2): Don't call reused_arena when
39091         _int_new_arena failed.
39092
39093 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
39094
39095         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
39096         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
39097         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
39098         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
39099         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
39100         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
39101         to compile strcasecmp and strncasecmp.
39102         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
39103         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
39104
39105         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
39106
39107 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
39108
39109         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
39110         locale-defines.sym to gen-as-const-headers.
39111         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
39112         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
39113         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
39114         to compile strcasecmp and strncasecmp.
39115         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
39116         strcasecmp_l and strncasecmp_l.
39117         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
39118         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
39119         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
39120         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
39121         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
39122         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
39123         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
39124         * sysdeps/i386/i686/multiarch/strncase.S: New file.
39125         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
39126         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
39127         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
39128
39129 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
39130
39131         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
39132         result of SYSDEP_GETTIME_CPU to retval.
39133         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
39134         parameter list to macro.  Remove trailing semicolon.  Adjust users.
39135
39136         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
39137         variable.
39138
39139         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
39140         mantissa words.
39141         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
39142
39143         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
39144         from unused variable.
39145
39146         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
39147         DWARF definitions.
39148         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
39149         for assembling.
39150
39151         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
39152         over namespaces.
39153
39154         * sunrpc/rpc_prot.c (rejected): Fix case value.
39155
39156         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
39157         unsigned long long int to avoid warnings in shift.
39158
39159         * posix/regex_internal.c (re_string_reconstruct): Actually use result
39160         of use of trans.
39161         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
39162         variable tmp.
39163
39164         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
39165         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
39166         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
39167
39168         * nis/nis_table.c (nis_list): Use variable of correct type for
39169         result of __follow_path call.
39170
39171 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39172
39173         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
39174         of math functions ceil, trunc, floor, round, and sqrt, when
39175         avaliable on the platform.
39176         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
39177         name clash.
39178         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
39179         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
39180         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
39181
39182 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
39183
39184         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
39185         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
39186
39187 2011-11-11  Roland McGrath  <roland@hack.frob.com>
39188
39189         * include/unistd.h: Fix __readlink return type.
39190         Reported by Chris Metcalf <cmetcalf@tilera.com>.
39191
39192 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
39193
39194         * stdlib/ucontext.h: Undo last change for makecontext.
39195
39196 2011-11-11  Andreas Schwab  <schwab@redhat.com>
39197
39198         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
39199
39200         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
39201         * setjmp/setjmp.h: Mark functions as non-leaf.
39202         * setjmp/bits/setjmp2.h: Likewise.
39203         * stdlib/ucontext.h: Likewise.
39204
39205 2011-11-10  Andreas Schwab  <schwab@redhat.com>
39206
39207         * malloc/arena.c (_int_new_arena): Don't increment narenas.
39208         (reused_arena): Don't check arena limit.
39209         (arena_get2): Atomically check arena limit.
39210
39211 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
39212
39213         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
39214         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
39215
39216         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
39217         instructions.
39218
39219 2011-11-07  Andreas Schwab  <schwab@redhat.com>
39220
39221         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
39222         handler when locking.
39223
39224         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
39225         Fix size of allocated buffer.
39226
39227 2011-11-04  Andreas Schwab  <schwab@redhat.com>
39228
39229         [BZ #10103]
39230         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
39231         declarations for long double functions.
39232         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
39233
39234         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
39235
39236 2011-11-03  Andreas Schwab  <schwab@redhat.com>
39237
39238         * nscd/nscd.c (main): Don't start AVC thread until credentials are
39239         installed.
39240
39241         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
39242         is disabled.
39243
39244 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39245
39246         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
39247
39248 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
39249
39250         * include/alloca.h (stackinfo_alloca_round): Define.
39251         (extend_alloca): Use it.
39252         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
39253         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
39254         here.
39255
39256         * scripts/check-local-headers.sh: Ignore libaudit.h.
39257
39258         * nscd/Makefile (extra-objs): Make recursively expanded.
39259
39260 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
39261
39262         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
39263         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
39264
39265         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
39266         * posix/tst-rfc3484-2.c: Likewise.
39267         * posix/tst-rfc3484-3.c: Likewise.
39268
39269         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
39270         process_vm_writev.
39271         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
39272         process_vm_writev.
39273         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
39274         process_vm_writev from libc using GLIBC_2.15 version.
39275
39276         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
39277
39278 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
39279
39280         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
39281         stack usage.
39282
39283 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
39284
39285         [BZ #13367]
39286         * nss/getent.c (initgroups_keys): Show error message in case no group
39287         names are given.
39288
39289         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
39290         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
39291         __bump_nl_timestamp.
39292         * nscd/connections (nscd_init): When host database is served open
39293         netlink socket and request notification about configuration changes.
39294         (main_loop_poll): Track netlink file descriptor and bump timestamp
39295         in case data becomes available.
39296         (main_loop_epoll): Likewise.
39297         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
39298         (database_pers_head): Add extra_data fileds.
39299         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
39300         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
39301         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
39302         Adjust caller.
39303         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
39304         in6ai data, call __free_in6ai.
39305         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
39306         Add -DHAVE_NETLINK.
39307         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
39308         interface information.  Reuse previous data if netlink timestamp
39309         is not changed.
39310         (__bump_nl_timestamp): New function.
39311         (__free_in6ai): New function.
39312
39313 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
39314
39315         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
39316         close_not_cancel_no_status here.
39317         (__check_pf): Reorganize code a bit to not call close twice if OOM.
39318
39319 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
39320
39321         [BZ #13276]
39322         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
39323         return value.
39324
39325         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
39326         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
39327         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
39328
39329 2011-07-03  Andreas Jaeger  <aj@suse.de>
39330
39331         [BZ #10709]
39332         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
39333         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
39334         * math/libm-test.inc (sin_test): Add test case.
39335
39336 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
39337
39338         [BZ #13337]
39339         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
39340         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
39341
39342         * elf/chroot_canon.c (chroot_canon): Cleanups.
39343
39344         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
39345
39346         [BZ #13335]
39347         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
39348         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
39349
39350         * string/test-strchr.c: Make usable for strchrnul testing.
39351         * string/test-strchrnul.c: New file.
39352         * string/Makefile (strop-tests): Add strchrnul.
39353
39354         * po/it.po: Update from translation team.
39355         * po/es.po: Likewise.
39356
39357 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
39358
39359         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
39360         the three constants needed as parameters.  Drop the others.
39361         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
39362         __m128i_strloadu_tolower.
39363         Create and initialize variable zero and use it in all the places
39364         where _mm_setzero_si128 was used.
39365
39366         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
39367         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
39368         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
39369         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
39370         anymore.
39371         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
39372         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
39373         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
39374         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
39375         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
39376         __mpranred, __mptan.
39377         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
39378         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
39379         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
39380         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
39381         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
39382         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
39383         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
39384         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
39385         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
39386
39387 2011-10-28  Andreas Schwab  <schwab@redhat.com>
39388
39389         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
39390         redefine if SHARED.
39391         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
39392
39393         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
39394         wide char related routines to wcsmbs subdir.
39395
39396 2011-10-27  Andreas Schwab  <schwab@redhat.com>
39397
39398         [BZ #13344]
39399         * misc/sys/cdefs.h (__THROWNL): Define.
39400         * posix/unistd.h: Use __THREADNL instead of __THREAD
39401         for memory synchronization functions.
39402
39403 2011-10-26  Roland McGrath  <roland@hack.frob.com>
39404
39405         [BZ #13349]
39406         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
39407         doesn't exist.
39408         * manual/stdio.texi (Obstack Streams): Node removed.
39409
39410 2011-10-26  Andreas Schwab  <schwab@redhat.com>
39411
39412         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
39413         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
39414         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
39415
39416         * math/math_private.h (math_force_eval): Allow non-addressable
39417         arguments.
39418         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
39419
39420 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
39421
39422         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
39423         file is not needed.
39424
39425         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
39426         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
39427         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39428         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39429         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39430         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39431         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39432         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
39433         Add AVX variants.
39434         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
39435         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
39436         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
39437         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
39438         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
39439         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
39440         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
39441         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
39442         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
39443         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
39444         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
39445         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
39446         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
39447         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
39448         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
39449         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
39450         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
39451         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
39452         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
39453
39454         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
39455         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
39456
39457         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
39458         place.  Use VEX encoding when compiling for AVX.
39459
39460 2011-10-25  Andreas Schwab  <schwab@redhat.com>
39461
39462         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
39463         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
39464
39465         * string/test-strchr.c (do_test): Don't generate NUL bytes.
39466
39467 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
39468
39469         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
39470         useless if() expression.
39471         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
39472         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
39473         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
39474         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39475         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
39476         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
39477         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
39478         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
39479         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
39480         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39481         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
39482         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
39483         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
39484         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
39485         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
39486         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
39487         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
39488         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
39489         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
39490
39491         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
39492
39493 2011-10-25  Andreas Schwab  <schwab@redhat.com>
39494
39495         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
39496         condition.
39497         * elf/dl-fini.c (_dl_sort_fini): Likewise.
39498
39499 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
39500
39501         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
39502         .text section.  Avoid duplicate constants.
39503         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
39504         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39505         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
39506         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39507         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
39508         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39509         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39510         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39511         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
39512         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
39513         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
39514         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
39515         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
39516         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
39517         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
39518         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
39519         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
39520         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
39521         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
39522         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39523         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
39524         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
39525         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
39526         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
39527         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
39528         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
39529         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
39530         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
39531         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
39532         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
39533         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
39534         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
39535         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
39536         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
39537         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
39538         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
39539         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
39540         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
39541         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
39542         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
39543         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
39544         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
39545         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
39546         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
39547         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
39548
39549 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
39550
39551         * sysdeps/x86_64/dla.h: Move to ...
39552         * sysdeps/x86_64/fpu/dla.h: ...here.
39553         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
39554         situations.  Use __builtin_fma only for gcc 4.6 and up.
39555
39556         * config.make.in: Add have-mfma4 entry.
39557         * configure.in: Substitute libc_cv_cc_fma4.
39558         * math/Makefile (dbl-only-routines): Add sincostab.
39559         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
39560         Use __sincostab not sincos.
39561         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
39562         name is a macro.
39563         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
39564         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39565         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39566         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
39567         using __copysign.
39568         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
39569         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
39570         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
39571         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
39572         and __inv.
39573         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
39574         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
39575         __copysign.
39576         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
39577         define aliases when function name is a macro.
39578         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
39579         sysdeps/ieee754/dbl-64/sincos.tbl.
39580         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
39581         fma4-enabled routines.
39582         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
39583         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
39584         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
39585         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
39586         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
39587         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
39588         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
39589         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
39590         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
39591         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
39592         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
39593         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
39594         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
39595         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
39596         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
39597         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
39598         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
39599         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
39600         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
39601         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
39602         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
39603         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
39604         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
39605         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
39606         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
39607         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
39608         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
39609         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
39610         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
39611         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
39612
39613         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
39614         rename.
39615         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39616         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39617         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39618         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39619         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39620         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39621         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
39622         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39623
39624 2011-10-24  Andreas Schwab  <schwab@redhat.com>
39625
39626         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
39627
39628 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
39629
39630         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
39631
39632         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
39633         prediction.
39634         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
39635
39636         * string/strnlen.c: Don't define STRNLEN, reverse logic.
39637         Remove unused variable magic_bits.
39638         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
39639
39640         * string/strnlen.c: Define and use STRNLEN macro.
39641         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
39642         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
39643         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
39644         * wcsmbs/wcslen.c: Define and use WCSLEN.
39645         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
39646         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
39647         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
39648         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
39649         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
39650         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
39651         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
39652
39653 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39654
39655         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
39656         strnlen-sse2-no-bsf.
39657         Rename strlen-no-bsf to strlen-sse2-no-bsf.
39658         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
39659         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
39660         Add strnlen support.
39661         (USE_AS_STRNLEN): New macro.
39662         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
39663         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
39664         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
39665         * sysdeps/x86_64/wcslen.S: New file.
39666
39667 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
39668
39669         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
39670         XMM-moves are used for copying on small sizes.
39671
39672 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39673
39674         * wcsmbs/Makefile (strop-tests): Add wcschr.
39675         * wcsmbs/test-wcschr.c: New file.
39676         * string/test-strchr.c: Update.
39677         Add wcschr support.
39678         (WIDE): New macro.
39679
39680 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39681
39682         * wcsmbs/Makefile (strop-tests): Add wcslen.
39683         * wcsmbs/test-wcslen.c: New file.
39684         * string/test-strlen.c: Update.
39685         Add wcslen support.
39686         (WIDE): New macro.
39687
39688 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
39689
39690         * po/it.po: Update from translation team.
39691
39692 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39693
39694         * sysdeps/x86_64/wcscmp.S: Update.
39695         Fix wrong comparison semantics.
39696         wcscmp shall use signed comparison not unsigned.
39697         Don't use substraction to avoid overflow bug.
39698         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
39699         * wcsmbc/wcscmp.c: Likewise.
39700         * string/test-strcmp.c: Likewise.
39701         Add new tests to check cases with negative values.
39702
39703 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
39704
39705         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
39706         * sysdeps/x86_64/dla.h: ...here.  New file.
39707         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
39708         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39709         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39710         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39711         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39712         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
39713         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39714         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
39715         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39716
39717 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
39718
39719         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
39720         __ynl_finite aliases.
39721
39722 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
39723
39724         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39725
39726         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
39727         define DLA_FMA.
39728         [DLA_FMA] (EMULV): Use DLA_FMA.
39729         [DLA_FMA] (MUL12): Use EMULV.
39730         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
39731         that are not needed.
39732         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
39733         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
39734         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
39735         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
39736         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
39737         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
39738         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39739
39740 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
39741
39742         * math/s_nan.c: Undef __nan.
39743         * math/s_nanf.c: Undef __nanf.
39744         * math/s_nanl.c: Undef __nanl.
39745         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
39746         "math_private.h".
39747
39748 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
39749
39750         * math/s_catan.c: Add branch predictions.
39751         * math/s_catanf.c: Likewise.
39752         * math/s_catanh.c: Likewise.
39753         * math/s_catanhf.c: Likewise.
39754         * math/s_catanhl.c: Likewise.
39755         * math/s_catanl.c: Likewise.
39756         * math/s_cexp.c: Likewise.
39757         * math/s_cexpf.c: Likewise.
39758         * math/s_cexpl.c: Likewise.
39759         * math/s_clog.c: Likewise.
39760         * math/s_clog10.c: Likewise.
39761         * math/s_clog10f.c: Likewise.
39762         * math/s_clog10l.c: Likewise.
39763         * math/s_clogf.c: Likewise.
39764         * math/s_clogl.c: Likewise.
39765         * math/s_csqrt.c: Likewise.
39766         * math/s_csqrtf.c: Likewise.
39767         * math/s_csqrtl.c: Likewise.
39768         * math/s_ctanf.c: Likewise.
39769         * math/s_ctanh.c: Likewise.
39770         * math/s_ctanhf.c: Likewise.
39771         * math/s_ctanhl.c: Likewise.
39772         * math/s_ctanl.c: Likewise.
39773
39774         * math/math_private.h: Define __nan, __nanf, __nanl.
39775         * math/s_cacosh.c: Include <math_private.h>.
39776         * math/s_cacoshl.c: Likewise.
39777         * math/s_casinh.c: Likewise.
39778         * math/s_casinhf.c: Likewise.
39779         * math/s_casinhl.c: Likewise.
39780         * math/s_ccos.c: Rely entire on ccosh.
39781         * math/s_ccosf.c: Rely entire on ccoshf.
39782         * math/s_ccosl.c: Rely entirely on ccoshl.
39783         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
39784         Remove tests for FE_INVALID.
39785         * math/s_ccoshf.c: Likewise.
39786         * math/s_ccoshl.c: Likewise.
39787         * math/s_csin.c: Likewise.
39788         * math/s_csinf.c: Likewise.
39789         * math/s_csinh.c Likewise.
39790         * math/s_csinhf.c: Likewise.
39791         * math/s_csinhl.c: Likewise.
39792         * math/s_csinl.c: Likewise.
39793         * math/s_ctan.c: Likewise.
39794         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
39795         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
39796         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
39797
39798 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
39799
39800         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
39801         compilation problems.
39802
39803         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
39804         __builtin_expect.
39805
39806 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
39807
39808         * sysdeps/i386/configure.in: Test for -mfma4 option.
39809         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
39810         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
39811         COMMON_CPUID_INDEX_80000001.
39812         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
39813         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
39814         use it if FMA3 is not supported.
39815         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
39816
39817         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
39818         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
39819
39820 2011-10-20  Andreas Schwab  <schwab@redhat.com>
39821
39822         [BZ #12892]
39823         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
39824         it would create a cycle with a link time dependency.
39825
39826 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
39827
39828         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
39829         instruction.
39830         * string/Makefile (strop-tests): Add rawmemchr.
39831         * string/test-rawmemchr.c: New file.
39832
39833         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
39834         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
39835         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
39836         when compiling str{,n}casecmp and when AVX is available.  Hook up
39837         new optimized code in initializers.
39838
39839 2011-10-19  Andreas Schwab  <schwab@redhat.com>
39840
39841         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
39842         __feraiseexcept instead of feraiseexcept.
39843
39844 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
39845
39846         * math/math_private.h: Define defaults for libc_fetestexcept and
39847         libc_feupdateenv.
39848         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
39849         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
39850         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
39851         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
39852         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
39853         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
39854         libc_fetestexcept and libc_feupdateenv.
39855
39856         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
39857         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
39858         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
39859         * sysdeps/x86_64/fpu/math_private.h: Define special version of
39860         libc_feholdexcept_setround.
39861
39862         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
39863         Add s_nearbyint-c and s_nearbyintf-c.
39864         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
39865         nearbyintf inlines.
39866         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
39867         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
39868         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
39869         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
39870
39871         * math/math_private.h: Define defaults for libc_fegetround,
39872         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
39873         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
39874         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
39875         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
39876         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
39877         standard functions.
39878         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
39879         Remove comments and hacks for old compiler versions.
39880         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
39881         libc_fegetround, libc_fesetround, libc_feholdexcept, and
39882         libc_feholdexceptl.
39883
39884 2011-10-18  Andreas Schwab  <schwab@redhat.com>
39885
39886         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
39887         (__feraiseexcept_renamed): Add __NTH.
39888         (feraiseexcept): Add __NTH.  Rename local variables to fix
39889         namespace violations.
39890
39891 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
39892
39893         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
39894
39895         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
39896
39897         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
39898         recently added interfaces.
39899         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
39900
39901         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
39902         about macro parameter expansion.
39903
39904         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
39905         __NO_MATH_INLINES is defined.  Cleanups.
39906
39907         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
39908         and __floorf is target has SSE4.1.
39909         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
39910         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
39911         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
39912         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
39913
39914         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
39915         name.
39916         (floorf): Likewise.
39917
39918         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
39919
39920 2011-10-17  Andreas Schwab  <schwab@redhat.com>
39921
39922         * misc/sys/cdefs.h: Fix last change.
39923
39924         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
39925         database lookup.
39926
39927 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
39928
39929         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
39930
39931         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
39932         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39933         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
39934         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
39935         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
39936         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
39937         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
39938         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
39939         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
39940         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
39941         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
39942         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
39943         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
39944         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
39945         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
39946         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
39947         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
39948         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
39949         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
39950         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
39951         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
39952         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
39953
39954         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
39955         ceil, ceilf, floor, floorf.
39956
39957         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
39958         Perform IRELATIVE relocations last.
39959
39960         * elf/do-rel.h: Add another parameter nrelative, replacing the
39961         local variable with the same name.  Change name of the function
39962         to end in Rel or Rela (uppercase).
39963         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
39964         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
39965         elf_dynamic_do_##reloc function.
39966
39967 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
39968
39969         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
39970         is sufficient, at least on modern CPUs.
39971
39972         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
39973
39974         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
39975         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
39976
39977         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
39978         __expl_finite.
39979         * math/bits/math-finite.h: Add entries for exp.
39980         * math/e_expl.c: Add __*_finite alias.
39981         * sysdeps/i386/fpu/e_exp.S: Likewise.
39982         * sysdeps/i386/fpu/e_expf.S: Likewise.
39983         * sysdeps/i386/fpu/e_expl.c: Likewise.
39984         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
39985         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
39986         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
39987         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
39988         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
39989         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39990         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39991
39992         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
39993         is sufficient, at least on modern CPUs.
39994
39995         * ctype/ctype-info.c (__ctype_init): Define.
39996         * include/ctype.h (__ctype_init): Declare.
39997         (__ctype_b_loc): The variable is always initialized.
39998         (__ctype_toupper_loc): Likewise.
39999         (__ctype_tolower_loc): Likewise.
40000         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
40001         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
40002
40003 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
40004
40005         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
40006
40007         * configure.in: Also look in $cxxmachine/include for C++ system
40008         headers.
40009
40010 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40011
40012         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
40013         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
40014         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
40015         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
40016         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
40017         (USE_AS_WMEMCMP): New macro.
40018         Fixing indents.
40019         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
40020         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
40021         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
40022         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
40023         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
40024         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
40025         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
40026         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
40027         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
40028         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
40029         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
40030         (USE_AS_WMEMCMP): New macro.
40031         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
40032         * sysdeps/string/test-memcmp.c: Update.
40033         Fix simple_wmemcmp.
40034         Add new tests.
40035         * wcsmbs/wmemcmp.c: Update.
40036         (WMEMCMP): New macro.
40037         Fix overflow bug.
40038
40039 2011-10-12  Andreas Jaeger  <aj@suse.de>
40040
40041         [BZ #13268]
40042         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
40043
40044 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
40045
40046         * libio/iofwide.c (do_length): Avoid warning.
40047
40048         * ctype/ctype.h (__isctype_f): Add missing __THROW.
40049
40050 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
40051
40052         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
40053
40054         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
40055         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
40056         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
40057         * sysdeps/i386/i686/fpu/e_log.S: New file.
40058         * sysdeps/i386/i686/fpu/e_logf.S: New file.
40059         * sysdeps/i386/i686/fpu/e_logl.S: New file.
40060
40061         * ctype/ctype.h: Add support for inlined isXXX functions when
40062         compiling C++ code.
40063
40064 2011-10-14  Andreas Schwab  <schwab@redhat.com>
40065
40066         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40067
40068         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
40069
40070 2011-10-13  Roland McGrath  <roland@hack.frob.com>
40071
40072         [BZ #13291]
40073         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
40074
40075 2011-10-13  Andreas Schwab  <schwab@redhat.com>
40076
40077         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
40078         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
40079         feraiseexcept.
40080
40081         * sysdeps/x86_64/memrchr.S: Check for zero size.
40082
40083         * string/stratcliff.c: Add memrchr tests.
40084
40085 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40086
40087         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
40088         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
40089         rawmemchr-sse2 rawmemchr-sse2-bsf.
40090         * sysdeps/i386/i686/multiarch/memchr.S: New file.
40091         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
40092         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
40093         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
40094         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
40095         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
40096         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
40097         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
40098         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
40099         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
40100         * string/memrchr.c (MEMRCHR): New macro.
40101
40102 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
40103
40104         Add integration with gcc's -ffinite-math-only and optimize wrapper
40105         functions in libm.
40106         * Versions.def: Define GLIBC_2.15 version for libm.
40107         * math/Makefile (headers): Add bits/math-finite.h.
40108         * math/bits/math-finite.h: New file.
40109         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
40110         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
40111         * math/e_acoshl.c: Add __*_finite alias.
40112         * math/e_acosl.c: Likewise.
40113         * math/e_asinl.c: Likewise.
40114         * math/e_atan2l.c: Likewise.
40115         * math/e_atanhl.c: Likewise.
40116         * math/e_coshl.c: Likewise.
40117         * math/e_exp10.c: Likewise.
40118         * math/e_exp10f.c: Likewise.
40119         * math/e_exp10l.c: Likewise.
40120         * math/e_exp2l.c: Likewise.
40121         * math/e_fmodl.c: Likewise.
40122         * math/e_gammal_r.c: Likewise.
40123         * math/e_hypotl.c: Likewise.
40124         * math/e_j0l.c: Likewise.
40125         * math/e_j1l.c: Likewise.
40126         * math/e_jnl.c: Likewise.
40127         * math/e_lgammal_r.c: Likewise.
40128         * math/e_log10l.c: Likewise.
40129         * math/e_log2l.c: Likewise.
40130         * math/e_logl.c: Likewise.
40131         * math/e_powl.c: Likewise.
40132         * math/e_sinhl.c: Likewise.
40133         * math/e_sqrtl.c: Likewise.
40134         * math/e_scalb.c: Completely rewritten and optimized.
40135         * math/e_scalbf.c: Likewise.
40136         * math/e_scalbl.c: Likewise.
40137         * math/w_acos.c: Likewise.
40138         * math/w_acosf.c: Likewise.
40139         * math/w_acosl.c: Likewise.
40140         * math/w_acosh.c: Likewise.
40141         * math/w_acoshf.c: Likewise.
40142         * math/w_acoshl.c: Likewise.
40143         * math/w_asin.c: Likewise.
40144         * math/w_asinf.c: Likewise.
40145         * math/w_asinl.c: Likewise.
40146         * math/w_atan2.c: Likewise.
40147         * math/w_atan2f.c: Likewise.
40148         * math/w_atan2l.c: Likewise.
40149         * math/w_atanh.c: Likewise.
40150         * math/w_atanhf.c: Likewise.
40151         * math/w_atanhl.c: Likewise.
40152         * math/w_exp10.c: Likewise.
40153         * math/w_exp10f.c: Likewise.
40154         * math/w_exp10l.c: Likewise.
40155         * math/w_fmod.c: Likewise.
40156         * math/w_fmodf.c: Likewise.
40157         * math/w_fmodl.c: Likewise.
40158         * math/w_j0.c: Likewise.
40159         * math/w_j0f.c: Likewise.
40160         * math/w_j0l.c: Likewise.
40161         * math/w_j1.c: Likewise.
40162         * math/w_j1f.c: Likewise.
40163         * math/w_j1l.c: Likewise.
40164         * math/w_jn.c: Likewise.
40165         * math/w_jnf.c: Likewise.
40166         * math/w_log.c: Likewise.
40167         * math/w_logf.c: Likewise.
40168         * math/w_logl.c: Likewise.
40169         * math/w_log10.c: Likewise.
40170         * math/w_log10f.c: Likewise.
40171         * math/w_log10l.c: Likewise.
40172         * math/w_log2.c: Likewise.
40173         * math/w_log2f.c: Likewise.
40174         * math/w_log2l.c: Likewise.
40175         * math/w_pow.c: Likewise.
40176         * math/w_powf.c: Likewise.
40177         * math/w_powl.c: Likewise.
40178         * math/w_remainder.c: Likewise.
40179         * math/w_remainderf.c: Likewise.
40180         * math/w_remainderl.c: Likewise.
40181         * math/w_scalb.c: Likewise.
40182         * math/w_scalbf.c: Likewise.
40183         * math/w_scalbl.c: Likewise.
40184         * math/w_sqrt.c: Likewise.
40185         * math/w_sqrtf.c: Likewise.
40186         * math/w_sqrtl.c: Likewise.
40187         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
40188         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
40189         used.
40190         * math/math_private.h: Declare __kernel_standard_f.
40191         * math/w_cosh.c: Remove cruft and optimize a bit.
40192         * math/w_coshf.c: Likewise.
40193         * math/w_coshl.c: Likewise.
40194         * math/w_exp2.c: Likewise.
40195         * math/w_exp2f.c: Likewise.
40196         * math/w_exp2l.c: Likewise.
40197         * math/w_hypot.c: Likewise.
40198         * math/w_hypotf.c: Likewise.
40199         * math/w_hypotl.c: Likewise.
40200         * math/w_lgamma.c: Likewise.
40201         * math/w_lgamma_r.c: Likewise.
40202         * math/w_lgammaf.c: Likewise.
40203         * math/w_lgammaf_r.c: Likewise.
40204         * math/w_lgammal.c: Likewise.
40205         * math/w_lgammal_r.c: Likewise.
40206         * math/w_sinh.c: Likewise.
40207         * math/w_sinhf.c: Likewise.
40208         * math/w_sinhl.c: Likewise.
40209         * math/w_tgamma.c: Likewise.
40210         * math/w_tgammaf.c: Likewise.
40211         * math/w_tgammal.c: Likewise.
40212         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
40213         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
40214         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
40215         Minor optimizations.  Pretty printing.  Remove cruft.
40216         * sysdeps/i386/fpu/e_acosf.S: Likewise.
40217         * sysdeps/i386/fpu/e_acosh.S: Likewise.
40218         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
40219         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
40220         * sysdeps/i386/fpu/e_acosl.c: Likewise.
40221         * sysdeps/i386/fpu/e_asin.S: Likewise.
40222         * sysdeps/i386/fpu/e_asinf.S: Likewise.
40223         * sysdeps/i386/fpu/e_atan2.S: Likewise.
40224         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
40225         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
40226         * sysdeps/i386/fpu/e_atanh.S: Likewise.
40227         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
40228         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
40229         * sysdeps/i386/fpu/e_exp10.S: Likewise.
40230         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
40231         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
40232         * sysdeps/i386/fpu/e_exp2.S: Likewise.
40233         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
40234         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
40235         * sysdeps/i386/fpu/e_fmod.S: Likewise.
40236         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
40237         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
40238         * sysdeps/i386/fpu/e_hypot.S: Likewise.
40239         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
40240         * sysdeps/i386/fpu/e_log.S: Likewise.
40241         * sysdeps/i386/fpu/e_log10.S: Likewise.
40242         * sysdeps/i386/fpu/e_log10f.S: Likewise.
40243         * sysdeps/i386/fpu/e_log10l.S: Likewise.
40244         * sysdeps/i386/fpu/e_log2.S: Likewise.
40245         * sysdeps/i386/fpu/e_log2f.S: Likewise.
40246         * sysdeps/i386/fpu/e_log2l.S: Likewise.
40247         * sysdeps/i386/fpu/e_logf.S: Likewise.
40248         * sysdeps/i386/fpu/e_logl.S: Likewise.
40249         * sysdeps/i386/fpu/e_pow.S: Likewise.
40250         * sysdeps/i386/fpu/e_powf.S: Likewise.
40251         * sysdeps/i386/fpu/e_powl.S: Likewise.
40252         * sysdeps/i386/fpu/e_remainder.S: Likewise.
40253         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
40254         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
40255         * sysdeps/i386/fpu/e_scalb.S: Likewise.
40256         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
40257         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
40258         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
40259         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
40260         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
40261         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
40262         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
40263         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40264         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
40265         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
40266         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
40267         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
40268         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
40269         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
40270         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
40271         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
40272         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
40273         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40274         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
40275         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
40276         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40277         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
40278         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
40279         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
40280         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40281         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
40282         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
40283         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
40284         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
40285         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
40286         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
40287         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
40288         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
40289         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
40290         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
40291         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
40292         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
40293         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
40294         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
40295         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
40296         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
40297         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
40298         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
40299         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
40300         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
40301         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
40302         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
40303         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
40304         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
40305         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
40306         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
40307         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
40308         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
40309         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
40310         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
40311         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
40312         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
40313         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
40314         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
40315         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
40316         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
40317         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
40318         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
40319         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
40320         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
40321         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
40322         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
40323         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
40324         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
40325         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
40326         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
40327         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
40328         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
40329         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
40330         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
40331         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
40332         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
40333         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
40334         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
40335         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
40336         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
40337         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
40338         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
40339         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
40340         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
40341         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
40342         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
40343         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
40344         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
40345         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
40346         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
40347         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
40348         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
40349         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
40350         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
40351         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
40352         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
40353         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
40354         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
40355         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
40356         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
40357         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
40358         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
40359         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
40360         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
40361         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
40362         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
40363         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
40364         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
40365         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
40366         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
40367         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
40368         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
40369         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
40370         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
40371         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
40372         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
40373         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
40374         (__isnanf): Likewise.
40375         (__isinf_ns): Likewise.
40376         (__isinf_nsf): Likewise.
40377         (__finite): Likewise.
40378         (__finitef): Likewise.
40379         (__ieee754_sqrt): Define as macro.
40380         (__ieee754_sqrtf): Define as macro.
40381         (__ieee754_sqrtl): Define as macro.
40382         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
40383         inlined copy.
40384         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
40385         __FINITE_MATH_ONLY__ consistent.
40386         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
40387
40388 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
40389
40390         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
40391         of rawmemchr.
40392
40393         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
40394
40395 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
40396
40397         * po/ja.po: Update from translation team.
40398
40399 2011-10-08  Roland McGrath  <roland@hack.frob.com>
40400
40401         * locale/programs/locarchive.c (prepare_address_space): New function.
40402         (create_archive, enlarge_archive, open_archive): Use it.
40403
40404         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
40405         inside [SHARED], where it is used.
40406
40407         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
40408
40409         * nss/getent.c (netgroup_keys): Remove unused variable.
40410         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
40411
40412 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
40413
40414         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
40415         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
40416         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
40417         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
40418         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
40419         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
40420         * math/Makefile (libm-calls): Add s_isinf_ns.
40421         * math/divtc3.c: Use __isinf_nsl instead of isinf.
40422         * math/multc3.c: Likewise.
40423         * math/s_casin.c: Likewise.
40424         * math/s_casinf.c: Likewise.
40425         * math/s_casinl.c: Likewise.
40426         * math/s_ccos.c: Likewise.
40427         * math/s_ccosf.c: Likewise.
40428         * math/s_ccosl.c: Likewise.
40429         * math/s_ctan.c: Likewise.
40430         * math/s_ctanf.c: Likewise.
40431         * math/s_ctanh.c: Likewise.
40432         * math/s_ctanhf.c: Likewise.
40433         * math/s_ctanhl.c: Likewise.
40434         * math/s_ctanl.c: Likewise.
40435         * math/w_fmod.c: Likewise.
40436         * math/w_fmodf.c: Likewise.
40437         * math/w_fmodl.c: Likewise.
40438         * math/w_remainder.c: Likewise.
40439         * math/w_remainderf.c: Likewise.
40440         * math/w_remainderl.c: Likewise.
40441         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
40442         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
40443         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
40444         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
40445         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
40446         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
40447         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
40448         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
40449
40450         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
40451         of the number.
40452         * stdio-common/printf_fphex.c: Likewise.
40453         * stdio-common/printf_size.c: Likewise.
40454
40455         * math/e_exp10.c: Include math_private.h using <...> not "...".
40456         * math/e_exp10f.c: Likewise.
40457         * math/e_exp10l.c: Likewise.
40458         * math/e_exp2l.c: Likewise.
40459         * math/e_j0l.c: Likewise.
40460         * math/e_j1l.c: Likewise.
40461         * math/e_jnl.c: Likewise.
40462         * math/e_lgammal_r.c: Likewise.
40463         * math/e_rem_pio2l.c: Likewise.
40464         * math/e_scalb.c: Likewise.
40465         * math/e_scalbf.c: Likewise.
40466         * math/e_scalbl.c: Likewise.
40467         * math/k_cosl.c: Likewise.
40468         * math/k_sinl.c: Likewise.
40469         * math/k_tanl.c: Likewise.
40470         * math/s_cacoshf.c: Likewise.
40471         * math/s_catan.c: Likewise.
40472         * math/s_catanf.c: Likewise.
40473         * math/s_catanh.c: Likewise.
40474         * math/s_catanhf.c: Likewise.
40475         * math/s_catanhl.c: Likewise.
40476         * math/s_catanl.c: Likewise.
40477         * math/s_ccosh.c: Likewise.
40478         * math/s_ccoshf.c: Likewise.
40479         * math/s_ccoshl.c: Likewise.
40480         * math/s_cexp.c: Likewise.
40481         * math/s_cexpf.c: Likewise.
40482         * math/s_cexpl.c: Likewise.
40483         * math/s_clog.c: Likewise.
40484         * math/s_clog10.c: Likewise.
40485         * math/s_clog10f.c: Likewise.
40486         * math/s_clog10l.c: Likewise.
40487         * math/s_clogf.c: Likewise.
40488         * math/s_clogl.c: Likewise.
40489         * math/s_csin.c: Likewise.
40490         * math/s_csinf.c: Likewise.
40491         * math/s_csinh.c: Likewise.
40492         * math/s_csinhf.c: Likewise.
40493         * math/s_csinhl.c: Likewise.
40494         * math/s_csinl.c: Likewise.
40495         * math/s_csqrt.c: Likewise.
40496         * math/s_csqrtf.c: Likewise.
40497         * math/s_csqrtl.c: Likewise.
40498         * math/s_ctan.c: Likewise.
40499         * math/s_ctanf.c: Likewise.
40500         * math/s_ctanh.c: Likewise.
40501         * math/s_ctanhf.c: Likewise.
40502         * math/s_ctanhl.c: Likewise.
40503         * math/s_ctanl.c: Likewise.
40504         * math/s_ldexp.c: Likewise.
40505         * math/s_ldexpf.c: Likewise.
40506         * math/s_ldexpl.c: Likewise.
40507         * math/s_significand.c: Likewise.
40508         * math/s_significandf.c: Likewise.
40509         * math/s_significandl.c: Likewise.
40510         * math/w_acos.c: Likewise.
40511         * math/w_acosf.c: Likewise.
40512         * math/w_acosh.c: Likewise.
40513         * math/w_acoshf.c: Likewise.
40514         * math/w_acoshl.c: Likewise.
40515         * math/w_acosl.c: Likewise.
40516         * math/w_asin.c: Likewise.
40517         * math/w_asinf.c: Likewise.
40518         * math/w_asinl.c: Likewise.
40519         * math/w_atan2.c: Likewise.
40520         * math/w_atan2f.c: Likewise.
40521         * math/w_atan2l.c: Likewise.
40522         * math/w_atanh.c: Likewise.
40523         * math/w_atanhf.c: Likewise.
40524         * math/w_atanhl.c: Likewise.
40525         * math/w_cosh.c: Likewise.
40526         * math/w_coshf.c: Likewise.
40527         * math/w_coshl.c: Likewise.
40528         * math/w_dremf.c: Likewise.
40529         * math/w_exp10.c: Likewise.
40530         * math/w_exp10f.c: Likewise.
40531         * math/w_exp10l.c: Likewise.
40532         * math/w_exp2.c: Likewise.
40533         * math/w_exp2f.c: Likewise.
40534         * math/w_fmod.c: Likewise.
40535         * math/w_fmodf.c: Likewise.
40536         * math/w_fmodl.c: Likewise.
40537         * math/w_hypot.c: Likewise.
40538         * math/w_hypotf.c: Likewise.
40539         * math/w_hypotl.c: Likewise.
40540         * math/w_j0.c: Likewise.
40541         * math/w_j0f.c: Likewise.
40542         * math/w_j0l.c: Likewise.
40543         * math/w_j1.c: Likewise.
40544         * math/w_j1f.c: Likewise.
40545         * math/w_j1l.c: Likewise.
40546         * math/w_jn.c: Likewise.
40547         * math/w_jnf.c: Likewise.
40548         * math/w_jnl.c: Likewise.
40549         * math/w_lgamma.c: Likewise.
40550         * math/w_lgamma_r.c: Likewise.
40551         * math/w_lgammaf.c: Likewise.
40552         * math/w_lgammaf_r.c: Likewise.
40553         * math/w_lgammal.c: Likewise.
40554         * math/w_lgammal_r.c: Likewise.
40555         * math/w_log.c: Likewise.
40556         * math/w_log10.c: Likewise.
40557         * math/w_log10f.c: Likewise.
40558         * math/w_log10l.c: Likewise.
40559         * math/w_log2.c: Likewise.
40560         * math/w_log2f.c: Likewise.
40561         * math/w_log2l.c: Likewise.
40562         * math/w_logf.c: Likewise.
40563         * math/w_logl.c: Likewise.
40564         * math/w_pow.c: Likewise.
40565         * math/w_powf.c: Likewise.
40566         * math/w_powl.c: Likewise.
40567         * math/w_remainder.c: Likewise.
40568         * math/w_remainderf.c: Likewise.
40569         * math/w_remainderl.c: Likewise.
40570         * math/w_scalb.c: Likewise.
40571         * math/w_scalbf.c: Likewise.
40572         * math/w_scalbl.c: Likewise.
40573         * math/w_sinh.c: Likewise.
40574         * math/w_sinhf.c: Likewise.
40575         * math/w_sinhl.c: Likewise.
40576         * math/w_sqrt.c: Likewise.
40577         * math/w_sqrtf.c: Likewise.
40578         * math/w_sqrtl.c: Likewise.
40579         * math/w_tgamma.c: Likewise.
40580         * math/w_tgammaf.c: Likewise.
40581         * math/w_tgammal.c: Likewise.
40582
40583         * po/ja.po: Update from translation team.
40584
40585 2011-09-29  Andreas Jaeger  <aj@suse.de>
40586
40587         [BZ #13179]
40588         * sunrpc/netname.c (netname2host): Fix logic.
40589
40590         [BZ #6779]
40591         [BZ #6783]
40592         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
40593         correctly.
40594         * math/w_remainder.c (__remainder): Likewise.
40595         * math/w_remainderf.c (__remainderf): Likewise.
40596         * math/libm-test.inc (remainder_test): Add test cases.
40597
40598 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40599
40600         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
40601         sdiv_qrnnd.
40602
40603 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
40604
40605         * string/test-memcmp.c: Avoid unncessary #defines.
40606         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
40607
40608 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40609
40610         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
40611         Use new sse2 version for core i3 - i7 as it's faster
40612         than sse42 version.
40613         (bit_Prefer_PMINUB_for_stringop): New.
40614         * sysdeps/x86_64/rawmemchr.S: Update.
40615         Replace with faster SSE2 version.
40616         * sysdeps/x86_64/memrchr.S: New file.
40617         * sysdeps/x86_64/memchr.S: Update.
40618         Replace with faster SSE2 version.
40619
40620 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
40621
40622         * elf/dl-load.c (lose): Add cast to avoid warning.
40623
40624 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
40625
40626         * po/ca.po: Update from translation team.
40627
40628         * inet/getnetgrent_r.c: Hook up nscd.
40629         * nscd/Makefile (routines): Add nscd_netgroup.
40630         (nscd-modules): Add netgroupcache.
40631         (CFLAGS-netgroupcache.c): Define.
40632         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
40633         (cache_search): Add const to second parameter.
40634         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
40635         INNETGR.
40636         (dbs): Add netgrdb entry.
40637         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
40638         (verify_persistent_db): Handle netgrdb.
40639         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
40640         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
40641         GETFDNETGR.
40642         (netgroup_response_header): Define.
40643         (innetgroup_response_header): Define.
40644         (datahead): Add netgroup_response_header and innetgroup_response_header
40645         elements.
40646         * nscd/nscd.conf: Add entries for netgroup cache.
40647         * nscd/nscd.h (dbtype): Add netgrdb.
40648         (_PATH_NSCD_NETGROUP_DB): Define.
40649         (netgroup_iov_disabled): Declare.
40650         (xmalloc, xcalloc, xrealloc): Move declarations here.
40651         (cache_search): Adjust prototype.
40652         Add netgroup-related prototypes.
40653         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
40654         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
40655         (__nscd_innetgr): Declare.
40656         * nscd/selinux.c (perms): Use access_vector_t as element type and
40657         add netgroup-related initializers.
40658         * nscd/netgroupcache.c: New file.
40659         * nscd/nscd_netgroup.c: New file.
40660         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
40661         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
40662         For four parameters use innetgr.
40663         * nss/nss_files/files-init.c: Add definition and callback for netgr.
40664         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
40665         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
40666         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
40667
40668         * nscd/connections.c (register_traced_file): Don't register file
40669         for disabled databases.
40670
40671 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
40672
40673         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
40674
40675         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
40676         from tree and freeing node.
40677
40678 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
40679
40680         * nss/nsswitch.c (__nss_database_lookup): Handle
40681         nss_parse_service_list out of memory case.
40682
40683 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
40684
40685         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
40686         out of memory case.
40687
40688 2011-10-04  Andreas Schwab  <schwab@redhat.com>
40689
40690         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
40691         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
40692         pass it down.
40693         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
40694         elf_machine_rela, elf_machine_lazy_rel.
40695         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
40696         (ELF_DYNAMIC_DO_REL): Likewise.
40697         (ELF_DYNAMIC_DO_RELA): Likewise.
40698         (ELF_DYNAMIC_RELOCATE): Likewise.
40699         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
40700         to ELF_DYNAMIC_DO_REL.
40701         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
40702         (dl_main): In trace mode always set __RTLD_NOIFUNC.
40703         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
40704         elf_machine_rela.
40705         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
40706         skip_ifunc, don't call ifunc function if non-zero.
40707         (elf_machine_rela): Likewise.
40708         (elf_machine_lazy_rel): Likewise.
40709         (elf_machine_lazy_rela): Likewise.
40710         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
40711         (elf_machine_lazy_rel): Likewise.
40712         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
40713         Likewise.
40714         (elf_machine_lazy_rel): Likewise.
40715         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
40716         Likewise.
40717         (elf_machine_lazy_rel): Likewise.
40718         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
40719         (elf_machine_lazy_rel): Likewise.
40720         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
40721         (elf_machine_lazy_rel): Likewise.
40722         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
40723         (elf_machine_lazy_rel): Likewise.
40724         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
40725         (elf_machine_lazy_rel): Likewise.
40726         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
40727         (elf_machine_lazy_rel): Likewise.
40728         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
40729         (elf_machine_lazy_rel): Likewise.
40730
40731 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
40732
40733         * nss/nss_files/files-init.c (_nss_files_init): Use static
40734         initialization for all the *_traced_file variables.
40735
40736 2011-09-28  Andreas Schwab  <schwab@redhat.com>
40737
40738         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40739
40740 2011-09-27  Roland McGrath  <roland@hack.frob.com>
40741
40742         [BZ #13226]
40743         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
40744
40745 2011-09-27  Andreas Schwab  <schwab@redhat.com>
40746
40747         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
40748         Reread the line before reparsing it.
40749
40750 2011-09-26  Andreas Schwab  <schwab@redhat.com>
40751
40752         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
40753
40754 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
40755             Maxim Kuvyrkov  <maxim@codesourcery.com>
40756             Joseph Myers  <joseph@codesourcery.com>
40757
40758         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
40759         if needed for __stack_chk_guard.
40760
40761 2011-09-19  Roland McGrath  <roland@hack.frob.com>
40762
40763         * sysdeps/posix/spawni.c (script_execute): Always define it.
40764         It will be optimized away if unused.
40765         (maybe_script_execute): New function.
40766         (__spawni): Call it.
40767
40768         * Makerules: Don't include tls.make.
40769         (config-tls): Always set to thread.
40770         * tls.make.c: File removed.
40771
40772 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
40773
40774         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
40775         * config.make.in (CPPFLAGS-config): New substituted variable.
40776
40777 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
40778
40779         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
40780
40781         [BZ #13192]
40782         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
40783         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
40784
40785 2011-09-15  Roland McGrath  <roland@hack.frob.com>
40786
40787         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
40788         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
40789         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
40790         (CALL_FAIL): Likewise.
40791         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
40792         (CALL_FAIL): Macro removed.
40793         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
40794
40795 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
40796
40797         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
40798         for __FINITE_MATH_ONLY__ == 1.
40799
40800 2011-09-15  Andreas Schwab  <schwab@redhat.com>
40801
40802         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
40803         __ieee754_sqrt instead of sqrt.
40804         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
40805         __ieee754_sqrtf instead of sqrtf.
40806         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
40807         __floorf instead of floorf.
40808         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
40809         __floorf, __truncf instead of floorf, truncf.
40810
40811 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
40812
40813         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
40814
40815         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
40816         __extern_always_inline.
40817         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
40818         32-bit.
40819
40820 2011-09-14  Andreas Schwab  <schwab@redhat.com>
40821
40822         * elf/rtld.c (dl_main): Also relocate in dependency order when
40823         doing symbol dependency testing.
40824
40825 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
40826
40827         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
40828         Always define `refsym'.
40829
40830 2011-09-13  Andreas Schwab  <schwab@redhat.com>
40831
40832         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
40833         (__FD_ELT): Renamed from __FDELT.
40834         * misc/bits/select2.h (__FD_ELT): Likewise.
40835         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
40836         __FD_MASK instead of __FDELT, __FDMASK.
40837         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
40838         Likewise.
40839         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
40840         Likewise.
40841
40842         * elf/Makefile (gen-ldd): Fix pattern.
40843
40844         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
40845         (init_tls): Likewise.
40846
40847 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
40848
40849         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
40850
40851 2011-09-12  Andreas Schwab  <schwab@redhat.com>
40852
40853         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
40854         `struct cmsghdr *' instead of `void *'.
40855         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
40856         Likewise.
40857
40858 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
40859
40860         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
40861         if non-absolute.
40862         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
40863         ldd_rewrite_script.
40864
40865 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
40866
40867         * configure.in: Remove --with-tls option.
40868         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
40869         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
40870         out in case it is missing.
40871         * sysdeps/ia64/elf/configure.in: Likewise.
40872         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
40873         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
40874         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
40875         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
40876         * sysdeps/sh/elf/configure.in: Likewise.
40877         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
40878         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
40879         * sysdeps/x86_64/elf/configure.in: Likewise.
40880         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
40881         * sysdeps/mach/hurd/tls.h: Likewise.
40882
40883         [BZ #13067]
40884         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
40885
40886         [BZ #13090]
40887         * configure.in: Fix use of AC_INIT.
40888
40889         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
40890
40891 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
40892
40893         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
40894         __set_errno.
40895         * malloc/hooks.c: Likewise.
40896
40897         [BZ #11929]
40898         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
40899         variables statically.
40900         (narenas): Initialize.
40901         (list_lock): Initialize.
40902         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
40903         initializtion of main_arena and list_lock.  Small cleanups.
40904         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
40905         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
40906         Add initializers to main_arena and mp_.
40907         (malloc_state): Remove pagesize member.  Change all users to use
40908         GLRO(dl_pagesize).
40909
40910         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
40911         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
40912         is always initialized.
40913
40914         * malloc/malloc.c: Removed unused configurations and dead code.
40915         * malloc/arena.c: Likewise.
40916         * malloc/hooks.c: Likewise.
40917         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
40918
40919         * include/tls.h: Removed.  USE___THREAD must always be defined.
40920         * bits/libc-tsd.h: Don't handle !USE___THREAD.
40921         * elf/dl-libc.c: Likewise.
40922         * elf/dl-tsd.c: Likewise.
40923         * include/errno.h: Likewise.
40924         * include/netdb.h: Likewise.
40925         * include/resolv.h: Likewise.
40926         * inet/herrno-loc.c: Likewise.
40927         * inet/herrno.c: Likewise.
40928         * malloc/arena.c: Likewise.
40929         * malloc/hooks.c: Likewise.
40930         * malloc/malloc.c: Likewise.
40931         * resolv/res-state.c: Likewise.
40932         * resolv/res_libc.c: Likewise.
40933         * sysdeps/i386/dl-machine.h: Likewise.
40934         * sysdeps/ia64/dl-machine.h: Likewise.
40935         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
40936         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
40937         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
40938         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
40939         * sysdeps/sh/dl-machine.h: Likewise.
40940         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
40941         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
40942         * sysdeps/unix/i386/sysdep.S: Likewise.
40943         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
40944         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
40945         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
40946         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
40947         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
40948         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
40949         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
40950         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
40951         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
40952         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
40953         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40954         * sysdeps/x86_64/dl-machine.h: Likewise.
40955         * tls.make.c: Likewise.
40956
40957         * configure.in: Remove --with-__thread option.  Make tests for
40958         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
40959         tls_model attribute fail if no support is available.  Remove
40960         USE_IN_LIBIO.
40961         * Makeconfig: Adjust for dropped configure option.  All features are
40962         now mandatory.
40963         * Makerules: Likewise.
40964         * Versions.def: Likewise.
40965         * argp/argp-fmtstream.c: Likewise.
40966         * argp/argp-fmtstream.h: Likewise.
40967         * argp/argp-help.c: Likewise.
40968         * assert/assert.c: Likewise.
40969         * config.h.in: Likewise.
40970         * config.make.in: Likewise.
40971         * configure: Likewise.
40972         * configure.in: Likewise.
40973         * csu/Versions: Likewise.
40974         * csu/init.c: Likewise.
40975         * elf/tst-audit2.c: Likewise.
40976         * elf/tst-tls10.c: Likewise.
40977         * elf/tst-tls10.h: Likewise.
40978         * elf/tst-tls11.c: Likewise.
40979         * elf/tst-tls12.c: Likewise.
40980         * elf/tst-tls14.c: Likewise.
40981         * elf/tst-tlsmod11.c: Likewise.
40982         * elf/tst-tlsmod12.c: Likewise.
40983         * elf/tst-tlsmod13.c: Likewise.
40984         * elf/tst-tlsmod13a.c: Likewise.
40985         * elf/tst-tlsmod14a.c: Likewise.
40986         * elf/tst-tlsmod15b.c: Likewise.
40987         * elf/tst-tlsmod16a.c: Likewise.
40988         * elf/tst-tlsmod16b.c: Likewise.
40989         * elf/tst-tlsmod7.c: Likewise.
40990         * elf/tst-tlsmod8.c: Likewise.
40991         * elf/tst-tlsmod9.c: Likewise.
40992         * gmon/gmon.c: Likewise.
40993         * grp/fgetgrent_r.c: Likewise.
40994         * grp/putgrent.c: Likewise.
40995         * hurd/fopenport.c: Likewise.
40996         * include/libc-symbols.h: Likewise.
40997         * include/tls.h: Likewise.
40998         * intl/gettextP.h: Likewise.
40999         * intl/loadinfo.h: Likewise.
41000         * locale/global-locale.c: Likewise.
41001         * locale/localeinfo.h: Likewise.
41002         * mach/devstream.c: Likewise.
41003         * malloc/arena.c: Likewise.
41004         * malloc/set-freeres.c: Likewise.
41005         * misc/err.c: Likewise.
41006         * misc/getttyent.c: Likewise.
41007         * misc/mntent_r.c: Likewise.
41008         * posix/getopt.c: Likewise.
41009         * posix/wordexp.c: Likewise.
41010         * pwd/fgetpwent_r.c: Likewise.
41011         * resolv/Versions: Likewise.
41012         * resolv/res_hconf.c: Likewise.
41013         * shadow/fgetspent_r.c: Likewise.
41014         * shadow/putspent.c: Likewise.
41015         * stdio-common/printf_fphex.c: Likewise.
41016         * stdio-common/tmpfile.c: Likewise.
41017         * stdlib/abort.c: Likewise.
41018         * stdlib/fmtmsg.c: Likewise.
41019         * sunrpc/auth_unix.c: Likewise.
41020         * sunrpc/clnt_perr.c: Likewise.
41021         * sunrpc/clnt_tcp.c: Likewise.
41022         * sunrpc/clnt_udp.c: Likewise.
41023         * sunrpc/clnt_unix.c: Likewise.
41024         * sunrpc/openchild.c: Likewise.
41025         * sunrpc/svc_simple.c: Likewise.
41026         * sunrpc/svc_tcp.c: Likewise.
41027         * sunrpc/svc_udp.c: Likewise.
41028         * sunrpc/svc_unix.c: Likewise.
41029         * sunrpc/xdr.c: Likewise.
41030         * sunrpc/xdr_array.c: Likewise.
41031         * sunrpc/xdr_rec.c: Likewise.
41032         * sunrpc/xdr_ref.c: Likewise.
41033         * sunrpc/xdr_stdio.c: Likewise.
41034
41035 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
41036
41037         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41038
41039 2011-07-03  Andreas Jaeger  <aj@suse.de>
41040
41041         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
41042         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
41043         regenerate with gen-libm-tests.pl.
41044
41045 2010-05-12  Petr Baudis  <pasky@suse.cz>
41046
41047         [BZ #11589]
41048         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
41049         around j0() zero points by switching to j1().
41050         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
41051         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
41052         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
41053         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
41054
41055 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
41056
41057         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
41058         instead of 0.
41059         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
41060         instead of 0.
41061         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
41062         Patch in part by Pavel Roskin <proski@gnu.org>.
41063
41064         [BZ #13138]
41065         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
41066         realloc.
41067         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
41068         Free memory block if necessary.
41069
41070         [BZ #12847]
41071         * libio/genops.c (INTDEF): For string streams the _lock pointer can
41072         be NULL.  Don't lock in this case.
41073
41074 2011-09-09  Roland McGrath  <roland@hack.frob.com>
41075
41076         * elf/elf.h (ELFOSABI_GNU): New macro.
41077         (ELFOSABI_LINUX): Define to that.
41078
41079 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
41080
41081         * string/strncat.c (strncat): Undef the symbol in case it has been
41082         defined in bits/string.h.
41083
41084 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
41085
41086         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
41087
41088         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
41089         link map.
41090
41091 2011-08-17  Andreas Jaeger  <aj@suse.de>
41092
41093         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
41094
41095 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41096             Ian Lance Taylor  <iant@google.com>
41097
41098         * math/libm-test.inc (lround_test): New testcase.
41099         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
41100
41101 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
41102
41103         * Makefile: Remove support for automatic cvs check-ins.
41104         * Makerules: Likewise.
41105         * config.make.in: Likewise.
41106         * configure.in: Likewise.
41107         * intl/Makefile: Likewise.
41108         * locale/Makefile: Likewise.
41109         * po/Makefile: Likewise.
41110         * posix/Makefile: Likewise.
41111         * sysdeps/gnu/Makefile: Likewise.
41112         * sysdeps/mach/hurd/Makefile: Likewise.
41113         * sysdeps/sparc/sparc32/Makefile: Likewise.
41114
41115         [BZ #13118]
41116         * posix/Makefile (bug-regex32-ENV): Define.
41117         Patch by John Stanley <jpsinthemix@verizon.net>.
41118
41119         * misc/Makefile (headers): Add bits/select2.h.
41120         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
41121         * misc/bits/select2.h: New file.
41122         * include/bits/select2.h: New file.
41123         * debug/Makefile (routines): Add fdelt_chk.
41124         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
41125         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
41126         FD_ISSET.
41127         * debug/fdelt_chk.c: New file.
41128
41129         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
41130         * wcsmbs/test-wmemcmp.c: Likewise.
41131         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
41132         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
41133
41134 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41135
41136         * string/Makefile (strop-tests): Add memcmp.
41137         * string/test-wmemcmp.c: New file.
41138         * string/test-memcmp.c: Add wmemcmp support.
41139
41140 2011-09-08  Roland McGrath  <roland@hack.frob.com>
41141
41142         [BZ #13153]
41143         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
41144         2011-07-19 change.
41145
41146         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
41147         garbage value in a __mach_port_mod_refs call in the cases of the
41148         task-self and thread-self ports.
41149
41150 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41151
41152         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
41153
41154 2011-09-08  Andreas Schwab  <schwab@redhat.com>
41155
41156         * elf/dl-load.c (lose): Check for non-null L.
41157
41158 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
41159
41160         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
41161
41162         * elf/dl-libc.c (dlerror_run): Pass back error code from
41163         dl_catch_error.
41164
41165         [BZ #13123]
41166         * elf/dl-load.c (lose): Free l_origin if it is valid.
41167
41168         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
41169         names.
41170         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
41171         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
41172         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
41173         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
41174         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
41175         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
41176
41177 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41178
41179         * sysdeps/powerpc/fpu/e_hypot.c: New file.
41180         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
41181         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
41182         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
41183         * sysdeps/powerpc/fpu/k_cosf.c: New file.
41184         * sysdeps/powerpc/fpu/k_sinf.c: New file.
41185         * sysdeps/powerpc/fpu/s_cosf.c: New file.
41186         * sysdeps/powerpc/fpu/s_sinf.c: New file.
41187         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
41188         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
41189
41190 2011-08-15  Alan Modra  <amodra@gmail.com>
41191
41192         [BZ #13092]
41193         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
41194         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
41195         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
41196         ppc_mcount to static-only-routines.
41197         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
41198         __mcount_internal.
41199         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
41200         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
41201
41202 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
41203
41204         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
41205         for finite and infinity parameters.
41206
41207 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
41208
41209         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
41210         and add nop instructions for throughput optimization.
41211         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
41212
41213 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
41214
41215         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
41216         aligned copy for power7 with vector-scalar instructions.
41217         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
41218
41219 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
41220
41221         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
41222         AVX check.
41223
41224 2011-09-07  Andreas Schwab  <schwab@redhat.com>
41225
41226         [BZ #13144]
41227         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
41228         last change.
41229
41230 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
41231
41232         * sysdeps/unix/sysv/linux/x86_64/init-first.c
41233         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
41234         syscall wrapper around clock_gettime in __vdso_clock_gettime.
41235         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
41236         clock_gettime.
41237
41238 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
41239
41240         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
41241         Forgot to demangle the pointer.
41242
41243         * sysdeps/i386/sysdep.h: Define atom_text_section.
41244         * sysdeps/x86_64/sysdep.h: Likewise.
41245         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
41246         section with atom_text_section.
41247         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
41248         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
41249         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
41250         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
41251         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
41252
41253         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
41254         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
41255         already be defined.  Change to take two parameters and don't assign
41256         result to variable.  Adjust all users.
41257         Define INTERNAL_GETTIME if not already defined.
41258         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
41259         call.
41260         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
41261         HAVE_CLOCK_GETTIME_VSYSCALL.
41262         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
41263
41264         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
41265         gettimeofday vsyscall, just use time.
41266
41267 2011-09-06  Andreas Schwab  <schwab@redhat.com>
41268
41269         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
41270         <errno.h>.
41271
41272 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
41273
41274         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
41275         syscall on x86-64.
41276         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
41277         syscall.
41278         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
41279         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
41280         syscall if possible.
41281
41282 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
41283
41284         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
41285         e_ident.  Don't pass to find_mapsXX.
41286         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
41287
41288 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41289
41290         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41291         strchr-sse2-no-bsf strrchr-sse2-no-bsf
41292         * sysdeps/x86_64/multiarch/strchr.S: Update.
41293         Check bit_slow_BSF bit.
41294         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
41295         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
41296         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
41297
41298 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
41299
41300         [BZ #13134]
41301         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
41302         before glibc 2.15.
41303         (tryshell): Define.
41304         (__spawni): Change last parameter to be flag.  Test
41305         SPAWN_XFLAGS_USE_PATH flag to use path or not.
41306         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
41307         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
41308         * posix/spawni.c: Likewise.
41309         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
41310         * posix/spawnp.c: Likewise.  Change normal version to use
41311         SPAWN_XFLAGS_USE_PATH.
41312         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
41313         SPAWN_XFLAGS_TRY_SHELL.
41314
41315         [BZ #13150]
41316         * posix/glob.h: Remove gcc 1.x support.
41317
41318         [BZ #13068]
41319         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
41320
41321 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41322
41323         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41324         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
41325         strrchr-sse2-bsf
41326         * sysdeps/i386/i686/multiarch/strchr.S: New file.
41327         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
41328         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
41329         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
41330         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
41331         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
41332
41333 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41334
41335         * sysdeps/x86_64/wcscmp.S: New file.
41336
41337         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
41338         wcscmp-c wcscmp-sse2
41339         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
41340         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
41341         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
41342         * wcsmbs/wcscmp.c: Allow renaming.
41343
41344 2011-09-05  David S. Miller  <davem@davemloft.net>
41345
41346         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
41347         stack slot, rather than the struct return pointer slot.
41348         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
41349         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
41350         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
41351         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
41352
41353 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
41354
41355         * po/ja.po: Update from translation team.
41356
41357         [BZ #13144]
41358         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
41359         kernel in 64-bit binaries.
41360
41361 2011-09-01  David S. Miller  <davem@davemloft.net>
41362
41363         * elf/elf.h (HWCAP_SPARC_*): Move to..
41364         * sysdeps/sparc/sysdep.h: this new file and add new values.
41365         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
41366         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
41367         _DL_HWCAP_COUNT to 24.
41368         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
41369         entries.
41370         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
41371         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
41372         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
41373         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
41374         instead of magic constants.
41375         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
41376
41377 2011-08-31  David S. Miller  <davem@davemloft.net>
41378
41379         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
41380         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
41381         Reimplement to do errno handling inline.
41382         (SYSCALL_ERROR_HANDLER): New macro.
41383         (__SYSCALL_STRING): Do not do errno handling in asm.
41384         (__CLONE_SYSCALL_STRING): Delete.
41385         (__INTERNAL_SYSCALL_STRING): Delete.
41386         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
41387         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
41388         (PSEUDO): Reimplement to do errno handling inline.
41389         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
41390         (SYSCALL_ERROR_HANDLER): New macro.
41391         (__SYSCALL_STRING): Do not do errno handling in asm.
41392         (__CLONE_SYSCALL_STRING): Delete.
41393         (__INTERNAL_SYSCALL_STRING): Delete.
41394         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
41395         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
41396         i386.
41397         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
41398         (inline_syscall*): Add 'err' argument.
41399         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
41400         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
41401         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
41402         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
41403
41404         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
41405         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
41406
41407 2011-08-30  Andreas Schwab  <schwab@redhat.com>
41408
41409         * elf/rtld.c (dl_main): Relocate objects in dependency order.
41410
41411 2011-08-29  Jiri Olsa <jolsa@redhat.com>
41412
41413         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
41414         directive.
41415
41416 2011-08-24  David S. Miller  <davem@davemloft.net>
41417
41418         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
41419
41420 2011-08-24  Andreas Schwab  <schwab@redhat.com>
41421
41422         * elf/Makefile: Add rules to build and run unload8 test.
41423         * elf/unload8.c: New file.
41424         * elf/unload8mod1.c: New file.
41425         * elf/unload8mod1x.c: New file.
41426         * elf/unload8mod2.c: New file.
41427         * elf/unload8mod3.c: New file.
41428
41429         * elf/dl-close.c (_dl_close_worker): Reset private search list if
41430         it wasn't used.
41431
41432 2011-08-23  David S. Miller  <davem@davemloft.net>
41433
41434         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
41435         subtract stack bias.
41436         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
41437         %sp not %fp in calculations.
41438         (_JMPBUF_UNWINDS_ADJ): Likewise.
41439
41440         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
41441         (aio_suspend): Call it to force an exception region around the
41442         AIO_MISC_WAIT() invocation.
41443
41444 2011-08-23  Andreas Schwab  <schwab@redhat.com>
41445
41446         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
41447         backslash.
41448
41449 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
41450
41451         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
41452         protection macro.
41453         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
41454         and <dl-machine.h>.
41455         (Elf64_FuncDesc): Remove.
41456
41457 2011-08-22  David S. Miller  <davem@davemloft.net>
41458
41459         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
41460         sigaltstack check, add missing cfi directives.
41461         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
41462         missing cfi directives, and sigaltstack handling.
41463
41464 2011-08-16  Andreas Schwab  <schwab@redhat.com>
41465
41466         [BZ #11724]
41467         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
41468         object is seen twice.
41469         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41470
41471         * elf/Makefile (distribute): Add tst-initorder2.c.
41472         (tests): Add tst-initorder2.
41473         (modules-names): Add tst-initorder2a tst-initorder2b
41474         tst-initorder2c tst-initorder2d.  Add rules to build them.
41475         ($(objpfx)tst-initorder2.out): New rule.
41476         * elf/tst-initorder2.c: New file.
41477         * elf/tst-initorder2.exp: New file.
41478
41479 2011-08-22  Andreas Schwab  <schwab@redhat.com>
41480
41481         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
41482
41483         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
41484         dependencies back to end of function.
41485
41486         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
41487         $(elfobjdir)/ld.so.
41488
41489 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
41490
41491         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
41492         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
41493         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
41494         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
41495         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
41496         of __vdso_gettimeofday.
41497         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
41498         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
41499         attribute_hidden.
41500         (_libc_vdso_platform_setup): Remove initialization of
41501         __vdso_gettimeofday and __vdso_time.
41502
41503 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
41504
41505         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
41506         and fgetc_unlocked.
41507         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
41508         getc_unlocked.
41509
41510         * elf/dl-open.c (add_to_global): Report additions to the global scope
41511         for LD_DEBUG=scopes.
41512         (dl_open_worker): Also print scope of newly loaded dependencies.
41513         (_dl_show_scope): Indicate if there is no scope.
41514
41515         [BZ #13114]
41516         * stdio-common/Makefile (tests): Add bug24.
41517         * stdio-common/bug24.c: New file.
41518
41519 2011-08-19  Andreas Jaeger  <aj@suse.de>
41520
41521         [BZ #13114]
41522         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
41523         non-existant file when using close-on-exec mode.
41524
41525 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
41526
41527         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
41528         the very first instruction.
41529
41530         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
41531         the CFI state in the end.
41532         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
41533         inclusion of dl-trampoline.h.
41534         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
41535
41536 2011-08-19  Andreas Schwab  <schwab@redhat.com>
41537
41538         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
41539         expectations for long double.
41540
41541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
41542         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
41543
41544 2011-08-14  David S. Miller  <davem@davemloft.net>
41545
41546         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
41547         artificual limit depends upon the system page size.
41548
41549 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
41550
41551         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
41552         * resolv/Makefile: Define CFLAGS-libresolv.
41553
41554 2011-08-17  Andreas Schwab  <schwab@redhat.com>
41555
41556         * nss/makedb.c (compute_tables): Make variables used in nested
41557         function static.
41558
41559 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
41560
41561         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
41562         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
41563         if buffer was too small.
41564
41565         * elf/pldd.c (main): Attach to all threads in the process.
41566         Rewrite /proc handling to use *at functions.
41567
41568 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
41569
41570         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
41571         specifies first scope to show.
41572         (dl_open_worker): Update callers.  Move printing scope of new
41573         object to before the relocation.
41574         * elf/rtld.c (dl_main): Update _dl_show_scope call.
41575         * sysdeps/generic/ldsodefs.h: Update declaration.
41576
41577         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
41578         string for the scope number.
41579
41580 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
41581
41582         * nscd/servicescache.c (cache_addserv): Make sure written is always
41583         initialized.
41584
41585 2011-08-14  Roland McGrath  <roland@hack.frob.com>
41586
41587         * sysdeps/i386/i486/bits/atomic.h
41588         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
41589         statement expression, so as to suppress "set but not used" warning.
41590         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
41591
41592         * string/strncat.c (STRNCAT): Use prototype definition.
41593
41594         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
41595         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
41596         -Iprograms here.
41597         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
41598         (localedef-modules): Add localedef.
41599         (locale-modules): Add locale.
41600
41601         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
41602         * elf/rtld.c (dl_main): Invert order of assignment in last change,
41603         to avoid a warning.
41604
41605 2011-08-14  David S. Miller  <davem@davemloft.net>
41606
41607         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
41608         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
41609
41610 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
41611
41612         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
41613         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
41614         * elf/rtld.c (dl_main): Set l_name of vDSO.
41615         Call _dl_show_scope when DL_DEBUG_SCOPES.
41616         (process_dl_debug): Recognize scopes flag and also set it for all.
41617         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
41618         Declare _dl_show_scope.
41619
41620         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
41621         (do_dlopen): Pass caller_dlopen to dl_open.
41622         (__libc_dlopen_mode): Initialize caller_dlopen.
41623
41624         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
41625         of libc.  Make tolower call locale-independent.  Optimize a bit by
41626         using isdigit instead of isalnum.
41627         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
41628
41629 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
41630
41631         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
41632         was a dependency or dynamically loaded.
41633
41634 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
41635
41636         * intl/l10nflist.c: Allow architecture-specific pop function.
41637         * sysdeps/x86_64/l10nflist.c: New file.
41638
41639         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
41640         classification.
41641
41642 2011-08-10  Andreas Schwab  <schwab@redhat.com>
41643
41644         * include/dirent.h: Add libc_hidden_proto for scandirat and
41645         scandirat64.  Don't declare __scandirat64.
41646         * dirent/scandirat.c: Add libc_hidden_def.
41647         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
41648         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
41649
41650 2011-08-10  David S. Miller  <davem@davemloft.net>
41651
41652         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
41653         enum.
41654         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
41655         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
41656         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
41657
41658 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
41659
41660         * Versions.def [libc]: Add GLIBC_2.15.
41661         * dirent/Makefile (routines): Add scandirat and scandirat64.
41662         * dirent/Versions [libc]: Export scandirat and scandirat64 for
41663         GLIBC_2.15.
41664         * dirent/dirent.h: Declare scandirat and scandirat64.
41665         * dirent/scandirat.c: New file.
41666         * dirent/scandirat64.c: New file.
41667         * sysdeps/wordsize-64/scandirat.c: New file.
41668         * sysdeps/wordsize-64/scandirat64.c: New file.
41669         * dirent/opendir.c: Define opendirat.
41670         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
41671         using scandirat.
41672         * dirent/scandir64.c: Adjust for scandir.c change.
41673         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
41674         __scandirat64, and __scandir_cancel_handler.
41675         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
41676         additional parameter and use openat instead of open (outside of ld.so).
41677         Add new __opendir as wrapper around __opendirat.
41678         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
41679         here without requiring old scandirat implementation.
41680
41681 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
41682
41683         * dirent/scandir.c (cancel_handler): Renamed to
41684         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
41685         defined.  Adjust users.
41686         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
41687         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
41688
41689 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
41690
41691         * string/test-string.h (IMPL): Use __STRING to expand name and then
41692         stringify it.
41693
41694         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
41695         of cleanups.
41696
41697 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41698
41699         * string/Makefile: Update.
41700         (strop-tests): Append strncat.
41701         * string/test-wcscmp.c: New file.
41702         New comprehensive test for wcscmp.
41703         * string/test-strcmp.c: Update.
41704         (WIDE): New define.
41705
41706 2011-07-22  Andreas Schwab  <schwab@redhat.com>
41707
41708         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
41709         line.
41710
41711 2011-07-26  Andreas Schwab  <schwab@redhat.com>
41712
41713         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
41714         encoding to ACE if AI_IDN.
41715
41716 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
41717
41718         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
41719         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
41720
41721 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41722
41723         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
41724         Fix overflow bug in strncat.
41725         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
41726
41727         * string/test-strncat.c: Update.
41728         Add new tests for checking overflow bugs.
41729
41730 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41731
41732         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41733         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
41734         * sysdeps/i386/i686/multiarch/strcat.S: New file.
41735         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
41736         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
41737         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
41738         * sysdeps/i386/i686/multiarch/strncat.S: New file.
41739         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
41740         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
41741
41742         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
41743         (USE_AS_STRCAT): Define.
41744         Add strcat and strncat support.
41745         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
41746
41747 2011-07-25  Andreas Schwab  <schwab@redhat.com>
41748
41749         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
41750         __n bigger than INT_MAX+1.
41751         (__strncmp_g): Likewise.
41752
41753 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
41754
41755         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
41756         * libio/stido.h: Likewise.
41757
41758         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
41759         (AF_NFC): Define.
41760         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
41761         (AF_NFC): Define.
41762
41763         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
41764         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
41765         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
41766         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
41767         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
41768
41769         [BZ #13021]
41770         * scripts/test-installation.pl: Don't expect libnss_test1 to be
41771         installed.
41772
41773         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
41774         typo.
41775         (_dl_x86_64_save_sse): Likewise.
41776
41777 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
41778
41779         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
41780         OSXSAVE.
41781         (_dl_x86_64_save_sse): Likewise.
41782
41783         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
41784
41785         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
41786
41787 2011-07-21  Andreas Schwab  <schwab@redhat.com>
41788
41789         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
41790         change.
41791         (_dl_x86_64_save_sse): Use correct AVX check.
41792
41793 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41794
41795         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
41796         bug in strncpy/strncat.
41797         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
41798
41799 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
41800
41801         * string/tester.c (test_strcat): Add tests for different alignments
41802         of source and destination.
41803         (test_strncat): Likewise.
41804
41805 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
41806
41807         [BZ #12852]
41808         * posix/glob.c (glob): Check passed in values before using them in
41809         expressions to avoid some overflows.
41810         (glob_in_dir): Likewise.
41811
41812         [BZ #13007]
41813         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
41814         check for AVX enablement so that we don't crash with old kernels and
41815         new hardware.
41816         * elf/tst-audit4.c: Add same checks here.
41817         * elf/tst-audit6.c: Likewise.
41818
41819         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
41820
41821 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
41822
41823         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
41824
41825 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
41826
41827         * po/cs.po: Update from translation team.
41828         * po/bg.po: Likewise.
41829
41830 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
41831
41832         * misc/sys/cdefs.h: Add support for const attribute.
41833         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
41834         to gnu_dev_{major,minor,makedev} functions.
41835
41836 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
41837
41838         * intl/dcigettext.c (get_output_charset): Add missing bracket.
41839
41840 2011-07-20  Andreas Schwab  <schwab@redhat.com>
41841
41842         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
41843         strlen results.
41844
41845 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41846
41847         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
41848         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
41849         register in order to avoid conflicts with the soft frame pointer
41850         being held in r11 when necessary.
41851         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
41852         (INTERNAL_VSYSCALL_NCS): Likewise.
41853
41854 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
41855
41856         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
41857         * elf/dl-fini.c (_dl_fini): Adjust caller.
41858         * elf/dl-close.c (_dl_close_worker): Likewise.
41859         * sysdeps/generic/ldsodefs.h: Adjust declaration.
41860
41861 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
41862
41863         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
41864         "aux_cache->nlibs < 0".
41865
41866         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
41867         in the reload-count case.
41868
41869 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
41870
41871         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41872         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
41873         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
41874         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
41875         * sysdeps/x86_64/multiarch/strcat.S: New file.
41876         * sysdeps/x86_64/multiarch/strncat.S: New file.
41877         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
41878         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
41879         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
41880         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
41881         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
41882         (USE_AS_STRCAT): Define.
41883         Add strcat and strncat support.
41884         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
41885         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
41886         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
41887         * string/strncat.c: Update.
41888         (USE_AS_STRNCAT): Define.
41889         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
41890         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
41891         and i7.
41892         * sysdeps/x86_64/multiarch/init-arch.h
41893         (bit_Prefer_PMINUB_for_stringop): New.
41894         (index_Prefer_PMINUB_for_stringop): Likewise.
41895         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
41896         bit_Prefer_PMINUB_for_stringop.
41897
41898 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
41899
41900         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
41901         buffer64.
41902         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
41903         of casting of buffer.
41904         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
41905         buffer32 and buffer64.
41906         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
41907         writes instead of casting of buffer.
41908         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
41909         buffer32.
41910         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
41911         casting of buffer.
41912
41913 2011-07-19  Andreas Schwab  <schwab@redhat.com>
41914
41915         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
41916
41917 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
41918
41919         * nscd/nscd.c (termination_handler): Don't do anything for a database
41920         if it has not yet been initialized.
41921
41922 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
41923
41924         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
41925
41926 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
41927
41928         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
41929
41930 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
41931
41932         * po/nl.po: Update from translation team.
41933         * po/sv.po: Likewise.
41934
41935 2011-07-16  Roland McGrath  <roland@hack.frob.com>
41936
41937         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
41938         now disallowed by GCC.
41939
41940         * configure.in (use-default-link): Default to yes if a test -shared
41941         link meets our qualifications.
41942         * configure: Regenerated.
41943
41944         * config.make.in (output-format): New variable.
41945         * configure.in: Check for ld --print-output-format support.
41946         * configure: Regenerated.
41947         * Makerules ($(common-objpfx)format.lds)
41948         [$(output-format) != unknown]: Just use $(output-format),
41949         instead of the linker-script munging.
41950
41951 2011-07-14  Roland McGrath  <roland@hack.frob.com>
41952
41953         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
41954         of $(common-objpfx)shlib.lds.
41955         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
41956
41957         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
41958         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
41959
41960         * configure.in (-z relro check): Adjust test code to add a large
41961         writable data section after it.
41962         * configure: Regenerated.
41963
41964 2011-07-11  Roland McGrath  <roland@hack.frob.com>
41965
41966         * configure.in (-z relro check): Fix test code to make the variable
41967         truly const.
41968         * configure: Regenerated.
41969
41970 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
41971
41972         * nscd/nscd.h (struct traced_file): Define.
41973         (struct database_dyn): Remove inotify_descr, reset_res, and filename
41974         elements.  Add traced_files.
41975         (inotify_fd): Declare.
41976         (register_traced_file): Declare.
41977         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
41978         (inotify_fd): Export.
41979         (resolv_conf_descr): Remove.
41980         (nscd_init): Move inotify descriptor creation to main.
41981         Don't register files for notification here.
41982         (register_traced_file): New function.
41983         (invalidate_cache): Don't use reset_res to determine whether to call
41984         res_init, go through the list of registered files.
41985         (main_loop_poll): The inotify descriptors are now stored in the
41986         structures for the traced files.
41987         (main_loop_epoll): Likewise
41988         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
41989         to __nss_disable_nscd.
41990         * nscd/cache.c (prune_cache): There is no single inotify descriptor
41991         for a database anymore.  Check the records for all the registered
41992         files instead.
41993         * nss/Makefile (libnss_files-routines): Add files-init.
41994         (libnss_db-routines): Add db-init.
41995         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
41996         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
41997         * nss/nss_db/db-init.c: New file.
41998         * nss/nss_files/files-init.c: New file.
41999         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
42000         __nss_lookup_function.
42001         (__nss_lookup_function): Call nss_load_library.
42002         (nss_load_all_libraries): New function.
42003         (__nss_disable_nscd): Take parameter with callback function for files
42004         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
42005         used for the cached services.
42006         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
42007         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
42008         options for features to all the files in nscd.
42009
42010         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
42011
42012 2011-07-10  Roland McGrath  <roland@hack.frob.com>
42013
42014         * csu/elf-init.c (__libc_csu_init): Comment typo.
42015
42016 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
42017
42018         * po/pl.po: Update from translation team.
42019         * po/ja.po: Likewise.
42020         * po/ru.po: Likewise.
42021         * po/ko.po: Likewise.
42022         * po/fr.po: Likewise.
42023
42024 2011-07-09  Roland McGrath  <roland@hack.frob.com>
42025
42026         * configure.in (.ctors/.dtors header and trailer check):
42027         Use an empirical test on a built program.
42028         * configure: Regenerated.
42029
42030         * configure.in (-z relro check): Use an empirical test on a built DSO.
42031         Detect, but do not require, on ia64.
42032         * configure: Regenerated.
42033
42034         * configure.in (READELF): Find it with AC_CHECK_TOOL.
42035         Update tests that use readelf to use $READELF instead.
42036         * configure: Regenerated.
42037
42038 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
42039
42040         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
42041         if the result is not used.
42042
42043 2011-07-05  Andreas Jaeger  <aj@suse.de>
42044
42045         [BZ#9696]
42046         * stdlib/tst-strtod.c: Add testcase.
42047
42048 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
42049
42050         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
42051         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
42052         The latter has a higher limit.  Take additional parameter to pass to
42053         the new function.
42054         (__pathconf): Pass file to __statfs_link_max.
42055         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
42056         __statfs_link_max.
42057         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
42058         __statfs_link_max.
42059
42060         [BZ #12868]
42061         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
42062         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
42063         Handle Lustre.
42064         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
42065         (__statfs_filesize_max): Likewise.
42066         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
42067
42068 2011-07-05  Andreas Jaeger  <aj@suse.de>
42069
42070         * resolv/res_comp.c (dn_skipname): Remove unused variable.
42071
42072 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
42073
42074         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
42075         `status' variable.
42076         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
42077         Likewise.
42078
42079 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
42080
42081         * Makefile (strop-tests): Add strncat.
42082         * string/test-strncat.c: New file.
42083
42084 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
42085
42086         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
42087
42088 2011-06-21  Andreas Jaeger  <aj@suse.de>
42089
42090         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
42091         Copy rule from iconvdata/Makefile.
42092
42093 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
42094
42095         [BZ #12922]
42096         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
42097         but no long options are defined, just return 'W'.
42098
42099 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
42100
42101         [BZ #9696]
42102         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
42103
42104 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
42105
42106         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
42107         netgroups to read.
42108         (innetgr): Likewise.
42109
42110 2011-07-05  Roland McGrath  <roland@hack.frob.com>
42111
42112         * config.make.in (install_root): Default to $(DESTDIR).
42113
42114 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
42115
42116         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
42117
42118 2011-07-02  Roland McGrath  <roland@hack.frob.com>
42119
42120         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
42121
42122         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
42123         containing directory rather than embedding absolute directory names.
42124
42125         * scripts/check-local-headers.sh: Rewritten using awk.
42126         Match by word, not by line.  Print error messages for matches.
42127         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
42128
42129         * Makerules [shlib-lds-flags empty]:
42130         ($(common-objpfx)libc_pic.opts): New target.
42131         ($(common-objpfx)libc_pic.os.clean): New target.
42132         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
42133
42134         * config.make.in (OBJCOPY): New variable.
42135         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
42136         * configure: Regenerated.
42137
42138         * config.make.in (use-default-link): New variable.
42139         * configure.in (use_default_link): Grok --with-default-link to set it.
42140         * configure: Regenerated.
42141         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
42142         (shlib-lds, shlib-lds-flags): Define to empty.
42143
42144         * Makerules (shlib-lds): New variable.
42145         (shlib-lds-flags): New variable.
42146         (build-shlib, build-moduile, build-module-asneeded): Use it.
42147         ($(common-objpfx)libc.so): Use $(shlib-lds).
42148         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
42149         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
42150
42151         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
42152         DT_FLAGS/DT_FLAGS_1 with zero flags.
42153
42154         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
42155         linker script munging.
42156
42157 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
42158
42159         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
42160         as 128-bit value.
42161         * crypt/sha512.c (sha512_process_block): Perform total addition using
42162         128-bit if possible.
42163         (__sha512_finish_ctx): Likewise.
42164         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
42165         as 64-bit value.
42166         * crypt/sha256.c (SWAP64): Define.
42167         (sha256_process_block): Perform total addition using 64-bit if
42168         possible.
42169         (__sha256_finish_ctx): Likewise.
42170
42171 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
42172
42173         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
42174         * nscd/initgrcache.c (addinitgroupsX): Likewise.
42175         * nscd/hstcache.c (cache_addhst): Likewise.
42176         * nscd/grpcache.c (cache_addgr): Likewise.
42177         * nscd/aicache.c (addhstaiX): Likewise
42178         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
42179
42180 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
42181
42182         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
42183         * nscd/initgrcache.c (addinitgroupsX): Likewise.
42184         * nscd/hstcache.c (cache_addhst): Likewise.
42185         * nscd/grpcache.c (cache_addgr): Likewise.
42186         * nscd/aicache.c (addhstaiX): Likewise
42187
42188 2011-07-01  Andreas Schwab  <schwab@redhat.com>
42189
42190         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
42191         domain only when needed.
42192
42193 2011-06-30  Andreas Schwab  <schwab@redhat.com>
42194
42195         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
42196         is always restored.
42197
42198 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
42199
42200         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
42201         are re-adding the entry.
42202         * nscd/servicescache.c (cache_addserv): Likewise.
42203
42204 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
42205
42206         * sysdeps/generic/dl-irel.h: fix protection against multiple
42207         inclusions.
42208         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
42209
42210 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
42211
42212         [BZ #12935]
42213         * malloc/memusage.sh: Fix quoting in message.
42214         * debug/xtrace.sh: Likewise.
42215
42216         * configure.in: Remove support for --experimental-malloc option, make
42217         it the default.
42218         * config.make.in: Likewise.
42219         * malloc/Makefile: Likewise.
42220
42221 2011-06-27  Andreas Schwab  <schwab@redhat.com>
42222
42223         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
42224         two-byte characters.
42225
42226 2011-06-27  Roland McGrath  <roland@hack.frob.com>
42227
42228         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
42229         AC_CACHE_CHECK invocation.
42230         * configure: Regenerated.
42231
42232         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
42233
42234 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
42235
42236         [BZ #12350]
42237         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
42238         bit from old_res_options.
42239
42240         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
42241
42242         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
42243         value type for setfct.
42244
42245 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
42246
42247         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
42248         __gettimeofday instead of gettimeofday.
42249
42250 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
42251
42252         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
42253
42254 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
42255
42256         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
42257
42258         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
42259         info.
42260
42261 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
42262
42263         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42264         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
42265         strcpy-sse2-unaligned strncpy-sse2-unaligned
42266         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
42267         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
42268         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
42269         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
42270         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
42271         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
42272         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
42273         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
42274         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
42275         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
42276         (STRCPY): Support SSE2 and SSSE3 versions.
42277
42278 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
42279
42280         [BZ #12874]
42281         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
42282         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
42283         kernels which artificially limit size of requests.
42284
42285 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
42286
42287         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42288         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
42289         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
42290         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
42291         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
42292         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
42293         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
42294         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
42295         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
42296         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
42297         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
42298         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
42299         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
42300         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
42301         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
42302         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
42303         Enable unaligned load optimization for Intel Core i3, i5 and i7
42304         processors.
42305         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
42306         Define.
42307         (index_Fast_Unaligned_Load): Define.
42308         (HAS_FAST_UNALIGNED_LOAD): Define.
42309
42310 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
42311
42312         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
42313
42314 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
42315
42316         [BZ #12907]
42317         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
42318         until it is clear that the information is realy needed.
42319         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
42320
42321 2011-06-22  Andreas Schwab  <schwab@redhat.com>
42322
42323         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
42324
42325 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
42326
42327         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
42328         /sys/devices/system/cpu/online if it is usable.
42329
42330         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
42331         reading the information from the /proc filesystem to once a second.
42332
42333 2011-06-21  Andreas Jaeger  <aj@suse.de>
42334
42335         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
42336         NULL after inclusion of kernel headers.
42337
42338 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
42339
42340         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
42341         calls to internal_setent.
42342
42343         [BZ #12885]
42344         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
42345         addresses using gethostbyname4_r ignore IPv4 addresses.
42346
42347         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
42348         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
42349
42350         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
42351
42352 2011-06-20  David S. Miller  <davem@davemloft.net>
42353
42354         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
42355         inclusions.
42356         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
42357
42358         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
42359         (elf_irel): Use it.
42360         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
42361         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
42362         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
42363         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
42364         * sysdeps/x86_64/dl-irel.h: Likewise.
42365
42366         * elf/dl-runtime.c: Use elf_ifunc_invoke.
42367         * elf/dl-sym.c: Likewise.
42368
42369 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
42370
42371         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
42372         need to dereference resplen2.
42373
42374 2011-06-14  Andreas Schwab  <schwab@redhat.com>
42375
42376         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
42377
42378 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
42379
42380         * Makeconfig: Define vardbdir and inst_vardbdir.
42381         * nss/Makefile: Add rules to install db-Makefile.
42382
42383         * nss/nss_db/db-XXX.c: Cleanup.
42384
42385         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
42386         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
42387         GLIBC_PRIVATE.
42388         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
42389         * nss/makedb.c: Implement -g option to specify that value strings
42390         are generated and should not be added to table iterated over for
42391         get*ent calls.
42392         * nss/nss_db/db-initgroups.c: New file.
42393
42394         * nss/getent.c: Add support for initgroups lookups through getgrouplist
42395         interface.
42396
42397         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
42398         (internal_getgrouplist): Adjust to name change.
42399         Update use_initgroups_entry if this is not the first call.
42400         * nss/databases.def: Add initgroups entry.
42401
42402         * nss/makedb.c (compute_tables): Check result of multiple hash table
42403         sizes to minimize maximum chain length.
42404
42405 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
42406
42407         * Versions.def: Add entry for libnss_db.
42408         * shlib-versions: Likewise.
42409         * nss/Makefile: Add rules to build libnss_db.
42410         * nss/Versions: Add libnss_db information.  Organize libnss_files
42411         entries better.
42412         * nss/db-Makefile: Add gshadow support.  Change rules for the new
42413         makedb progra.  Some minor improvements to generate smaller files.
42414         * nss/nss_db/nss_db.h: Move NSS database header data structures to
42415         here from...
42416         * nss/makedb.c: ...here.
42417         Improve database format to be smaller and require less memory at
42418         runtime.
42419         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
42420         db anymore.
42421         * nss/nss_db/db-netgrp.c: Likewise.
42422         * nss/nss_db/db-open.c: Likewise.
42423         * nss/nss_files/flies-XXX.x: Adjust comments.
42424         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
42425         * nss/nss_files/files-grp.c: Likewise.
42426         * nss/nss_files/files-hosts.c: Likewise.
42427         * nss/nss_files/files-network.c: Likewise.
42428         * nss/nss_files/files-proto.c: Likewise.
42429         * nss/nss_files/files-pwd.c: Likewise.
42430         * nss/nss_files/files-rpc.c: Likewise.
42431         * nss/nss_files/files-service.c: Likewise.
42432         * nss/nss_files/files-sgrp.c: Likewise.
42433         * nss/nss_files/files-spwd.c: Likewise.
42434         * nss/nss_db/db-alias.c: Removed.
42435         * nss/nss_db/dummy-db.h: Removed.
42436
42437 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
42438
42439         * nss/makedb.c: Rewritten to not use database library.
42440         * nss/Makefile: Update to build new makedb program.
42441
42442 2011-06-14  Andreas Jaeger  <aj@suse.de>
42443
42444         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
42445         memset declaration.
42446
42447 2011-06-10  Andreas Schwab  <schwab@redhat.com>
42448
42449         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
42450         tmpbuf.
42451
42452 2011-06-10  Roland McGrath  <roland@hack.frob.com>
42453
42454         * Makerules (shlib.lds): Fail if the linker script comes out empty.
42455         * elf/Makefile ($(objpfx)ld.so): Likewise.
42456
42457         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
42458         Don't list ld.so twice in dependencies.
42459
42460         * posix/bug-regex31.c: Include <stdlib.h>.
42461
42462         * nscd/hstcache.c (cache_addhst): Remove unused variable.
42463
42464         * nis/nss_compat/compat-spwd.c
42465         (getspent_next_nss_netgr): Remove unused variable.
42466         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
42467
42468         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
42469         nonmembers" output to use the right array.
42470
42471         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
42472
42473         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
42474
42475         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
42476         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
42477         * catgets/gencat.c (read_input_file): Likewise.
42478         * locale/programs/locarchive.c (enlarge_archive): Likewise.
42479
42480         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
42481         variable definition inside #if's controlling its use.
42482
42483         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
42484
42485         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
42486
42487         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
42488
42489         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
42490         unreachable code.
42491
42492         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
42493
42494         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
42495         * configure: Regenerated.
42496
42497         * Makerules: Revert last change.
42498         * elf/Makefile: Likewise.
42499
42500 2011-06-09  Roland McGrath  <roland@hack.frob.com>
42501
42502         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
42503         * elf/Makefile ($(objpfx)librtld.os): Likewise.
42504         (reloc-link): Likewise.
42505
42506 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
42507
42508         * elf/Makefile: Add rules to build pldd.
42509         * elf/pldd.c: New file.
42510         * elf/pldd-xx.c: New file.
42511
42512 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
42513
42514         * version.h: Update for 2.15 development version.
42515
42516 2011-06-07  David S. Miller  <davem@davemloft.net>
42517
42518         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
42519         ifuncs.
42520         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
42521         elf_machine_lazy_rel): Likewise.
42522         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
42523         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
42524         elf_machine_lazy_rel): Likewise.
42525         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
42526         dl_hwcap via passed in argument.
42527         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
42528         Likewise.
42529
42530 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42531
42532         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
42533
42534 2011-06-06  Roland McGrath  <roland@hack.frob.com>
42535
42536         [BZ #12849]
42537         * manual/fdl-1.1.texi: New file, verbatim from:
42538         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
42539         * manual/lgpl-2.1.texi: New file, verbatim from:
42540         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
42541         * manual/Makefile (licenses): New variable, list those new file names.
42542         (texis): Use it.
42543         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
42544
42545         * manual/fdl.texi: File removed.
42546         * manual/lesser.texi: File removed.
42547         * manual/libc.texinfo (Copying, Documentation License):
42548         Use new @include file names, put @appendix directive before @include.
42549
42550 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
42551
42552         [BZ #12841]
42553         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
42554         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
42555         (mq_open): Add __NTH.
42556
42557 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
42558
42559         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
42560         Assume Intel Core i3/i5/i7 processor if AVX is available.
42561
42562 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
42563
42564         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
42565         typo.
42566
42567 2011-05-31  Andreas Schwab  <schwab@redhat.com>
42568
42569         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
42570         memory.  Use alloca_account.  Fix memory leak when retrying.
42571
42572 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
42573
42574         * version.h (RELEASE): Bump for 2.14 release.
42575         * include/features.h (__GLIBC_MINOR__): Bump to 14.
42576
42577         * config.make.in (RANLIB): Remove entry.
42578
42579 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
42580
42581         * po/Makefile (po-sed-cmd): Add ksh to extensions.
42582         (libc.pot): Work around missing support for .ksh extension in xgettext.
42583
42584         [BZ #12684]
42585         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
42586         if both request failed.
42587         (send_dg): In case of server errors clear resplen or *resplen2.
42588
42589         [BZ #12454]
42590         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
42591         when there are multiple maps.
42592         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
42593         (_dl_fini): Remove test here.
42594
42595         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
42596
42597 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
42598
42599         [BZ #12350]
42600         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
42601         bit from old_res_options.
42602         (gaih_inet): Likewise.
42603
42604         [BZ #11099]
42605         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
42606         as signed.
42607
42608         * resolv/res_init.c (res_setoptions): Make the code more compact.
42609
42610         [BZ #11558]
42611         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
42612         set RES_USEVC.
42613
42614         [BZ #11634]
42615         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
42616
42617         * malloc/malloc.h: Mark malloc hook variables as deprecated.
42618
42619         [BZ #11781]
42620         * malloc/malloc.h: Declare malloc hook variables as volatile.
42621
42622         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
42623         in last patch.
42624
42625         [BZ #11799]
42626         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
42627         raise in the comment.
42628         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
42629         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
42630         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
42631
42632 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
42633
42634         [BZ #12811]
42635         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
42636         grow the buffers more if it already has to be sufficient.
42637         (build_wcs_upper_buffer): Likewise.
42638         * posix/regexec.c (check_matching): Likewise.
42639         (clean_state_log_if_needed): Likewise.
42640         (extend_buffers): Don't enlarge buffers beyond size of the input
42641         buffer.
42642         Patches mostly by Emil Wojak <emil@wojak.eu>.
42643         * posix/bug-regex32.c: New file.
42644         * posix/Makefile (tests): Add bug-regex32.
42645
42646         * locale/findlocale.c (_nl_find_locale): Return right away if
42647         _nl_explode_name failed.
42648         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
42649
42650         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
42651
42652         * debug/xtrace.sh: Unify messages.
42653         * malloc/memusage.sh: Likewise.
42654
42655         [BZ #12813]
42656         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
42657         time symbol from vDSO.  Substitute with vsyscall if not available.
42658         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
42659         __vdso_time.
42660
42661         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
42662         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
42663         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
42664         Add sendmmsg and internal_sendmmsg.
42665         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
42666         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
42667         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
42668
42669         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
42670         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
42671         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
42672
42673 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
42674
42675         [BZ #12813]
42676         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
42677         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
42678         available.
42679         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
42680         __vdso_getcpu.
42681
42682         [BZ #12814]
42683         * iconvdata/Makefile (tests): Add bug-iconv9.
42684         * iconvdata/bug-iconv9.c: New file.
42685
42686 2011-05-27  Andreas Schwab  <schwab@redhat.com>
42687
42688         [BZ #12814]
42689         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
42690
42691 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
42692
42693         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
42694         (struct user_regs_struct): Change intcs field back to cs.
42695
42696 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
42697
42698         * po/ja.po: Update from translation team.
42699
42700 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
42701
42702         [BZ #12795]
42703         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
42704         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
42705
42706 2011-05-20  Andreas Schwab  <schwab@redhat.com>
42707
42708         * stdlib/longlong.h: Update from GCC.
42709
42710 2011-05-23  Andreas Schwab  <schwab@redhat.com>
42711
42712         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
42713         parameter name.
42714         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
42715         Add parameter name.
42716         (__sysconf): Pass it down.
42717
42718 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
42719
42720         [BZ #12671]
42721         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
42722         some situations.
42723         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
42724         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
42725         add in in __libc_use_alloca calls.  Adjust callers.
42726         (glob): Use malloc in some situations.
42727
42728         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
42729         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
42730         pltexit.
42731
42732 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
42733
42734         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
42735         and CLOCK_BOOTTIME_ALARM.
42736
42737         [BZ #12782]
42738         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
42739         is returned.
42740
42741         * string/_strerror.c (__strerror_r): Print negative errors as signed
42742         numbers.
42743
42744         [BZ #12777]
42745         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
42746         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
42747         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
42748
42749         * configure.in: Fix typo in redirection and correct removal of test
42750         files in two cases.
42751
42752         [BZ #12788]
42753         * locale/setlocale.c (new_composite_name): Fix test to check for
42754         identical name of all categories.
42755
42756         [BZ #12792]
42757         * libio/filedoalloc.c (local_isatty): New function.
42758         (_IO_file_doallocate): Use local_isatty.
42759         * stdio-common/perror.c (perror): In case a new stream is used
42760         forward the stream error.
42761         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
42762         error flag.
42763
42764 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
42765
42766         [BZ #11869]
42767         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
42768         alloca.
42769         * include/alloca.h (extend_alloca_account): Define.
42770
42771         [BZ #11857]
42772         * posix/regex.h: Fix comments with documentation of user-accessible
42773         fields after compilation and describe correct free'ing of pattern
42774         after re_compile_pattern.
42775         Patch by Reuben Thomas <rrt@sc3d.org>.
42776
42777 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
42778
42779         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
42780         and -mno-altivec to prevent the compiler from using Altivec and/or
42781         VSX instructions when the corresponding registers are not available.
42782
42783 2011-05-19  Andreas Schwab  <schwab@redhat.com>
42784
42785         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
42786
42787 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
42788
42789         * libio/freopen.c (freopen): Use __dup2, not dup2.
42790         * libio/freopen64.c (freopen64): Likewise.
42791
42792 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
42793
42794         [BZ #12775]
42795         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
42796         * math/Makefile (tests): Add test-powl.
42797         (CFLAGS-test-powl.c): Define.
42798         * math/test-powl.c: New file.
42799
42800 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
42801
42802         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
42803
42804 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
42805
42806         [BZ #11837]
42807         * iconvdata/gb18030.c: Update to GB18020-2005.
42808
42809 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
42810
42811         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
42812         RE_SYNTAX_POSIX_AWK): Update to match recent development.
42813         Patch by Aharon Robbins <arnold@skeeve.com>.
42814
42815         [BZ #11892]
42816         * stdlib/putenv.c (putenv): Don't always create copy of the variable
42817         on the stack.
42818
42819         [BZ #11895]
42820         * misc/pselect.c (__pselect): Handle timeout value errors hidden
42821         through underflows.
42822
42823         [BZ #12766]
42824         * misc/error.c (error_at_line): Ensure file_name and old_file_name
42825         point to strings before performing equality test for error_one_per_line
42826         mode.
42827
42828         [BZ #11697]
42829         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
42830
42831         [BZ #11820]
42832         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
42833         (struct user_fpregs_struct): Avoid __uint*_t types.
42834
42835         [BZ #6420]
42836         * malloc/mtrace.c (tr_where): Add additional parameter to point to
42837         symbol info.  Use it instead of calling _dl_addr locally.
42838         (lock_and_info): New function.
42839         (tr_freehook): Call lock_and_info and pass symbol info as additional
42840         parameter to tr_where.
42841         (tr_mallochook): Likewise.
42842         (tr_reallochook): Likewise.
42843         (tr_memalignhook): Likewise.
42844
42845         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
42846         used and couldn't be at all thread-safe.
42847
42848 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
42849
42850         * libio/freopen.c (freopen): Don't close old file descriptor
42851         before the new one is opened.  Instead dup the new file descriptor
42852         to the old one after the new stream is created.
42853         * libio/freopen64.c (freopen64): Likewise.
42854         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
42855         * libio/fileops.c (_IO_new_file_close_it): Handle new
42856         _IO_FLAGS2_NOCLOSE flag.
42857         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
42858         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
42859         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
42860         _IO_FLAGS2_NOCLOSE flag.
42861         * include/unistd.h: Add hidden_proto for dup3.
42862         Define __have_dup3.
42863         * io/dup3.c: Define hidden symbol.
42864         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
42865
42866         [BZ #7101]
42867         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
42868         when an incomplete long option is used.
42869         * posix/tst-getopt_long1.c: New file.
42870         * posix/Makefile (tests): Add tst-getopt_long1.
42871
42872         [BZ #10138]
42873         * scripts/config.guess: Update from autoconf-2.68.
42874         * scripts/config.sub: Likewise.
42875
42876         [BZ #10157]
42877         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
42878         tests into ...
42879         (has_cpuclock): ...this.  New function.
42880         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
42881         macro here based on has_cpuclock code.
42882
42883         [BZ #10149]
42884         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
42885         First byte (not low byte) is now always NUL.
42886         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
42887
42888         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
42889         Use non-cancelable interfaces.
42890
42891         [BZ #9809]
42892         * locale/iso-639.def: Add entry for Sorani.
42893
42894         [BZ #11901]
42895         * include/stdlib.h: Move include protection to the right place.
42896         Define abort_msg_s.  Declare __abort_msg with it.
42897         * stdlib/abort.c (__abort_msg): Adjust type.
42898         * assert/assert.c (__assert_fail_base): New function.  Majority
42899         of code from __assert_fail.  Allocate memory for __abort_msg with
42900         mmap.
42901         (__assert_fail): Now call __assert_fail_base.
42902         * assert/assert-perr.c: Remove bulk of implementation.  Use
42903         __assert_fail_base.
42904         * include/assert.hL Declare __assert_fail_base.
42905         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
42906         mmap.
42907         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
42908
42909 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
42910
42911         [BZ #11952]
42912         [BZ #12453]
42913         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
42914         until all modules are registered in the DTV.
42915         * elf/Makefile: Add rules to build and run tst-tls19.
42916         * elf/tst-tls19.c: New file.
42917         * elf/tst-tls19mod1.c: New file.
42918         * elf/tst-tls19mod2.c: New file.
42919         * elf/tst-tls19mod3.c: New file.
42920         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
42921
42922         [BZ #12083]
42923         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
42924         correctly.
42925
42926         [BZ #12601]
42927         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
42928         two-byte sequence errors.
42929         * iconvdata/Makefile (tests): Add bug-iconv8.
42930         * iconvdata/bug-iconv8.c: New file.
42931
42932         [BZ #12626]
42933         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
42934         buf2 definition.
42935
42936         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
42937
42938         [BZ #12432]
42939         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
42940         (dummy_getcfa): New function.
42941         (init): Get _Unwind_GetCFA address, use dummy if not found.
42942         (backtrace_helper): In recursion check, also check whether CFA changes.
42943         (__backtrace): Completely initialize arg.
42944
42945         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
42946         storing incomplete byte sequence in state object.  Avoid testing for
42947         guaranteed too small input if we know there is enough data available.
42948
42949 2011-05-11  Andreas Schwab  <schwab@redhat.com>
42950
42951         * Makeconfig (+link-pie): Indent.
42952         * Rules (binaries-pie): Define if $(have-fpie) and
42953         $(build-shared).
42954         (binaries-shared): Also filter out $(binaries-pie).
42955         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
42956         * nscd/Makefile (others-pie): Add nscd.
42957         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
42958         ($(objpfx)nscd): Remove command override.
42959         * login/Makefile (others-pie): Add pt_chown.
42960         ($(objpfx)pt_chown): Remove command override.
42961         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
42962         remove command overrides.
42963
42964 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
42965
42966         * libio/tst_putwc.c: Fix error messages.
42967
42968         [BZ #12724]
42969         * libio/fileops.c (_IO_new_file_close_it): Always flush when
42970         currently writing and seek to current position when not.
42971         * libio/Makefile (tests): Add bug-fclose1.
42972         * libio/bug-fclose1.c: New file.
42973
42974 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
42975
42976         [BZ #12511]
42977         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
42978         don't set DF_1_NODELETE here.
42979         (do_lookup_x): When entering new entry test for copy relocation
42980         and if necessary set DF_1_NODELETE flag.
42981         * elf/tst-unique4.cc: New file.
42982         * elf/tst-unique4.h: New file.
42983         * elf/tst-unique4lib.cc: New file.
42984         * elf/Makefile: Add rules to build and run tst-unique4.
42985         Patch by Piotr Bury <pbury@goahead.com>.
42986
42987 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
42988
42989         [BZ #12052]
42990         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
42991
42992         [BZ #12625]
42993         * misc/mntent_r.c (addmntent): Flush the stream after the output
42994
42995         [BZ #12393]
42996         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
42997         (is_trusted_path_normalize): Skip initial colon.  Append slash
42998         to empty buffer.  Duplicate is_trusted_path code but allow
42999         constructed patch to be prefix.
43000         (is_dst): Allow $ORIGIN followed by /.
43001         (_dl_dst_substitute): Correct clearing of check_for_trusted.
43002         Correct testing of result of is_trusted_path_normalize
43003         (decompose_rpath): Fix warning.
43004
43005 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
43006
43007         [BZ #11257]
43008         * grp/initgroups.c (internal_getgrouplist): When we found the service
43009         list through the initgroups entry in nsswitch.conf do not always
43010         continue on a successful lookup.  Don't always use the
43011         __nss_group_database value if it is set.
43012         * nss/nsswitch.conf (initgroups): Change action for successful db
43013         lookup to continue for compatibility.
43014
43015 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
43016
43017         [BZ #11532]
43018         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
43019         and CP774 modules.
43020         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
43021         and CP774 modules.
43022         * iconvdata/tst-tables.sh: Likewise.
43023         * iconvdata/cp770.c: New file.
43024         * iconvdata/cp771.c: New file.
43025         * iconvdata/cp772.c: New file.
43026         * iconvdata/cp773.c: New file.
43027         * iconvdata/cp774.c: New file.
43028         * iconvdata/testdata/CP770: New file.
43029         * iconvdata/testdata/CP770..UTF8: New file.
43030         * iconvdata/testdata/CP771: New file.
43031         * iconvdata/testdata/CP771..UTF8: New file.
43032         * iconvdata/testdata/CP772: New file.
43033         * iconvdata/testdata/CP772..UTF8: New file.
43034         * iconvdata/testdata/CP773: New file.
43035         * iconvdata/testdata/CP773..UTF8: New file.
43036         * iconvdata/testdata/CP774: New file.
43037         * iconvdata/testdata/CP774..UTF8: New file.
43038
43039         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
43040         END CHARMAP line.
43041         * iconvdata/gen-8bit-gap.sh: Likewise.
43042         * iconvdata/gen-8bit.sh: Likewise.
43043
43044         * locale/iso-639.def: Add ary entry.
43045
43046         [BZ #11258]
43047         * locale/C-translit.h.in: Add U20A1 transliteration.
43048
43049         [BZ #12178]
43050         * locale/iso-639.def: Add wae entry.
43051         Patch by Kevin Bortis <bortis@translate-wae.ch>.
43052
43053         [BZ #12545]
43054         * locale/programs/localedef.c (construct_output_path): Use ssize_t
43055         for n.
43056
43057         [BZ #12711]
43058         * locale/C-translit.h.in: Add entry for U20B9.
43059         Patch by pravin.d.s@gmail.com.
43060
43061 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
43062
43063         [BZ #12713]
43064         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
43065         ENAMETOOLONG use generic getcwd.
43066         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
43067         in rtld.  Use *stat64.
43068         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
43069         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
43070         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
43071         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
43072         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
43073         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
43074         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
43075         __fstatat64 macros.
43076         * include/dirent.h: Add libc_hidden_proto for rewinddir.
43077         * dirent/rewinddir.c: Add libc_hidden_def.
43078         * sysdeps/mach/hurd/rewinddir.c: Likewise.
43079         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
43080
43081         * include/dirent.h (__alloc_dir): Add flags parameter.
43082         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
43083         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
43084         __alloc_dir.
43085         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
43086         from fdopendir if O_CLOEXEC is already set.
43087
43088 2011-03-15  Alan Modra  <amodra@gmail.com>
43089
43090         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
43091         l_tls_firstbyte_offset non-zero.  Save padding offset in
43092         l_tls_firstbyte_offset for later use.
43093         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
43094         freeing static tls block.
43095
43096 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
43097
43098         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
43099         where #ifdef was intended.  The intent is to prevent ARG_MAX from
43100         being defined by the kernel headers.
43101
43102 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
43103
43104         [BZ #12734]
43105         * resolv/resolv.h: Define RES_NOTLDQUERY.
43106         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
43107         no-tld-query and set RES_NOTLDQUERY.
43108         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
43109         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
43110         modern BIND to search name as TLD unless forbidden.
43111
43112 2011-05-07  Petr Baudis  <pasky@suse.cz>
43113             Ulrich Drepper  <drepper@gmail.com>
43114
43115         [BZ #12393]
43116         * elf/dl-load.c (fillin_rpath): Move trusted path check...
43117         (is_trusted_path): ...to here.
43118         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
43119         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
43120         using is_trusted_path_normalize() in setuid scripts.
43121
43122 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
43123
43124         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
43125         __BEGIN/__END_DECLS.
43126
43127 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
43128
43129         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
43130         NSS_STATUS_NOTFOUND if no record was found.
43131
43132 2011-05-05  Andreas Schwab  <schwab@redhat.com>
43133
43134         * sunrpc/Makefile (headers): Add rpc/netdb.h.
43135         (headers-not-in-tirpc): Remove rpc/netdb.h
43136         * resolv/netdb.h: Revert last change.
43137
43138 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
43139
43140         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
43141         circular dependency between libgcc.a and libc.a.
43142
43143 2011-05-05  Andreas Schwab  <schwab@redhat.com>
43144
43145         * resolv/netdb.h: Don't include <rpc/netdb.h>.
43146         * nis/Makefile: Don't install rpcsvc/*.
43147         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
43148         instead of <rpc/types.h>.
43149         (MAXHOSTNAMELEN): Define.
43150
43151 2011-05-03  Andreas Schwab  <schwab@redhat.com>
43152
43153         * elf/ldconfig.c (add_dir): Don't crash on empty path.
43154
43155 2011-04-28  Maciej Babinski  <mbabinski@google.com>
43156
43157         [BZ #12714]
43158         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
43159         gethostbyname4_r when IPv6 results are possible.
43160
43161 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
43162
43163         [BZ #12723]
43164         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
43165         _PC_PIPE_BUF handling.
43166
43167 2011-04-30  Bruno Haible  <bruno@clisp.org>
43168
43169         [BZ #12717]
43170         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
43171         * resolv/netdb.h (getnameinfo): Change type of flags parameter
43172         to 'int'.
43173         * inet/getnameinfo.c (getnameinfo): Likewise.
43174
43175 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
43176
43177         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
43178         to groups setting in database lookup.
43179         * nss/nsswitch.conf: Add initgroups entry.
43180
43181 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
43182
43183         [BZ #12685]
43184         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
43185         mode string.
43186         Patch by Eric Blake <eblake@redhat.com>.
43187
43188 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
43189
43190         * sunrpc/Makefile (need-export-routines): Add svc_run.
43191         (routines): Remove svc_run.
43192         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
43193         * sunrpc/clnt_perr.c (clnt_perrno): Export.
43194         * sunrpc/svc_run.c (svc_run): Likewise.
43195         * sunrpc/svc_udp.c (svcudp_create): Likewise.
43196
43197 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
43198
43199         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
43200         problem in reallocation in last patch.
43201
43202 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
43203
43204         * sunrpc/Makefile: Move inclusion of Rules.
43205
43206 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
43207
43208         * nss/nss_files/files-initgroups.c: New file.
43209         * nss/Makefile (libnss_files-routines): Add files-initgroups.
43210         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
43211         _nss_files_initgroups_dyn.
43212
43213 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
43214
43215         * elf/elf.h (R_ARM_IRELATIVE): Define.
43216
43217 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
43218
43219         * po/ru.po: Update from translation team.
43220
43221 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
43222
43223         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
43224         dependencies.
43225
43226 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
43227
43228         [BZ #12653]
43229         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
43230         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
43231         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
43232         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43233         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43234
43235 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
43236
43237         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
43238         differing bytes.
43239         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43240         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43241         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43242
43243 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
43244
43245         [BZ #12420]
43246         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
43247         storing it.
43248         * stdlib/bug-getcontext.c: New file.
43249         * stdlib/Makefile: Add rules to build and run bug-getcontext.
43250
43251 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43252
43253         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
43254         instructions into .machine "z9-109".
43255         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
43256         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
43257
43258 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43259
43260         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
43261         between environment variables and auxiliary vector.
43262
43263 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
43264
43265         * Makefile: Add rules to build linkobj/libc.so.
43266         * include/libc-symbols.h: Define libc_hidden_nolink.
43267         * include/rpc/auth.h: Mark functions which are to be hidden.
43268         * include/rpc/auth_des.h: Likewise.
43269         * include/rpc/auth_unix.h: Likewise.
43270         * include/rpc/clnt.h: Likewise.
43271         * include/rpc/des_crypt.h: Likewise.
43272         * include/rpc/key_prot.h: Likewise.
43273         * include/rpc/pmap_clnt.h: Likewise.
43274         * include/rpc/pmap_prot.h: Likewise.
43275         * include/rpc/pmap_rmt.h: Likewise.
43276         * include/rpc/rpc_msg.h: Likewise.
43277         * include/rpc/svc.h: Likewise.
43278         * include/rpc/svc_auth.h: Likewise.
43279         * include/rpc/xdr.h: Likewise.
43280         * nis/Makefile: Link all DSOs against linkobj/libc.so.
43281         * nss/Makefile: Likewise.
43282         * sunrpc/Makefile: Don't install headers.  Build library with normal
43283         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
43284         * sunrpc/auth_des.c: Hide exported symbols by default, export some
43285         for the compat linking library.  Remove use of INTDEF/INTUSE.
43286         * sunrpc/auth_none.c: Likewise.
43287         * sunrpc/auth_unix.c: Likewise.
43288         * sunrpc/authdes_prot.c: Likewise.
43289         * sunrpc/authuxprot.c: Likewise.
43290         * sunrpc/clnt_gen.c: Likewise.
43291         * sunrpc/clnt_perr.c: Likewise.
43292         * sunrpc/clnt_raw.c: Likewise.
43293         * sunrpc/clnt_simp.c: Likewise.
43294         * sunrpc/clnt_tcp.c: Likewise.
43295         * sunrpc/clnt_udp.c: Likewise.
43296         * sunrpc/clnt_unix.c: Likewise.
43297         * sunrpc/des_crypt.c: Likewise.
43298         * sunrpc/des_soft.c: Likewise.
43299         * sunrpc/get_myaddr.c: Likewise.
43300         * sunrpc/key_call.c: Likewise.
43301         * sunrpc/key_prot.c: Likewise.
43302         * sunrpc/netname.c: Likewise.
43303         * sunrpc/pm_getmaps.c: Likewise.
43304         * sunrpc/pm_getport.c: Likewise.
43305         * sunrpc/pmap_clnt.c: Likewise.
43306         * sunrpc/pmap_prot.c: Likewise.
43307         * sunrpc/pmap_prot2.c: Likewise.
43308         * sunrpc/pmap_rmt.c: Likewise.
43309         * sunrpc/publickey.c: Likewise.
43310         * sunrpc/rpc_cmsg.c: Likewise.
43311         * sunrpc/rpc_common.c: Likewise.
43312         * sunrpc/rpc_dtable.c: Likewise.
43313         * sunrpc/rpc_prot.c: Likewise.
43314         * sunrpc/rpc_thread.c: Likewise.
43315         * sunrpc/rtime.c: Likewise.
43316         * sunrpc/svc.c: Likewise.
43317         * sunrpc/svc_auth.c: Likewise.
43318         * sunrpc/svc_authux.c: Likewise.
43319         * sunrpc/svc_raw.c: Likewise.
43320         * sunrpc/svc_run.c: Likewise.
43321         * sunrpc/svc_simple.c: Likewise.
43322         * sunrpc/svc_tcp.c: Likewise.
43323         * sunrpc/svc_udp.c: Likewise.
43324         * sunrpc/svc_unix.c: Likewise.
43325         * sunrpc/svcauth_des.c: Likewise.
43326         * sunrpc/xcrypt.c: Likewise.
43327         * sunrpc/xdr.c: Likewise.
43328         * sunrpc/xdr_array.c: Likewise.
43329         * sunrpc/xdr_float.c: Likewise.
43330         * sunrpc/xdr_intXX_t.c: Likewise.
43331         * sunrpc/xdr_mem.c: Likewise.
43332         * sunrpc/xdr_rec.c: Likewise.
43333         * sunrpc/xdr_ref.c: Likewise.
43334         * sunrpc/xdr_sizeof.c: Likewise.
43335         * sunrpc/xdr_stdio.c: Likewise.
43336
43337 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
43338
43339         [BZ #12650]
43340         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
43341         * sysdeps/ia64/dl-tls.h: Likewise.
43342         * sysdeps/powerpc/dl-tls.h: Likewise.
43343         * sysdeps/s390/dl-tls.h: Likewise.
43344         * sysdeps/sh/dl-tls.h: Likewise.
43345         * sysdeps/sparc/dl-tls.h: Likewise.
43346         * sysdeps/x86_64/dl-tls.h: Likewise.
43347         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
43348
43349 2011-03-14  Andreas Schwab  <schwab@redhat.com>
43350
43351         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
43352         rpath element also skip the following colon.
43353         (expand_dynamic_string_token): Add is_path parameter and pass
43354         down to DL_DST_REQUIRED and _dl_dst_substitute.
43355         (decompose_rpath): Call expand_dynamic_string_token with
43356         non-zero is_path.  Ignore empty rpaths.
43357         (_dl_map_object_from_fd): Call expand_dynamic_string_token
43358         with zero is_path.
43359
43360 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
43361
43362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
43363         Make cancelable.
43364
43365 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
43366
43367         [BZ #12655]
43368         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
43369         Patch by Filipe David Manana <fdmanana@apache.org>.
43370
43371 2011-04-07  Andreas Schwab  <schwab@redhat.com>
43372
43373         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
43374         Maintain aligned stack.
43375         (CHECK_RSP): Remove unused macro.
43376
43377 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
43378
43379         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
43380         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
43381
43382 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
43383
43384         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
43385
43386         * include/features.h: Mention __USE_XOPEN2K8 in comment.
43387
43388 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
43389
43390         [BZ #12518]
43391         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
43392         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
43393         * sysdeps/x86_64/memmove.c: New file.
43394         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
43395         (memcpy): Renamed to ...
43396         (__new_memcpy): This.
43397         (memcpy): Provide GLIBC_2_14 memcpy.
43398         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
43399         (memcpy): Provide GLIBC_2_2_5 memcpy.
43400
43401 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
43402
43403         [BZ #12631]
43404         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
43405
43406 2011-03-30  Andreas Schwab  <schwab@redhat.com>
43407
43408         * misc/syncfs.c: New file.
43409         * misc/Makefile (routines): Add syncfs.
43410         * posix/unistd.h: Declare syncfs.
43411         * sysdeps/unix/syscalls.list: Add syncfs.
43412
43413 2011-04-01  Andreas Schwab  <schwab@redhat.com>
43414
43415         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
43416         open_by_handle_at.
43417         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
43418         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
43419         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
43420         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
43421         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
43422         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
43423         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
43424
43425 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
43426
43427         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
43428         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
43429         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
43430         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
43431         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
43432         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
43433         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
43434
43435         * io/Makefile: Compile fallocate.c, fallocate64.c, and
43436         sync_file_range.c with -fexceptions.
43437         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
43438         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
43439         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
43440         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
43441         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
43442         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
43443         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
43444         sync_file_range as cancellation point
43445         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
43446         now a wrapper around __call_sync_file_range with cancellation handling.
43447         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
43448         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
43449         function name to __call_sync_file_range.
43450         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
43451         Add call_sync_file_range.
43452
43453 2011-04-01  Andreas Schwab  <schwab@redhat.com>
43454
43455         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
43456         bits/timex.h.
43457
43458 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
43459
43460         * iconv/iconv.h: Fix typo in comment.
43461         * io/fcntl.h: Likewise.
43462         * libio/stdio.h: Likewise.
43463         * posix/spawn.h: Likewise.
43464         * posix/unistd.h: Likewise.
43465         * stdlib/stdlib.h: Likewise.
43466         * time/time.h: Likewise.
43467         * wcsmbs/wchar.h: Likewise.
43468
43469         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
43470         open_by_handle): Add.
43471         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
43472         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
43473         Augment a few comments.
43474         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
43475         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
43476         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
43477         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
43478         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
43479         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
43480         open_by_handle.
43481
43482         * io/fcntl.h (AT_EMPTY_PATH): Define.
43483
43484 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
43485
43486         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
43487         * sysdeps/unix/sysv/linux/bits/time.h: New file.
43488         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
43489         to...
43490         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
43491         * Versions.def: Add GLIBC_2.14.
43492         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
43493         Export.
43494
43495 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
43496
43497         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
43498         round counter.
43499         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
43500
43501 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
43502
43503         [BZ #12597]
43504         * string/test-strncmp.c (do_page_test): New function.
43505         (check2): Likewise.
43506         (test_main): Call check2.
43507         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
43508
43509 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
43510
43511         [BZ #12587]
43512         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
43513         Handle cache information in CPU leaf 4.
43514         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
43515
43516 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
43517
43518         [BZ #12583]
43519         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
43520         character representation.
43521         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
43522
43523 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
43524
43525         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
43526         END(__isnan) to END(__isnanf) to match function entry point/label
43527         EALIGN(__isnanf,...).
43528
43529 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
43530
43531         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
43532
43533 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
43534
43535         [BZ #12510]
43536         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
43537         copy from the symbol referenced in the relocation to initialize the
43538         used variable.
43539         Patch by Piotr Bury <pbury@goahead.com>.
43540         * elf/Makefile: Add rules to build and tst-unique3.
43541         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
43542         * elf/tst-unique3.cc: New file.
43543         * elf/tst-unique3.h: New file.
43544         * elf/tst-unique3lib.cc: New file.
43545         * elf/tst-unique3lib2.cc: New file.
43546
43547         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
43548
43549 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
43550
43551         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
43552         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
43553         to _start.
43554
43555 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
43556
43557         * elf/dl-load.c (_dl_map_object): If we are looking for the first
43558         to-be-loaded object along a path to loader is ld.so.
43559
43560 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
43561             Ulrich Drepper  <drepper@gmail.com>
43562
43563         * sysdeps/x86_64/memset.S: After aligning destination, code
43564         branches to different locations depending on the value of
43565         misalignment, when multiarch is enabled. Fix this.
43566
43567 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
43568
43569         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
43570         Set _x86_64_preferred_memory_instruction for AMD processsors.
43571         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43572         Set bit_Prefer_SSE_for_memop for AMD processors.
43573
43574 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
43575
43576         * libio/fmemopen.c (fmemopen): Optimize a bit.
43577
43578 2011-03-03  Andreas Schwab  <schwab@redhat.com>
43579
43580         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
43581
43582 2011-03-03  Roland McGrath  <roland@redhat.com>
43583
43584         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
43585
43586 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
43587
43588         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
43589         __bzero_ultra1 instead of __memset_ultra1.
43590
43591 2011-02-23  Andreas Schwab  <schwab@redhat.com>
43592             Ulrich Drepper  <drepper@gmail.com>
43593
43594         [BZ #12509]
43595         * include/link.h (struct link_map): Add l_orig_initfini.
43596         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
43597         returning unsuccessfully.
43598         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
43599         close of a file loaded at startup, restore the original l_initfini
43600         list.
43601         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
43602         list, store the pointer.
43603         * elf/Makefile ($(objpfx)noload-mem): New rule.
43604         (noload-ENV): Define.
43605         (tests): Add $(objpfx)noload-mem.
43606         * elf/noload.c: Include <memcheck.h>.
43607         (main): Call mtrace.  Close all opened handles.
43608
43609 2011-02-17  Andreas Schwab  <schwab@redhat.com>
43610
43611         [BZ #12454]
43612         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
43613         dependencies are missing.
43614
43615 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43616
43617         Fix __if_freereq crash: Unlike the generic version which uses free,
43618         Hurd needs munmap.
43619         * sysdeps/mach/hurd/ifreq.h: New file.
43620
43621 2011-01-27  Petr Baudis  <pasky@suse.cz>
43622             Ulrich Drepper  <drepper@gmail.com>
43623
43624         [BZ 12445]#
43625         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
43626         to extend_alloca().
43627         * stdio-common/bug23.c: New file.
43628         * stdio-common/Makefile (tests): Add bug23.
43629
43630 2010-09-28  Andreas Schwab  <schwab@redhat.com>
43631             Ulrich Drepper  <drepper@gmail.com>
43632
43633         [BZ #12489]
43634         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
43635         before performing relro protection.  At old place add assertion
43636         to make sure nothing changed.
43637
43638 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
43639             Glauber de Oliveira Costa  <glommer@gmail.com>
43640
43641         * elf/elf.h: Add new ARM TLS relocs.
43642
43643 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
43644
43645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
43646         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
43647         cast from r3.
43648         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
43649         'tests' variable.
43650         * sysdeps/wordsize-64/tst-writev.c: New file.
43651
43652 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
43653
43654         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
43655         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
43656         insns in _dl_start to prevent a TOC reference before relocs are
43657         resolved.
43658
43659 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
43660
43661         [BZ #12469]
43662         * Makeconfig: Remove RANLIB definition.
43663         * Makerules: Don't use RANLIB.
43664         * aclocal.m4: Remove ranlib test.
43665         * configure.in: No need to check for ranlib.
43666         * elf/rtld-Rules: Don't use RANLIB.
43667
43668 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43669
43670         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
43671         protection macro.
43672         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
43673         inclusion protection macro.
43674
43675         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
43676         SIGRTMIN and SIGRTMAX and print information in that case only when
43677         SIGRTMIN is defined.
43678
43679 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
43680
43681         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
43682         arginfo fn returning -1.
43683
43684         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
43685         and thousands string is zero terminated.
43686
43687 2011-02-03  Andreas Schwab  <schwab@redhat.com>
43688
43689         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
43690         sysdeps/unix/sysv/linux/bits/socket.h.
43691
43692 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43693
43694         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
43695         (__CPU_COUNT): Remove old macros.
43696         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
43697         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
43698         (__CPU_ALLOC, __CPU_FREE): Add macros.
43699         (__sched_cpualloc, __sched_cpufree): Add declarations.
43700
43701 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
43702
43703         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
43704         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
43705         * nscd/aicache.c (addhstaiX): Return timeout of added value.
43706         (readdhstai): Return value of addhstaiX call.
43707         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
43708         (addgrbyX): Return value returned by cache_addgr.
43709         (readdgrbyname): Return value returned by addgrbyX.
43710         (readdgrbygid): Likewise.
43711         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
43712         (addpwbyX): Return value returned by cache_addpw.
43713         (readdpwbyname): Return value returned by addhstbyX.
43714         (readdpwbyuid): Likewise.
43715         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
43716         (addservbyX): Return value returned by cache_addserv.
43717         (readdservbyname): Return value returned by addservbyX:
43718         (readdservbyport): Likewise.
43719         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
43720         (addhstbyX): Return value returned by cache_addhst.
43721         (readdhstbyname): Return value returned by addhstbyX.
43722         (readdhstbyaddr): Likewise.
43723         (readdhstbynamev6): Likewise.
43724         (readdhstbyaddrv6): Likewise.
43725         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
43726         (readdinitgroups): Return value returned by addinitgroupsX.
43727         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
43728         (prune_cache): Keep track of timeout value of re-added entries.
43729         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
43730         * nscd/nscd.h: Adjust prototypes of readd* functions.
43731
43732 2011-02-04  Roland McGrath  <roland@redhat.com>
43733
43734         * nis/nis_server.c (nis_servstate): Use the right name for 0.
43735         (nis_stats): Likewise.
43736         * nis/nis_modify.c (nis_modify): Likewise.
43737         * nis/nis_remove.c (nis_remove): Likewise.
43738         * nis/nis_add.c (nis_add): Likewise.
43739
43740         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
43741
43742         * posix/fnmatch_loop.c: Add some consts.
43743
43744         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
43745
43746 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
43747
43748         [BZ #12460]
43749         * config.make.in (config-cflags-novzeroupper): Define.
43750         * configure.in: Substitute libc_cv_cc_novzeroupper.
43751         * elf/Makefile (AVX-CFLAGS): Define.
43752         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
43753         (CFLAGS-tst-auditmod4a.c): Likewise.
43754         (CFLAGS-tst-auditmod4b.c): Likewise.
43755         (CFLAGS-tst-auditmod6b.c): Likewise.
43756         (CFLAGS-tst-auditmod6c.c): Likewise.
43757         (CFLAGS-tst-auditmod7b.c): Likewise.
43758         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
43759
43760 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
43761
43762         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
43763         function to the callback.
43764         Patch partly by Jiri Olsa <jolsa@redhat.com>.
43765
43766 2011-02-02  Andreas Schwab  <schwab@redhat.com>
43767
43768         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
43769         of errno.
43770
43771 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
43772
43773         [BZ #11724]
43774         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
43775         of constructors.
43776         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
43777         of destructors.
43778         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
43779
43780         [BZ #11724]
43781         * elf/Makefile: Add rules to build and run new test.
43782         * elf/tst-initorder.c: New file.
43783         * elf/tst-initorder.exp: New file.
43784         * elf/tst-initordera1.c: New file.
43785         * elf/tst-initordera2.c: New file.
43786         * elf/tst-initordera3.c: New file.
43787         * elf/tst-initordera4.c: New file.
43788         * elf/tst-initorderb1.c: New file.
43789         * elf/tst-initorderb2.c: New file.
43790         * elf/tst-order-a1.c: New file.
43791         * elf/tst-order-a2.c: New file.
43792         * elf/tst-order-a3.c: New file.
43793         * elf/tst-order-a4.c: New file.
43794         * elf/tst-order-b1.c: New file.
43795         * elf/tst-order-b2.c: New file.
43796         * elf/tst-order-main.c: New file.
43797         New test case by George Gensure <werkt0@gmail.com>.
43798
43799 2010-10-01  Andreas Schwab  <schwab@redhat.com>
43800
43801         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43802         decoding ACE if AI_CANONIDN.
43803
43804 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
43805
43806         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
43807
43808 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
43809
43810         * version.h (RELEASE): Bump for 2.13 release.
43811         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
43812
43813         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
43814
43815         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
43816         MADV_NOHUGEPAGE.
43817         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
43818         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
43819         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
43820         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
43821         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
43822         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
43823
43824         * posix/getconf.c: Update copyright year.
43825         * catgets/gencat.c: Likewise.
43826         * csu/version.c: Likewise.
43827         * debug/catchsegv.sh: Likewise.
43828         * debug/xtrace.sh: Likewise.
43829         * elf/ldconfig.c: Likewise.
43830         * elf/ldd.bash.in: Likewise.
43831         * elf/sprof.c (print_version): Likewise.
43832         * iconv/iconv_prog.c: Likewise.
43833         * iconv/iconvconfig.c: Likewise.
43834         * locale/programs/locale.c: Likewise.
43835         * locale/programs/localedef.c: Likewise.
43836         * malloc/memusage.sh: Likewise.
43837         * malloc/mtrace.pl: Likewise.
43838         * nscd/nscd.c (print_version): Likewise.
43839         * nss/getent.c: Likewise.
43840
43841         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
43842         PF_CAIF, and PF_ALG.
43843         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
43844
43845 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
43846
43847         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
43848         (modules-names): Use them.
43849         (ifunc-test-modules, ifunc-pie-tests): Define.
43850         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
43851         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
43852         (test-extras): Likewise.
43853         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
43854         $(compile-command.c).
43855         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
43856         (all-built-dso): Define.
43857         (check-textrel.out, check-execstack.out): Depend on it.
43858
43859         * configure.in: Don't override --enable-multi-arch.
43860
43861 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
43862
43863         [BZ #6812]
43864         * nscd/hstcache.c (tryagain): Define.
43865         (cache_addhst): Return tryagain not notfound for temporary errors.
43866         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
43867         failed.
43868
43869 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
43870
43871         [BZ #10563]
43872         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
43873         to make the syscall.
43874         * sysdeps/unix/sysv/linux/setgroups.c: New file.
43875
43876         [BZ #12378]
43877         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
43878         and fall back to matching as normal character if the string ends before
43879         the matching ']' is found.  This is what POSIX requires.
43880         * posix/testfnm.c: Adjust test result.
43881         * posix/globtest.sh: Adjust test result.  Add new test.
43882         * posix/tst-fnmatch.input: Likewise.
43883         * posix/tst-fnmatch2.c: Add new test.
43884
43885 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
43886
43887         * elf/Makefile (check-execstack): Revert last change.  Depend on
43888         check-execstack.h.
43889         (check-execstack.h): New target.
43890         (generated): Add check-execstack.h.
43891         * elf/check-execstack.c: Include "check-execstack.h".
43892         (main): Revert last change.
43893         (handle_file): Return zero if GNU_STACK is absent and
43894         DEFAULT_STACK_PERMS doesn't include PF_X.
43895
43896 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
43897
43898         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
43899         in child fails because the descriptor is already closed.
43900         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
43901         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
43902         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
43903
43904         [BZ #12397]
43905         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
43906         syscall.
43907
43908         [BZ #10484]
43909         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
43910         temporary buffer used to handle multi lookups locally.
43911         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
43912
43913 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
43914
43915         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
43916         loader is ld.so.
43917
43918 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
43919
43920         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
43921         alignment for SSE2.
43922
43923 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
43924
43925         [BZ #12394]
43926         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
43927         characters.  When rounding increased number of integer digits recompute
43928         number of groups.
43929         * stdio-common/tst-grouping.c: New file.
43930         * stdio-common/Makefile: Add rules to build and run tst-grouping.
43931
43932 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
43933
43934         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
43935         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
43936
43937         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
43938         void.
43939         * bits/select.h: Likewise.
43940
43941 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
43942
43943         * po/ja.po: Update from translation team.
43944
43945 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
43946
43947         [BZ #11155]
43948         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
43949         implementation just like for lxstat, fxstatat, et al.
43950
43951 2010-12-27  Jim Meyering  <meyering@redhat.com>
43952
43953         [BZ #12348]
43954         * posix/regexec.c (build_trtable): Return failure indication upon
43955         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
43956
43957 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
43958
43959         [BZ #12201]
43960         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
43961         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
43962         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
43963         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
43964
43965         [BZ #12207]
43966         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
43967
43968         [BZ #12204]
43969         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
43970         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
43971
43972 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
43973
43974         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
43975         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
43976         script has SORT_BY_INIT_PRIORITY.
43977         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
43978         NO_CTORS_DTORS_SECTIONS is defined.
43979         * elf/soinit.c: Likewise.
43980         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
43981         NO_CTORS_DTORS_SECTIONS is defined.
43982         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
43983         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
43984         * sysdeps/sh/init-first.c: Likewise.
43985         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
43986
43987 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
43988
43989         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
43990         always use the slow path.
43991
43992 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
43993
43994         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
43995         similar rule which adds the sysdep directories to the header search in
43996         order to pick up the correct platform stackinfo.h.
43997         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
43998         perform test if it is, otherwise return successfully without testing.
43999         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
44000         DEFAULT_STACK_PERMS define in stackinfo.h.
44001         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
44002         defined in stackinfo.h.
44003         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
44004         DEFAULT_STACK_PERMS defined in stackinfo.h.
44005         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
44006         * sysdeps/ia64/stackinfo.h: Likewise.
44007         * sysdeps/s390/stackinfo.h: Likewise.
44008         * sysdeps/sh/stackinfo.h: Likewise.
44009         * sysdeps/sparc/stackinfo.h: Likewise.
44010         * sysdeps/x86_64/stackinfo.h: Likewise.
44011         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
44012         PF_X for powerpc64.  Retain PF_X for powerpc32.
44013
44014 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
44015
44016         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
44017         accurately.
44018         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
44019         GETDENTS_64BIT_ALIGNED.
44020
44021 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
44022
44023         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
44024
44025 2010-12-10  Andreas Schwab  <schwab@redhat.com>
44026
44027         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
44028         _GNU_SOURCE.
44029
44030         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
44031         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
44032         Remove __restrict.
44033         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
44034         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
44035
44036 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
44037
44038         [BZ #11655]
44039         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
44040         are initialized.
44041
44042 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
44043
44044         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
44045
44046 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
44047
44048         * po/it.po: Update from translation team.
44049
44050 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
44051
44052         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
44053         unused codes.
44054
44055 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
44056
44057         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
44058
44059 2010-11-24  Andreas Schwab  <schwab@redhat.com>
44060
44061         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
44062         specially.
44063         (gaih_getanswer_slice): Likewise.
44064
44065 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
44066
44067         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
44068
44069 2010-05-31  Petr Baudis  <pasky@suse.cz>
44070
44071         [BZ #11149]
44072         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
44073         silently even in the chroot mode.
44074
44075 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
44076
44077         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
44078         last patch a bit.  Pretty printing
44079
44080 2010-05-31  Petr Baudis <pasky@suse.cz>
44081
44082         [BZ #10085]
44083         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
44084         initialization of skip_initgroups_dyn.
44085
44086 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
44087
44088         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
44089         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
44090
44091 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
44092
44093         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
44094
44095 2010-11-11  Andreas Schwab  <schwab@redhat.com>
44096
44097         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
44098         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
44099         (tst-fnmatch-ENV): Set MALLOC_TRACE.
44100         ($(objpfx)tst-fnmatch-mem): New rule.
44101         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
44102         * posix/tst-fnmatch.c (main): Call mtrace.
44103
44104 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
44105
44106         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44107         Support Intel processor model 6 and model 0x2c.
44108
44109 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
44110
44111         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
44112           signed comparison.
44113
44114 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
44115
44116         [BZ #12205]
44117         * string/test-strncasecmp.c (check_result): New function.
44118         (do_one_test): Use it.
44119         (check1): New function.
44120         (test_main): Use it.
44121         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
44122         Support strcasecmp and strncasecmp.
44123
44124 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
44125
44126         [BZ #12194]
44127         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
44128         * sysdeps/x86_64/bits/byteswap.h: Likewise.
44129
44130 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
44131
44132         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
44133         IFUNC support.
44134         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44135         memset-x86-64.
44136         * sysdeps/x86_64/multiarch/bzero.S: New file.
44137         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
44138         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
44139         * sysdeps/x86_64/multiarch/memset.S: New file.
44140         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
44141         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44142         Set bit_Prefer_SSE_for_memop for Intel processors.
44143         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
44144         Define.
44145         (index_Prefer_SSE_for_memop): Define.
44146         (HAS_PREFER_SSE_FOR_MEMOP): Define.
44147
44148 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
44149
44150         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
44151         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
44152
44153 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
44154
44155         [BZ #12191]
44156         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
44157         (__x86_64_raw_data_cache_size_half): Likewise.
44158         (__x86_64_raw_shared_cache_size): Likewise.
44159         (__x86_64_raw_shared_cache_size_half): Likewise.
44160
44161         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
44162         (__x86_64_raw_data_cache_size_half): Likewise.
44163         (__x86_64_raw_shared_cache_size): Likewise.
44164         (__x86_64_raw_shared_cache_size_half): Likewise.
44165         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
44166         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
44167         and __x86_64_raw_shared_cache_size_half.  Round
44168         __x86_64_data_cache_size_half, __x86_64_data_cache_size
44169         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
44170         to multiple of 256 bytes.
44171
44172 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
44173
44174         [BZ #12167]
44175         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
44176         of inacessible symlinks.  Verify result of symlink before returning it.
44177         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
44178         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
44179
44180 2010-10-28  Erich Ritz  <erichritz@gmail.com>
44181
44182         * math/math.h (isinf): Fix typo in comment.
44183
44184 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
44185
44186         * po/da.po: Update from translation team.
44187
44188 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
44189
44190         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
44191         is added to the list.
44192
44193 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44194             Ulrich Drepper  <drepper@gmail.com>
44195
44196         * elf/dl-object.c (_dl_new_object): Don't append the new object to
44197         the global list here.  Move code to...
44198         (_dl_add_to_namespace_list): ...here.  New function.
44199         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
44200         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
44201         * elf/dl-load.c (lose): Don't remove the element from the list.
44202         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
44203         (_dl_map_object): Likewise.
44204
44205 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
44206
44207         [BZ #12159]
44208         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
44209         into all bytes of SSE register.
44210         Patch by Richard Li <richardpku@gmail.com>.
44211
44212 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
44213
44214         [BZ #12140]
44215         * malloc/malloc.c (_int_free): Fill correct number of bytes when
44216         perturbing.
44217
44218 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
44219
44220         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
44221         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
44222         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
44223         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
44224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
44225         submachine.
44226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
44227
44228 2010-10-22  Andreas Schwab  <schwab@redhat.com>
44229
44230         * include/dlfcn.h (__RTLD_SECURE): Define.
44231         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
44232         mode & __RTLD_SECURE instead.
44233         (open_path): Rename preloaded parameter to secure.
44234         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
44235         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
44236         * elf/dl-deps.c (openaux): Likewise.
44237         * elf/rtld.c (struct map_args): Remove is_preloaded.
44238         (map_doit): Don't use it.
44239         (dl_main): Likewise.
44240         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
44241         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
44242
44243 2010-09-09  Andreas Schwab  <schwab@redhat.com>
44244
44245         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
44246         (sysd-rules-targets): Remove duplicates.
44247         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
44248         rtld-%.$o dependency.
44249
44250 2010-10-18  Andreas Schwab  <schwab@redhat.com>
44251
44252         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
44253         _dl_map_object do it.
44254
44255 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
44256
44257         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
44258         fast fma builtins, define the macros in the C99 standard.
44259         (FP_FAST_FMAF): Likewise.
44260         (FP_FAST_FMAL): Likewise.
44261         * sysdeps/x86_64/bits/mathdef.h: Likewise.
44262
44263         * bits/mathdef.h: Update copyright year.
44264         * sysdeps/powerpc/bits/mathdef.h: Likewise.
44265
44266 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
44267
44268         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
44269         builtins, define the macros in the C99 standard.
44270         (FP_FAST_FMAF): Likewise.
44271         (FP_FAST_FMAL): Likewise.
44272         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
44273         multiply/add.
44274         (FP_FAST_FMAF): Likewise.
44275
44276 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
44277
44278         [BZ #3268]
44279         * math/libm-test.inc (fma_test): Some new testcases.
44280         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
44281         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
44282         y and infinite z.  Do multiplication by C already in long double.
44283         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
44284         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
44285         y and infinite z.  Do bitwise or of inexact bit into u.d.
44286         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
44287         * sysdeps/i386/fpu/s_fmaf.S: Removed.
44288         * sysdeps/i386/fpu/s_fma.S: Removed.
44289         * sysdeps/i386/fpu/s_fmal.S: Removed.
44290
44291 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
44292
44293         [BZ #3268]
44294         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
44295         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
44296         computation is not scheduled after fetestexcept.  Fix value
44297         of minimum denormal long double.
44298
44299 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
44300
44301         [BZ #3268]
44302         * math/libm-test.inc (fma_test): Add some more tests.
44303         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
44304         correctly.
44305
44306 2010-10-15  Andreas Schwab  <schwab@redhat.com>
44307
44308         * scripts/data/localplt-s390-linux-gnu.data: New file.
44309         * scripts/data/localplt-s390x-linux-gnu.data: New file.
44310
44311 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
44312
44313         [BZ #3268]
44314         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
44315         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
44316         instead of dbl-64.
44317         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
44318         inlines.
44319         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
44320         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
44321         if one of x and y is very large and the other is subnormal.
44322         * sysdeps/s390/fpu/s_fmaf.c: New file.
44323         * sysdeps/s390/fpu/s_fma.c: New file.
44324         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
44325         * sysdeps/powerpc/fpu/s_fma.S: New file.
44326         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
44327         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
44328         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
44329
44330 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
44331
44332         [BZ #3268]
44333         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
44334         fma tests.
44335         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
44336         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
44337         * sysdeps/i386/i686/multiarch/s_fma.c: Include
44338         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
44339         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
44340         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
44341         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
44342
44343 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
44344
44345         [BZ #12078]
44346         * posix/regcomp.c (parse_branch): One more memory leak plugged.
44347         * posix/bug-regex31.input: Add test case.
44348
44349 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
44350
44351         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
44352         * posix/bug-regex31.input: New file.
44353
44354         [BZ #12078]
44355         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
44356         (parse_sub_exp): Fix last change, use postorder.
44357
44358         * posix/bug-regex31.c: New file.
44359         * posix/Makefile: Add rules to build and run bug-regex31.
44360
44361         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
44362
44363         [BZ #12078]
44364         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
44365
44366         [BZ #12108]
44367         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
44368         to have entries in sys_siglist.
44369
44370         [BZ #12093]
44371         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
44372         be NULL.
44373
44374 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
44375
44376         [BZ #3268]
44377         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
44378         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
44379         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
44380         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
44381         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
44382         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
44383         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
44384         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
44385         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
44386         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
44387         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
44388         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
44389         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
44390         * math/ftestexcept.c (fetestexcept): Likewise.
44391         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
44392         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
44393         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
44394         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
44395         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
44396         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
44397         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
44398
44399 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
44400
44401         [BZ #12107]
44402         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
44403         newline.
44404
44405 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
44406
44407         * string/bug-strstr1.c: New file.
44408         * string/Makefile: Add rules to build and run bug-strstr1.
44409
44410 2010-10-05  Eric Blake  <eblake@redhat.com>
44411
44412         [BZ #12092]
44413         * string/str-two-way.h (two_way_long_needle): Always clear memory
44414         when skipping input due to the shift table.
44415
44416 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
44417
44418         [BZ #12005]
44419         * malloc/mcheck.c: Handle large requests.
44420
44421         [BZ #12077]
44422         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
44423         for strncmp and strncasecmp.
44424         * string/stratcliff.c: Add tests for strcmp and strncmp.
44425         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
44426
44427 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
44428
44429         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
44430         __set_fpscr.
44431
44432 2010-09-30  Andreas Jaeger  <aj@suse.de>
44433
44434         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
44435         (CGROUP_SUPER_MAGIC): Define.
44436         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
44437         Handle btrfs and cgroup file systems.
44438         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
44439         Likewise.
44440
44441 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
44442
44443         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
44444         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
44445
44446 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44447
44448         [BZ #12067]
44449         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
44450         trying to locate the ELF header.
44451
44452 2010-09-27  Andreas Schwab  <schwab@redhat.com>
44453
44454         [BZ #11611]
44455         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
44456         Mask out sign-bit copies when constructing f_fsid.
44457
44458 2010-09-24  Petr Baudis <pasky@suse.cz>
44459
44460         * debug/stack_chk_fail_local.c: Add missing licence exception.
44461         * debug/warning-nop.c: Likewise.
44462
44463 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
44464
44465         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
44466         implementing getdents64 using getdents syscall, set d_type if
44467         __ASSUME_GETDENTS32_D_TYPE.
44468
44469 2010-09-16  Andreas Schwab  <schwab@redhat.com>
44470
44471         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
44472         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
44473
44474 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
44475
44476         [BZ #12037]
44477         * posix/unistd.h: Undo change of feature selection for ftruncate from
44478         2010-01-11.
44479
44480 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
44481
44482         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
44483         detection.
44484
44485 2010-09-20  Andreas Schwab  <schwab@redhat.com>
44486
44487         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
44488         fanotify_mark.
44489         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
44490
44491 2010-09-14  Andreas Schwab  <schwab@redhat.com>
44492
44493         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
44494         variables after CHECK_SP call.
44495         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
44496
44497 2010-09-13  Andreas Schwab  <schwab@redhat.com>
44498             Ulrich Drepper  <drepper@redhat.com>
44499
44500         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
44501         re-relocationg ld.so.
44502         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
44503         _dl_init_paths call.
44504         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
44505         here anymore.
44506
44507 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
44508
44509         * resolv/res_init.c (__res_vinit): Count the default server we added.
44510
44511 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
44512             Ulrich Drepper  <drepper@redhat.com>
44513
44514         [BZ #11968]
44515         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
44516         (____longjmp_chk): Use %ebx for saving value across system call.
44517         Add unwind info.
44518
44519 2010-09-06  Andreas Schwab  <schwab@redhat.com>
44520
44521         * manual/Makefile: Don't mix pattern rules with normal rules.
44522
44523 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
44524
44525         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
44526         operation.
44527         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
44528         * libio/iofopncook.c (_IO_cookie_init): Likewise.
44529         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
44530         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
44531         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
44532         Likewise.
44533
44534 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
44535
44536         [BZ #11979]
44537         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
44538         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
44539
44540 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
44541
44542         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
44543         * sysdeps/x86_64/addmul_1.S: Likewise.
44544         * sysdeps/x86_64/lshift.S: Likewise.
44545         * sysdeps/x86_64/mul_1.S: Likewise.
44546         * sysdeps/x86_64/rshift.S: Likewise.
44547         * sysdeps/x86_64/sub_n.S: Likewise.
44548         * sysdeps/x86_64/submul_1.S: Likewise.
44549
44550 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44551
44552         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
44553         Define __sched_param instead of SCHED_* and sched_param when
44554         <bits/sched.h> is included with __need_schedparam defined.
44555         * bits/sched.h [__need_schedparam]
44556         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
44557         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
44558         (__defined_schedparam): Define to 1.
44559         (__sched_param): New structure, identical to sched_param.
44560         (__need_schedparam): Undefine.
44561
44562 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
44563
44564         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
44565         (epoll_create1): Declare.
44566
44567         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
44568
44569 2010-08-31  Andreas Schwab  <schwab@redhat.com>
44570
44571         [BZ #7066]
44572         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
44573         shifting retval into place.
44574
44575 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
44576
44577         * nis/rpcsvc/nis.h: Update copyright notice.
44578         * nis/rpcsvc/nis.x: Likewise.
44579         * nis/rpcsvc/nis_callback.h: Likewise.
44580         * nis/rpcsvc/nis_callback.x: Likewise.
44581         * nis/rpcsvc/nis_object.x: Likewise.
44582         * nis/rpcsvc/nis_tags.h: Likewise.
44583         * nis/rpcsvc/yp.h: Likewise.
44584         * nis/rpcsvc/yp.x: Likewise.
44585         * nis/rpcsvc/ypupd.h: Likewise.
44586         * nis/yp_xdr.c: Likewise.
44587         * nis/ypupdate_xdr.c: Likewise.
44588
44589         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
44590         mainly the body of pmap_getport.  Add parameters to specify timeouts.
44591         (pmap_getport): Use __libc_rpc_getport.
44592         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
44593         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
44594         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
44595
44596 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
44597
44598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
44599         fanotify_mark.
44600
44601 2010-08-27  Roland McGrath  <roland@redhat.com>
44602
44603         * sysdeps/i386/i686/multiarch/Makefile
44604         (CFLAGS-varshift.c): New variable.
44605
44606 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
44607
44608         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
44609         * sysdeps/i386/i686/multiarch/varshift.c: New file.
44610
44611         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
44612
44613         * sysdeps/x86_64/strlen.S: Minimal code improvement.
44614
44615 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
44616
44617         * sysdeps/x86_64/strlen.S: Unroll the loop.
44618         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44619         strlen-sse2 strlen-sse2-bsf.
44620         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
44621         __strlen_no_bsf if bit_Slow_BSF is set.
44622         (__strlen_sse42): Removed.
44623         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
44624         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
44625
44626 2010-08-25  Roland McGrath  <roland@redhat.com>
44627
44628         * sysdeps/x86_64/multiarch/varshift.S: File removed.
44629         * sysdeps/x86_64/multiarch/varshift.c: New file.
44630         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
44631         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
44632         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
44633         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
44634
44635 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
44636
44637         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44638         strlen-sse2 strlen-sse2-bsf.
44639         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
44640         __strlen_sse2_bsf if bit_Slow_BSF is unset.
44641         (__strlen_sse2): Removed.
44642         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
44643         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
44644         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
44645         bit_Slow_BSF for Atom.
44646         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
44647         (index_Slow_BSF): Define.
44648         (HAS_SLOW_BSF): Define.
44649
44650 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
44651
44652         [BZ #10851]
44653         * resolv/res_init.c (__res_vinit): When no server address at all
44654         is given default to loopback.
44655
44656 2010-08-24  Roland McGrath  <roland@redhat.com>
44657
44658         * configure.in: Remove config-name.h generation.
44659         * configure: Regenerated.
44660         * config-name.in: File removed.
44661         * scripts/config-uname.sh: New file.
44662         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
44663         ($(objdir)config-name.h): New target.
44664
44665         * sunrpc/rpc_parse.h: Avoid nested comment.
44666
44667 2010-08-24  Richard Henderson  <rth@redhat.com>
44668             Ulrich Drepper  <drepper@redhat.com>
44669             H.J. Lu  <hongjiu.lu@intel.com>
44670
44671         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
44672         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
44673         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
44674         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
44675         _mm_alignr_epi8 with _mm_loadu_si128.
44676         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
44677         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
44678         (__m128i_shift_right): Removed.
44679         * sysdeps/i386/i686/multiarch/varshift.h: New file.
44680         * sysdeps/i386/i686/multiarch/varshift.S: New file.
44681         * sysdeps/x86_64/multiarch/varshift.h: New file.
44682         * sysdeps/x86_64/multiarch/varshift.S: New file.
44683
44684 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
44685
44686         * configure.in: Move assembler checks to before sysdep dir checking.
44687
44688 2010-08-20  Petr Baudis  <pasky@suse.cz>
44689
44690         * LICENSES: Sync the sunrpc license.
44691
44692 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
44693
44694         * sunrpc/auth_des.c: Update copyright notice once again.
44695         * sunrpc/auth_none.c: Likewise.
44696         * sunrpc/auth_unix.c: Likewise.
44697         * sunrpc/authdes_prot.c: Likewise.
44698         * sunrpc/authuxprot.c: Likewise.
44699         * sunrpc/bindrsvprt.c: Likewise.
44700         * sunrpc/clnt_gen.c: Likewise.
44701         * sunrpc/clnt_perr.c: Likewise.
44702         * sunrpc/clnt_raw.c: Likewise.
44703         * sunrpc/clnt_simp.c: Likewise.
44704         * sunrpc/clnt_tcp.c: Likewise.
44705         * sunrpc/clnt_udp.c: Likewise.
44706         * sunrpc/clnt_unix.c: Likewise.
44707         * sunrpc/des_crypt.c: Likewise.
44708         * sunrpc/des_soft.c: Likewise.
44709         * sunrpc/get_myaddr.c: Likewise.
44710         * sunrpc/getrpcport.c: Likewise.
44711         * sunrpc/key_call.c: Likewise.
44712         * sunrpc/key_prot.c: Likewise.
44713         * sunrpc/openchild.c: Likewise.
44714         * sunrpc/pm_getmaps.c: Likewise.
44715         * sunrpc/pm_getport.c: Likewise.
44716         * sunrpc/pmap_clnt.c: Likewise.
44717         * sunrpc/pmap_prot.c: Likewise.
44718         * sunrpc/pmap_prot2.c: Likewise.
44719         * sunrpc/pmap_rmt.c: Likewise.
44720         * sunrpc/rpc/auth.h: Likewise.
44721         * sunrpc/rpc/auth_unix.h: Likewise.
44722         * sunrpc/rpc/clnt.h: Likewise.
44723         * sunrpc/rpc/des_crypt.h: Likewise.
44724         * sunrpc/rpc/key_prot.h: Likewise.
44725         * sunrpc/rpc/netdb.h: Likewise.
44726         * sunrpc/rpc/pmap_clnt.h: Likewise.
44727         * sunrpc/rpc/pmap_prot.h: Likewise.
44728         * sunrpc/rpc/pmap_rmt.h: Likewise.
44729         * sunrpc/rpc/rpc.h: Likewise.
44730         * sunrpc/rpc/rpc_des.h: Likewise.
44731         * sunrpc/rpc/rpc_msg.h: Likewise.
44732         * sunrpc/rpc/svc.h: Likewise.
44733         * sunrpc/rpc/svc_auth.h: Likewise.
44734         * sunrpc/rpc/types.h: Likewise.
44735         * sunrpc/rpc/xdr.h: Likewise.
44736         * sunrpc/rpc_clntout.c: Likewise.
44737         * sunrpc/rpc_cmsg.c: Likewise.
44738         * sunrpc/rpc_common.c: Likewise.
44739         * sunrpc/rpc_cout.c: Likewise.
44740         * sunrpc/rpc_dtable.c: Likewise.
44741         * sunrpc/rpc_hout.c: Likewise.
44742         * sunrpc/rpc_main.c: Likewise.
44743         * sunrpc/rpc_parse.c: Likewise.
44744         * sunrpc/rpc_parse.h: Likewise.
44745         * sunrpc/rpc_prot.c: Likewise.
44746         * sunrpc/rpc_sample.c: Likewise.
44747         * sunrpc/rpc_scan.c: Likewise.
44748         * sunrpc/rpc_scan.h: Likewise.
44749         * sunrpc/rpc_svcout.c: Likewise.
44750         * sunrpc/rpc_tblout.c: Likewise.
44751         * sunrpc/rpc_util.c: Likewise.
44752         * sunrpc/rpc_util.h: Likewise.
44753         * sunrpc/rpcinfo.c: Likewise.
44754         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
44755         * sunrpc/rpcsvc/key_prot.x: Likewise.
44756         * sunrpc/rpcsvc/klm_prot.x: Likewise.
44757         * sunrpc/rpcsvc/mount.x: Likewise.
44758         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
44759         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
44760         * sunrpc/rpcsvc/rex.x: Likewise.
44761         * sunrpc/rpcsvc/rstat.x: Likewise.
44762         * sunrpc/rpcsvc/rusers.x: Likewise.
44763         * sunrpc/rpcsvc/sm_inter.x: Likewise.
44764         * sunrpc/rpcsvc/spray.x: Likewise.
44765         * sunrpc/rpcsvc/yppasswd.x: Likewise.
44766         * sunrpc/rtime.c: Likewise.
44767         * sunrpc/svc.c: Likewise.
44768         * sunrpc/svc_auth.c: Likewise.
44769         * sunrpc/svc_authux.c: Likewise.
44770         * sunrpc/svc_raw.c: Likewise.
44771         * sunrpc/svc_run.c: Likewise.
44772         * sunrpc/svc_simple.c: Likewise.
44773         * sunrpc/svc_tcp.c: Likewise.
44774         * sunrpc/svc_udp.c: Likewise.
44775         * sunrpc/svc_unix.c: Likewise.
44776         * sunrpc/svcauth_des.c: Likewise.
44777         * sunrpc/xcrypt.c: Likewise.
44778         * sunrpc/xdr.c: Likewise.
44779         * sunrpc/xdr_array.c: Likewise.
44780         * sunrpc/xdr_float.c: Likewise.
44781         * sunrpc/xdr_mem.c: Likewise.
44782         * sunrpc/xdr_rec.c: Likewise.
44783         * sunrpc/xdr_ref.c: Likewise.
44784         * sunrpc/xdr_sizeof.c: Likewise.
44785         * sunrpc/xdr_stdio.c: Likewise.
44786
44787         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
44788         handling.
44789
44790 2010-08-19  Andreas Schwab  <schwab@redhat.com>
44791
44792         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
44793
44794 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
44795
44796         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
44797         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
44798         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
44799         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
44800         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
44801         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
44802         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
44803         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
44804         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
44805         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
44806         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
44807         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
44808         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
44809         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
44810
44811 2010-07-26  Anton Blanchard  <anton@samba.org>
44812
44813         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
44814         * malloc/arena.c (heap_trim): Likewise.
44815
44816 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
44817
44818         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
44819         here.  Not...
44820         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
44821         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
44822
44823 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
44824
44825         * sysdeps/i386/elf/Makefile: New file.
44826
44827 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
44828
44829         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
44830         from fanotify_init.
44831         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
44832         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
44833
44834 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
44835
44836         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
44837         of strncasecmp_l.
44838         * sysdeps/multiarch/strcmp.S: Likewise.
44839
44840 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
44841
44842         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
44843         strncase_l-nonascii.
44844         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
44845         Add strncase_l-ssse3.
44846         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
44847         * sysdeps/x86_64/strcmp.S: Likewise.
44848         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
44849         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
44850         * sysdeps/x86_64/strncase.S: New file.
44851         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
44852         * sysdeps/x86_64/strncase_l.S: New file.
44853         * string/Makefile (strop-tests): Add strncasecmp.
44854         * string/test-strncasecmp.c: New file.
44855
44856         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
44857         warning.
44858
44859         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
44860         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
44861
44862 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
44863
44864         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
44865
44866 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
44867
44868         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
44869         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
44870         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
44871
44872 2010-05-01  Alan Modra  <amodra@gmail.com>
44873
44874         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
44875         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
44876         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
44877         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
44878         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
44879         tidying.  Don't tail-call __sigjmp_save for static lib.
44880         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
44881         save location.
44882         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
44883         (CALL_MCOUNT): Add eh info, and nop after bl.
44884         (TAIL_CALL_SYSCALL_ERROR): New macro.
44885         (PSEUDO_RET): Use it.
44886         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
44887         Correct save location of integer regs and cr.
44888         (_dl_profile_resolve): Correct cr save location.  Delete nops
44889         after bl when SHARED.  Reduce cfi size a little by better
44890         placement of cfi directives.
44891         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
44892         make a stack frame.  Instead use parm save area as a temp.
44893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
44894         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
44895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
44896         Don't make a stack frame for parent, use parm save area.
44897         Increase child stack frame to 112 bytes.  Don't save unused reg,
44898         and adjust reg usage.  Set up cfi on error recovery and
44899         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
44900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
44901         (__makecontext): Add dummy nop after jump to exit.
44902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
44903         Use correct parm save area and cr save, reduce stack frame.
44904         Correct cfi for possible PSEUDO_RET frame setup.
44905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
44906         Branch to local label emitted by PSEUDO_RET rather than
44907         __syscall_error.
44908
44909 2010-08-12  Andreas Schwab  <schwab@redhat.com>
44910
44911         [BZ #11904]
44912         * locale/programs/locale.c (print_assignment): New function.
44913         (show_locale_vars): Use it.
44914
44915 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
44916
44917         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
44918         field.
44919         (struct statfs64): Likewise.
44920         (_STATFS_F_FLAGS): Define.
44921         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
44922         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
44923         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
44924         (ST_VALID): Define locally.
44925         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
44926         __statvfs_getflags, use the provided value.
44927         * sysdeps/unix/sysv/linux/kernel-features.h: Define
44928         __ASSUME_STATFS_F_FLAGS.
44929
44930         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
44931
44932         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
44933         Add sys/fanotify.h.
44934         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
44935         fanotify_mask for GLIBC_2.13.
44936         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
44937         fanotify_init and fanotify_mark.
44938         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
44939         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
44940
44941         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
44942         Add prlimit.
44943         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
44944         prlimit64 for GLIBC_2.13.
44945         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
44946         prlimit64.
44947         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
44948         syscall.
44949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
44950         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
44951         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
44952         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
44953         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
44954         add prlimit alias.
44955         * sysdeps/unix/sysv/linux/prlimit.c: New file.
44956
44957         [BZ #11903]
44958         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
44959         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
44960
44961         * nss/Makefile: Add rules to build and run tst-nss-test1.
44962         * shlib-versions: Add entry for libnss_test1.
44963         * nss/nss_test1.c: New file.
44964         * nss/tst-nss-test1.c: New file.
44965
44966         * nss/nsswitch.c (__nss_database_custom): Define new variable.
44967         (__nss_configure_lookup): Set appropriate entry in
44968         __nss_configure_lookup to true.
44969         * nss/nsswitch.h: Define enum with indeces of databases in
44970         databases and __nss_database_custom arrays.  Declare
44971         __nss_database_custom.
44972         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
44973         to avoid using nscd when custom rules are installed.
44974         * nss/getXXbyYY_r.c: Likewise.
44975         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44976
44977         * nss/nss_files/files-parse.c: Whitespace fixes.
44978
44979 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
44980
44981         [BZ #11883]
44982         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
44983         * posix/fnmatch_loop.c: Likewise.
44984
44985 2010-07-17  Andi Kleen  <ak@linux.intel.com>
44986
44987         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
44988         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
44989         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
44990         * Versions.def [GLIBC_2.13]: Add.
44991
44992 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
44993
44994         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
44995         Also fail if tpwd after pwuid call is NULL.
44996
44997 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44998
44999         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
45000         when converting to ms.
45001
45002 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45003
45004         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
45005         EOPNOTSUPP errors with ENOTTY.
45006         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
45007         EOPNOTSUPP errors with ENOTTY.
45008
45009 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
45010
45011         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
45012         Add strcasecmp_l-ssse3.
45013         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
45014         strcasecmp.
45015         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
45016         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
45017         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
45018
45019 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
45020
45021         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
45022
45023         * string/Makefile (strop-tests): Add strcasecmp.
45024         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
45025         strcasecmp_l-nonascii.
45026         (gen-as-const-headers): Add locale-defines.sym.
45027         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
45028         * sysdeps/x86_64/strcasecmp.S: New file.
45029         * sysdeps/x86_64/strcasecmp_l.S: New file.
45030         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
45031         * sysdeps/x86_64/locale-defines.sym: New file.
45032         * string/test-strcasecmp.c: New file.
45033
45034         * string/test-strcasestr.c: Test both ends of the range of characters.
45035         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
45036
45037 2010-07-29  Roland McGrath  <roland@redhat.com>
45038
45039         [BZ #11856]
45040         * manual/locale.texi (Yes-or-No Questions): Fix example code.
45041
45042 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
45043
45044         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
45045         for ld.so.
45046
45047 2010-07-27  Andreas Schwab  <schwab@redhat.com>
45048
45049         * manual/memory.texi (Malloc Tunable Parameters): Document
45050         M_PERTURB.
45051
45052 2010-07-26  Roland McGrath  <roland@redhat.com>
45053
45054         [BZ #11840]
45055         * configure.in (-fgnu89-inline check): Set and substitute
45056         gnu89_inline, not libc_cv_gnu89_inline.
45057         * configure: Regenerated.
45058         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
45059
45060 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
45061
45062         * string/test-strnlen.c: New file.
45063         * string/Makefile (strop-tests): Add strnlen.
45064         * string/tester.c (test_strnlen): Add a few more test cases.
45065         * string/tst-strlen.c: Better error reporting.
45066
45067         * sysdeps/x86_64/strnlen.S: New file.
45068
45069 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
45070
45071         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
45072         lower-latency instructions.
45073
45074 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
45075
45076         * string/test-strcasestr.c: New file.
45077         * string/test-strstr.c: New file.
45078         * string/Makefile (strop-tests): Add strstr and strcasestr.
45079         * string/str-two-way.h: Don't undefine MAX.
45080         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
45081
45082 2010-07-21  Andreas Schwab  <schwab@redhat.com>
45083
45084         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
45085         strcasestr-nonascii.
45086         (CFLAGS-strcasestr-nonascii.c): Define.
45087         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
45088         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
45089         Remove unused attribute.
45090
45091 2010-07-20  Roland McGrath  <roland@redhat.com>
45092
45093         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
45094         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
45095         ld.so.cache was broken.  With it, there is no way to disable dsocaps
45096         like LD_HWCAP_MASK can disable hwcaps.
45097
45098 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
45099
45100         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
45101
45102 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
45103
45104         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
45105         call in strcasestr.
45106         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
45107         __strcasestr_sse42_nonascii.
45108         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
45109         strcasestr-nonascii.c.
45110         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
45111
45112 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
45113
45114         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
45115         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
45116         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
45117         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
45118
45119 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
45120
45121         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
45122         fcntl.
45123
45124 2010-07-06  Andreas Schwab  <schwab@redhat.com>
45125
45126         [BZ #11577]
45127         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
45128         dl_signal_cerror.
45129
45130 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
45131
45132         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
45133         _PC_PIPE_BUF using F_GETPIPE_SZ.
45134
45135 2010-07-05  Roland McGrath  <roland@redhat.com>
45136
45137         * manual/arith.texi (Rounding Functions): Fix rint description
45138         implicit in round description.
45139
45140 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
45141
45142         * elf/Makefile: Fix linking for a few tests to make recent linker
45143         happy.
45144
45145 2010-06-30  Andreas Schwab  <schwab@redhat.com>
45146
45147         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
45148         $(common-objpfx)libc_nonshared.a.
45149
45150 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
45151
45152         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
45153         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
45154         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
45155         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
45156         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
45157         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
45158         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
45159         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
45160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
45161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
45162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
45163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
45164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
45165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
45166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
45167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
45168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
45169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
45170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
45171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
45172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
45173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
45174         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
45175         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
45176         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
45177         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
45178         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
45179         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
45180         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
45181         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
45182         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
45183         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
45184         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
45185         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
45186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
45187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
45188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
45189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
45190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
45191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
45192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
45193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
45194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
45195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
45196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
45197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
45198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
45199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
45200
45201 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
45202
45203         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
45204         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
45205         * string/memmove.c (memmove): Renamed to ...
45206         (MEMMOVE): ...this.  Default to memmove.
45207         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
45208         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
45209         (END_CHK): Define.
45210         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45211         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
45212         mempcpy-ssse3-back memmove-ssse3-back.
45213         * sysdeps/x86_64/multiarch/bcopy.S: New file .
45214         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
45215         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
45216         * sysdeps/x86_64/multiarch/memcpy.S: New file.
45217         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
45218         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
45219         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
45220         * sysdeps/x86_64/multiarch/memmove.c: New file.
45221         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
45222         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
45223         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
45224         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
45225         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
45226         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
45227         Define.
45228         (index_Fast_Copy_Backward): Define.
45229         (HAS_ARCH_FEATURE): Define.
45230         (HAS_FAST_REP_STRING): Define.
45231         (HAS_FAST_COPY_BACKWARD): Define.
45232
45233 2010-06-21  Andreas Schwab  <schwab@redhat.com>
45234
45235         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
45236         Restore proper fallback handling.
45237
45238 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
45239
45240         [BZ #11701]
45241         * posix/group_member.c (__group_member): Correct checking loop.
45242
45243         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
45244         OOM in getpwuid_r correctly.  Return error number when the caller
45245         should return, otherwise -1.
45246         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
45247         call returning > 0 value.
45248         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
45249
45250 2010-06-07  Andreas Schwab  <schwab@redhat.com>
45251
45252         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
45253         libc_nonshared.a from targets in modules-names.
45254
45255 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
45256
45257         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
45258         requires it.
45259
45260 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
45261
45262         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
45263         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
45264         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
45265         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
45266
45267 2010-06-02  Andreas Schwab  <schwab@redhat.com>
45268
45269         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
45270
45271 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
45272
45273         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
45274         and F_GETPIPE_SZ.
45275         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
45276         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45277         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45278         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45279         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45280         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
45281
45282 2010-06-14  Roland McGrath  <roland@redhat.com>
45283
45284         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
45285
45286 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
45287
45288         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
45289         __REDIRECT followed by __THROW.
45290         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
45291         * posix/getopt.h (getopt): Likewise.
45292
45293 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
45294
45295         * hurd/lookup-at.c (__file_name_lookup_at): Accept
45296         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
45297         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
45298         in AT_FLAGS.
45299         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
45300         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
45301
45302 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
45303
45304         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
45305
45306 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
45307
45308         [BZ #11640]
45309         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45310         Properly check family and model.
45311
45312 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
45313
45314         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
45315
45316 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
45317
45318         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
45319
45320 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
45321
45322         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
45323         symbol reference.
45324
45325 2010-05-19  Andreas Schwab  <schwab@redhat.com>
45326
45327         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
45328         symbol reference.
45329
45330 2010-05-21  Andreas Schwab  <schwab@redhat.com>
45331
45332         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
45333         and internal_recvmmsg.
45334         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
45335         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
45336         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
45337         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
45338
45339         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
45340         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
45341         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
45342
45343 2010-05-20  Andreas Schwab  <schwab@redhat.com>
45344
45345         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
45346
45347 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
45348
45349         POWER7 optimizations.
45350         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
45351         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
45352
45353 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
45354
45355         * version.h: Update for 2.13 development version.
45356
45357 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
45358
45359         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
45360         exceptions.  Return 0.
45361
45362 2010-05-07  Roland McGrath  <roland@redhat.com>
45363
45364         * elf/ldconfig.c (main): Add a const.
45365
45366 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
45367
45368         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
45369         (args_options): Add no-idn option.
45370         (ahosts_keys_int): Add idn_flags to ai_flags.
45371         (parse_option): Handle 'i' option to clear idn_flags.
45372
45373         * malloc/malloc.c (_int_free): Possible race in the most recently
45374         added check.  Only act on the data if no current modification
45375         happened.
45376
45377 See ChangeLog.17 for earlier changes.