manual: fix typos in the memory chapter
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
2
3         * manual/memory.texi: Fix various typos & grammar errors.
4
5 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
6
7         [BZ #20255]
8         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
9         * math/libm-test.inc (fdim_test_data): Add another test.
10
11         [BZ #6796]
12         [BZ #20255]
13         [BZ #20256]
14         * math/s_fdim.c: Include <math_private.h>.
15         (__fdim): Use math_narrow_eval on result.
16         * math/s_fdimf.c: Include <math_private.h>.
17         (__fdimf): Use math_narrow_eval on result.
18         * sysdeps/i386/fpu/s_fdim.S: Remove file.
19         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
20         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
21         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
22         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
23         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
24         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
25         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
26         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
27         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
28         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
29         * math/libm-test.inc (fdim_test_data): Expect errno setting on
30         overflow.  Add sNaN tests.
31
32         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
33         fpclassify.
34         * math/s_fdimf.c (__fdimf): Likewise.
35         * math/s_fdiml.c (__fdiml): Likewise.
36
37 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
38
39         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
40         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
41         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
43         ifunc'ed strcasecmp/strncasecmp.
44         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
45         [EALIGN]: Removed.
46         [END]: Likewise.
47         [__strcasecmp]: Define instead of the above to control symbol name.
48         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
49         for __strcasecmp_power8.
50         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
51         for __strncasecmp_power8.
52         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
53         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
54         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
55         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
56         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
57         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
58
59 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
60
61         [BZ #20252]
62         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
63         arguments when second argument is a NaN.
64         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
65         qNaN tests.
66
67         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
68         (conj_test_data): Likewise.
69         (copysign_test_data): Likewise.
70         (creal_test_data): Likewise.
71         (fma_test_data): Likewise.
72         (fmod_test_data): Likewise.
73
74         [BZ #20250]
75         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
76         itself.
77         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
78         zero input to itself.
79         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
80         Likewise.
81         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
82         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
83         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
84         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
85         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
86
87 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
88
89         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
90         * nptl/tst-cancel4-common.c: New file.
91         * nptl/tst-cancel4-common.h: Likewise.
92         * nptl/tst-cancel4.c: Move common definitions to
93         tst-cancel4-common.{c,h} file.
94         * nptl/tst-cancel4_1.c: New test.
95         * nptl/tst-cancel4_2.c: New test.
96
97 2016-06-13  Florian Weimer  <fweimer@redhat.com>
98
99         [BZ #20248]
100         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
101         (write_message): New function.
102         (stackoverflow_handler): Call it instead of printf, to avoid
103         excessive stack usage by printf.
104         (do_test): Restore SIGSEGV, SIGBUS default handlers.
105
106 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
107
108         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
109         (prio_inherit_missing): Remove define.
110         * sysdeps/unix/sysv/linux/arm/kernel-features.h
111         (__ASSUME_FUTEX_LOCK_PI): Likewise.
112         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
113         Likewise.
114         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
115         (__ASSUME_FUTEX_LOCK_PI): Likewise.
116         * sysdeps/unix/sysv/linux/mips/kernel-features.h
117         (__ASSUME_FUTEX_LOCK_PI): Likewise.
118         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
119         (__ASSUME_FUTEX_LOCK_PI): Likewise.
120
121 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
122
123         [BZ #19670]
124         [BZ #19672]
125
126         * io/test-lfs.c (do_prepare): Use xmalloc.
127         * io/tst-fcntl.c (do_prepare): Likewise.
128         * libio/tst-fopenloc.c (do_bz17916): Likewise.
129         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
130         * login/tst-utmp.c (do_prepare): Likewise.
131         * posix/tst-exec.c (do_prepare): Likewise.
132         * posix/tst-pathconf.c (prepare): Likewise.
133         * posix/tst-spawn.c (do_prepare): Likewise.
134         * posix/tst-truncate.c (do_prepare): Likewise.
135         * rt/tst-aio.c (do_prepare): Likewise.
136         * rt/tst-aio64.c (do_prepare): Likewise.
137
138 2016-06-11  Florian Weimer  <fweimer@redhat.com>
139
140         [BZ #20237]
141         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
142         (get*ent): Set entidx to NULL during initialization.  If entidx is
143         NULL, start iteration from the beginning.
144
145 2016-06-11  Florian Weimer  <fweimer@redhat.com>
146
147         * malloc/malloc.c (musable): Return correct size for dumped fake
148         mmapped chunk.
149
150 2016-06-11  Florian Weimer  <fweimer@redhat.com>
151
152         [BZ #20222]
153         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
154         (_IO_cookie_write): Likewise.
155         (_IO_cookie_seek): Likewise.
156         (_IO_cookie_close): Likewise.
157         (_IO_old_cookie_seek): Likewise.
158         (set_callbacks): New function.
159         (_IO_cookie_init): Call set_callbacks to copy callbacks.
160
161 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
162
163         * locale/programs/localedef.c (oldstyle_tables): Remove.
164         * locale/programs/localedef.h (oldstyle_tables): Likewise.
165
166 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
167
168         [BZ #20240]
169         * math/Makefile (CFLAGS-s_modf.c): New variable.
170         (CFLAGS-s_modff.c): Likewise.
171         (CFLAGS-s_modfl.c): Likewise.
172         * math/libm-test.inc (modf_test_data): Add sNaN tests.
173
174 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
175
176         [BZ #20215]
177         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
178         [!__GNUC_PREREQ (3,2)]: Likewise.
179
180 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
181
182         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
183         (msghdr.msg_controllen): Likewise.
184         (cmsghdr.cmsg_len): Likewise.
185         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
186         ptw-oldsendmsg.
187         (CFLAGS-oldrecvmsg.c): Remove rule.
188         (CFLAGS-oldsendmsg.c): Likewise.
189         (CFLAGS-recvmsg.c): Add rule.
190         (CFLAGS-sendmsg.c): Likewise.
191         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
192         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
193         (CFLAGS-recvmsg.c): Remove rule.
194         (CFLAGS-sendmsg.c): Likewise.
195         (CFLAGS-oldrecvmsg.c): Likewise.
196         (CFLAGS-oldsendmsg.c): Likewise.
197         (CFLAGS-recvmmsg.c): Likewise.
198         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
199         to kernel defined interfaces.
200         (msghdr.msg_controllen): Likewise.
201         (cmsghdr.cmsg_len): Likewise.
202         (msghdr.__glibc_reserved1): Remove member.
203         (msghdr.__glibc_reserved2): Likewise.
204         (cmsghdr.__glibc_reserved1): Likewise.
205         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
206         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
207         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
208         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
209         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
210         version.
211         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
212         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
213         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
214         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
215         Remove recvmsg and sendmsg.
216         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
217         Likewise.
218         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
219         Likewise.
220         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
221         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
222         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
223         Likewise.
224         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
225         Likewise.
226         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
227         [libc] (GLIBC_2.24): Likewise.
228         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
229         Likewise.
230         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
231         Likewise.
232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
233         [libc] (GLIBC_2.24): Likewise.
234         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
235         Likewise.
236         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
237         Likewise.
238         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
239         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
240         Likewise.
241         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
242         Likewise.
243         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
244         Likewise.
245         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
246         Likewise.
247         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
248         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
249         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
250         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
251         version for {recv,send,recm,sendm}msg.
252         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
253         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
254         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
255         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
256         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
257         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
258         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
259         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
260         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
261         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
262         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
263         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
265         Likewise.
266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
267         Likewise.
268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
270         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
271         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
272         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
273         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
274         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
275         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
277         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
278         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
279         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
280         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
281
282 2016-06-10  Florian Weimer  <fweimer@redhat.com>
283
284         [BZ #19564]
285         Remove __malloc_initialize_hook from the API.
286         * malloc/malloc.h (__malloc_initialize_hook): Remove.
287         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
288         #pragma GCC poison.
289         * malloc/malloc-hooks.h: New file.
290         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
291         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
292         (old__malloc_initialize_hook): Rename from
293         __malloc_initialize_hook to evade poisoning.  Turn into compat
294         symbol.
295         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
296         __malloc_initialize_hook.
297         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
298         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
299         * manual/memory.texi (Hooks for Malloc): Remove
300         __malloc_initialize_hook.  Adjust hook example.
301
302 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
303
304         [BZ #20235]
305         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
306         itself.
307         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
308         * math/libm-test.inc (log2_test_data): Add sNaN tests.
309
310         [BZ #20234]
311         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
312         infinity or NaN input to itself.
313
314         [BZ #20233]
315         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
316         to itself.
317
318         [BZ #20232]
319         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
320         itself.
321
322 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
323
324         * sysdeps/x86_64/start.S (_start): Always indirect branch to
325         __libc_start_main via GOT.
326
327 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
328
329         * sysdeps/x86_64/memcopy.h: New file.
330         * sysdeps/x86_64/wordcopy.c: Likewise.
331
332 2016-06-09  Florian Weimer  <fweimer@redhat.com>
333
334         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
335         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
336         <cstdlib>.
337         (optimization_barrier): New.
338         (do_test): Use it.  Call quick_exit in the global namespace.
339         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
340         instead of <cstdlib>, <thread>.
341         (optimization_barrier): New.
342         (non_main_thread): Adjust declaration.  Call optimization_barrier.
343         Call quick_exit in the global namespace.
344         (do_test): Call optimization_barrier.  Use pthread_create,
345         pthread_join instead of std::thread.
346
347 2016-06-09  Andreas Schwab  <schwab@suse.de>
348
349         [BZ #19755]
350         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
351         new entries in auto-propagate mode.
352         * nscd/grpcache.c (cache_addgr): Likewise.
353
354 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
355
356         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
357         New functions.
358         (add_temp_file): Use them.
359
360 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
361
362         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
363
364 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
365
366         [BZ #20229]
367         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
368         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
369         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
370
371         [BZ #20228]
372         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
373         itself.
374         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
375         * math/libm-test.inc (log10_test_data): Add sNaN tests.
376
377         [BZ #20227]
378         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
379         itself.
380         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
381         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
382         * math/libm-test.inc (log_test_data): Add sNaN tests.
383
384         [BZ #20226]
385         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
386         itself.
387         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
388         * math/libm-test.inc (exp_test_data): Add sNaN tests.
389         (exp10_test_data): Likewise.
390         (expm1_test_data): Likewise.
391
392         [BZ #20225]
393         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
394         itself.
395         * math/s_ldexpf.c (__ldexpf): Likewise.
396         * math/s_ldexpl.c (__ldexpl): Likewise.
397         * math/w_scalbln.c (__w_scalbln): Likewise.
398         * math/w_scalblnf.c (__w_scalblnf): Likewise.
399         * math/w_scalblnl.c (__w_scalblnl): Likewise.
400         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
401         (scalbln_test_data): Likewise.
402
403         [BZ #20224]
404         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
405         argument to itself.
406         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
407
408 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
409
410         [BZ #19776]
411         * sysdeps/x86_64/memcpy.S: Make it dummy.
412         * sysdeps/x86_64/mempcpy.S: Likewise.
413         * sysdeps/x86_64/memmove.S: New file.
414         * sysdeps/x86_64/memmove_chk.S: Likewise.
415         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
416         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
417         * sysdeps/x86_64/memmove.c: Removed.
418         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
419         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
420         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
421         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
422         Likewise.
423         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
424         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
425         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
426         memcpy-sse2-unaligned, memmove-avx-unaligned,
427         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
428         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
429         (__libc_ifunc_impl_list): Replace
430         __memmove_chk_avx512_unaligned_2 with
431         __memmove_chk_avx512_unaligned.  Remove
432         __memmove_chk_avx_unaligned_2.  Replace
433         __memmove_chk_sse2_unaligned_2 with
434         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
435         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
436         with __memmove_avx512_unaligned.  Replace
437         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
438         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
439         with __memcpy_chk_avx512_unaligned.  Remove
440         __memcpy_chk_avx_unaligned_2.  Replace
441         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
442         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
443         Replace __memcpy_avx512_unaligned_2 with
444         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
445         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
446         with __mempcpy_chk_avx512_unaligned.  Remove
447         __mempcpy_chk_avx_unaligned_2.  Replace
448         __mempcpy_chk_sse2_unaligned_2 with
449         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
450         Replace __mempcpy_avx512_unaligned_2 with
451         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
452         Replace __mempcpy_sse2_unaligned_2 with
453         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
454         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
455         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
456         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
457         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
458         (ENTRY): Removed.
459         (END): Likewise.
460         (ENTRY_CHK): Likewise.
461         (libc_hidden_builtin_def): Likewise.
462         Don't include ../memcpy.S.
463         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
464         __memcpy_chk_avx512_unaligned_erms and
465         __memcpy_chk_avx512_unaligned.  Use
466         __memcpy_chk_avx_unaligned_erms and
467         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
468         Default to __memcpy_chk_sse2_unaligned.
469         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
470         Change function suffix from unaligned_2 to unaligned.
471         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
472         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
473         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
474         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
475         (ENTRY): Removed.
476         (END): Likewise.
477         (ENTRY_CHK): Likewise.
478         (libc_hidden_builtin_def): Likewise.
479         Don't include ../mempcpy.S.
480         (mempcpy): New.  Add a weak alias.
481         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
482         __mempcpy_chk_avx512_unaligned_erms and
483         __mempcpy_chk_avx512_unaligned.  Use
484         __mempcpy_chk_avx_unaligned_erms and
485         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
486         Default to __mempcpy_chk_sse2_unaligned.
487
488 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
489
490         [BZ #19881]
491         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
492         into ...
493         * sysdeps/x86_64/memset.S: This.
494         (__bzero): Removed.
495         (__memset_tail): Likewise.
496         (__memset_chk): Likewise.
497         (memset): Likewise.
498         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
499         defined.
500         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
501         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
502         (__memset_zero_constant_len_parameter): Check SHARED instead of
503         PIC.
504         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
505         memset-avx2 and memset-sse2-unaligned-erms.
506         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
507         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
508         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
509         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
510         (__bzero): Enabled.
511         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
512         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
513         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
514         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
515         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
516         (memset): Removed.
517         (__memset_chk): Likewise.
518         (MEMSET_SYMBOL): New.
519         (libc_hidden_builtin_def): Replace __memset_sse2 with
520         __memset_sse2_unaligned.
521         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
522         __memset_chk_sse2 and __memset_chk_avx2 with
523         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
524         Use __memset_chk_sse2_unaligned_erms or
525         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
526         __memset_chk_avx512_unaligned_erms and
527         __memset_chk_avx512_unaligned.
528
529 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
530
531         * math/gen-auto-libm-test.c (fp_format_desc): remove
532         suffix member.
533         (output_generic_value): Remove usage of suffix member,
534         and the resulting unuse of the fp_format argument.
535         (output_for_one_input_case): Remove unused fp_format
536         parameter.
537
538         * math/auto-libm-test-out: Regenerate.
539
540         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
541         usage with TEST_COND_ibm128.
542         (TEST_COND_flt_32): Remove.
543         (TEST_COND_dbl_64): Remove.
544         (TEST_COND_ldbl_96_intel): Remove.
545         (TEST_COND_ldbl_96_m68k): Remove.
546         (TEST_COND_ldbl_128): Remove.
547
548 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
549
550         * auto-libm-test-in:
551         Replace flt-32 usage with binary32.
552         Replace dbl-64 usage with binary64.
553         Replace ldbl-intel-96 usage with intel96.
554         Replace ldbl-m68k-96 usage with m68k96.
555         Replace ldbl-128ibm usage with ibm128.
556         Replace ldbl-128 usage with binary128.
557
558         * auto-libm-test-out: Regenerate.
559
560 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
561
562         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
563         (parse_ulps): Dynamically generate type name matching
564         string from all_floats.
565         (get_ulps): Generate the ulps as an array instead.
566         (output_ulps): Dynamically compose the type based
567         on the number of supported formats, and print
568         the indices as type specific helper macros.
569
570         * math/libm-test.inc: Remove comment about CHOOSE.
571         (ulp_data): Generate the type in libm-test-ulps.h.
572         (ULP_IDX): New macro.
573         (find_ulps): Update usage of max_ulp.
574
575         * math/test-double-vlen2.h (CHOOSE): Remove.
576         * math/test-double-vlen4.h (CHOOSE): Likewise.
577         * math/test-double-vlen8.h (CHOOSE): Likewise.
578         * math/test-float.c (CHOOSE): Likewise.
579         * math/test-float-finite.c (CHOOSE): Likewise.
580         * math/test-double.c (CHOOSE): Likewise.
581         * math/test-double-finite.c (CHOOSE): Likewise.
582         * math/test-idouble.c (CHOOSE): Likewise.
583         * math/test-ifloat.c (CHOOSE): Likewise.
584         * math/test-ildoubl.c (CHOOSE): Likewise.
585         * math/test-ldouble-finite.c (CHOOSE): Likewise.
586         * math/test-ldouble.c (CHOOSE): Likewise.
587
588         * math/test-float.h (TEST_FLOAT): Remove.
589         * math/test-double.h (TEST_DOUBLE): Likewise.
590         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
591
592 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
593
594         * math/gen-libm-test.pl: (apply_lit): New subroutine.
595         (parse_args): Strip C suffix from floating point literals
596         typed with 'f' and wrap them with LIT().
597
598         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
599         (test_ff_f_data_nexttoward): Rename to
600         (test_fj_f_data): New struct.
601         (nexttoward_test_data): Relabel tests as
602         TEST_fj_f instead of TEST_ff_f.
603
604 2016-06-08  Florian Weimer  <fweimer@redhat.com>
605
606         Emacs bug 23726.
607         * malloc/malloc.c (dumped_main_arena_start): Update comment.
608         (__libc_realloc): Correct size computation for dumped fake mmapped
609         chunks.
610
611 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
612
613         [BZ #20219]
614         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
615         to itself.
616         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
617
618         [BZ #20218]
619         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
620         to itself.
621         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
622
623 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
624
625         [BZ #20195]
626         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
627         check to ...
628         (init_cpu_features): Here.
629
630 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
631
632         [BZ #20214]
633         * sysdeps/unix/sysv/linux/bits/in.h
634         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
635          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
636         Define to 1.
637         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
638          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
639         Define to 0.
640         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
641         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
642
643 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
644
645         [BZ #20198]
646         * stdlib/Makefile (tests): Add tst-quick_exit, and
647         tst-thread-quick_exit.
648         [ifeq ($(have-cxx-thread_local),yes)]
649         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
650         (CFLAGS-tst-thread-quick_exit.o): Likewise.
651         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
652         (LDLIBS-tst-thread-quick_exit): Likewise.
653         [ifneq ($(have-cxx-thread_local),yes)]
654         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
655         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
656         If run_dtors is true call __call_tls_dtors.
657         (exit): Call __run_exit_handlers with run_dtors set to true.
658         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
659         definition.
660         * stdlib/quick_exit.c (quick_exit): Remove function.
661         (__new_quick_exit): New function.
662         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
663         function.
664         * stdlib/tst-quick_exit.cc: New file.
665         * stdlib/tst-thread-quick_exit.cc: New file.
666         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
667         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
668         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
669         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
670         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
671         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
672         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
673         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
674         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
675         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
676         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
677         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
678         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
679         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
680         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
681         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
686         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
687         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
688         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
689         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
690         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
691         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
693         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
694         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
695         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
696
697 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
698
699         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
700         a typo in comments.
701
702 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
703
704         [BZ #20213]
705         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
706         argument to itself.
707         * math/libm-test.inc (asin_test_data): Add sNaN tests.
708
709 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
710
711         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
712         required flags.
713         (CFLAGS-pwritev64.c): Likewise.
714         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
715         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
716         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
717         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
718         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
719         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
720         syscall from auto-generation.
721         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
722         [WORDSIZE == 64] (pwritev64): Remove macro.
723         [!PWRITEV] (PWRITEV): Likewise.
724         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
725         [!PWRITEV] (PWRITE): Likewise.
726         [!PWRITEV] (OFF_T): Likewise.
727         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
728         (LO_HI_LONG): Remove macro.
729         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
730         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
731         (PWRITEV): Remove macro.
732         (PWRITEV_REPLACEMENTE): Likewise.
733         (PWRITE): Likewise.
734         (OFF_T): Likewise.
735         (pwritev64): New function.
736         * nptl/tst-cancel4.c (tf_writev): Add test.
737
738         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
739         required flags.
740         (CFLAGS-preadv64.c): Likewise.
741         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
742         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
743         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
744         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
745         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
746         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
747         syscall from auto-generation.
748         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
749         [WORDSIZE == 64] (preadv64): Remove macro.
750         [!PREADV] (PREADV): Likewise.
751         [!PREADV] (PREADV_REPLACEMENT): Likewise.
752         [!PREADV] (PREAD): Likewise.
753         [!PREADV] (OFF_T): Likewise.
754         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
755         (LO_HI_LONG): Remove macro.
756         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
757         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
758         (PREADV): Remove macro.
759         (PREADV_REPLACEMENTE): Likewise.
760         (PREAD): Likewise.
761         (OFF_T): Likewise.
762         (preadv64): New function.
763         * nptl/tst-cancel4.c (tf_preadv): Add test.
764
765 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
766
767         [BZ #20212]
768         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
769         argument to itself.
770         * math/libm-test.inc (acos_test_data): Add sNaN tests.
771
772 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
773
774         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
775         New symbol defined as libc_hidden_def.
776         (strcasestr): Became a weak alias to __strcasestr.
777         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
778         according to multi-arch support.  Move __stpncpy hidden
779         definition from here to...
780         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
781         symbol stpncpy.
782         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
783         libc_hidden_builtin_def.
784         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
785         memset symbol to use when multi-arch support is available.
786
787 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
788
789         * dlfcn/tst-rec-dlopen.c: Include string.h.
790
791 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
792
793         * manual/install.texi: Remove mention of --without-tls
794         * INSTALL: Regenerate.
795
796 2016-06-05  Florian Weimer  <fweimer@redhat.com>
797
798         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
799         Remove.
800         (call_function, interposed_malloc_called): New variables.
801         (malloc): New function.
802         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
803         and clear call_function as needed.
804
805 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
806
807         * include/wchar.h (__wmemset): Use __typeof.
808
809 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
810
811         * include/wchar.h (__wmemset): Declare function without typeof.
812
813 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
814
815         [BZ #20205]
816         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
817         exponent when incrementing negative subnormal with low mantissa
818         word zero.
819         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
820         Add another test.
821
822 2016-06-03  Florian Weimer  <fweimer@redhat.com>
823
824         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
825         __wmemset instead of wmemset.
826
827 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
828
829         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
830         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
831         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
832         __USE_KERNEL_IPV6_DEFS to 0.
833         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
834         Update comment.
835
836 2016-06-01  Florian Weimer  <fweimer@redhat.com>
837
838         [BZ #19861]
839         Do not use IFUNC resolver with potentially unrelocated symbol.
840         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
841         (DEFINE_FORK): Remove macro and inline definition.
842         (fork_alias): Renamed from fork_ifunc.
843         (__fork_alias): Renamed from __fork_ifunc.
844
845 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
846
847         [BZ 19653]
848         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
849         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
850
851 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
852
853         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
854         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
855         i386-linux-gnu).
856         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
857         Set to no.
858         * sysdeps/mach/hurd/configure: Refresh.
859
860 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
861
862         [BZ #20178]
863         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
864         on failure instead of exit.
865
866 2016-05-30  Roland McGrath  <roland@hack.frob.com>
867
868         [BZ #3629]
869         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
870         of POSIX.1-2008.
871
872 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
873
874         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
875           Use PLT entry for calling _hurd_self_sigstate.
876
877 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
878
879         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
880         available logical processors with SMT level type sharing L2
881         cache for Intel processors.
882
883 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
884
885         [BZ #20160]
886         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
887         argument to itself before returning the result.
888         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
889         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
890         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
891         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
892         Likewise.
893         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
894         Likewise.
895         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
896         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
897         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
898         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
899         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
900         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
901
902         [BZ #20160]
903         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
904         argument to itself before returning the result.
905         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
906         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
907         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
908         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
909         Likewise.
910         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
911         Likewise.
912         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
913         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
914         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
915         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
916         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
917         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
918
919 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
920
921         * libm-test.inc: Replace usage of M_El with
922         (lit_e): New macro.
923
924 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
925
926         * libm-test.inc: Replace usage of M_PI_4l with
927         (lit_pi_4_d): New macro.
928
929 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
930
931         * libm-test.inc: Replace usage of M_PIl with
932         (lit_pi): New macro.
933
934 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
935
936         * libm-test.inc: Replace usage of M_PI2l with
937         (lit_pi_2_d): New macro.
938
939         * math/test-double.h (LITM): New macro.
940         * math/test-float.h (LITM): Likewise.
941         * math/test-ldouble.h (LITM): Likewise.
942
943 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
944
945         * libm-test.inc (M_PI_34l): Rename to
946         (lit_pi_3_m_4_d): New Macro.
947         (M_PI_34_LOG10El): Rename to
948         (lit_pi_3_m_4_ln10_m_d): New Macro.
949         (M_PI2_LOG10El): Rename to
950         (lit_pi_2_ln10_m_d):  New Macro.
951         (M_PI4_LOG10El): Rename to
952         (lit_pi_4_ln10_m_d):  New Macro.
953         (M_PI_LOG10El): Rename to
954         (lit_pi_ln10_d):  New Macro.
955
956 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
957
958         [BZ #20157]
959         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
960         determine whether to negate low half if [_ARCH_PPCGR], and integer
961         comparison otherwise.
962         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
963         determine whether to negate low half.
964
965         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
966         (NO_TEST_INLINE_DOUBLE): Likewise.
967         (TEST_COND_x86_64): Likewise.
968         (TEST_COND_x86): Likewise.
969         (M_PI_6l): Likewise.
970
971 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
972
973         * math/libm-test.inc:
974         (TEST_FLOAT): Change usage to TEST_COND_binary32.
975         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
976         (TEST_LDOUBLE): Update usage to evaluate as true if
977         the guarded tests match the property being tested.
978         (LDBL_MAX_EXP): Change to MAX_EXP.
979         (LDBL_MIN_EXP): Change to MIN_EXP.
980         (LDBL_MANT_DIG): Change to MANT_DIG, except for
981         nexttoward tests.
982
983 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
984
985         * math/libm-test.inc:
986         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
987         (TYPE_MIN): Likewise.
988         (TYPE_TRUE_MIN): Likewise.
989         (TYPE_MAX): Likewise.
990         (MIN_EXP): Likewise.
991         (MAX_EXP): Likewise.
992         (MANT_DIG): Likewise.
993
994         (FSTR_MAX): New macro.
995         (__CONCATX): Likewise.
996         (QTYPE_STR): Likewise.
997         (TEST_COND_binary32): Likewise.
998         (TEST_COND_binary64): Likewise.
999         (TEST_COND_binary128): Likewise.
1000         (TEST_COND_ibm128): Likewise.
1001         (TEST_COND_intel96): Likewise.
1002         (TEST_COND_m68k96): Likewise.
1003
1004         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1005         (TEST_COND_dbl_64): Likewise.
1006         (TEST_COND_ldbl_96_intel): Likewise.
1007         (TEST_COND_ldbl_96_m68k): Likewise.
1008         (TEST_COND_ldbl_128): Likewise.
1009         (TEST_COND_ldbl_128ibm): Likewise.
1010
1011         (plus_zero): Redefine using LIT macro.
1012         (minus_zero): Likewise.
1013         (plus_infty): Redefine as (INF).
1014         (minux_infty): Redefine as (-INF).
1015         (max_value): Redefine as TYPE_MAX.
1016         (min_value): Redefine as TYPE_MIN.
1017         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1018
1019         (print_float): Refactor to use snprintf to convert FLOAT values
1020         to string. This brings it closer to dropin replacement of strtof
1021         for the TS 18661 defined types.
1022         (update_stats): Likewise.
1023         (print_complex_function_ulps): Likewise.
1024         (print_max_error): Likewise.
1025         (print_complex_max_error): Likewise.
1026         (check_float_internal): Likewise.
1027
1028         * math/test-float.h (PREFIX): New macro.
1029         (LIT): Likewise.
1030         (TYPE_STR): Likewise.
1031         (FTOSTR): Likewise.
1032
1033         * math/test-double.h (PREFIX): New macro.
1034         (LIT): Likewise.
1035         (TYPE_STR): Likewise.
1036         (FTOSTR): Likewise.
1037
1038         * math/test-ldouble.h (PREFIX): New macro.
1039         (LIT): Likewise.
1040         (TYPE_STR): Likewise.
1041         (FTOSTR): Likewise.
1042
1043 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1044
1045         [BZ #20156]
1046         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1047         to itself when zero or not finite.
1048         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1049         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1050         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1051         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1052
1053 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1054
1055         [BZ #20153]
1056         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1057         x * x + x for infinities and NaNs.
1058
1059         [BZ #20151]
1060         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1061         argument to itself before returning result.
1062         (__ieee754_y0l): Likewise.
1063         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1064         (__ieee754_y1l).
1065
1066         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1067         (atan_test_data): Likewise.
1068         (ceil_test_data): Likewise.
1069         (cos_test_data): Likewise.
1070         (cosh_test_data): Likewise.
1071         (erf_test_data): Likewise.
1072         (exp2_test_data): Likewise.
1073         (fabs_test_data): Likewise.
1074         (floor_test_data): Likewise.
1075         (ilogb_test_data): Likewise.
1076         (j0_test_data): Likewise.
1077         (j1_test_data): Likewise.
1078         (jn_test_data): Likewise.
1079         (lgamma_test_data): Likewise.
1080         (lrint_test_data): Likewise.
1081         (llrint_test_data): Likewise.
1082         (logb_test_data): Likewise.
1083         (lround_test_data): Likewise.
1084         (llround_test_data): Likewise.
1085         (nearbyint_test_data): Likewise.
1086         (rint_test_data): Likewise.
1087         (round_test_data): Likewise.
1088         (sin_test_data): Likewise.
1089         (sincos_test_data): Likewise.
1090         (sinh_test_data): Likewise.
1091         (sqrt_test_data): Likewise.
1092         (tan_test_data): Likewise.
1093         (tanh_test_data): Likewise.
1094         (tgamma_test_data): Likewise.
1095         (trunc_test_data): Likewise.
1096         (y0_test_data): Likewise.
1097         (y1_test_data): Likewise.
1098         (yn_test_data): Likewise.
1099
1100         * math/libm-test.inc: Update comment about NaN testing.
1101         (TEST_SNAN): New macro.
1102         (snan_value): Likewise.
1103         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1104         (fpclassify_test_data): Add sNaN tests.
1105         (isfinite_test_data): Likewise.
1106         (isinf_test_data): Likewise.
1107         (isnan_test_data): Likewise.
1108         (isnormal_test_data): Likewise.
1109         (issignaling_test_data): Likewise.
1110         (signbit_test_data): Likewise.
1111         * math/gen-libm-test.pl (%beautify): Add snan_value.
1112         (show_exceptions): Add argument $test_snan.
1113         (parse_args): Handle snan_value as non-finite.  Update call to
1114         show_exceptions.
1115         * math/Makefile (libm-test-no-inline-cflags): Add
1116         -fsignaling-nans.
1117
1118 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1119
1120         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1121         (CFLAGS-oldsendmsg.c): Add rule.
1122         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1123         Correct recvmsg symbol name.
1124         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1125         Likewise.
1126
1127 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1128
1129         * sysdeps/unix/sysv/linux/Makefile
1130         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1131         oldsendmmsg.
1132         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1133         sendmmsg.
1134         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1135         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1136         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1137         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1139         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1140         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1141         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1142         Likewise.
1143         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1144         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1145         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1146         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1147         iovlen and controllen fields to adjust to POSIX specification.
1148         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1149
1150         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1151         and change to correct expected type.
1152         (msghdr.msg_controllen): Likewise.
1153         (cmsghdr.cmsg_len): Likewise.
1154         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1155         expected POSIX assumption about the size.
1156         (msghdr.msg_controllen): Likewise.
1157         (msghdr.__glibc_reserved1): Likewise.
1158         (msghdr.__glibc_reserved2): Likewise.
1159         (cmsghdr.cmsg_len): Likewise.
1160         (cmsghdr.__glibc_reserved1): Likewise.
1161         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1162         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1163         (CFLAGS-sendmsg.c): Remove rule.
1164         (CFLAGS-recvmsg.c): Likewise.
1165         (CFLAGS-oldsendmsg.c): Add rule.
1166         (CFLAGS-oldrecvmsg.c): Likewise.
1167         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1168         recvmsg and sendmsg.
1169         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1170         Likewise.
1171         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1172         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1173         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1174         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1175         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1176         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1177         Likewise.
1178         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1179         Likewise.
1180         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1181         Likewise.
1182         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1183         Likewise.
1184         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1185         Likewise.
1186         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1187         Likewise.
1188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1189         (GLIBC_2.24): Likewise.
1190         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1191         Likewise.
1192         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1193         Likewise.
1194         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1195         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1196         Likewise.
1197         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1198         Likewise.
1199         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1200         Likewise.
1201         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1202         (GLIBC_2.24): Likewise.
1203         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1204         Likewise.
1205         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1206         Likewise.
1207         * sysdeps/unix/sysv/linux/Makefile
1208         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1209         (CFLAGS-sendmsg.c): Add rule.
1210         (CFLAGS-recvmsg.c): Likewise.
1211         (CFLAGS-oldsendmsg.c): Likewise.
1212         (CFLAGS-oldrecvmsg.c): Likewise.
1213         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1214         initialization.
1215         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1216         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1217         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1218         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1219         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1220         iovlen and controllen fields to adjust to POSIX specification.
1221         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1222         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1223         added recvmsg and sendmsg.
1224         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1225         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1226         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1227         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1228         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1229         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1230         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1231         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1232         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1233         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1234         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1235         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1237         Likewise.
1238         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1240         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1241         Likewise.
1242         Likewise.
1243         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1244         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1245         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1246         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1247         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1248         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1249         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1250         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1251         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1252         Likewise.
1253         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1254         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1255
1256         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1257         from auto-generation.
1258         (sendmsg): Likewise.
1259         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1260         (sendmsg): Likewise.
1261         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1262         (sendmsg): Likewise.
1263         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1264         (sendmsg): Likewise.
1265         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1266         (sendmsg): Likewise.
1267         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1268         (sendmsg): Likewise.
1269         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1270         Likewise.
1271         (sendmsg): Likewise.
1272         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1273         (sendmsg): Likewise.
1274         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1275         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1276         Remove.
1277         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1278         Likewise.
1279         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1280         Undefine.
1281         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1282         Likewise.
1283         * sysdeps/unix/sysv/linux/kernel-features.h
1284         (__ASSUME_SENDMSG_SYSCALL): Define.
1285         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1286         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1287         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1288         Remove.
1289         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1290         Likewise.
1291         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1292         Undefine.
1293         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1294         Likewise.
1295         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1296         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1297         Remove.
1298         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1299         Likewise.
1300         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1301         Undefine.
1302         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1303         Likewise.
1304         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1305         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1306         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1307         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1308         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1309         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1310         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1311         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1312         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1313
1314 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1315
1316         * stdlib/gen-tst-strtod-round.c: Add backslash to
1317         compile command in comment.
1318         (printfp): Remove the literal suffix, and define an infinite
1319         value as INF to avoid expansion clash with INFINITY.
1320         (round_str): Remove the literal suffix.
1321         (round_for_all): Likewise, remove the now duplicate ldbl-64
1322         entry, and remove some magic constants.
1323
1324         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1325         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1326         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1327         (_CONCAT): New macro.
1328         (CONCAT): Likewise.
1329         (CHOOSE_ld): Likewise.
1330         (CHOOSE_f): Likewise.
1331         (CHOOSE_d): Likewise.
1332         (FTYPE_MEMBER): Likewise.
1333         (BOOL_MEMBER): Likewise.
1334         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1335         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1336         (_XNTRY): Likewise.
1337         (XNTRY): Likewise.
1338         (_ENTRY): Likewise.
1339         (ENTRY): Likewise.
1340         (test_exactness): Generate members via macro.
1341         (test_results): Likewise.
1342         (test): Update members.
1343         (TEST): Redefine using new macros.
1344         (INF): New macro.
1345         (fetestmodes): New structure.
1346         (do_test): Refactor to be type generic.
1347         (test_in_one_mode): Refactor duplicate code into
1348         (GEN_ONE_TEST): New macro.
1349
1350         * stdlib/tst-strtod-round-data.h: Regenerate.
1351
1352         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1353         Extend to pass additional arbitrary parameters to
1354         generators.
1355
1356 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1357
1358         [BZ #15479]
1359         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1360         floating-point state after first floating-point operation on
1361         input.  Restore full floating-point state instead of just rounding
1362         mode.
1363         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1364         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1365         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1366         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1367         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1368
1369         [BZ #15479]
1370         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1371         floating-point state after first floating-point operation on
1372         input.  Restore full floating-point state instead of just rounding
1373         mode.
1374         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1375         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1376         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1377         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1378         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1379
1380 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1381
1382         [BZ #19727]
1383         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1384         valid high surrogate.
1385         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1386         of an utf16 surrogate.
1387         * iconv/gconv_simple.c (BODY): Likewise.
1388         * iconvdata/bug-iconv12.c: New file.
1389         * iconvdata/Makefile (tests): Add bug-iconv12.
1390
1391 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1392
1393         [BZ #19726]
1394         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1395         outptrp in case of an illegal input.
1396         * iconv/tst-iconv6.c: New file.
1397         * iconv/Makefile (tests): Add tst-iconv6.
1398
1399 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1400
1401         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1402         an error in case of a value in range of an utf16 low surrogate.
1403
1404 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1405
1406         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1407         an error in case of a value in range of an utf16 low surrogate.
1408
1409 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1410
1411         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1412         Move to ...
1413         * sysdeps/s390/Makefile: ... here.
1414         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1415         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1416         (BRANCH_ON_COUNT): New define.
1417         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1418         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1419         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1420         run on s390-32, too.
1421         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1422         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1423         run on s390-32, too.
1424         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1425         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1426         run on s390-32, too.
1427
1428 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1429
1430         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1431         etf3eh or new vector loop-variant.
1432
1433 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1434
1435         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1436         etf3eh or new vector loop-variant.
1437
1438 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1439
1440         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1441         or new vector loop-variant.
1442
1443 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1444
1445         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1446         Rename to TR_LOOP and usage of tr instead of troo instruction.
1447
1448 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1449
1450         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1451         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1452
1453 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1454
1455         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1456         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1457         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1458         New override define.
1459         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1460
1461 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1462
1463         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1464         * sysdeps/s390/configure.ac: Add test for S390 vector register
1465         support in gcc.
1466         * sysdeps/s390/configure: Regenerated.
1467
1468 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1469
1470         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1471         Install file from $(objpfx)gconv-modules.
1472         ($(objpfx)gconv-modules): Concatenate architecture specific file
1473         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1474         * sysdeps/s390/gconv-modules: New file.
1475         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1476         Deleted.
1477         ($(objpfx)gconv-modules-s390): Deleted.
1478         (sysdeps-gconv-modules): New variable.
1479
1480 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1481
1482         [BZ #15479]
1483         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1484         of immediate operand to rounding instruction.
1485         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1486         Likewise.
1487         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1488         Likewise.
1489         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1490         Likewise.
1491
1492 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1493
1494         * math/libm-test.inc (MIN_EXP): Directly define as
1495         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1496
1497 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1498
1499         * math/libm-test.inc (MANT_DIG): Directly define as
1500         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1501
1502 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1503
1504         * stdlib/gen-tst-strtod-round.c (main):
1505           Change usage to more closely match the generated
1506           output.  Add usage and compilation instructions.
1507           (string_to_fp): Add and use FILE* parameter as
1508           output target.
1509           (print_fp): Likewise.
1510           (round_str): Likewise.
1511           (round_for_all): Likewise.
1512         * stdlib/tst-strtod-round.c (tests): Move into
1513         * stdlib/tst-strtod-round-data.h: New file.
1514
1515 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1516
1517         [BZ #15479]
1518         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1519         (__round): Do not force "inexact" exception.
1520         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1521         variable.
1522         (__round): Do not force "inexact" exception.
1523         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1524         (__roundf): Do not force "inexact" exception.
1525         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1526         (__roundl): Do not force "inexact" exception.
1527         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1528         (__roundl): Do not force "inexact" exception.
1529         * math/libm-test.inc (round_test_data): Do not allow spurious
1530         "inexact" exceptions.
1531
1532         [BZ #15479]
1533         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1534         exception in comment.
1535         (huge): Remove variable.
1536         (__floor): Do not force "inexact" exception.
1537         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1538         "inexact" exception in comment.
1539         (huge): Remove variable.
1540         (__floor): Do not force "inexact" exception.
1541         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1542         exception in comment.
1543         (huge): Remove variable.
1544         (__floorf): Do not force "inexact" exception.
1545         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1546         exception in comment.
1547         (huge): Remove variable.
1548         (__floorl): Do not force "inexact" exception.
1549
1550         [BZ #15479]
1551         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
1552         exception in comment.
1553         (huge): Remove variable.
1554         (__ceil): Do not force "inexact" exception.
1555         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
1556         "inexact" exception in comment.
1557         (huge): Remove variable.
1558         (__ceil): Do not force "inexact" exception.
1559         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
1560         (__ceilf): Do not force "inexact" exception.
1561         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
1562         exception in comment.
1563         (huge): Remove variable.
1564         (__ceill): Do not force "inexact" exception.
1565
1566 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1567
1568         * config.h.in (BIND_NOW): New.
1569         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
1570         * configure: Regenerated.
1571         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
1572         indirect branch via the GOT slot.
1573
1574 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1575
1576         [BZ #19765]
1577         * sysdeps/s390/mempcpy.S: New File.
1578         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
1579         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
1580         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1581         Add mempcpy variants.
1582         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
1583         (memcpy): Adjust to be usable from mempcpy entry point.
1584         (__memcpy_mvcle): Likewise.
1585         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1586         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
1587         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
1588         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
1589         (__memcpy_z10): Likewise.
1590         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1591
1592 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1593
1594         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
1595         Remove __GI_ symbol.
1596         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
1597         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
1598         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
1599         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1600         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
1601         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
1602
1603 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1604
1605         * sysdeps/s390/s390-64/memcpy.S (memcpy):
1606         Use cghi instead of chi to compare 64bit value.
1607
1608 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1609
1610         * sysdeps/s390/s390-32/memcpy.S (memcpy):
1611         Jump to 1MB check before executing mvc-loop.
1612
1613 2016-05-24  Florian Weimer  <fweimer@redhat.com>
1614
1615         [BZ #6527]
1616         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
1617         unconditionally.
1618         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
1619
1620 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1621
1622         * stdlib/tst-strtod6.c (do_test): Use new type generic
1623         invocation of the test function.
1624         (test): Refactor into ...
1625         (TEST_STRTOD): New macro base function.
1626
1627 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1628
1629         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
1630         (TEST_STRTOD): New macro.
1631         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
1632
1633 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1634
1635         * stdlib/tst-strtod6.c (do_test): Use new type generic
1636         invocation of the test function.
1637         (test): Refactor into ...
1638         (TEST_STRTOD): New macro base function.
1639
1640 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1641
1642         CVE-2016-4429
1643         [BZ #20112]
1644         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
1645         payload.
1646
1647 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1648
1649         [BZ #20111]
1650         * bits/sockaddr.h (_SS_SIZE): Define.
1651         * bits/socket.h (_SS_SIZE): Remove.
1652         (_SS_PADSIZE): Adjust to account for all padding.
1653         (struct sockaddr_storage): Update comment.  Avoid implicit
1654         padding.
1655         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
1656         (_SS_PADSIZE): Adjust to account for all padding.
1657         (struct sockaddr_storage): Update comment.  Avoid implicit
1658         padding.
1659         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
1660         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
1661         (_SS_PADSIZE): Adjust to account for all padding.
1662         (struct sockaddr_storage): Update comment.  Avoid implicit
1663         padding.
1664         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
1665         __SS_SIZE is 126 in this version.
1666         * inet/tst-sockaddr.c: New file.
1667         * inet/Makefile (tests): Add tst-sockaddr.c
1668         (tst-sockaddr.c): Compile with non-strict aliasing.
1669
1670 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
1671
1672         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
1673         [XPG3 || XPG4].
1674         (NL_ARGMAX): Also expect for [XPG3].
1675         (NL_LANGMAX): Likewise.
1676         (NL_MSGMAX): Likewise.
1677         (NL_NMAX): Likewise.
1678         (NL_SETMAX): Likewise.
1679         (NL_TEXTMAX): Likewise.
1680         (NZERO): Likewise.
1681         (TMP_MAX): Likewise.
1682         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
1683         variable.
1684
1685         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
1686         (PF_MAX): Update value.
1687         (AF_KCM): New macro.
1688         (SOL_NETBEUI): Likewise.
1689         (SOL_LLC): Likewise.
1690         (SOL_DCCP): Likewise.
1691         (SOL_NETLINK): Likewise.
1692         (SOL_TIPC): Likewise.
1693         (SOL_RXRPC): Likewise.
1694         (SOL_PPPOL2TP): Likewise.
1695         (SOL_BLUETOOTH): Likewise.
1696         (SOL_PNPIPE): Likewise.
1697         (SOL_RDS): Likewise.
1698         (SOL_IUCV): Likewise.
1699         (SOL_CAIF): Likewise.
1700         (SOL_ALG): Likewise.
1701         (SOL_NFC): Likewise.
1702         (SOL_KCM): Likewise.
1703         (MSG_BATCH): New enum value and macro.
1704
1705 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1706
1707         [BZ #18185]
1708         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
1709         sharing L2 cache to 2 for Knights Landing.
1710
1711 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
1712
1713         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
1714         (FTW_DP): Do not expect for [XPG3 || XPG4].
1715         (FTW_SL): Do not expect for [XPG3].
1716         (FTW_SLN): Likewise.
1717         (FTW_PHYS): Likewise.
1718         (FTW_MOUNT): Likewise.
1719         (FTW_DEPTH): Likewise.
1720         (FTW_CHDIR): Likewise.
1721         (nftw): Likewise.
1722         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
1723         variable.
1724
1725 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1726
1727         * manual/errno.texi: Fix various typos & grammar errors.
1728
1729 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1730
1731         * manual/intro.texi: Fix duplicated typo.
1732
1733 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1734
1735         [BZ #13304]
1736         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
1737         <float.h>, <math_private.h> and <stdlib.h>.
1738         (add_split): New function.
1739         (mul_split): Likewise.
1740         (ext_val): New typedef.
1741         (store_ext_val): New function.
1742         (mul_ext_val): New function.
1743         (compare): New function.
1744         (add_split_ext): New function.
1745         (__fmal): After checking for Inf, NaN and zero, compute result as
1746         an exact sum of scaled double values in round-to-nearest before
1747         adding those up and adjusting for other rounding modes.
1748         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
1749         tests of fma.
1750         * math/auto-libm-test-out: Regenerated.
1751
1752 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1753
1754         [BZ #20119]
1755         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
1756         processor level type mask for CPUID with EAX == 11.
1757
1758 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1759
1760         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
1761         logical threads if the HTT bit is 0.
1762         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
1763         (index_cpu_HTT): Likewise.
1764         (reg_HTT): Likewise.
1765
1766 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1767
1768         [BZ #20115]
1769         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
1770         Remove alignments on jump targets.
1771
1772 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1773
1774         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
1775         (getpwent): Likewise.
1776         (setpwent): Likewise.
1777         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
1778         variable.
1779
1780         * conform/data/search.h-data (insque): Do not expect for [XPG3].
1781         (remque): Likewise.
1782         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
1783         variable.
1784
1785 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1786
1787         * math/libm-test.inc: Update comment not to refer to signs of NaNs
1788         not being tested.
1789
1790 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1791
1792         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1793         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
1794         call.
1795         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1796         (__condvar_cleanup1): Likewise.
1797
1798 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1799
1800         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
1801         New
1802         (__pthread_unwind): Renamed to ...
1803         (PTHREAD_UNWIND): This.
1804         (__pthread_enable_asynccancel): Replace
1805         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
1806
1807 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1808
1809         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
1810         (CLONE_NEWCGROUP): New macro.
1811
1812         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
1813         (Q_GETNEXTQUOTA): New macro.
1814
1815 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1816
1817         [BZ #19907]
1818         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
1819         buffer updated by the previous run.
1820         * string/test-memcpy.c (do_one_test): Likewise.
1821         * benchtests/bench-memmove.c (do_one_test): Add a comment.
1822         * string/test-memmove.c (do_one_test): Likewise.
1823
1824 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
1825
1826         [BZ #20094]
1827         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
1828         not [__USE_XOPEN].
1829         (unlockpt): Likewise.
1830         (ptsname): Likewise.
1831         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
1832         variable.
1833
1834         [BZ #20076]
1835         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
1836         instead of [__USE_UNIX98].
1837         (S_ISSOCK): Likewise.
1838         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
1839         variable.
1840
1841         [BZ #20074]
1842         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
1843         [__USE_POSIX].
1844         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
1845         variable.
1846
1847         [BZ #20051]
1848         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
1849         (ttyslot): Do not declare.
1850         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
1851         (ttyslot): New prototype.
1852         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
1853         variable.
1854         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
1855
1856 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
1857
1858         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
1859
1860 2016-05-13  Florian Weimer  <fweimer@redhat.com>
1861
1862         Fix race condition in tst-mallocfork2, use fewer resources.
1863         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
1864         to current process group.
1865         (signal_sender): Yield in the non-sleeping case.
1866
1867 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
1868
1869         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
1870         (ecvt): Likewise.
1871         (fcvt): Likewise.
1872         (gcvt): Likewise.
1873         (getsubopt): Likewise.
1874         (grantpt): Likewise.
1875         (initstate): Likewise.
1876         (l64a): Likewise.
1877         (mktemp): Likewise.
1878         (mkstemp): Likewise.
1879         (ptsname): Likewise.
1880         (random): Likewise.
1881         (realpath): Likewise.
1882         (setstate): Likewise.
1883         (srandom): Likewise.
1884         (ttyslot): Likewise.
1885         (unlockpt): Likewise.
1886         (valloc): Likewise.
1887
1888         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
1889         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
1890         variable.
1891
1892 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1893
1894         [BZ #20072]
1895         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
1896         init_cpu_features only if SHARED is defined.
1897         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
1898
1899 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1900
1901         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
1902         non-inclusive caches on Intel processors.
1903
1904 2016-05-13  Florian Weimer  <fweimer@redhat.com>
1905
1906         * malloc/malloc.c (dumped_main_arena_start)
1907         (dumped_main_arena_end): New variables.
1908         (DUMPED_MAIN_ARENA_CHUNK): New macro.
1909         (do_check_chunk): Skip dumped fake mmapped chunks.
1910         (munmap_chunk): Likewise.
1911         (__libc_free): Do not adjust statistics for fake mmapped chunks.
1912         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
1913         mmapped chunks.
1914         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
1915         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
1916         and dumped_main_arena_end to cover the dumped heap.
1917
1918 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
1919
1920         * conform/data/time.h-data (getdate_err): Do not expect for
1921         [XPG3].
1922         (getdate): Likewise.
1923         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
1924         variable.
1925
1926         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
1927         (F_ULOCK): Likewise.
1928         (F_TEST): Likewise.
1929         (F_TLOCK): Likewise.
1930         (useconds_t): Likewise.
1931         (intptr_t): Do not expect for [XPG3] or [XPG4].
1932         (brk): Do not expect for [XPG3]
1933         (fchown): Likewise.
1934         (fchdir): Likewise.
1935         (ftruncate): Likewise.
1936         (getdtablesize): Likewise.
1937         (gethostid): Likewise.
1938         (getpagesize): Likewise.
1939         (getpgid): Likewise.
1940         (getsid): Likewise.
1941         (getwd): Likewise.
1942         (lchown): Likewise.
1943         (lockf): Likewise.
1944         (readlink): Likewise.
1945         (sbrk): Likewise.
1946         (setpgrp): Likewise.
1947         (setregid): Likewise.
1948         (setreuid): Likewise.
1949         (symlink): Likewise.
1950         (sync): Likewise.
1951         (truncate): Likewise.
1952         (ualarm): Likewise.
1953         (usleep): Likewise.
1954         (vfork): Likewise.
1955         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
1956         variable.
1957
1958         [BZ #20054]
1959         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
1960         not [__USE_UNIX98].
1961         * conform/data/unistd.h-data (gethostname): Do not expect for
1962         [XPG3].
1963
1964         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
1965         [!POSIX] (S_IFBLK): Likewise.
1966         [!POSIX] (S_IFCHR): Likewise.
1967         [!POSIX] (S_IFIFO): Likewise.
1968         [!POSIX] (S_IFREG): Likewise.
1969         [!POSIX] (S_IFDIR): Likewise.
1970         [!POSIX] (S_IFLNK): Likewise.
1971         [!POSIX] (S_IFSOCK): Likewise.
1972         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
1973         variable.
1974         (test-xfail-XPG4/fcntl.h/conform): Likewise.
1975
1976 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
1977
1978         * sysdeps/aarch64/memset.S (__memset):
1979         Rewrite of optimized memset.
1980
1981 2016-05-12  Florian Weimer  <fweimer@redhat.com>
1982
1983         [BZ #19703]
1984         Partially async-signal-safe fork for single-threaded processes.
1985         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
1986         variable.  Do not acquire and reset/release malloc and libio locks
1987         in single-threaded processes.
1988         * malloc/tst-mallocfork2.c: New file.
1989         * malloc/Makefile (tests): Add it.
1990
1991 2016-05-12  Florian Weimer  <fweimer@redhat.com>
1992
1993         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
1994         argument.  Use scratch buffer instead of extend_alloca.
1995         (gethosts): Use scratch buffer instead of extend_alloca.
1996         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
1997         extend_alloca.
1998         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
1999
2000 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2001
2002         [BZ #20055]
2003         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2004         instead of [__USE_UNIX98].
2005         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2006         [__USE_UNIX98].
2007         * conform/data/termios.h-data (tcgetsid): Do not expect for
2008         [XPG3].
2009         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2010         variable.
2011         (test-xfail-XPG4/termios.h/conform): Likewise.
2012
2013 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2014
2015         Do not use mcheck in localedef.
2016         * locale/programs/localedef.c (turn_on_mcheck)
2017         (__malloc_initialize_hook): Remove.
2018
2019 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2020
2021         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2022         * sysdeps/s390/s390-64/Makefile: Likewise.
2023
2024 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2025
2026         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2027         Remove ifunc-defines.sym.
2028         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2029         Likewise.
2030         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2031         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2032         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2033         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2034         rtld-global-offsets.sym.
2035         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2036         * sysdeps/x86/cpu-features-offsets.sym: This.
2037         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2038         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2039
2040 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2041
2042         [BZ #20073]
2043         * io/sys/stat.h (fchmod): Declare for
2044         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2045         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2046         variable.
2047
2048         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2049         [XPG3] (S_IFSOCK): Likewise.
2050         [XPG3] (S_ISVTX): Likewise.
2051         [XPG3] (S_ISLNK): Likewise.
2052         [XPG3] (S_ISSOCK): Likewise.
2053         [XPG3] (fchmod): Likewise.
2054         [XPG3] (lstat): Likewise.
2055         [XPG3] (mknod): Likewise.
2056
2057         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2058         [XPG3].  Expect type long and XFAIL for [XPG4].
2059         (st_blocks): Likewise.
2060
2061         [BZ #20044]
2062         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2063         (pthread_atfork): New prototype.
2064         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2065         variable.
2066
2067         [BZ #20043]
2068         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2069         prototype.
2070
2071 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2072
2073         [BZ #20017]
2074         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2075         gmtime.
2076
2077 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2078
2079         [BZ #19994]
2080         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2081         flag in _res.options.
2082
2083 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2084
2085         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2086         [XPG3 || XPG4].
2087         (blksize_t): Likewise.
2088         (clockid_t): Likewise.
2089         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2090         variable.
2091         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2092
2093 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2094
2095         * sysdeps/unix/sysv/linux/s390/init-first.c:
2096         Add VDSO_SYMBOL(getcpu).
2097         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2098         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2099         Add VDSO_SYMBOL(getcpu).
2100         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2101         New define HAVE_GETCPU_VSYSCALL.
2102         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2103
2104 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2105
2106         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2107         instead of <sysdeps/x86_64/cacheinfo.c>.
2108         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2109         * sysdeps/x86/cacheinfo.c: Here.
2110
2111 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2112
2113         * malloc/malloc-internal.h: Adjust header file guard.
2114
2115 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2116
2117         [BZ #19787]
2118         * inet/getnameinfo.c (check_sprintf_result): New function.
2119         (CHECKED_SNPRINTF): New macro.
2120         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2121         to the host buffer.
2122         (gni_host_local): Use checked_copy to copy the host name.
2123         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2124         (gni_serv_local): Use checked_copy to copy the service name.
2125         (getnameinfo): Remove unnecessary truncation of result buffers.
2126
2127 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2128
2129         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2130         in case of inet_ntop failure.
2131
2132 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2133
2134         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2135         avoid long lines.
2136         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2137         variables.
2138         (gni_host_inet, gni_host_local): Add comment.
2139         (gni_host): Add comment.  Use temporary to avoid long lines.
2140
2141 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2142
2143         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2144         registers specifiers where general purpose registers specifiers should
2145         have been used.
2146
2147 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2148
2149         [BZ #19779]
2150         CVE-2016-1234
2151         Avoid copying names of directory entries.
2152         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2153         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2154         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2155         (struct readdir_result): New type.
2156         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2157         (GL_READDIR): New macros.
2158         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2159         (convert_dirent, convert_dirent64): New functions.
2160         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2161         convert_dirent64.  Adjust references to the readdir result.
2162         * sysdeps/unix/sysv/linux/i386/glob64.c:
2163         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2164         * posix/bug-glob2.c (LONG_NAME): Define.
2165         (filesystem): Add LONG_NAME.
2166         (my_DIR): Increase the size of room_for_dirent.
2167
2168 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2169
2170         [BZ #20041]
2171         * misc/sys/select.h (__need_timespec): Only define if
2172         [__USE_XOPEN2K].
2173         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2174         variable.
2175         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2176         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2177         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2178
2179 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2180             Segher Boessenkool  <segher@gcc.gnu.org>
2181
2182         [BZ #20004]
2183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2184         (__novec_swapcontext): Add missing load.
2185
2186 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2187
2188         [BZ #20023]
2189         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2190         <time.h>.
2191         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2192         variable.
2193         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2194
2195 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2196
2197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2198         flags CLONE_VM compare.
2199
2200 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2201
2202         [BZ #20031]
2203         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2204         completely empty.
2205
2206 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2207
2208         [BZ #19573]
2209         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2210         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2211         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2212         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2213         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2214         (hesiod_free_list): Mark as hidden.
2215         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2216         res_set, res_get.
2217         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2218         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2219         (hesiod_init): Remove obsolete res_ninit call.
2220         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2221         (hesiod_bind): Do not call init.
2222         (get_txt_records): Use res_mkquery, res_send instead of
2223         res_nmkquery, res_nsend.
2224         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2225         instead of _nss_hesiod_init.
2226         (_nss_hesiod_initgroups_dyn): Likewise.
2227         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2228         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2229         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2230
2231 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2232
2233         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2234         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2235
2236 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2237
2238         * hesiod/hesiod.h: Remove RCS keyword.
2239         * hesiod/hesiod_p.h: Likewise.
2240
2241         * hesiod/hesiod.c: Likewise.
2242
2243 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2244
2245         [BZ #12450]
2246         * locale/iso-639.def: Add Samogitian/sgs.
2247
2248 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2249
2250         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2251
2252         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2253
2254 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2255             Carlos O'Donell  <carlos@redhat.com>
2256
2257         [BZ #19072]
2258         * grp/Makefile (headers): Add grp-merge.h
2259         (routines): Add grp-merge.
2260         * grp/getgrgid_r.c: Include grp-merge.h.
2261         (DEEPCOPY_FN): Define.
2262         (MERGE_FN): Define.
2263         * grp/getgrname_r.c: Include grp-merge.h.
2264         (DEEPCOPY_FN): Define.
2265         (MERGE_FN): Define.
2266         * grp/grp-merge.c: New file.
2267         * grp/grp-merge.h: New file.
2268         * include/grp-merge.h: New file.
2269         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2270         __copy_grp@GLIBC_PRIVATE.
2271         * manual/nss.texi (Actions in the NSS configuration): Describe
2272         return, continue, and merge.
2273         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2274         (DEEPCOPY_FN): Define.
2275         (MERGE_FN): Define.
2276         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2277         (DEEPCOPY_FN): Define.
2278         (MERGE_FN): Define.
2279         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2280         [!MERGE_FN]: Define __merge_einval.
2281         (CHECK_MERGE): Define.
2282         (REENTRANT_NAME): Process merge if do_merge is true.
2283         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2284         (__nss_getent_r): Likewise.
2285         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2286         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2287
2288 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2289
2290         [BZ #20012]
2291         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2292         length to calculate the buffer to read.
2293         (fmemopen_write): Set the buffer position based on bytes written.
2294         (fmemopen_seek): Return EINVAL for invalid whence modes.
2295
2296         [BZ #19957]
2297         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2298         tst-getpid2.
2299         (test): Add tst-clone2.
2300         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2301         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2302         pid/tid fields for CLONE_VM.
2303         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2304         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2305         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2306         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2307         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2308         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2309         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2310         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2312         Likewise.
2313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2314         Likewise.
2315         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2316         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2317         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2318         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2319         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2320         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2321         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2322         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2323
2324 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2325
2326         [BZ #19642]
2327         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2328         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2329         (gni_serv_local, gni_serv): New functions extracted from
2330         getnameinfo.
2331         (getnameinfo): Call gni_host and gni_serv to perform the
2332         processing.  Always free scratch buffer.
2333
2334 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2335
2336         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2337         remaining bytes in the dest string, with zeros.
2338
2339 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2340
2341         [BZ #20010]
2342         CVE-2016-3706
2343         * sysdeps/posix/getaddrinfo.c
2344         (convert_hostent_to_gaih_addrtuple): New function.
2345         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2346         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2347         AF_INET data.
2348
2349 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2350
2351         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2352         callback function gl_readdir.
2353         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2354         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2355         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2356         memcpy to copy the name.
2357         * manual/pattern.texi (Calling Glob): Document requirements for
2358         implementations of the gl_readdir callback function.
2359         * manual/examples/mkdirent.c: New example.
2360         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2361         per the manual guidance.
2362         * posix/tst-gnuglob.c (my_readdir): Likewise.
2363
2364 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2365
2366         [BZ #20014]
2367         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2368         not [__USE_POSIX].
2369         (getchar_unlocked): Likewise.
2370         (putc_unlocked): Likewise.
2371         (putchar_unlocked): Likewise.
2372         (flockfile): Likewise.
2373         (ftrylockfile): Likewise.
2374         (funlockfile): Likewise.
2375         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2376         variable.
2377         (test-xfail-XPG4/stdio.h/conform): Likewise.
2378
2379         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2380         Expect constant.
2381         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2382         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2383         variable.
2384         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2385         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2386
2387         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2388         [__USE_LARGEFILE64] (off64_t): Likewise.
2389         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2390         variable.
2391
2392 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2393
2394         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2395
2396 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2397
2398         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2399         * resolv/res_init.c: Likewise.
2400         * resolv/res_mkquery.c: Likewise.
2401
2402 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2403
2404         * resolv/res_init.c (isascii): Do not define.  Use definition in
2405         <ctype.h>.
2406         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2407         (LOG_AUTH): Remove.
2408         (SPRINTF): Remove, adjust caller.
2409         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2410
2411 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2412
2413         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2414         SUNSECURITY conditional.
2415         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2416
2417 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2418
2419         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2420         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2421         Remove BSD-related preprocessor conditionals.
2422         * conf/portability.h: Remove.
2423
2424 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2425
2426         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2427         * resolv/res_data.c: Likewise.
2428
2429 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2430
2431         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2432         * resolv/res_data.c: Remove code conditional on ultrix.
2433
2434 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2435
2436         * resolv/res_init.c (RFC1535): Do not define.  Remove
2437         RFC1535 preprocessor conditionals.
2438         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2439         because there configuration options which make the resolver
2440         behavior different.
2441
2442 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2443
2444         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2445         RESOLVSORT preprocessor conditionals.
2446         * resolv/nss_dns/dns-host.c: Likewise.
2447         * resolv/res_init.c: Likewise.
2448
2449 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2450
2451         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2452         is never defined.
2453
2454 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2455
2456         * inet/inet_lnaof.c: Remove SCSS keyword.
2457         * inet/inet_mkadr.c: Likewise.
2458         * inet/inet_net.c: Likewise.
2459         * inet/inet_netof.c: Likewise.
2460         * inet/rcmd.c: Likewise.
2461         * inet/rexec.c: Likewise.
2462         * inet/ruserpass.c: Likewise.
2463
2464 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2465
2466         * resolv/inet_addr.c: Remove _LIBC conditionals.
2467         * resolv/res_data.c: Likewise.
2468         * resolv/res_init.c: Likewise.
2469         * resolv/res_mkquery.c: Likewise.
2470         * resolv/res_libc.c: Update comment.
2471         * resolv/README: Update.
2472
2473 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2474
2475         * resolv/gethnamaddr.c: Remove SCSS keyword.
2476         * resolv/herror.c: Likewise.
2477         * resolv/inet_addr.c: Likewise.
2478         * resolv/inet_net_ntop.c: Likewise.
2479         * resolv/inet_net_pton.c: Likewise.
2480         * resolv/inet_neta.c: Likewise.
2481         * resolv/inet_ntop.c: Likewise.
2482         * resolv/inet_pton.c: Likewise.
2483         * resolv/ns_date.c: Remove RCS keyword.
2484         * resolv/ns_name.c: Likewise.
2485         * resolv/ns_netint.c: Likewise.
2486         * resolv/ns_parse.c: Likewise.
2487         * resolv/ns_print.c: Likewise.
2488         * resolv/ns_samedomain.c: Likewise.
2489         * resolv/ns_ttl.c: Likewise.
2490         * resolv/nsap_addr.c: Likewise.
2491         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2492         * resolv/res_data.c: Remove RCS keyword.
2493         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2494         * resolv/res_init.c: Likewise.
2495         * resolv/res_mkquery.c: Likewise.
2496         * resolv/res_query.c: Likewise.
2497         * resolv/res_send.c: Likewise.
2498
2499 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2500
2501         * conform/data/stdio.h-data (fdopen): Expect also for
2502         [XPG3 || XPG4].
2503
2504         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2505         (fseeko): Likewise.
2506         (ftello): Likewise.
2507         (ftrylockfile): Likewise.
2508         (funlockfile): Likewise.
2509         (getc_unlocked): Likewise.
2510         (getchar_unlocked): Likewise.
2511         (putc_unlocked): Likewise.
2512         (putchar_unlocked): Likewise.
2513
2514 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2515
2516         [BZ #19868]
2517         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2518         DNS packet syntax checks (which were not needed before).  Skip
2519         over non-PTR records.
2520
2521 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2522
2523         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2524         definition.  Include <stddef.h> instead.
2525
2526 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2527
2528         [BZ #19831]
2529         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2530         function.
2531         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2532         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2533
2534 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2535
2536         [BZ #19862]
2537         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2538         (getanswer_r): Do not call syslog.
2539         (gaih_getanswer_slice): Likewise.
2540         * resolv/gethnamaddr.c (AskedForGot): Remove.
2541         (getanswer): Do not call syslog.
2542         (gethostbyaddr): Likewise.
2543
2544 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2545
2546         * conform/data/signal.h-data (union sigval): Expect also if
2547         [XOPEN2K].
2548         (struct sigevent): Likewise.
2549         (SIGEV_NONE): Likewise.
2550         (SIGEV_SIGNAL): Likewise.
2551         (SIGEV_THREAD): Likewise.
2552         (SIGRTMIN): Likewise.
2553         (SIGRTMAX): Likewise.
2554         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
2555         variable.
2556         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2557
2558 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2559
2560         [BZ #19830]
2561         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
2562         (gaih_getanswer_slice): Likewise.
2563         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
2564         Also check for availability of RR metadata.
2565
2566 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2567
2568         [BZ #19825]
2569         * resolv/res_send.c (send_vc): Remove early *resplen2
2570         initialization.  Set *resplen2 on socket error.  Call
2571         close_and_return_error for other errors.
2572
2573 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
2574
2575         * sysdeps/unix/sysv/linux/netiucv/iucv.h
2576         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
2577         (SCM_IUCV_TRGCLS): New define.
2578
2579 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2580
2581         [BZ #20005]
2582         * libio/fmemopen.c (fmemopen_write): Update internal position after
2583         write.
2584         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
2585         * stdio-common/tst-fmemopen4.c: New file..
2586
2587 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
2588
2589         [BZ #19996]
2590         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
2591         not [__USE_XOPEN2K].
2592         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
2593         variable.
2594
2595         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
2596         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
2597         variable.
2598
2599         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
2600         [__USE_XOPEN2K8].
2601         [__USE_LARGEFILE64] (off64_t): Likewise.
2602         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
2603         variable.
2604
2605 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
2606
2607         [BZ #19989]
2608         * libio/stdio.h (cuserid): Do not declare if
2609         [__USE_XOPEN2K && !__USE_GNU].
2610         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
2611         variable.
2612
2613 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2614
2615         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2616         (sysdep_routines): Add P8 and PPC64 strcspn targets.
2617         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2618         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
2619         ifunc'ed strcspn.
2620         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
2621         [EALIGN]: Removed.
2622         [END]: Likewise
2623         [STRSPN]: Define instead of the above to control symbol name.
2624         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
2625         New file.
2626         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
2627         Likewise.
2628         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
2629         Likewise.
2630         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
2631         Likewise.
2632         * sysdeps/powerpc/powerpc64/power8/strspn.S:
2633         [INITIAL_MASK]: New macro.
2634         [STRCSPN]: Likewise.
2635         [UPDATE_MASK]: Likewise.
2636         [USE_AS_STRCSPN]: Lisewise.
2637
2638 2016-04-25  Florian Weimer  <fweimer@redhat.com>
2639
2640         [BZ #19931]
2641         * stdio-common/tst-vfprintf-width-prec.c: New file.
2642         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
2643         (tests-special): Add tst-vfprintf-width-prec-mem.out.
2644         (generated): Add mtrace-related files.
2645         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
2646         (tst-%-mem.out): New pattern rule, replaces
2647         tst-printf-bz18872-mem.out.
2648         * stdio-common/vfprintf.c (vfprintf): When handling a precision
2649         specifier, deallocate any previously allocated work buffer.
2650
2651 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2652
2653         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
2654         Add nop before __startcontext, add explaining comments.
2655
2656 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
2657
2658         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
2659         any more. Notably since IPV6_PKTINFO has been reintroduced with a
2660         completely different API.
2661
2662         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
2663         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
2664         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
2665         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
2666         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
2667         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
2668         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
2669         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
2670         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
2671         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
2672
2673 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2674
2675         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
2676
2677 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
2678
2679         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
2680         when it is the default of 0.
2681
2682 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2683
2684         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
2685         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2686         (sysdep_routines): Add new strcasestr targets.
2687         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2688         (__libc_ifunc_impl_list): Likewise.
2689         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
2690         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
2691         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
2692         * sysdeps/powerpc/powerpc64/power8/Makefile:
2693         New file to add strcasestr-ppc64 to sysdep_routines.
2694         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
2695         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
2696
2697 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
2698
2699         * benchtests/Makefile (wcsmbs-benchset): Include only for
2700         native builds and runs.
2701         (LOCALES): Likewise.
2702         (bench-build): Build timing-type here instead of the bench
2703         target.  Generate locale only for native builds.
2704         * benchtests/README: Add note for cross-building.
2705
2706         * benchtests/Makefile (bench-clean): Clean up extra-objs.
2707
2708         * benchtests/README: Update README to include instructions on
2709         using bench-build.
2710
2711         * Makefile.in (bench-build): New target.
2712         * Rules (PHONY): Add bench-build target.
2713         * benchtests/Makefile (bench): Depend on bench-build.
2714         (bench-build): New target.
2715
2716 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2717
2718         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
2719         profil_reply_port.
2720         (profile_waiter): Do not initialize profil_reply_port.
2721         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
2722         frequency instead of tick length in us.
2723
2724 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
2725
2726         [BZ #18712]
2727         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
2728         (__old_mempcpy_small): Likewise.
2729         (__old_strcpy_small): Likewise.
2730         (__old_stpcpy_small): Likewise.
2731         (__old_strpbrk_c2): Fix compat symbol name.
2732         (__old_strpbrk_c3): Likewise.
2733         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
2734         (__mempcpy_small): Remove.
2735         (__strcpy_small): Remove.
2736         (__stpcpy_small): Remove.
2737
2738 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
2739
2740         [BZ #19400]
2741         * locale/iso-639.def: Add the Talossan/tzl language.
2742
2743 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2744
2745         [BZ #16983]
2746         * locale/programs/ld-address.c (address_finish): Update postal_fmt
2747         comment.  Add "ln" to strchr check on postal_fmt.
2748
2749 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2750
2751         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
2752         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
2753         tel_dom_fmt.
2754
2755 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2756
2757         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2758         (sysdep_routines): Added __strlen_power8.
2759         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
2760         __strlen_power8 entry.
2761         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
2762         Implementation for POWER8.
2763         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
2764         for __strlen_power8.
2765         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
2766         Implementation for POWER8.
2767
2768 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
2769
2770         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
2771
2772 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
2773
2774         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
2775         Goldmont and Airmont processors.
2776
2777 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
2778
2779         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
2780         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
2781         (__STRING2_SMALL_GET32): Remove.
2782         (memset): Remove.
2783         (__memset_1): Remove.
2784         (__memset_gc): Remove.
2785         (__mempcpy): Remove.
2786         (mempcpy): Remove.
2787         (__mempcpy_args): Remove.
2788         (strchr): Remove.
2789         (strcpy): Remove.
2790         (strcpy_args): Remove.
2791         (__stpcpy_args): Remove.
2792         (__strcmp_cc): Remove.
2793         (__strcmp_gc): Remove.
2794         (strstr): Remove.
2795
2796 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
2797
2798         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
2799         * nis/nis_call.c (nis_server_cache_add): Likewise.
2800
2801 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2802
2803         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
2804
2805 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2806
2807         * malloc/arena.c (__malloc_fork_lock_parent)
2808         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
2809         internal_function attribute.
2810
2811 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
2812
2813         * stdio-common/printf_fp.c (__printf_fp_l):
2814         Rename ___printf_fp_l to __printf_fp_l and
2815         remove strong alias. Use libc_hidden_def instead
2816         of ldbl_hidden_def macro.
2817
2818 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2819
2820         Remove malloc hooks from fork handler.  They are no longer needed
2821         because malloc runs right before fork, and no malloc calls from
2822         other fork handlers are not possible anymore.
2823         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
2824         declarations.
2825         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
2826         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
2827         (atfork_recursive_cntr): Remove.
2828         (__malloc_fork_lock_parent): Do not override malloc hooks and
2829         thread_arena.
2830         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
2831         thread_arena.
2832         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
2833         thread_arena instead of save_arena.
2834
2835 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2836
2837         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
2838         (thread_atfork, thread_atfork_static): Remove.
2839         * sysdeps/mach/hurd/malloc-machine.h:
2840         (thread_atfork, thread_atfork_static): Remove.
2841
2842 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2843
2844         [BZ #19431]
2845         Run the malloc fork handler as late as possible to avoid deadlocks.
2846         * malloc/malloc-internal.h: New file.
2847         * malloc/malloc.c: Include it.
2848         * malloc/arena.c (ATFORK_MEM): Remove.
2849         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
2850         Update comment.
2851         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
2852         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
2853         Remove outdated comment.
2854         (ptmalloc_init): Do not call thread_atfork.  Remove
2855         thread_atfork_static.
2856         * malloc/tst-malloc-fork-deadlock.c: New file.
2857         * Makefile (tests): Add tst-malloc-fork-deadlock.
2858         (tst-malloc-fork-deadlock): Link against libpthread.
2859         * manual/memory.texi (Aligned Memory Blocks): Update safety
2860         annotation comments.
2861         * sysdeps/nptl/fork.c (__libc_fork): Call
2862         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
2863         __malloc_fork_unlock_child.
2864         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2865
2866 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2867
2868         [BZ #19613]
2869         Remove union wait.
2870         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
2871         (w_stopsig, w_stopval): Remove.
2872         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
2873         stat_loc argument.
2874         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
2875         (__WAIT_STATUS_DEFN): Remove.
2876         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
2877         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
2878         (wait, wait3, wait4): Use int * for the stat_loc argument.
2879         * posix/wait.c (__wait): Likewise.
2880         * posix/wait3.c (__wait3): Likewise.
2881         * posix/wait4.c (__wait4): Likewise.
2882         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
2883         (__WAIT_STATUS_DEFN): Remove.
2884         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
2885         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
2886         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
2887         argument.
2888         * sysdeps/posix/wait.c (__libc_wait): Likewise.
2889         * sysdeps/posix/wait3.c (__wait3): Likewise.
2890         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
2891         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
2892         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
2893         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
2894         stat_loc argument.
2895         * manual/process.texi (BSD Wait Functions): Remove union wait.
2896
2897 2016-04-13  Andreas Schwab  <schwab@suse.de>
2898
2899         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
2900         (test-extras): Add tst-tlsalign-vars.
2901         * math/Makefile: Wrap long lines.
2902         (libm-vec-test-wrappers): Define.
2903         (test-extras): Add $(libm-vec-test-wrappers).
2904         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
2905         * nss/Makefile (extra-test-objs): Add nss_test1.os.
2906         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
2907         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
2908         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
2909         (extra-test-objs): Add corresponding objects.
2910
2911 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
2912
2913         [BZ #19928]
2914         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
2915         New.
2916         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
2917         times of shared cache size.
2918         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
2919         (VMOVNT): New.
2920         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
2921         (VMOVNT): Likewise.
2922         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
2923         (VMOVNT): Likewise.
2924         (VMOVU): Changed to movups for smaller code sizes.
2925         (VMOVA): Changed to movaps for smaller code sizes.
2926         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
2927         comments.
2928         (PREFETCH): New.
2929         (PREFETCH_SIZE): Likewise.
2930         (PREFETCHED_LOAD_SIZE): Likewise.
2931         (PREFETCH_ONE_SET): Likewise.
2932         Rewrite to use forward and backward loops, which move 4 vector
2933         registers at a time, to support overlapping addresses and use
2934         non temporal store if size is above the threshold and there is
2935         no overlap between destination and source.
2936
2937 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
2938
2939         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
2940         Include dl-vdso.
2941         * sysdeps/unix/sysv/linux/mips/Versions: Add
2942         __vdso_clock_gettime.
2943         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
2944         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
2945         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
2946         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
2947         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
2948         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
2949         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
2950         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
2951         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2952
2953 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2954
2955         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
2956         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
2957         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
2958         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
2959         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2960         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
2962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
2963         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
2964         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
2965         syscalls generation.
2966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2967         [__NR_pwrite64] (__NR_write): Remove define.
2968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2969         [__NR_pwrite64] (__NR_write): Remove define.
2970         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
2971         Remove define.
2972         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
2973         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
2974         Remove define.
2975         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
2976         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
2977         Linux implementation as base.
2978         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
2979
2980         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
2981         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
2982         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
2983         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
2984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
2985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
2986         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
2987         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
2988         syscall generation.
2989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2990         [__NR_pread64] (__NR_pread): Remove define.
2991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2992         [__NR_pread64] (__NR_pread): Likewise.
2993         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
2994         define.
2995         (__libc_pread): Use SYSCALL_LL macro on offset argument.
2996         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
2997         Remove define.
2998         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
2999         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3000         Linux implementation as base.
3001         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3002         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3003         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3004
3005         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3006         definition.
3007         (__ALIGNMENT_COUNT): Likewise.
3008         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3009         (__ALIGNMENT_COUNT): Likewise.
3010         (SYSCALL_LL): New define.
3011         (SYSCALL_LL64): Likewise.
3012         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3013         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3014         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3015         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3016
3017         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3018         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3019         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3020         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3021         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3022         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3023
3024 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3025
3026         [BZ #19865]
3027         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3028         original buffer before retry.
3029
3030 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3031
3032         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3033         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3034         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3035         GLRO(dl_auxv) list.
3036         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3037         including <ldsodefs.h>.
3038         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3039
3040 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3041
3042         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3043         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3044         $(CPPFLAGS).
3045
3046 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3047
3048         [BZ #17950]
3049         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3050         Add -mfpmath=387.
3051
3052 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3053
3054         * sysdeps/i386/configure.ac: Change == to = when calling test.
3055         * sysdeps/x86_64/configure.ac: Likewise.
3056         * sysdeps/i386/configure: Regenerated.
3057         * sysdeps/x86_64/configure: Likewise.
3058
3059 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3060
3061         [BZ #16137]
3062         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3063         * benchtests/bench-strcoll.c (input_files): Likewise.
3064         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3065         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3066         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3067
3068 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3069
3070         [BZ #19929]
3071         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3072         [__USE_XOPEN2K8 && !__USE_GNU].
3073         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3074         variable.
3075
3076         [BZ #19925]
3077         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3078         define if [!__USE_MISC && __USE_XOPEN2K].
3079         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3080         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3081         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3082         Likewise.
3083         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3084         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3085         variable.
3086         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3087
3088 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3089
3090         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3091         (sysdep_routines): Add new strspn targets.
3092         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3093         (__libc_ifunc_impl_list): Add strspn.
3094         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3095         New file.
3096         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3097         Likewise.
3098         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3099         Likewise.
3100         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3101         Likewise.
3102
3103 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3104
3105         * misc/hsearch_r.c: Include <limits.h>.
3106
3107 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3108
3109         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3110
3111 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3112
3113         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3114         (MEMCPY_SYMBOL): New.
3115         (MEMPCPY_SYMBOL): Likewise.
3116         (MEMMOVE_CHK_SYMBOL): Likewise.
3117         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3118         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3119         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3120         Provide alias for memcpy in libc.a and ld.so.
3121
3122 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3123
3124         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3125         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3126         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3127         Disabled fro now.
3128         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3129         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3130
3131 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3132
3133         * benchtests/Makefile (string-benchset): Add memcpy-large,
3134         memmove-large and memset-large.
3135         * benchtests/bench-memcpy-large.c: New file.
3136         * benchtests/bench-memmove-large.c: Likewise.
3137         * benchtests/bench-memmove-large.c: Likewise.
3138         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3139
3140 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3141
3142         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3143         32-bit displacement to avoid long nop between instructions.
3144
3145 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3146
3147         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3148         a comment on VMOVU and VMOVA.
3149
3150 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3151
3152         [BZ #19633]
3153         Use specified locale for number formatting in strfmon_l.
3154         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3155         (__nl_lookup_word): New inline functions.
3156         * include/printf.h (__print_fp_l): Declare.
3157         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3158         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3159         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3160         (___printf_fp): New function.
3161         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3162         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3163         * stdlib/tst-strfmon_l.c (do_test): New test.
3164         * stdlib/Makefile (tests): Add kt.
3165         (LOCALES): Build additional locales.
3166         (tst-strfmon_l.out): Require locales.
3167
3168 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3169
3170         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3171         if not in libc.
3172         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3173         Likewise.
3174         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3175         Likewise.
3176         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3177         Likewise.
3178
3179 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3180
3181         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3182         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3183         with unaligned_erms.
3184         (__memmove_erms): Skip if source == destination.
3185         (__memmove_unaligned_erms): Don't check source == destination
3186         first.
3187
3188 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3189
3190         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3191         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3192
3193 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3194
3195         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3196         * string/strspn.c (strspn): Likewise.
3197
3198 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3199
3200         * benchtests/bench-memset.c (do_test): Support 64-byte
3201         alignment.
3202         (test_main): Test 64-byte alignment.
3203
3204 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3205
3206         * benchtests/bench-memmove.c (test_main): Test 64-byte
3207         alignment.
3208
3209 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3210
3211         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3212
3213 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3214
3215         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3216         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3217         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3218
3219         * string/strpbrk.c (strpbrk): Rewrite function.
3220         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3221         (__strpbrk_c2): Likewise.
3222         (__strpbrk_c3): Likewise.
3223         * string/string-inlines.c
3224         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3225         Likewise.
3226         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3227         Likewise.
3228
3229         * string/strspn.c (strcspn): Rewrite function.
3230         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3231         (__strspn_c1): Remove inline function.
3232         (__strspn_c2): Likewise.
3233         (__strspn_c3): Likewise.
3234         * string/string-inlines.c
3235         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3236         compatibility symbol.
3237         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3238         Likewise.
3239         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3240         Likewise.
3241         * string/string-inlines.c: Include generic version.
3242
3243 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3244             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3245
3246         * string/Version (libc): Add GLIBC_2.24.
3247         * string/strcspn.c (strcspn): Rewrite function.
3248         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3249         (__strcspn_c1): Remove inline function.
3250         (__strcspn_c2): Likewise.
3251         (__strcspn_c3): Likewise.
3252         * string/string-inline.c
3253         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3254         compatibility symbol.
3255         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3256         Likewise.
3257         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3258         Likewise.
3259         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3260
3261 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3262
3263         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3264         Use ahi instead of aghi to adjust stack pointer.
3265
3266 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3267
3268         [BZ #19853]
3269         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3270         TEST to take significant digits as second parameter.
3271         [TEST]: Redefine in terms of TEST_N taking 30
3272         significant digits.
3273         (do_test): Add test case to demonstrate precision
3274         failure in the ldbl-128ibm printf.
3275         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3276         (__mpn_extract_long_double): Carry 7 extra intermediate
3277         bits of precision to aide computing difference when
3278         signs differ.
3279
3280 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3281
3282         [BZ #19881]
3283         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3284         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3285         memset-avx512-unaligned-erms.
3286         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3287         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3288         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3289         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3290         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3291         __memset_sse2_unaligned_erms, __memset_erms,
3292         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3293         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3294         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3295         file.
3296         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3297         Likewise.
3298         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3299         Likewise.
3300         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3301         Likewise.
3302
3303 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3304
3305         [BZ #19776]
3306         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3307         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3308         memmove-avx512-unaligned-erms.
3309         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3310         (__libc_ifunc_impl_list): Test
3311         __memmove_chk_avx512_unaligned_2,
3312         __memmove_chk_avx512_unaligned_erms,
3313         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3314         __memmove_chk_sse2_unaligned_2,
3315         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3316         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3317         __memmove_avx512_unaligned_erms, __memmove_erms,
3318         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3319         __memcpy_chk_avx512_unaligned_2,
3320         __memcpy_chk_avx512_unaligned_erms,
3321         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3322         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3323         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3324         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3325         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3326         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3327         __mempcpy_chk_avx512_unaligned_erms,
3328         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3329         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3330         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3331         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3332         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3333         __mempcpy_erms.
3334         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3335         file.
3336         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3337         Likwise.
3338         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3339         Likwise.
3340         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3341         Likwise.
3342
3343 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3344
3345         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3346         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3347         (La_s390_64_regs): Likewise.
3348         (La_s390_32_retval): Append vector register lrv_v24.
3349         (La_s390_64_retval): Likeweise.
3350         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3351         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3352         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3353         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3354
3355 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3356
3357         [BZ #19916]
3358         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3359         to create a non-vector/vector version for _dl_runtime_resolve and
3360         _dl_runtime_profile. Move implementation to ...
3361         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3362         (_dl_runtime_resolve) Save and restore fpr/vrs.
3363         (_dl_runtime_profile) Save and restore vrs and fix some issues
3364         if _dl_call_pltexit is called.
3365         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3366         Choose the correct resolver function if running on a machine with vx.
3367         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3368         to create a non-vector/vector version for _dl_runtime_resolve and
3369         _dl_runtime_profile. Move implementation to ...
3370         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3371         (_dl_runtime_resolve) Save and restore fpr/vrs.
3372         (_dl_runtime_profile) Save and restore vrs and fix some issues
3373         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3374         Choose the correct resolver function if running on a machine with vx.
3375
3376 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3377
3378         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3379
3380 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3381
3382         [BZ #19509]
3383         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3384         skip_map != NULL.
3385         * elf/tst-dlsym-error.c: New file.
3386         * elf/Makefile (tests): Add tst-dlsym-error.
3387         (tst-dlsym-error): Link against libdl.
3388
3389 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3390
3391         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3392         (__ASSUME_FUTIMESAT): Remove macro.
3393         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3394
3395 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3396
3397         [BZ #19879]
3398         CVE-2016-3075
3399         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3400         copy name.
3401
3402 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3403
3404         [BZ #19837]
3405         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3406         error if parse_line fails.
3407
3408 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3409
3410         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3411         (index_cpu_ERMS): Likewise.
3412         (reg_ERMS): Likewise.
3413
3414 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3415
3416         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3417         PER_LINUX_FDPIC): Add.
3418
3419 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3420
3421         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3422         memcpy-avx512-no-vzeroupper.
3423         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3424         to ...
3425         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3426         (MEMCPY): Don't define.
3427         (MEMCPY_CHK): Likewise.
3428         (MEMPCPY): Likewise.
3429         (MEMPCPY_CHK): Likewise.
3430         (MEMPCPY_CHK): Renamed to ...
3431         (__mempcpy_chk_avx512_no_vzeroupper): This.
3432         (MEMPCPY_CHK): Renamed to ...
3433         (__mempcpy_chk_avx512_no_vzeroupper): This.
3434         (MEMCPY_CHK): Renamed to ...
3435         (__memmove_chk_avx512_no_vzeroupper): This.
3436         (MEMCPY): Renamed to ...
3437         (__memmove_avx512_no_vzeroupper): This.
3438         (__memcpy_avx512_no_vzeroupper): New alias.
3439         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3440
3441 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3442
3443         [BZ #18858]
3444         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3445         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3446         and mempcpy-avx512-no-vzeroupper.
3447         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3448         New.
3449         (MEMPCPY): Likewise.
3450         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3451         (MEMPCPY_CHK): New.
3452         (MEMPCPY): Likewise.
3453         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3454         (MEMPCPY): Likewise.
3455         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3456         (MEMPCPY): Likewise.
3457         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3458         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3459         Likewise.
3460         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3461         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3462
3463 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3464              Amit Pawar  <Amit.Pawar@amd.com>
3465
3466         [BZ #19583]
3467         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3468         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3469         processors.  Set Fast_Copy_Backward for AMD Excavator
3470         processors.
3471         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3472         New.
3473         (index_arch_Fast_Unaligned_Copy): Likewise.
3474         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3475         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3476
3477 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3478
3479         [BZ #19791]
3480         * resolv/res_send.c (close_and_return_error): New function.
3481         (send_dg): Initialize *resplen2 after reopen failure.  Call
3482         close_and_return_error for error returns.  On error paths without
3483         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3484         successful return.
3485
3486 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3487
3488         [BZ# 19860]
3489         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3490         zero if the compiler does not provide the AVX512F bit.
3491
3492 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3493
3494         [BZ #19848]
3495         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3496         from 8 to 4.
3497         (__ieee754_powl): Compare integer exponent against 4 not 8.
3498         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3499         from 8 to 4.
3500         (__ieee754_powl): Compare integer exponent against 4 not 8.
3501         * math/auto-libm-test-in: Add more tests of pow.
3502         * math/auto-libm-test-out: Regenerated.
3503         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3504         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3505
3506 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3507
3508         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3509         Make code unconditional.
3510         [!__NR_utimensat]: Remove conditional code.
3511         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3512         Make code unconditional.
3513         [!__NR_utimensat]: Remove conditional code.
3514         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3515         Make code unconditional.
3516         [!__NR_utimensat]: Remove conditional code.
3517
3518 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3519
3520         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3521         Make code unconditional.
3522
3523 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3524
3525         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3526         call-clobbered %eax on retry path.
3527         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3528
3529 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3530
3531         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3532         Don't set %rcx twice before "rep movsb".
3533
3534 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3535
3536         [BZ #19583]
3537         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3538         inline.  Check family before setting family, model and
3539         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3540         bits here.
3541         (init_cpu_features): Replace HAS_CPU_FEATURE and
3542         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3543         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3544         for Intel processors with usable AVX2.  Call get_common_indeces
3545         for other processors with family == NULL.
3546         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3547         (CPU_FEATURES_ARCH_P): Likewise.
3548         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3549         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3550
3551 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3552
3553         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
3554         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
3555         $(shared-thread-library) instead of hardcoding the path to libpthread.
3556
3557 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
3558
3559         * sysdeps/unix/sysv/linux/kernel-features.h
3560         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
3561         * sysdeps/unix/sysv/linux/getdents.c
3562         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
3563         [!have_no_getdents64_defined]: Likewise.
3564         (__GETDENTS): Remove __have_no_getdents64 conditional.
3565
3566 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
3567
3568         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
3569         Remove macro.
3570         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
3571         <kernel-features.h>.
3572         (signalfd) [__NR_signalfd4]: Make code unconditional.
3573         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
3574
3575 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3576
3577         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
3578         style.
3579
3580 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3581
3582         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
3583         (__pthread_enable_asynccancel): Use JUMPTARGET to call
3584         __pthread_unwind.
3585         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3586         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
3587         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
3588         (__condvar_cleanup1): Likewise.
3589
3590 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
3591
3592         [BZ #19822]
3593         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
3594         move it to the final $@ location.
3595
3596 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3597
3598         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
3599         access where posix_spawn success and pid argument is null.
3600         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
3601         success case.
3602
3603 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
3604
3605         * sysdeps/mach/hurd/i386/c++-types.data: New file.
3606
3607         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
3608
3609         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
3610         and __fcntl.
3611         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
3612         __fcntl only.
3613         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
3614         adding attribute_hidden to __open and __fcntl.
3615
3616         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
3617         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
3618         depend on libc-modules.h,
3619         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
3620
3621 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
3622
3623         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
3624         Remove macro.
3625         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
3626         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
3627         entry.
3628
3629         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
3630         Remove macro.
3631         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
3632         include <kernel-features.h>.
3633         [!__ASSUME_FALLOCATE]: Remove conditional code.
3634         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
3635
3636 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3637
3638         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
3639         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
3640         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
3641         (_ZGVdN4v_cos_avx2): Likewise.
3642         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
3643         (_ZGVdN4v_cos): Likewise.
3644         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
3645         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
3646         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
3647         (_ZGVdN4v_exp_avx2): Likewise.
3648         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
3649         (_ZGVdN4v_exp): Likewise.
3650         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
3651         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
3652         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
3653         (_ZGVdN4v_log_avx2): Likewise.
3654         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
3655         (_ZGVdN4v_log): Likewise.
3656         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
3657         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
3658         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
3659         (_ZGVdN4vv_pow_avx2): Likewise.
3660         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
3661         (_ZGVdN4vv_pow): Likewise.
3662         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
3663         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
3664         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
3665         (_ZGVdN4v_sin_avx2): Likewise.
3666         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
3667         (_ZGVdN4v_sin): Likewise.
3668         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
3669         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
3670         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
3671         (_ZGVdN4vvv_sincos_avx2): Likewise.
3672         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
3673         (_ZGVdN4vvv_sincos): Likewise.
3674         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
3675         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
3676         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
3677         (_ZGVbN4v_cosf_sse4): Likewise.
3678         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
3679         (_ZGVdN8v_cosf_avx2): Likewise.
3680         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
3681         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
3682         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
3683         (_ZGVbN4v_expf_sse4): Likewise.
3684         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
3685         (_ZGVdN8v_expf_avx2): Likewise.
3686         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
3687         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
3688         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
3689         (_ZGVbN4v_logf_sse4): Likewise.
3690         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
3691         (_ZGVdN8v_logf_avx2): Likewise.
3692         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
3693         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
3694         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
3695         (_ZGVbN4vv_powf_sse4): Likewise.
3696         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
3697         (_ZGVdN8vv_powf_avx2): Likewise.
3698         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
3699         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
3700         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
3701         (_ZGVbN4vvv_sincosf_sse4): Likewise.
3702         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
3703         (_ZGVdN8vvv_sincosf_avx2): Likewise.
3704         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
3705         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
3706         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
3707         (_ZGVbN4v_sinf_sse4): Likewise.
3708         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
3709         (_ZGVdN8v_sinf_avx2): Likewise.
3710         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3711         Use JUMPTARGET to call callee.
3712         (WRAPPER_IMPL_SSE2_ff): Likewise.
3713         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3714         (WRAPPER_IMPL_AVX): Likewise.
3715         (WRAPPER_IMPL_AVX_ff): Likewise.
3716         (WRAPPER_IMPL_AVX_fFF): Likewise.
3717         (WRAPPER_IMPL_AVX512): Likewise.
3718         (WRAPPER_IMPL_AVX512_ff): Likewise.
3719         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3720         Likewise.
3721         (WRAPPER_IMPL_SSE2_ff): Likewise.
3722         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3723         (WRAPPER_IMPL_AVX): Likewise.
3724         (WRAPPER_IMPL_AVX_ff): Likewise.
3725         (WRAPPER_IMPL_AVX_fFF): Likewise.
3726         (WRAPPER_IMPL_AVX512): Likewise.
3727         (WRAPPER_IMPL_AVX512_ff): Likewise.
3728         (WRAPPER_IMPL_AVX512_fFF): Likewise.
3729
3730 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3731
3732         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
3733         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
3734         qualifier.
3735         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
3736         internal_function qualifiers.
3737
3738 2016-03-15  Carlos O'Donell <carlos@redhat.com>
3739
3740         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
3741         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
3742         * math/atest-exp.c (exp_mpn): Mark chk unused.
3743         * math/atest-exp2.c (exp_mpn): Likwise.
3744         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
3745         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
3746
3747 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
3748
3749         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
3750         Remove macro.
3751         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
3752         <kernel-features.h>.
3753         [__NR_ppoll]: Make code unconditional.
3754         [!__ASSUME_PPOLL]: Remove conditional code.
3755
3756         * sysdeps/unix/sysv/linux/kernel-features.h
3757         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
3758         (__ASSUME_ACCEPT4): Likewise.
3759         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3760         Define.
3761         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
3762         Likewise.
3763         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3764         Likewise.
3765         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
3766         Likewise.
3767         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
3768         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
3769         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3770         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3771         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3772         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3773         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3774         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3775         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3776         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3777         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3778         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3779         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3780         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3781         * sysdeps/unix/sysv/linux/i386/kernel-features.h
3782         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3783         Likewise.
3784         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3785         Likewise.
3786         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3787         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3788         0x040300].
3789         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3790         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3791         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3792         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3793         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3794         0x030300].
3795         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
3796         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3797         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3798         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3799         0x040300].
3800         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3801         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3802         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3803         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3804         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3805         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3806         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3807         0x030300].
3808         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3809         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3810         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3811         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3812         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3813         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3814         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3815         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3816         * sysdeps/unix/sysv/linux/s390/kernel-features.h
3817         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3818         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3819         0x040300].
3820         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3821         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3822         * sysdeps/unix/sysv/linux/sh/kernel-features.h
3823         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3824         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3825         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3826         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
3827         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3828         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3829         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3830         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3831         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3832         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3833         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3834         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
3835         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3836         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3837         Likewise.
3838         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3839         Likewise.
3840
3841 2016-03-15  Andreas Schwab  <schwab@suse.de>
3842
3843         [BZ #19257]
3844         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
3845         statp->_u._ext.nscount as loop count.
3846
3847 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
3848
3849         * math/test-signgam-finite-c99.c: Also #undef
3850         __LIBC_INTERNAL_MATH_INLINES.
3851         * math/test-signgam-main.c: Likewise.
3852
3853 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
3854
3855         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
3856         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3857         (MADV_FREE): Likewise.
3858         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
3859         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
3860         EPOLLEXCLUSIVE.
3861
3862 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
3863
3864         * timezone/README: Remove mention of checktab.awk. Mention wiki
3865         SharedSourceFiles.
3866
3867 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
3868
3869         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
3870         WUNTRACED.
3871
3872 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3873
3874         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
3875         order to match the type of p when calling atomic_exchange_acq().
3876
3877 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3878
3879         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
3880         cfi_offset calls.
3881         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
3882         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
3883         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
3884         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
3885         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
3886
3887 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
3888
3889         * timezone/checktab.awk: Removed.
3890
3891 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
3892
3893         * manual/math.texi (Errors in Math Functions): Document relaxed
3894         accuracy goals for IBM long double.
3895         * math/libm-test.inc (test_exceptions): Always allow spurious
3896         "underflow" and "inexact" exceptions for IBM long double.
3897
3898 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
3899
3900         [BZ #19762]
3901         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
3902         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
3903         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3904         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
3905         (bit_arch_*): This for feature array.
3906         (bit_*): Renamed to ...
3907         (bit_cpu_*): This for cpu array.
3908         (index_*): Renamed to ...
3909         (index_arch_*): This for feature array.
3910         (index_*): Renamed to ...
3911         (index_cpu_*): This for cpu array.
3912         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
3913         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
3914         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
3915         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
3916         bit_##name with index_cpu_##name and bit_cpu_##name.
3917         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
3918         bit_##name with index_arch_##name and bit_arch_##name.
3919
3920 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
3921
3922         [BZ #19792]
3923         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
3924         Terminate FDE before return label.
3925
3926 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
3927
3928         [BZ #19790]
3929         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
3930         (rintl): Define as macro.
3931         [USE_AS_NEARBYINTL] (__rintl): Likewise.
3932         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
3933         of fesetround.  Ensure results are evaluated before end of scope.
3934         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
3935         USE_AS_NEARBYINTL and include s_rintl.c.
3936         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
3937         Disable exception traps in new environment.
3938         (libc_feholdsetround_ppc_ctx): Likewise.
3939
3940 2016-03-08  Roland McGrath  <roland@hack.frob.com>
3941
3942         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
3943         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
3944         (tst_audit10_aux) [__AVX512F__]: ... here.
3945
3946 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
3947
3948         * include/sys/auxv.h: New file.
3949
3950 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
3951
3952         [BZ #19759]
3953         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
3954
3955 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3956
3957         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
3958         operand modifier.
3959         (feclearexcept): Likewise.
3960
3961 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3962
3963         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
3964         to reflect the entire 32-bit HWCAP.
3965         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
3966         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
3967
3968 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
3969
3970         [BZ #19783]
3971         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
3972         $(test-via-rtld-prefix).
3973         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
3974
3975 2016-03-08  Florian Weimer  <fweimer@redhat.com>
3976
3977         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
3978         union wait.  Report any non-zero exit status as error.
3979
3980 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3981
3982         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
3983         configured with --enable-hardcoded-path-in-tests.
3984
3985 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
3986
3987         [BZ #19677]
3988         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
3989         (__ieee754_remainderl): Put zero low parts in canonical form.
3990         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
3991         file.  Based on
3992         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
3993         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
3994         with wrapper round test-fmodrem-ldbl-128ibm.c.
3995         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
3996         file.
3997         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
3998         Likewise.
3999         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4000         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4001
4002 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4003
4004         [BZ #19610]
4005         * elf/ldconfig.c (opt_link): Update comment.
4006         (options): Update help string for option -X.
4007         (search_dir): Unlink stale symbolic link only if updating symbolic
4008         links.
4009         * elf/tst-ldconfig-X.sh: New file.
4010         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4011         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4012
4013 2016-03-07  Andreas Schwab  <schwab@suse.de>
4014
4015         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4016         needed arguments.
4017
4018 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4019
4020         [BZ #15333]
4021         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4022         to lstat64.
4023
4024 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4025
4026         * libio/filedoalloc.c (isatty): Remove.
4027         (local_isatty): Add comment.  Call __isatty directly.
4028         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4029         * libio/wfiledoalloc.c (isatty): Remove.
4030         (_IO_wfile_doallocate): Update comment.
4031
4032 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4033
4034         [BZ #19269]
4035         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4036         tst-audit4-aux.o.
4037         (tst-audit10): Depend on tst-audit10-aux.o.
4038         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4039         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4040         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4041         instead of inline AVX code.
4042         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4043         instead of inline AVX512 code.
4044         * sysdeps/x86_64/tst-audit4-aux.c: New file
4045         * sysdeps/x86_64/tst-audit10-aux.c: New file
4046
4047         [BZ #19648]
4048         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4049
4050 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4051
4052         [BZ #14750]
4053         [BZ #10354]
4054         [BZ #18433]
4055         * include/sched.h (__clone): Add hidden prototype.
4056         (__clone2): Likewise.
4057         * include/unistd.h (__dup): Likewise.
4058         * posix/Makefile (tests): Add tst-spawn2.
4059         * posix/tst-spawn2.c: New file.
4060         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4061         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4062         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4063         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4064         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4065         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4066         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4067         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4068         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4069         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4070         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4072         Likewise.
4073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4074         Likewise.
4075         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4076         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4077         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4078         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4079         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4080         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4081         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4082         * sysdeps/unix/sysv/linux/nptl-signals.h
4083         (____nptl_is_internal_signal): New function.
4084         * sysdeps/unix/sysv/linux/spawni.c: New file.
4085
4086         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4087         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4088         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4089         * posix/tst-execvp2.c (do_test): Likewise.
4090         * posix/tst-execvp3.c (do_test): Likewise.
4091         * posix/tst-execvp4.c (do_test): Likewise.
4092         * posix/tst-execvpe1.c: New file.
4093         * posix/tst-execvpe2.c: Likewise.
4094         * posix/tst-execvpe3.c: Likewise.
4095         * posix/tst-execvpe4.c: Likewise.
4096         * posix/tst-execvpe5.c: Likewise.
4097         * posix/tst-execvpe6.c: Likewise.
4098
4099         [BZ #19534]
4100         * posix/execl.c (execl): Remove dynamic memory allocation.
4101         * posix/execle.c (execle): Likewise.
4102         * posix/execlp.c (execlp): Likewise.
4103
4104 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4105
4106         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4107         Replace .text with .text.avx512.
4108         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4109         Likewise.
4110
4111 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4112
4113         * sysdeps/generic/libnsl.abilist: New file.
4114         * sysdeps/generic/libutil.abilist: New file.
4115
4116 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4117
4118         [BZ #19762]
4119         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4120         HAS_ARCH_FEATURE with Fast_Rep_String.
4121         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4122         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4123         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4124         Likewise.
4125         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4126         Likewise.
4127         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4128         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4129         Likewise.
4130         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4131         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4132         Likewise.
4133
4134 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4135
4136         [BZ #19745]
4137         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4138         with *%rax in call.
4139
4140 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4141
4142         [BZ #19745]
4143         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4144         with *__libc_start_main@GOTPCREL(%rip) in call.
4145
4146 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4147
4148         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4149         inside conditional for nonempty $(CXX).
4150
4151         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4152         nonempty.
4153
4154         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4155         to test for empty $(CXX) rather than $(CXX) of "no".
4156
4157 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4158
4159         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4160
4161 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4162             H.J. Lu  <hongjiu.lu@intel.com>
4163
4164         [BZ #18880]
4165         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4166         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4167         enable __memcpy_ssse3_back.
4168
4169 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4170
4171         [BZ #19758]
4172         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4173         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4174
4175 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4176
4177         [BZ #19490]
4178         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4179         (__fentry__): Likewise.
4180
4181 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4182
4183         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4184         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4185
4186 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4187
4188         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4189         __mcount_internal directly.
4190         (C_LABEL(__fentry__)): Likewise.
4191         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4192         directly.
4193
4194 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4195
4196         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4197         (__start_context): Call __setcontext directly.
4198
4199 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4200
4201         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4202         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4203         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4204         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4205         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4206         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4207         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4208         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4209         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4210         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4211         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4212         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4213         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4214         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4215         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4216         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4217         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4218         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4219         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4220         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4221         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4222         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4223         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4224         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4225         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4226         Remove conditional code.
4227         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4228         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4229         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4230         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4231         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4232         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4233         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4234         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4235         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4236         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4237         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4238         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4239
4240 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4241
4242         * NEWS (2.23): Fix typo in bug 19048 text.
4243
4244 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4245
4246         [BZ #14259]
4247         * Makeconfig: Rename msgcatdir to localedir.
4248         Rename inst_msgcatdir to inst_localedir.
4249         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4250         * config.make.in: Add localedir.
4251         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4252         (ldd-rewrite): Likewise.
4253         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4254         (install-others): Use inst_localedir.
4255         (CPPFLAGS): Use localedir.
4256         * locale/Makefile (locale-CPPFLAGS): Likewise.
4257         * po/Makefile (mo-installed): Use inst_localedir.
4258
4259         [BZ #19575]
4260         * localedata/charmaps/GB18030: Update comments regarding PAU to
4261         non-PUA mappings.
4262
4263 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4264
4265         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4266         test for header.
4267         * sysdeps/unix/sysv/linux/configure: Regenerated.
4268         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4269         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4270         Remove conditional code.
4271         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4272
4273         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4274         Define to 3.2.0.
4275         (arch_minimum_kernel): Likewise.
4276         * sysdeps/unix/sysv/linux/configure: Regenerated.
4277         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4278         Define to 2.6.32.
4279         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4280         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4281         (arch_minimum_kernel): Define to 2.6.32.
4282         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4283         * README: Document Linux 3.2 requirement.
4284         * manual/install.texi (Linux): Document Linux 3.2 headers
4285         requirement.
4286         * INSTALL: Regenerated.
4287
4288 2016-02-24  Andreas Schwab  <schwab@suse.de>
4289
4290         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4291         if !NO_LONG_DOUBLE.
4292
4293 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4294
4295         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4296         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4297
4298 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4299
4300         [BZ #19512]
4301         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4302
4303 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4304
4305         * posix/tst-dir.c: Include libc-internal.h.
4306
4307 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4308
4309         [BZ #19056]
4310         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4311         * manual/filesys.texi (Reading/Closing Directory): Mention
4312         deprecaion.
4313         * posix/tst-dir.c (main): Disable deprecation warning in test.
4314
4315 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4316
4317         [BZ #19679]
4318         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4319         Renamed to ...
4320         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4321         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4322         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4323         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4324         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4325         * sysdeps/x86_64/dl-trampoline.h
4326         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4327         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4328
4329 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4330
4331         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4332
4333 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4334
4335         * elf/elf.h (R_386_GOT32X): New.
4336         (R_386_NUM): Update.
4337         (R_X86_64_GOTPCRELX: New.
4338         (R_X86_64_REX_GOTPCRELX): New.
4339         (R_X86_64_NUM): Update.
4340
4341 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4342
4343         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4344
4345 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4346
4347         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4348         assign attr->stackaddr to it, and adjust it down when
4349         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4350         [_STACK_GROWS_UP]: Delete assert.
4351         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4352         Implement stack grows up logic.
4353         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4354         stack grows up logic.
4355
4356 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4357
4358         * NEWS: Update with 2.24 template.
4359
4360 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4361
4362         [BZ #19678]
4363         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4364         Ensure +0.0 is returned when taking the next value below the least
4365         positive value.
4366
4367 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4368
4369         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4370         available.  Do not define NO_THREADS.
4371         * malloc/malloc.c: Do not check NO_THREADS.
4372         * malloc/arena.c: Likewise.
4373
4374 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4375
4376         * malloc/malloc.c (__libc_mallinfo): Update comment.
4377         (struct malloc_par): Remove max_total_mem member, it was always 0.
4378         (int_mallinfo): Store 0 into usmblks (no functional change).
4379         * malloc/hooks.c (struct malloc_state): Document that
4380         max_total_mem is always 0.
4381         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4382         always 0.
4383         * manual/memory.texi (Statistics of Malloc): Likewise.
4384
4385 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4386
4387         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4388         * malloc/arena.c (arena_max): Remove.
4389         (heap_trim, _int_new_arena): Do not update arena_max.
4390
4391 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4392
4393         * resolv/res_init.c (res_ninit): Update comment.
4394
4395 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4396
4397         [BZ #19505]
4398         * posix/spawn_int.h: Add headers and include guard.
4399         (__spawn_valid_fd): New function.
4400         * posix/spawn_faction_addopen.c
4401         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4402         * posix/spawn_faction_addclose.c
4403         (posix_spawn_file_actions_addclose): Likewise.
4404         * posix/spawn_faction_adddup2.c
4405         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4406         second file descriptor.
4407         * posix/spawn_valid_fd.c: New file.
4408         * posix/tst-posix_spawn-fd.c: New file.
4409         * posix/Makefile (routines): Add spawn_valid_fd.
4410         (tests): Add tst-posix_spawn-fd.
4411
4412 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4413
4414         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4415         (do_test): Limit the number of arenas, so that we can use fewer
4416         outer threads.  Limit timeout to 3 seconds, in preparation for a
4417         larger TIMEOUT value.
4418
4419 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4420
4421         [BZ #19674]
4422         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4423         sign in overflowing and underflowing results when overflow or
4424         underflow is detected early.  Include sign in result before rather
4425         than after scaling.
4426
4427         [BZ #19603]
4428         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4429         (__ieee754_remainderl): Adjust sign of integer version of low part
4430         when taking absolute value of high part.
4431         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4432         * math/libm-test.inc (remainder_test_data): Add another test.
4433         (remquo_test_data): Likewise.
4434
4435 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4436
4437         [BZ #19602]
4438         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4439         equal high parts and both low parts zero specially.
4440         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4441         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4442         Add test-fmodl-ldbl-128ibm.
4443
4444         [BZ #19595]
4445         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4446         common logic for all cases of shifting subnormal results.  Do not
4447         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4448         exponent to ldbl_insert_mantissa in subnormal case.
4449
4450         [BZ #19594]
4451         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4452         on high and low parts then adjust result and use
4453         ldbl_canonicalize_int if needed.
4454
4455         [BZ #19593]
4456         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4457         on high part and __floor or __ceil on low part then use
4458         ldbl_canonicalize_int if needed.
4459
4460         [BZ #19592]
4461         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4462         high and low parts then use ldbl_canonicalize_int if needed.
4463
4464         [BZ #17899]
4465         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4466         New function.
4467         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4468         on high and low parts then use ldbl_canonicalize_int if needed.
4469
4470 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4471
4472         * configure: Regenerated.
4473
4474         * po/libc.pot: Regenerated.
4475
4476         * po/be.po: Updated translation.
4477         * po/bg.po: Likewise.
4478         * po/ca.po: Likewise.
4479         * po/cs.po: Likewise.
4480         * po/da.po: Likewise.
4481         * po/el.po: Likewise.
4482         * po/eo.po: Likewise.
4483         * po/es.po: Likewise.
4484         * po/fi.po: Likewise.
4485         * po/fr.po: Likewise.
4486         * po/gl.po: Likewise.
4487         * po/hr.po: Likewise.
4488         * po/hu.po: Likewise.
4489         * po/ia.po: Likewise.
4490         * po/id.po: Likewise.
4491         * po/it.po: Likewise.
4492         * po/ja.po: Likewise.
4493         * po/lt.po: Likewise.
4494         * po/nb.po: Likewise.
4495         * po/nl.po: Likewise.
4496         * po/pt_BR.po: Likewise.
4497         * po/rw.po: Likewise.
4498         * po/sk.po: Likewise.
4499         * po/sl.po: Likewise.
4500         * po/sv.po: Likewise.
4501         * po/tr.po: Likewise.
4502         * po/zh_CN.po: Likewise.
4503         * po/zh_TW.po: Likewise.
4504
4505         * version.h (RELEAES): Set to "development".
4506         (VERSION): Set to 2.23.90.
4507
4508         * version.h (RELEASE): Set to "stable".
4509         (VERSION): Set to 2.23.
4510         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4511
4512         * NEWS: Updated fixed bugs.
4513
4514 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4515             Wilco Dijkstra  <wdijkstr@arm.com>
4516
4517         [BZ #19462]
4518         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4519         (_STRING_INLINE_unaligned): This.
4520         * include/string.h: Include <string_private.h>.
4521         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4522         _STRING_INLINE_unaligned.
4523         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4524         (_STRING_INLINE_unaligned): New.
4525         * sysdeps/aarch64/string_private.h: New file.
4526         * sysdeps/generic/string_private.h: Likewise.
4527         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4528         * sysdeps/s390/string_private.h: Likewise.
4529         * sysdeps/x86/string_private.h: Likewise.
4530         * sysdeps/m68k/m680x0/m68020/bits/string.h
4531         (_STRING_ARCH_unaligned): Renamed to ...
4532         (_STRING_INLINE_unaligned): This.
4533         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4534         to ...
4535         (_STRING_INLINE_unaligned): This.
4536         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4537         to ...
4538         (_STRING_INLINE_unaligned): This.
4539         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4540         to ...
4541         (_STRING_INLINE_unaligned): This.
4542
4543 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4544             H.J. Lu  <hongjiu.lu@intel.com>
4545
4546         [BZ #19590]
4547         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4548         relocation.
4549
4550 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4551
4552         [BZ #18665]
4553         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
4554         *herrno_p.
4555         (gaih_getanswer): Document functional behviour. Return tryagain
4556         if any result is tryagain.
4557         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
4558         when freed.
4559         * resolv/res_send.c: Add copyright text.
4560         (__libc_res_nsend): Document that MAXPACKET is expected.
4561         (send_vc): Document. Remove buffer reuse.
4562         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
4563         size of the buffer. Add Dprint for truncated UDP buffer.
4564
4565 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
4566
4567         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
4568         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
4569         * INSTALL: Regenerate.
4570
4571 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
4572             Jonathan Wakely  <jwakely@redhat.com>
4573             Carlos O'Donell  <carlos@redhat.com>
4574
4575         [BZ 19439]
4576         * math/Makefile (tests): Add test-math-isinff.
4577         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
4578         * math/bits/mathcalls.h [__USE_MISC]: Use
4579         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
4580         functions not in C++11 and which don't conflict e.g. isinff,
4581         isinfl etc.
4582         * math/test-math-isinff.cc: New file.
4583
4584 2016-02-12  Florian Weimer  <fweimer@redhat.com>
4585
4586         * misc/bug18240.c (do_test): Set RLIMIT_AS.
4587
4588 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4589
4590         [BZ #19529]
4591         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
4592
4593 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4594
4595         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4596
4597 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
4598
4599         [BZ #19550]
4600         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
4601         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
4602         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
4603         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
4604         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
4605         New syscall entry.
4606         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
4607         New syscall entry.
4608         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
4609         syscall entry.
4610
4611 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4612
4613         [BZ #18240]
4614         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
4615         unsigned int wraparound.
4616
4617 2016-01-27  Florian Weimer  <fweimer@redhat.com>
4618
4619         [BZ #18240]
4620         * misc/bug18240.c: New test.
4621         * misc/Makefile (tests): Add it.
4622
4623 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
4624             Joseph Myers  <joseph@codesourcery.com>
4625
4626         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
4627         load in branch delay slot when less than a word of input left.
4628
4629 2016-01-27  Andreas Schwab  <schwab@suse.de>
4630
4631         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
4632         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
4633         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
4634         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
4635
4636 2016-01-26  David S. Miller  <davem@davemloft.net>
4637
4638         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
4639
4640 2016-01-25  David S. Miller  <davem@davemloft.net>
4641
4642         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
4643         __sqrtl_finite.
4644         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
4645         instead using versioned_symbol.
4646         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
4647         of entries.
4648
4649         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
4650         __sqrtl_finite to GLIBC_2.23
4651
4652 2016-01-25  Ricchard Henderson  <rth@redhat.com>
4653
4654         * sysdeps/alpha/fpu/libm-test-ulps: Update.
4655
4656 2016-01-25  Andreas Schwab  <schwab@suse.de>
4657
4658         [BZ #17514]
4659         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
4660         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
4661         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
4662         * nptl/tst-mutex-errorcheck.c: New file.
4663
4664 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4665
4666         [BZ #18560]
4667         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
4668         (IPCOP_semop): Likewise.
4669         (IPCOP_semget): Likewise.
4670         (IPCOP_semctl): Likewise.
4671         (IPCOP_msgsnd): Likewise.
4672         (IPCOP_msgrcv): Likewise.
4673         (IPCOP_msgget): Likewise.
4674         (IPCOP_msgctl): Likewise.
4675         (IPCOP_shmat): Likewise.
4676         (IPCOP_shmdt): Likewise.
4677         (IPCOP_shmget): Likewise.
4678         (IPCOP_shmctl): Likewise.
4679
4680 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4681
4682         * string/tst-endian.c: Include <libc-internal.h>.
4683         (do_test): Ignore tautological-compare warnings around
4684         "htobeXX (beXXtoh (i)) != i" and
4685         "htoleXX (leXXtoh (i)) != i" if-statements.
4686
4687 2016-01-24  David S. Miller  <davem@davemloft.net>
4688
4689         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
4690         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
4691         alias.
4692         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4693         __sqrtl_finite.
4694
4695         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4696
4697 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
4698
4699         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
4700         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
4701         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
4702
4703 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4704
4705         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
4706         (thread_func): Use new function to simplify barrier check.
4707         (do_test): Use new function to simplify checking barrier exit
4708         code, and actually join the child thread.
4709
4710 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4711
4712         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
4713         semicolon.
4714         (__libc_tend): Likewise.
4715         (__libc_tabort): Likewise.
4716
4717 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
4718
4719         * sysdeps/nios2/libm-test-ulps: Update.
4720         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
4721         (__gtsf2): Likewise.
4722         (__unorddf2): Likewise.
4723         (__unordsf2): Likewise.
4724         (__ledf2): Likewise.
4725
4726 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
4727
4728         * nis/nis_table.c (__follow_path): Disable diagnostic for
4729         uninitialized variable that is a false positive for gcc 4.7.
4730         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
4731
4732 2016-01-20  Roland McGrath  <roland@hack.frob.com>
4733
4734         * sysdeps/nacl/lowlevellock-futex.h
4735         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
4736         Always evaluate PRIVATE argument.
4737
4738 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4739
4740         [BZ #19490]
4741         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
4742         (pthread_cond_broadcast): Use ENTRY/END
4743         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
4744         (pthread_cond_signal): Likewise.
4745         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
4746         Likewise.
4747         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
4748         Likewise.
4749         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
4750         Likewise.
4751
4752 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
4753
4754         * sysdeps/ieee754/dbl-64/s_finite.c
4755         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
4756         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
4757         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
4758         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
4759         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
4760
4761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
4762         (__gtsf2): Add as optional for libc.so.
4763         (__unordsf2): Likewise.
4764         (__signbit): Remove for libc.so.
4765         (__signbitl): Likewise.
4766
4767 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
4768
4769         * iconvdata/bug-iconv11.c (test_ibm93x):
4770         Use %zu printf format specifier for size_t argument.
4771
4772 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
4773
4774         * math/gen-libm-test.pl (parse_ulps): Do not reduce
4775         already-recorded ulps.
4776         * sysdeps/arm/libm-test-ulps: Regenerated.
4777         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4778         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4779         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4780
4781 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
4782             Paul Pluzhnikov  <ppluzhnikov@google.com>
4783
4784         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
4785         assembler not supporting AVX-512.
4786
4787 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
4788
4789         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4790
4791 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
4792
4793         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
4794         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4795
4796         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
4797
4798         * sysdeps/arm/libm-test-ulps: Regenerated.
4799
4800 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
4801
4802         [BZ #19451]
4803         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
4804
4805 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
4806
4807         [BZ #19486]
4808         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
4809         * sysdeps/generic/fix-fp-int-convert-overflow.h
4810         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
4811         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
4812         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
4813         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
4814         Likewise.
4815         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
4816         Avoid conversions to long int where inexact exceptions
4817         could be raised.
4818         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
4819         Likewise.
4820         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
4821         Avoid conversions to long long int where inexact exceptions
4822         could be raised.
4823         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
4824         Likewise.
4825
4826 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
4827
4828         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
4829         * configure: Regenerated.
4830
4831 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
4832
4833         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
4834
4835 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
4836
4837         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
4838         outside of comment.
4839
4840 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4841
4842         * nptl/tst-barrier1.c: Add description on first line.
4843         * nptl/tst-barrier2.c: Likewise.
4844         * nptl/tst-barrier3.c: Likewise.
4845         * nptl/tst-barrier4.c: Likewise.
4846         * nptl/tst-barrier5.c: Likewise.
4847
4848 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4849
4850         [BZ #18868]
4851         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
4852
4853 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
4854
4855         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
4856         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
4857         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
4858         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
4859         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
4860         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
4861         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
4862         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
4863         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
4864         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
4865         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
4866
4867 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4868
4869         [BZ #13065]
4870         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
4871         new implementation.
4872         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
4873         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
4874         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
4875         (BARRIER_IN_THRESHOLD): New macro.
4876         * nptl/pthread_barrierattr_setpshared.c
4877         (pthread_barrierattr_setpshared): Clean up.
4878         * nptl/tst-barrier4.c: Correct comment.
4879         * nptl/tst-barrier5.c: New file.
4880         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
4881         (gen-as-const-headers): Remove lowlevelbarrier.sym.
4882         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
4883         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
4884         * nptl/lowlevelbarrier.sym: Remove.
4885         * nptl/DESIGN-barrier.txt: Remove.
4886         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
4887         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
4888         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
4889         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
4890         error.
4891         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
4892         implementation.
4893
4894 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4895
4896         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
4897         (do_child): Mask SIGRTMIN while thr is running.
4898
4899 2016-01-15  Martin Sebor  <msebor@redhat.com>
4900
4901         [BZ #19432]
4902         * iconvdata/Makefile: Add bug-iconv11.
4903         * iconvdata/bug-iconv11.c: New test.
4904         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
4905         * iconvdata/ibm933.c: Same.
4906         * iconvdata/ibm935.c: Same.
4907         * iconvdata/ibm937.c: Same.
4908         * iconvdata/ibm939.c: Same.
4909
4910 2016-01-15  Martin Sebor  <msebor@redhat.com>
4911
4912         [BZ #19443]
4913         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
4914         [DEBUG] (_ufc_set_bits): Declare used.
4915         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
4916         [DEBUG] (print_all): Declare used.
4917         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
4918         operands of the ternary ?: expression to target type.
4919         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
4920         calling the undeclared abort.
4921         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
4922
4923 2016-01-15  Martin Sebor  <msebor@redhat.com>
4924
4925         [BZ #18755]
4926         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
4927         warnings.
4928         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
4929         (__gai_create_helper_thread): Same.
4930         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
4931         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
4932         to suppress -Wmaybe-uninitialized warnings.
4933
4934 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
4935
4936         [BZ #19465]
4937         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
4938         inside if.
4939         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4940         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
4941         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4942
4943 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
4944
4945         [BZ #19466]
4946         * time/tst-mktime2.c (time_t_max): Removed.
4947         (time_t_min): Likewise.
4948         (TYPE_SIGNED): New.
4949         (TYPE_MINIMUM): Likewise.
4950         (TYPE_MAXIMUM): Likewise.
4951         (TIME_T_MIN): Likewise.
4952         (TIME_T_MAX): Likewise.
4953         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
4954         and TIME_T_MIN.
4955         (do_test): Likewise.
4956
4957 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
4958
4959         [BZ #19467]
4960         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4961         index_Fast_Unaligned_Load flag for Excavator family CPUs.
4962
4963 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
4964
4965         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
4966
4967 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
4968
4969         * benchtests/Makefile (PYTHON): Define.
4970         (bench-func): Use $(PYTHON) to run python scripts.
4971         ($(objpfx)bench-%.c): Likewise.
4972
4973 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
4974
4975         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
4976         leading slash when `file_name' is "/".
4977
4978 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
4979
4980         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
4981         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
4982         Likewise.
4983         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
4984         Likewise.
4985         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
4986         Likewise.
4987         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
4988         enum constant and macro.
4989         (PTRACE_SETSIGMASK): Likewise.
4990         (PTRACE_SECCOMP_GET_FILTER): Likewise.
4991         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
4992         (PTRACE_GETSIGMASK): Likewise.
4993         (PTRACE_SETSIGMASK): Likewise.
4994         (PTRACE_SECCOMP_GET_FILTER): Likewise.
4995         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
4996         Likewise.
4997         (PTRACE_SETSIGMASK): Likewise.
4998         (PTRACE_SECCOMP_GET_FILTER): Likewise.
4999         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5000         (PTRACE_GETSIGMASK): Likewise.
5001         (PTRACE_SETSIGMASK): Likewise.
5002         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5003         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5004         Likewise.
5005         (PTRACE_SETSIGMASK): Likewise.
5006         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5007         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5008         Likewise.
5009         (PTRACE_SETSIGMASK): Likewise.
5010         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5011         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5012         Likewise.
5013         (PTRACE_SETSIGMASK): Likewise.
5014         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5015
5016 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5017             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5018
5019         [BZ #19439]
5020         * math/bits/mathcalls.h
5021         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5022         prototype.
5023         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5024
5025 2016-01-11  Andreas Schwab  <schwab@suse.de>
5026
5027         [BZ #19253]
5028         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5029         cache when TZDEFRULES was used.
5030         * time/tst-tzname.c: New file.
5031         * time/Makefile (test): Add tst-tzname.
5032         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5033         * timezone/Makefile (test-zones): Add $(posixrules-file).
5034         ($(testdata)/$(posixrules-file)): New rule.
5035
5036 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5037
5038         Fix doc quoting problems with Texinfo 5
5039         Without this change, in the info file output, Texinfo 5 quotes code
5040         in text with undirected single quotes 'like this' and generates
5041         code examples that with many PDF readers cannot be cut out of PDFs
5042         and pasted into code.
5043         * manual/libc.texinfo: Configure the libc manual like the GNU
5044         Emacs manual, by using @documentencoding and setting
5045         txicodequoteundirected and txicodequotebacktick.  This way,
5046         Texinfo 5 quotes code in text with directed single quotes ‘like
5047         this’ and produces examples that can be cut out of PDFs.  This
5048         change causes Texinfo 5 to generate info files that contain UTF-8
5049         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5050         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5051
5052 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5053
5054         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5055         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5056         barriers to their respective compiler built-ins.
5057         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5058         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5059         * sysdeps/powerpc/sysdep.h: Likewise.
5060         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5061         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5062         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5063
5064 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5065
5066         * scripts/config.guess: Revert previous shebang change.
5067         * scripts/config.sub: Likewise.
5068         * scripts/mkinstalldirs: Likewise.
5069
5070 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5071
5072         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5073         PPC_FEATURE2_HAS_IEEE128.
5074         * sysdeps/powerpc/dl-procinfo.c:
5075         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5076
5077 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5078
5079         [BZ #19415]
5080         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5081         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5082         (_dl_lookup_address): Rewrite using function resolver trampoline.
5083         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5084         two bits in address.
5085
5086 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5087
5088         * longlong.h: Change !__SHMEDIA__ to
5089         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5090         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5091
5092 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5093             Joseph Myers  <joseph@codesourcery.com>
5094             Mark Shinwell  <shinwell@codesourcery.com>
5095             Andrew Stubbs  <ams@codesourcery.com>
5096             Rich Felker <dalias@libc.org>
5097
5098         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5099
5100 2016-01-07  Richard Henderson  <rth@redhat.com>
5101
5102         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5103
5104 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5105
5106         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5107         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5108         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5109         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5110         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5111
5112 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5113             Joseph Myers  <joseph@codesourcery.com>
5114
5115         * timezone/private.h: Update from tzcode 2015g.
5116         * timezone/tzfile.h: Likewise.
5117         * timezone/tzselect.ksh: Likewise.
5118         * timezone/zdump.c: Likewise.
5119         * timezone/zic.c: Likewise.
5120         * timezone/ialloc.c: Remove file.
5121         * timezone/scheck.c: Likewise.
5122         * timezone/Makefile (extra-objs): Remove variable.
5123         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5124         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5125         -Wno-maybe-uninitialized.
5126         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5127         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5128         (CFLAGS-ialloc.c): Remove variable.
5129         (CFLAGS-scheck.c): Likewise.
5130         * timezone/README: Update list of files from tzcode.
5131
5132 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5133
5134         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5135         instead of __fxprintf when _LIBC is undefined.
5136
5137 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5138
5139         * catgets/test-gencat.sh: Remove space after shebang.
5140         * conform/GlibcConform.pm: Likewise.
5141         * conform/check-header-lists.sh: Likewise.
5142         * conform/conformtest.pl: Likewise.
5143         * conform/linknamespace.pl: Likewise.
5144         * conform/list-header-symbols.pl: Likewise.
5145         * debug/catchsegv.sh: Likewise.
5146         * elf/genrtldtbl.awk: Likewise.
5147         * elf/tst-pathopt.sh: Likewise.
5148         * elf/tst-rtld-load-self.sh: Likewise.
5149         * grp/tst_fgetgrent.sh: Likewise.
5150         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5151         * iconvdata/gen-8bit-gap.sh: Likewise.
5152         * iconvdata/gen-8bit.sh: Likewise.
5153         * iconvdata/run-iconv-test.sh: Likewise.
5154         * intl/tst-gettext.sh: Likewise.
5155         * intl/tst-gettext2.sh: Likewise.
5156         * intl/tst-gettext4.sh: Likewise.
5157         * intl/tst-gettext6.sh: Likewise.
5158         * intl/tst-translit.sh: Likewise.
5159         * io/ftwtest-sh: Likewise.
5160         * libio/test-freopen.sh: Likewise.
5161         * locale/gen-translit.pl: Likewise.
5162         * malloc/tst-mtrace.sh: Likewise.
5163         * manual/check-safety.sh: Likewise.
5164         * manual/libc-texinfo.sh: Likewise.
5165         * manual/tsort.awk: Likewise.
5166         * manual/xtract-typefun.awk: Likewise.
5167         * nptl/tst-cancel-wrappers.sh: Likewise.
5168         * nptl/tst-tls6.sh: Likewise.
5169         * posix/globtest.sh: Likewise.
5170         * posix/tst-getconf.sh: Likewise.
5171         * posix/wordexp-tst.sh: Likewise.
5172         * scripts/check-c++-types.sh: Likewise.
5173         * scripts/check-local-headers.sh: Likewise.
5174         * scripts/config.guess: Likewise.
5175         * scripts/config.sub: Likewise.
5176         * scripts/cpp: Likewise.
5177         * scripts/cross-test-ssh.sh: Likewise.
5178         * scripts/documented.sh: Likewise.
5179         * scripts/evaluate-test.sh: Likewise.
5180         * scripts/gen-libc-abis: Likewise.
5181         * scripts/gen-sorted.awk: Likewise.
5182         * scripts/list-fixed-bugs.py: Likewise.
5183         * scripts/merge-test-results.sh: Likewise.
5184         * scripts/mkinstalldirs: Likewise.
5185         * scripts/rellns-sh: Likewise.
5186         * scripts/test-installation.pl: Likewise.
5187         * scripts/update-copyrights: Likewise.
5188         * stdio-common/tst-printf.sh: Likewise.
5189         * stdio-common/tst-unbputc.sh: Likewise.
5190         * stdlib/tst-fmtmsg.sh: Likewise.
5191         * stdlib/tst-setcontext3.sh: Likewise.
5192         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5193         * sysdeps/unix/make-syscalls.sh: Likewise.
5194
5195 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5196
5197         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5198         asm stw with atomic_exchange_rel.  Add explanatory comment.
5199         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5200         Likewise.
5201
5202 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5203
5204         [BZ #19122]
5205         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5206         * sysdeps/generic/dl-unistd.h: New file.
5207         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5208
5209 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5210
5211          [BZ #19122]
5212          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5213          * sysdeps/generic/dl-mman.h: New file.
5214          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5215
5216 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5217
5218         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5219         trailing whitespace removed.
5220         * scripts/config.guess: Update to version 2016-01-01.
5221         * scripts/config.sub: Update to version 2016-01-01.
5222         * scripts/move-if-change: Update from gnulib.
5223
5224 2016-01-04  Anton Blanchard  <anton@samba.org>
5225
5226         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5227         for array indices.
5228         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5229
5230 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5231
5232         * NEWS: Update copyright dates.
5233         * catgets/gencat.c (print_version): Likewise.
5234         * csu/version.c (banner): Likewise.
5235         * debug/catchsegv.sh: Likewise.
5236         * debug/pcprofiledump.c (print_version): Likewise.
5237         * debug/xtrace.sh (do_version): Likewise.
5238         * elf/ldconfig.c (print_version): Likewise.
5239         * elf/ldd.bash.in: Likewise.
5240         * elf/pldd.c (print_version): Likewise.
5241         * elf/sotruss.sh: Likewise.
5242         * elf/sprof.c (print_version): Likewise.
5243         * iconv/iconv_prog.c (print_version): Likewise.
5244         * iconv/iconvconfig.c (print_version): Likewise.
5245         * locale/programs/locale.c (print_version): Likewise.
5246         * locale/programs/localedef.c (print_version): Likewise.
5247         * login/programs/pt_chown.c (print_version): Likewise.
5248         * malloc/memusage.sh (do_version): Likewise.
5249         * malloc/memusagestat.c (print_version): Likewise.
5250         * malloc/mtrace.pl: Likewise.
5251         * manual/libc.texinfo: Likewise.
5252         * nptl/version.c (banner): Likewise.
5253         * nscd/nscd.c (print_version): Likewise.
5254         * nss/getent.c (print_version): Likewise.
5255         * nss/makedb.c (print_version): Likewise.
5256         * posix/getconf.c (main): Likewise.
5257         * scripts/test-installation.pl: Likewise.
5258         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5259
5260         * All files with FSF copyright notices: Update copyright dates
5261         using scripts/update-copyrights.
5262         * intl/plural.c: Regenerated.
5263         * locale/programs/charmap-kw.h: Likewise.
5264         * locale/programs/locfile-kw.h: Likewise.
5265
5266 2016-01-02  Helge Deller  <deller@gmx.de>
5267
5268         [BZ #19285]
5269         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5270         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5271         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5272         (MADV_xxK_PAGES): Remove.
5273
5274 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5275
5276         [BZ #15421]
5277         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5278         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5279         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5280         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5281
5282 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5283
5284         [BZ #19408]
5285         * sysdeps/unix/sysv/linux/personality.c: New file.
5286         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5287         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5288         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5289         (sysdep_routines): Add personality.
5290         (tests): Add tst-personality.
5291         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5292         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5293         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5294         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5295         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5296         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5297         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5298         Likewise.
5299         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5300         Likewise.
5301         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5302         Likewise.
5303         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5304         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5305         Likewise.
5306
5307 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5308
5309         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5310         (PATH_ARM_SYSTYPE): Remove.
5311         (PATH_CPUINFO): Likewise.
5312         (IO_BASE_FOOTBRIDGE): Likewise.
5313         (IO_SHIFT_FOOTBRIDGE): Likewise.
5314         (struct platform): Likewise.
5315         (init_iosys): Remove compatibility code for 2.4 kernels.
5316         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5317
5318 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5319
5320         * malloc/tst-malloc-thread-fail.c: New file.
5321         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5322         (tst-malloc-thread-fail): Link against libpthread.
5323
5324 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5325
5326         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5327         (get_parser): New function.
5328         (main): New function.
5329
5330 2015-12-29  Rob Wu  <rob@robwu.nl>
5331
5332         [BZ #19369]
5333         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5334
5335 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5336
5337         [BZ #19270]
5338         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5339
5340 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5341
5342         [BZ #15421]
5343         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5344
5345 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5346
5347         [BZ #13690]
5348         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5349         after releasing it.
5350         (__lll_robust_unlock): Likewise.
5351         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5352         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5353         (lll_robust_unlock): Likewise.
5354         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5355         Prevent warnings in callers.
5356
5357 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5358
5359         * malloc/arena.c (list_lock): Update comment.
5360
5361 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5362
5363         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5364         __parse_hwcap_and_convert_at_platform to libc.a.
5365
5366 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5367
5368         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5369         platform and feature support for POWER9.
5370         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5371         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5372         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5373         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5374         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5375         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5376         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5377         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5378
5379 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5380
5381         Harmonize generic stdio-lock support with nptl
5382
5383         This fixes build when _IO_funlockfile is a macro, fixes build where
5384         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5385         stack unwind.
5386
5387         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5388         _IO_release_lock ): Use cleanup attribute on new
5389         _IO_acquire_lock_file variable instead of assuming that
5390         _IO_release_lock will be called.
5391         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5392         _IO_acquire_lock_needs_exceptions_enabled.
5393         (_IO_acquire_lock_clear_flags2): New macro.
5394
5395 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5396
5397         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5398
5399 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5400
5401         [BZ #19182]
5402         * malloc/arena.c (list_lock): Document lock ordering requirements.
5403         (free_list_lock): New lock.
5404         (ptmalloc_lock_all): Comment on free_list_lock.
5405         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5406         (detach_arena): Update comment.  free_list_lock is now needed.
5407         (_int_new_arena): Use free_list_lock around detach_arena call.
5408         Acquire arena lock after list_lock.  Add comment, including FIXME
5409         about incorrect synchronization.
5410         (get_free_list): Switch to free_list_lock.
5411         (reused_arena): Acquire free_list_lock around detach_arena call
5412         and attached threads counter update.  Add two FIXMEs about
5413         incorrect synchronization.
5414         (arena_thread_freeres): Switch to free_list_lock.
5415         * malloc/malloc.c (struct malloc_state): Update comments to
5416         mention free_list_lock.
5417
5418 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5419
5420         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5421         Remove functions.
5422         (sloww, sloww1): Accept argument to offset quadrant.
5423         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5424         quadrant.
5425         (__sin, __cos): Consolidate common code into new functions.
5426         (reduce_sincos_1, do_sincos_1): New functions.
5427         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5428
5429         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5430         code to new functions.
5431         (reduce_sincos_2, do_sincos_2): New functions.
5432         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5433
5434         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5435         common code for sincos.
5436         (__cos) [!IN_SINCOS]: Likewise.
5437         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5438         New function.
5439         (__sincos): Use it.
5440
5441 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5442
5443         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5444         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5445         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5446
5447 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5448
5449         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5450         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5451         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5452         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5453         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5454         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5455         index_Prefer_No_VZEROUPPER): New feature.
5456         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5457         Prefer_No_VZEROUPPER for Knights Landing.
5458
5459 015-12-18  Torvald Riegel  <triegel@redhat.com>
5460
5461         * math/atest-exp2.c (mp_exp_m1): Remove.
5462
5463 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5464
5465         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5466         syscalls.
5467         (__SYSCALL0): New macro.
5468         (__SYSCALL1): Likewise.
5469         (__SYSCALL2): Likewise.
5470         (__SYSCALL3): Likewise.
5471         (__SYSCALL4): Likewise.
5472         (__SYSCALL5): Likewise.
5473         (__SYSCALL6): Likewise.
5474         (__SYSCALL_CONCAT_X): Likewise.
5475         (__SYSCALL_CONCAT): Likewise.
5476         (__SYSCALL_DIST): Likewise.
5477         (__SYSCALL_CALL): Likewise.
5478
5479 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5480
5481         [BZ #19363]
5482         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5483
5484 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5485
5486         [BZ #19375]
5487         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5488         negative subnormals.
5489
5490 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5491
5492         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5493         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5494         (INTERNAL_SYSCALL_NCS): Use it.
5495         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5496
5497 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5498
5499         [BZ #19243]
5500         * malloc/arena.c (get_free_list): Remove assert and adjust
5501         reference count handling.  Add comment about reused_arena
5502         interaction.
5503         (reused_arena): Add comments abount get_free_list interaction.
5504         * malloc/tst-malloc-thread-exit.c: New file.
5505         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5506         (tst-malloc-thread-exit): Link against libpthread.
5507
5508 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5509
5510         [BZ #19367]
5511         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5512         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5513         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5514         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5515         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5516
5517 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5518
5519         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5520         Silvermont optimizations for Knights Landing.
5521
5522 2015-12-15  Andreas Schwab  <schwab@suse.de>
5523
5524         [BZ #17197]
5525         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5526         immediately after emitting SI.
5527         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5528         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5529         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5530         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5531         * iconvdata/bug-iconv10.c: New file.
5532         * iconvdata/Makefile (tests): Add bug-iconv10.
5533         ($(objpfx)bug-iconv10.out): New rule.
5534
5535 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5536
5537         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5538         aliasing violation.
5539
5540 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5541
5542         [BZ #18472]
5543         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5544         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5545         conditionals for them.
5546         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5547         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5548         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5549         sys/kdaemon.h.
5550         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5551         compat-only syscall, obsoleted in glibc 2.23.
5552         (create_module): Likewise.
5553         (get_kernel_syms): Likewise.
5554         (query_module): Likewise.
5555         (uselib): Likewise.
5556         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
5557
5558 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
5559
5560         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
5561         <linux/version.h>.
5562         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
5563         conditional code.
5564         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
5565         and ioshift_name initialization.
5566
5567 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5568
5569         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5570         Fix indentation.
5571
5572 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5573
5574         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
5575
5576 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5577
5578         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
5579
5580 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5581             Jakub Wilk  <jwilk@debian.org>
5582
5583         [BZ #19347]
5584         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
5585         to change the group of the device to the tty group.
5586
5587 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
5588
5589         Split large string section; add truncation advice
5590         * manual/examples/strncat.c: Remove.
5591         This example was misleading, as the code would have undefined
5592         behavior if "hello" was longer than SIZE.  Anyway, the manual
5593         shouldn't encourage strncpy+strncat for this sort of thing.
5594         * manual/string.texi (Copying Strings and Arrays): Split into
5595         three sections Copying Strings and Arrays, Concatenating Strings,
5596         and Truncating Strings, as this section was way too long.  All
5597         cross-referenced changed.  Add advice about string-truncation
5598         functions.  Remove misleading strncat example.
5599
5600 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
5601
5602         * manual/nss.texi (NSS Modules Interface): Document
5603         NSS_STATUS_NOTFOUND and SUCCESS.
5604
5605 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5606
5607         [BZ 18568]
5608         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
5609         201505L, for Unicode 8.
5610
5611 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
5612
5613         * locale/C-translit.h: Regenerate.
5614
5615 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5616
5617         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
5618         and U+0153.
5619
5620 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
5621
5622         [BZ #19351]
5623         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
5624         expanding log(1+z), compare z rather than its square with epsilon
5625         to determine when to avoid evaluating the expansion.
5626
5627         [BZ #19350]
5628         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
5629         Increase overflow threshold.
5630
5631         [BZ #19349]
5632         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
5633         when small.
5634
5635         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5636         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5637         New macro.
5638         [__LINUX_KERNEL_VERSION >= 0x040300]
5639         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5640         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5641         Likewise.
5642         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5643         Likewise.
5644         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5645         Likewise.
5646         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5647         Likewise.
5648         [__LINUX_KERNEL_VERSION >= 0x040300]
5649         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5650         [__LINUX_KERNEL_VERSION >= 0x040300]
5651         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5652         [__LINUX_KERNEL_VERSION >= 0x040300]
5653         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5654         [__LINUX_KERNEL_VERSION >= 0x040300]
5655         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5656         [__LINUX_KERNEL_VERSION >= 0x040300]
5657         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5658         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5659         Likewise.
5660         [__LINUX_KERNEL_VERSION >= 0x040300]
5661         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5662         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5663         Likewise.
5664         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5665         Likewise.
5666         [__LINUX_KERNEL_VERSION >= 0x040300]
5667         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5668         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5669         Likewise.
5670         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5671         Likewise.
5672         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5673         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
5674         Likewise.
5675         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
5676         Likewise.
5677         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5678         Likewise.
5679         [__LINUX_KERNEL_VERSION >= 0x040300]
5680         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5681         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5682         Likewise.
5683         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5684         Likewise.
5685         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5686         Likewise.
5687         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5688         Likewise.
5689         [__LINUX_KERNEL_VERSION >= 0x040300]
5690         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5691         [__LINUX_KERNEL_VERSION >= 0x040300]
5692         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5693         [__LINUX_KERNEL_VERSION >= 0x040300]
5694         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5695         [__LINUX_KERNEL_VERSION >= 0x040300]
5696         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5697         [__LINUX_KERNEL_VERSION >= 0x040300]
5698         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5699         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5700         Likewise.
5701         [__LINUX_KERNEL_VERSION >= 0x040300]
5702         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5703         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5704         Likewise.
5705         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5706         Likewise.
5707         [__LINUX_KERNEL_VERSION >= 0x040300]
5708         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5709         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5710         Likewise.
5711         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5712         Likewise.
5713         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5714         (__ASSUME_SOCKET_SYSCALL): Likewise.
5715         (__ASSUME_BIND_SYSCALL): Likewise.
5716         (__ASSUME_CONNECT_SYSCALL): Likewise.
5717         (__ASSUME_LISTEN_SYSCALL): Likewise.
5718         (__ASSUME_ACCEPT_SYSCALL): Likewise.
5719         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5720         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5721         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5722         (__ASSUME_SEND_SYSCALL): Likewise.
5723         (__ASSUME_SENDTO_SYSCALL): Likewise.
5724         (__ASSUME_RECV_SYSCALL): Likewise.
5725         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5726         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
5727         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5728         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5729         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5730         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5731         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5732         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
5733         Likewise.
5734         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
5735         Likewise.
5736         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
5737         Likewise.
5738         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
5739         Likewise.
5740         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
5741         Likewise.
5742         [__LINUX_KERNEL_VERSION >= 0x020625]
5743         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5744         [__LINUX_KERNEL_VERSION >= 0x020625]
5745         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5746         [__LINUX_KERNEL_VERSION >= 0x020625]
5747         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5748         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
5749         Likewise.
5750         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
5751         Likewise.
5752         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
5753         Likewise.
5754         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
5755         Likewise.
5756         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
5757         Likewise.
5758         [__LINUX_KERNEL_VERSION >= 0x020625]
5759         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5760         [__LINUX_KERNEL_VERSION >= 0x020625]
5761         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5762         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
5763         Likewise.
5764         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
5765         Likewise.
5766
5767 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5768
5769         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
5770         record the current if the current ABI and CPU support the FP64
5771         extension.
5772         (has-modd-spreg): Define to record the current if the current ABI and
5773         CPU support 32-bit floating point values in odd FPU registers.
5774         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5775         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
5776         $(has-modd-spreg) equals yes.
5777         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
5778         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
5779         $(has-modd-spreg) equal yes.
5780
5781 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5782
5783         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
5784         basename.
5785
5786 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
5787
5788         * benchtests/Makefile (bench-math): Move ffs and ffsll...
5789         (bench-string): ... here.
5790         (bench): Add bench-string.
5791         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
5792         to *-benchset to reflect what they are.
5793         (benchset): Adjust.
5794
5795         * benchtests/sincos-inputs: Add inputs from sin-inputs and
5796         cos-inputs.
5797
5798 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
5799
5800         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
5801         __attribute__ ((__simd__)) for vector math function declarations.
5802
5803 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5804
5805         Fix typo in strncat, wcsncat manual entries
5806         * manual/string.texi (Copying and Concatenation): Fix typos in
5807         sample implementations of strncat and wcsncat, by having them use
5808         the old value of the destination length, not the new one.
5809
5810 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
5811
5812         [BZ #16961]
5813         [BZ #16962]
5814         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
5815         string on the stack for strtod.
5816         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
5817         a string on the stack for strtof.
5818         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
5819         constructing a string on the stack for strtold.
5820         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
5821         __strtold_nan to GLIBC_PRIVATE.
5822         * math/test-nan-overflow.c: New file.
5823         * math/test-nan-payload.c: Likewise.
5824         * math/Makefile (tests): Add test-nan-overflow and
5825         test-nan-payload.
5826
5827 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5828
5829         Consistency about byte vs character in string.texi
5830         * manual/string.texi (String and Array Utilities):
5831         Distinguish more carefully among bytes, multibyte characters,
5832         and wide characters.  Use "byte" when talking about C 'char',
5833         to distinguish it more clearly from multibyte characters.
5834         Say "wide character" or "multibyte character" instead of
5835         "character", when a wide or multibyte character is intended.
5836         Similarly for "multibyte string" versus "string".
5837         Define these terms more carefully.
5838
5839 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
5840
5841         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
5842         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
5843         Likewise.
5844         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
5845         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
5846         * sysdeps/sh/math_private.h: New file.
5847         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
5848         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
5849         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
5850         long double function name.
5851         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5852         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5853         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5854         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5855         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5856         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
5857         Remove __finitel, __isinfl, and __isnanl.
5858         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
5859         Likewise.
5860         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5861         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5862         Remove __finitel.
5863         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5864         Likewise.
5865         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5866
5867 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
5868
5869         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
5870         installed libmvec_nonshared.a.
5871
5872 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5873
5874         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
5875         (sysdep_routines): Likewise.
5876         (sysdep-rtld-routines): Likewise.
5877         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
5878         [$(subdir) = nptl](tests-static): test-get_hwcap-static
5879         * sysdeps/powerpc/Versions: Added new
5880         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
5881         * sysdeps/powerpc/hwcapinfo.c: New file.
5882         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
5883         and parse hwcap, hwcap2 and platform number information.
5884         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
5885         to store HWCAP+HWCAP2 and platform number.
5886         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
5887         for HWCAP+HWCAP2 and platform number in the TCB.
5888         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
5889         the HWCAP, HWCAP2 and platform number in the TCB.
5890         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
5891         (TLS_INIT_TP): Included calls to add the hwcap and
5892         at_platform values in the TCB in TP initialization.
5893         (TLS_DEFINE_INIT_TP): Likewise.
5894         (THREAD_GET_HWCAP): New macro.
5895         (THREAD_SET_HWCAP): Likewise.
5896         (THREAD_GET_AT_PLATFORM): Likewise.
5897         (THREAD_SET_AT_PLATFORM): Likewise.
5898         * sysdeps/powerpc/powerpc32/dl-machine.h:
5899         (dl_platform_init): New function that calls
5900         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
5901         powerpc32.
5902         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
5903         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
5904         this functionality, static linking case.
5905         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
5906         linking case.
5907         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
5908         __parse_hwcap_and_convert_at_platform for the static linking case.
5909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
5910         Included the new __parse_hwcap_and_convert_at_platform symbol in the
5911         ABI list for GLIBC 2.23.
5912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
5913         Likewise.
5914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
5915         Likewise.
5916
5917 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
5918
5919         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
5920         * configure: Regenerate.
5921         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
5922         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
5923
5924 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
5925
5926         * iconvdata/ibm930.c: Add comment explaining encoding uses.
5927         * iconvdata/ibm933.c: Likewise.
5928         * iconvdata/ibm935.c: Likewise.
5929         * iconvdata/ibm937.c: Likewise.
5930         * iconvdata/ibm939.c: Likewise.
5931
5932 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5933
5934         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
5935         pthread_join.
5936         * nptl/tst-cancel21.c (tf): Likewise.
5937
5938 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
5939
5940         [BZ #19313]
5941         * bits/typesizes.h (__CPU_MASK_TYPE): New.
5942         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
5943         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
5944         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
5945         Likewise.
5946         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
5947         Likewise.
5948         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
5949         Likewise.
5950         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
5951         Likewise.
5952         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
5953         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
5954         unsigned long int with __CPU_MASK_TYPE.
5955
5956 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5957
5958         * sysdeps/aarch64/libm-test-ulps: Regenerated.
5959
5960 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
5961
5962         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
5963         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
5964         t512.x.
5965         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
5966
5967 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
5968
5969         [BZ #19214]
5970         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
5971         argument to return extended model.  Update family and model
5972         with extended family and model when family == 0x0f.
5973         (init_cpu_features): Updated.
5974
5975 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5976
5977         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
5978         signed off_t, so 32bit bigger than 2GiB values are fine actually.
5979
5980         * sysdeps/mach/hurd/mmap64.c: New file.
5981
5982 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
5983
5984         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
5985         rights for its main user thread in NEWTASK.
5986
5987 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
5988
5989         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
5990         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
5991
5992 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
5993
5994         [BZ #14259]
5995         * Makeconfig: Rename localedir to complocaledir.
5996         Rename inst_localedir to inst_complocaledir.
5997         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
5998         * config.make.in: Use complocaledir and libc_cv_complocaledir.
5999         * configure.ac: Use libc_cv_complocaledir.
6000         * configure: Regenerate.
6001         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6002         -DCOMPLOCALEDIR.
6003         * locale/findlocale.c: Use COMPLOCALEDIR.
6004         * locale/loadarchive.c: Likewise.
6005         * locale/programs/locale.c: Likewise.
6006         * locale/programs/localedef.c: Likewise.
6007         * locale/programs/locarchive.c: Likewise.
6008         * localedata/Makefile: Use inst_complocaledir.
6009         * sysdeps/gnu/configure: Regenerate.
6010         * sysdeps/hppa/configure: Regenerate.
6011         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6012         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6014         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6015         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6016         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6017         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6018
6019 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6020
6021         [BZ #19058]
6022         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6023         AS_NEEDED.
6024         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6025         workaround.
6026         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6027         libmvec-static-only-routines): Added new file.
6028         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6029
6030 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6031
6032         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6033         of interrupted RPC instead of restoring it.
6034
6035         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6036         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6037         libc_hidden_def.
6038         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6039         into initialized data instead of common. Define rtld_hidden_data_def.
6040         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6041         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6042         libc_hidden_def.
6043         (if_freenameindex): Add libc_hidden_weak.
6044         (if_nameindex): Add libc_hidden_weak.
6045         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6046         __open64.
6047         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6048         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6049         * sysdeps/mach/nanosleep.c: Include <time.h>
6050         (__nanosleep): Rename to __libc_nanosleep.
6051         (__nanosleep): Add weak_alias.
6052         (nanosleep): Update alias.
6053
6054 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6055
6056         * stdlib/strtod_nan.c: New file.
6057         * stdlib/strtod_nan_double.h: Likewise.
6058         * stdlib/strtod_nan_float.h: Likewise.
6059         * stdlib/strtod_nan_main.c: Likewise.
6060         * stdlib/strtod_nan_narrow.h: Likewise.
6061         * stdlib/strtod_nan_wide.h: Likewise.
6062         * stdlib/strtof_nan.c: Likewise.
6063         * stdlib/strtold_nan.c: Likewise.
6064         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6065         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6066         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6067         * wcsmbs/wcstod_nan.c: Likewise.
6068         * wcsmbs/wcstof_nan.c: Likewise.
6069         * wcsmbs/wcstold_nan.c: Likewise.
6070         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6071         strtold_nan.
6072         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6073         wcstof_nan.
6074         * include/stdlib.h (__strtof_nan): Declare and use
6075         libc_hidden_proto.
6076         (__strtod_nan): Likewise.
6077         (__strtold_nan): Likewise.
6078         (__wcstof_nan): Likewise.
6079         (__wcstod_nan): Likewise.
6080         (__wcstold_nan): Likewise.
6081         * include/wchar.h (____wcstoull_l_internal): Declare.
6082         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6083         (____strtoull_l_internal): Remove declaration.
6084         (STRTOF_NAN): Define macro.
6085         (SET_MANTISSA): Remove macro.
6086         (STRTOULL): Likewise.
6087         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6088         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6089         (STRTOF_NAN): Define macro.
6090         (SET_MANTISSA): Remove macro.
6091         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6092         (SET_MANTISSA): Remove macro.
6093         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6094         macro.
6095         (SET_MANTISSA): Remove macro.
6096         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6097         macro.
6098         (SET_MANTISSA): Remove macro.
6099         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6100         (SET_MANTISSA): Remove macro.
6101         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6102         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6103         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6104
6105         [BZ #19266]
6106         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6107         upper case and lower case letters inside NAN(), not using TOLOWER.
6108         * stdlib/tst-strtod-nan-locale-main.c: New file.
6109         * stdlib/tst-strtod-nan-locale.c: Likewise.
6110         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6111         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6112         Depend on $(gen-locales).
6113         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6114         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6115         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6116         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6117         Depend on $(gen-locales).
6118         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6119
6120 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6121
6122         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6123
6124         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6125         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6126         __finitel, __isinfl, and __isnanl.
6127         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6128         Likewise.
6129         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6130         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6131         __finitel.
6132         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6133         Likewise.
6134         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6135
6136 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6137
6138         * malloc/memusage.c (me): Remove redundant getenv call.
6139
6140 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6141
6142         [BZ #19143]
6143         [BZ #19164]
6144         * nptl/check-cpuset.h: Remove.
6145         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6146         Remove CPU set size check.
6147         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6148         Likewise.
6149         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6150         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6151         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6152         (__pthread_setaffinity_new): Remove CPU set size check.
6153         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6154         (__kernel_cpumask_size): Remove.
6155         (__sched_setaffinity_new): Remove CPU set size check.
6156         * manual/threads.texi (Default Thread Attributes): Remove stale
6157         reference to check_cpuset_attr, determine_cpumask_size in comment.
6158         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6159         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6160         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6161         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6162         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6163         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6164         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6165         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6166         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6167         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6168         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6169         skeleton test file.
6170         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6171         tst-affinity-pid.
6172
6173 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6174
6175         * scripts/update-abilist.sh: New file.
6176         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6177         * Makerules (update-all-abi-%, update-all-abi)
6178         (subdir_update-all-abi): New targets.
6179         * elf/Makefile (update-all-abi): New target.
6180
6181 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6182
6183         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6184         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6185         (__libc_lock_define_initialized): Use it.
6186         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6187         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6188         * malloc/malloc.c (main_arena): Likewise.
6189         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6190         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6191
6192 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6193
6194         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6195         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6196         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6197         (PTRACE_O_MASK): Update value.
6198         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6199         New value in enum __ptrace_setoptions.
6200         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6201         (PTRACE_O_MASK): Update value.
6202         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6203         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6204         (PTRACE_O_MASK): Update value.
6205         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6206         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6207         (PTRACE_O_MASK): Update value.
6208         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6209         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6210         (PTRACE_O_MASK): Update value.
6211         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6212         New value in enum __ptrace_setoptions.
6213         (PTRACE_O_MASK): Update value.
6214         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6215         New value in enum __ptrace_setoptions.
6216         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6217         (PTRACE_O_MASK): Update value.
6218
6219         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6220         New macro.
6221         (PACKET_AUXDATA): Likewise.
6222         (PACKET_ORIGDEV): Likewise.
6223         (PACKET_VERSION): Likewise.
6224         (PACKET_HDRLEN): Likewise.
6225         (PACKET_RESERVE): Likewise.
6226         (PACKET_TX_RING): Likewise.
6227         (PACKET_LOSS): Likewise.
6228         (PACKET_VNET_HDR): Likewise.
6229         (PACKET_TX_TIMESTAMP): Likewise.
6230         (PACKET_TIMESTAMP): Likewise.
6231         (PACKET_FANOUT): Likewise.
6232         (PACKET_TX_HAS_OFF): Likewise.
6233         (PACKET_QDISC_BYPASS): Likewise.
6234         (PACKET_ROLLOVER_STATS): Likewise.
6235         (PACKET_FANOUT_DATA): Likewise.
6236         (PACKET_MR_UNICAST): Likewise.
6237
6238         [BZ #19242]
6239         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6240         (TOUPPER): Likewise.
6241         * stdlib/tst-strtol-locale-main.c: New file.
6242         * stdlib/tst-strtol-locale.c: Likewise.
6243         * stdlib/Makefile (tests): Add tst-strtol-locale.
6244         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6245         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6246         Depend on $(gen-locales).
6247         * wcsmbs/tst-wcstol-locale.c: New file.
6248         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6249         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6250         tr_TR.ISO-8859-9.
6251         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6252         Depend on $(gen-locales).
6253
6254 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6255
6256         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6257         __glibc_likely instead of __builtin_expect.  After falling back to
6258         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6259         system interface to register the code pages as occupied.
6260
6261 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6262
6263         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6264         [!ARM_MATH_PRIVATE_H].
6265         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6266         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6267         [!HPPA_MATH_PRIVATE_H].
6268         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6269         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6270         to [!I386_MATH_PRIVATE_H].
6271         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6272         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6273         Change guard to [!M68K_MATH_PRIVATE_H].
6274         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6275         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6276         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6277         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6278         macro.
6279         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6280         [!MIPS_MATH_PRIVATE_H].
6281         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6282         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6283         [!NIO2_MATH_PRIVATE_H].
6284         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6285         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6286         [!TILE_MATH_PRIVATE_H].
6287         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6288
6289         [BZ #15421]
6290         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6291         initialize with 0 and define as weak alias of __signgam.
6292         * include/math.h [!_ISOMAC] (__signgam): Declare.
6293         * math/Makefile (libm-calls): Add w_lgamma_compat.
6294         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6295         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6296         test-signgam-ullong-init.
6297         (tests-static): Add test-signgam-uchar-static,
6298         test-signgam-uchar-init-static, test-signgam-uint-static,
6299         test-signgam-uint-init-static, test-signgam-ullong-static and
6300         test-signgam-ullong-init-static.
6301         (CFLAGS-test-signgam-uchar.c): New variable.
6302         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6303         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6304         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6305         (CFLAGS-test-signgam-uint.c): Likewise.
6306         (CFLAGS-test-signgam-uint-init.c): Likewise.
6307         (CFLAGS-test-signgam-uint-static.c): Likewise.
6308         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6309         (CFLAGS-test-signgam-ullong.c): Likewise.
6310         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6311         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6312         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6313         * math/Versions (libm): Add GLIBC_2.23.
6314         * math/lgamma-compat.h: New file.
6315         * math/test-signgam-main.c: Likewise.
6316         * math/test-signgam-uchar-init-static.c: Likewise.
6317         * math/test-signgam-uchar-init.c: Likewise.
6318         * math/test-signgam-uchar-static.c: Likewise.
6319         * math/test-signgam-uchar.c: Likewise.
6320         * math/test-signgam-uint-init-static.c: Likewise.
6321         * math/test-signgam-uint-init.c: Likewise.
6322         * math/test-signgam-uint-static.c: Likewise.
6323         * math/test-signgam-uint.c: Likewise.
6324         * math/test-signgam-ullong-init-static.c: Likewise.
6325         * math/test-signgam-ullong-init.c: Likewise.
6326         * math/test-signgam-ullong-static.c: Likewise.
6327         * math/test-signgam-ullong.c: Likewise.
6328         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6329         wrapper of w_lgamma_main.c.
6330         * math/w_lgamma_compat.c: New file.
6331         * math/w_lgamma_compatf.c: Likewise.
6332         * math/w_lgamma_compatl.c: Likewise.
6333         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6334         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6335         defining compatibility symbols.
6336         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6337         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6338         wrapper of w_lgammaf_main.c.
6339         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6340         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6341         defining compatibility symbols.
6342         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6343         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6344         wrapper of w_lgammal_main.c.
6345         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6346         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6347         defining compatibility symbols.
6348         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6349         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6350         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6351         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6352         <lgamma-compat.h>.
6353         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6354         (__ieee754_gamma): Define as alias.
6355         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6356         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6357         <lgamma-compat.h>.
6358         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6359         (__ieee754_gammaf): Define as alias.
6360         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6361         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6362         <lgamma-compat.h>.
6363         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6364         (__ieee754_gammal): Define as alias.
6365         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6366         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6367         <math/w_lgamma_compat.c>.
6368         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6369         Define as alias of __lgamma_compat and use in defining lgammal.
6370         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6371         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6372         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6373         (USE_AS_COMPAT): New macro.
6374         (LGAMMA_OLD_VER): Undefine and redefine.
6375         (lgammal): Do not define here.
6376         (gammal): Only define here if [GAMMA_ALIAS].
6377         * conform/linknamespace.pl (@whitelist): Remove signgam.
6378         * sysdeps/nacl/libm.abilist: Update.
6379         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6380         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6381         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6382         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6383         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6384         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6385         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6386         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6387         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6388         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6389         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6390         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6392         Likewise.
6393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6394         Likewise.
6395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6396         Likewise.
6397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6398         Likewise.
6399         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6400         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6401         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6402         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6403         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6404         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6405         Likewise.
6406         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6407         Likewise.
6408         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6409         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6410         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6411
6412 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6413
6414         [BZ #16364]
6415         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6416         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6417
6418 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6419
6420         * sysdeps/s390/fpu/bits/mathinline.h:
6421         Use __asm__ [__volatile__] instead of asm [volatile].
6422         * sysdeps/s390/abort-instr.h: Likewise.
6423         * sysdeps/s390/atomic-machine.h: Likewise.
6424         * sysdeps/s390/bits/string.h: Likewise.
6425         * sysdeps/s390/dl-tls.h: Likewise.
6426         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6427         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6428         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6429         * sysdeps/s390/fpu/fesetround.c: Likewise.
6430         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6431         * sysdeps/s390/fpu/s_fma.c: Likewise.
6432         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6433         * sysdeps/s390/memusage.h: Likewise.
6434         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6435         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6436         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6437         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6438         * sysdeps/s390/nptl/tls.h: Likewise.
6439         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6440         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6441         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6442         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6443         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6444         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6445         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6446         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6447         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6448         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6449         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6450         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6451         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6452         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6453         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6454         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6455         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6456         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6457         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6458         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6459         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6460         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6461         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6462
6463 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6464             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6465
6466         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6467         Add lwarx hint, and use macro for acquire instruction.
6468         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6469         Likewise.
6470         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6471         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6472         update to use new atomic macros.
6473
6474 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6475
6476         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6477         (__lll_trylock_elision): Fix setting of adapt_count.
6478         * sysdeps/unix/sysv/linux/powerpc/htm.h
6479         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6480         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6481         (_ABORT_SYSCALL): Renumber, and clarify definition.
6482         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6483
6484 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6485
6486         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6487         after system headers to prevent MIN/MAX redefinition.  Define
6488         HAVE_ALLOCA to preserve builtin alloca usage.
6489
6490 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6491
6492         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6493         static and don't set or restore rounding.
6494         (__cos)[IN_SINCOS]: Likewise.
6495         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6496         (__sincos): Set and restore rounding mode.  Remove check for infinite
6497         or NaN input.
6498
6499         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6500
6501         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6502         as used.
6503
6504 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6505
6506         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6507
6508 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6509
6510         * config.make.in (have-glob-dat-reloc): New.
6511         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6512         target supports GLOB_DAT relocaton. AC_SUBST.
6513         * configure: Regenerated.
6514         * elf/Makefile (tests): Add tst-prelink.
6515         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6516         (tst-prelink-ENV): New.
6517         ($(objpfx)tst-prelink-conflict.out): Likewise.
6518         ($(objpfx)tst-prelink-cmp.out): Likewise.
6519         * sysdeps/x86/tst-prelink.c: Moved to ...
6520         * elf/tst-prelink.c: Here.
6521         * sysdeps/x86/tst-prelink.exp: Moved to ...
6522         * elf/tst-prelink.exp: Here.
6523         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6524         (tst-prelink-ENV): Removed.
6525         ($(objpfx)tst-prelink-conflict.out): Likewise.
6526         ($(objpfx)tst-prelink-cmp.out): Likewise.
6527         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6528
6529 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6530
6531         [BZ #14551]
6532         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6533         (__mpn_construct_long_double): If high part overflows to infinity,
6534         set errno and recompute overflowed result of the correct sign.
6535         * sysdeps/ieee754/ldbl-128ibm/Makefile
6536         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6537         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6538         $(libm).
6539         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6540
6541 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6542
6543         [BZ #15479]
6544         [BZ #19238]
6545         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6546         floating-point state after first operation on input.  Restore full
6547         state rather than just rounding mode.
6548         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6549         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6550         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6551
6552         [BZ #19235]
6553         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
6554         add 0.5 to integer arguments.
6555         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
6556         Likewise.
6557         (.LC2): New object.
6558
6559 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
6560
6561         * scripts/pylintrc (reports): Set to no.
6562
6563 2015-11-10  Roland McGrath  <roland@hack.frob.com>
6564
6565         * elf/dl-load.c (open_verify): Take new argument FD.
6566         Skip __open call if passed FD is not -1.
6567         (_dl_map_object, open_path): Update callers.
6568         * elf/dl-sysdep-open.h: New file.
6569         * elf/dl-load.c: Include it.
6570         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
6571         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
6572         * sysdeps/nacl/dl-sysdep-open.h: New file.
6573         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
6574         from libc to rtld.
6575
6576 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6577
6578         [BZ #19228]
6579         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
6580         and restore full floating-point state.
6581         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
6582         Likewise.
6583         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
6584         Likewise.
6585         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
6586         Likewise.
6587         * math/test-nearbyint-except-2.c: New file.
6588         * math/Makefile (tests): Add test-nearbyint-except-2.
6589
6590 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
6591
6592         [BZ #19178]
6593         * sysdeps/x86/Makefile (tests): Add tst-prelink.
6594         (tst-prelink-ENV): New.
6595         ($(objpfx)tst-prelink-conflict.out): Likewise.
6596         ($(objpfx)tst-prelink-cmp.out): Likewise.
6597         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6598         * sysdeps/x86/tst-prelink.c: New file.
6599         * sysdeps/x86/tst-prelink.exp: Likewise.
6600
6601 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6602
6603         * math/auto-libm-test-in: Add another test of pow.
6604         * math/auto-libm-test-out: Regenerated.
6605         * math/libm-test.inc (pow_test_data): Add another test.
6606
6607 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6608
6609         [BZ #19219]
6610         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
6611         weak_alias to nearbyintl.
6612
6613 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6614
6615         * sysdeps/aarch64/bits/string.h: New file.
6616         (_STRING_ARCH_unaligned): Define.
6617
6618 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6619
6620         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
6621         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
6622         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
6623         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
6624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
6625
6626 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
6627
6628         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
6629         for original name of the DSO.  Add it to the name list of the DSO
6630         if it is actually given.
6631         (_dl_map_object): Keep track of whether an audit module rewrote
6632         the file name.  If yes, pass the original name to
6633         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
6634         debugging is enabled, log the change of the file name.
6635         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
6636         _dl_map_object_from_fd.
6637         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
6638         * elf/tst-audit11.c: New file
6639         * elf/tst-auditmod11.c: New file.
6640         * elf/tst-audit11mod1.c: New file.
6641         * elf/tst-audit11mod2.c: New file.
6642         * elf/tst-audit11mod2.map: New file.
6643         * elf/tst-audit12.c: New file
6644         * elf/tst-auditmod12.c: New file.
6645         * elf/tst-audit12mod1.c: New file.
6646         * elf/tst-audit12mod2.c: New file.
6647         * elf/tst-audit12mod2.map: New file.
6648         * elf/tst-audit12mod3.c: New file.
6649
6650 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6651
6652         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
6653         Don't create weak aliases,
6654         because versioned symbols are created later.
6655         * sysdeps/s390/s390-32/setjmp.S
6656         (setjmp, _setjmp): Remove weak and rename to an unique name
6657         in SHARED case due to existing versioned symbols.
6658         * sysdeps/s390/s390-64/setjmp.S: Likewise.
6659         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
6660         (getcontext): Create weak alias only in non SHARED case.
6661         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
6662
6663 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6664
6665         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
6666         (__ASSUME_*_SYSCALL) Define new macros.
6667         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
6668         Remove socketcall syscalls.
6669         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
6670         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
6671         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
6672         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
6673         * sysdeps/unix/sysv/linux/send.c (__libc_send):
6674         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
6675
6676 2015-11-09  Florian Weimer  <fweimer@redhat.com>
6677
6678         [BZ #12926]
6679         Terminate process on invalid netlink response.
6680         * sysdeps/unix/sysv/linux/netlinkaccess.h
6681         (__netlink_assert_response): Declare.
6682         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
6683         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
6684         (sysdep_routines): Add netlink_assert_response.
6685         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
6686         __netlink_assert_response.
6687         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
6688         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
6689         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
6690         __netlink_assert_response.
6691
6692 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6693
6694         [BZ #19178]
6695         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
6696         (RTYPE_CLASS_PLT): Likewise.
6697         (RTYPE_CLASS_COPY): Likewise.
6698         (RTYPE_CLASS_TLS): Likewise.
6699         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
6700         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
6701         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
6702         DL_DEBUG_PRELINK.
6703
6704 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
6705
6706         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
6707         calls with argument -0.5.
6708         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
6709
6710         * configure.ac (libc_cv_z_nodelete): Remove configure test.
6711         (libc_cv_z_nodlopen): Likewise.
6712         (libc_cv_z_initfirst): Likewise.
6713         * configure: Regenerated.
6714
6715 2015-11-06  Florian Weimer  <fweimer@redhat.com>
6716
6717         Simplify abilist format to be line-based.
6718         * scripts/abilist.awk: Collect descriptors in the descs variable.
6719         (emit): Write descs variable and sort it
6720         externally, with sort.
6721         * sysdeps/**/*.abilist: Convert to new format.
6722
6723 2015-11-06  Mark Wielaard  <mjw@redhat.com>
6724
6725         [BZ #11460]
6726         * io/Makefile (routines): Add fts64.
6727         (tests): Add tst-fts and tst-fts-lfs.
6728         (CFLAGS-fts64.c): New.
6729         * io/Versions (GLIBC_2.23): New.
6730         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
6731         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
6732         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
6733         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
6734         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
6735         (FTSENT64): Likewise.
6736         (fts64_children): Likewise.
6737         (fts64_close): Likewise.
6738         (fts64_open): Likewise.
6739         (fts64_read): Likewise.
6740         (fts64_set): Likewise.
6741         * io/fts64.c: New file.
6742         * io/tst-fts.c: New test.
6743         * io/tst-fts-lfs.c: Likewise.
6744         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
6745         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
6746         fts64_set.
6747         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6748         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6749         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6750         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6751         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6752         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6753         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6754         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6755         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6756         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6757         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6758         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6759         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6761         Likewise.
6762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6763         Likewise.
6764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6766         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6767         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6768         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6769         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6770         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6771         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
6772         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
6773         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6774         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6775         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6776         * sysdeps/wordsize-64/fts.c: New file.
6777         * sysdeps/wordsize-64/fts64.c: Likewise.
6778         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
6779         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
6780         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
6781         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
6782
6783 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6784
6785         * math/libm-test.inc (NON_FINITE): New macro.
6786         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
6787         * math/gen-libm-test.pl (show_exceptions): Add argument
6788         $non_finite.
6789         (parse_args): Update call to show_exceptions.
6790         * math/test-math-finite.h: New file.
6791         * math/test-math-no-finite.h: Likewise.
6792         * math/test-double-finite.c: Likewise.
6793         * math/test-float-finite.c: Likewise.
6794         * math/test-ldouble-finite.c: Likewise.
6795         * math/test-double.c: Include "test-math-no-finite.h".
6796         * math/test-float.c: Include "test-math-no-finite.h".
6797         * math/test-ldouble.c: Include "test-math-no-finite.h".
6798         * math/test-math-inline.h (TEST_FINITE): New macro.
6799         * math/test-math-vector.h (TEST_FINITE): Likewise.
6800         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
6801         (libm-tests): Add test-float-finite and test-double-finite.
6802         ($(objpfx)test-float-finite.o): New dependency on
6803         $(objpfx)libm-test.stmp.
6804         ($(objpfx)test-double-finite.o): Likewise.
6805         ($(objpfx)test-ldouble-finite.o): Likewise.
6806         (libm-test-no-inline-cflags): New variable.
6807         (libm-test-finite-cflags): Likewise.
6808         (CFLAGS-test-float-finite.c): Likewise.
6809         (CFLAGS-test-double-finite.c): Likewise.
6810         (CFLAGS-test-ldouble-finite.c): Likewise.
6811         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
6812         (CFLAGS-test-double.c): Likewise.
6813         (CFLAGS-test-ldouble.c): Likewise.
6814
6815 2015-11-05  Roland McGrath  <roland@hack.frob.com>
6816
6817         * io/fcntl.c (__fcntl): Add ... to prototype.
6818         * misc/ioctl.c (__ioctl): Likewise.
6819         * misc/syscall.c (syscall): Likewise.
6820
6821 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6822
6823         * scripts/list-fixed-bugs.py: New file.
6824
6825         [BZ #19213]
6826         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
6827         returned for argument 1.
6828         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
6829         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
6830         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
6831         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
6832         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
6833         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
6834
6835         [BZ #19211]
6836         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
6837         __USE_XOPEN], not if [!__USE_ISOC99].
6838         (lgammaf): Likewise.
6839         (lgammal): Likewise.
6840         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
6841         (gammaf): Likewise.
6842         (gammal): Likewise.
6843         * math/test-signgam-finite-c11.c: New file.
6844         * math/test-signgam-finite-c99.c: Likewise.
6845         * math/test-signgam-finite.c: Likewise.
6846         * math/Makefile (tests): Add test-signgam-finite,
6847         test-signgam-finite-c99 and test-signgam-finite-c11.
6848         (CFLAGS-test-signgam-finite.c): New variable.
6849         (CFLAGS-test-signgam-finite-c99.c): Likewise.
6850         (CFLAGS-test-signgam-finite-c11.c): Likewise.
6851
6852         [BZ #19212]
6853         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
6854         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
6855         500].
6856         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
6857         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
6858         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
6859         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
6860         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
6861         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
6862         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
6863         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
6864         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
6865         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
6866
6867         [BZ #19209]
6868         * math/bits/math-finite.h (ldexp): Remove declaration.
6869         (ldexpf): Likewise.
6870         (ldexpl): Likewise.
6871
6872         [BZ #19205]
6873         * math/bits/math-finite.h (acosf): Condition declaration on
6874         [__USE_ISOC99].
6875         (acosl): Likewise.
6876         (acoshf): Likewise.
6877         (acoshl): Likewise.
6878         (asinf): Likewise.
6879         (asinl): Likewise.
6880         (atan2f): Likewise.
6881         (atan2l): Likewise.
6882         (atanhf): Likewise.
6883         (atanhl): Likewise.
6884         (coshf): Likewise.
6885         (coshl): Likewise.
6886         (expf): Likewise.
6887         (expl): Likewise.
6888         (fmodf): Likewise.
6889         (fmodl): Likewise.
6890         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
6891         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
6892         (j0l): Likewise.
6893         (y0f): Likewise.
6894         (y0l): Likewise.
6895         (j1f): Likewise.
6896         (j1l): Likewise.
6897         (y1f): Likewise.
6898         (y1l): Likewise.
6899         (jnf): Likewise.
6900         (jnl): Likewise.
6901         (ynf): Likewise.
6902         (ynl): Likewise.
6903         (lgammaf_r): Condition declaration on [__USE_ISOC99].
6904         (lgammal_r): Likewise.
6905         (__lgamma_r_finite): New declaration.
6906         (__lgammaf_r_finite): Likewise.
6907         (__lgammal_r_finite): Likewise.
6908         (lgamma): Use __lgamma_r_finite.
6909         (lgammaf): Condition definition on [__USE_ISOC99].  Use
6910         __lgammaf_r_finite.
6911         (lgammal): Condition definition on [__USE_ISOC99].  Use
6912         __lgammal_r_finite.
6913         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
6914         __lgamma_r_finite.
6915         (gammaf): Condition definition on [__USE_ISOC99].  Use
6916         __lgammaf_r_finite.
6917         (gammal): Condition definition on [__USE_ISOC99].  Use
6918         __lgammal_r_finite.
6919         (logf): Condition declaration on [__USE_ISOC99].
6920         (logl): Likewise.
6921         (log10f): Likewise.
6922         (log10l): Likewise.
6923         (ldexpf): Likewise.
6924         (ldexpl): Likewise.
6925         (powf): Likewise.
6926         (powl): Likewise.
6927         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
6928         __USE_ISOC99].
6929         (remainderf): Condition declaration on [__USE_ISOC99].
6930         (remainderl): Likewise.
6931         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
6932         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
6933         (scalbl): Likewise.
6934         (sinhf): Condition declaration on [__USE_ISOC99].
6935         (sinhl): Likewise.
6936         (sqrtf): Likewise.
6937         (sqrtl): Likewise.
6938
6939 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
6940
6941         * sysdeps/arm/atomic-machine.h
6942         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
6943         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
6944         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
6945         Remove conditional code.
6946         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
6947         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
6948         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
6949         Change conditional to [__ASSEMBLER__].
6950         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
6951         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
6952         [!__ASSEMBLER__].
6953         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
6954         code.
6955         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
6956         conditional macro definitions.
6957         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
6958         (__arch_compare_and_exchange_val_16_acq): Likewise.
6959         (__arch_compare_and_exchange_val_32_acq): Likewise.
6960         (atomic_exchange_and_add): Likewise.
6961         (atomic_add): Likewise.
6962         (atomic_add_negative): Likewise.
6963         (atomic_add_zero): Likewise.
6964         (atomic_bit_set): Likewise.
6965         (atomic_bit_test_set): Likewise.
6966         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
6967         code unconditional.
6968         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
6969
6970         * math/test-math-errno.h: New file.
6971         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
6972         empty.
6973         (TEST_ERRNO): New macro.
6974         (TEST_EXCEPTIONS): Likewise.
6975         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
6976         (TEST_EXCEPTIONS): Likewise.
6977         * math/test-math-vector.h (TEST_ERRNO): Likewise.
6978         * math/test-double.c: Include "test-math-errno.h".
6979         * math/test-float.c: Likewise.
6980         * math/test-ldouble.c: Likewise.
6981         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
6982         code unconditional.
6983         (test_exceptions): Only run code if TEST_EXCEPTIONS.
6984         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
6985         unconditional.
6986         (test_errno): Only run code if TEST_ERRNO.
6987         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
6988
6989 2015-11-04  Florian Weimer  <fweimer@redhat.com>
6990
6991         * nptl/tst-once5.cc: Remove attribution.
6992
6993 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
6994
6995         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
6996         sqrt, tan, tanh, y0, y1 and yn.
6997         * math/auto-libm-test-out: Regenerated.
6998         * math/libm-test.inc (scalb_test_data): Add more tests.
6999         (scalbn_test_data): Likewise.
7000         (scalbln_test_data): Likewise.
7001         (signbit_test_data): Likewise.
7002         (sin_test_data): Likewise.
7003         (sincos_test_data): Likewise.
7004         (sinh_test_data): Likewise.
7005         (sqrt_test_data): Likewise.
7006         (tan_test_data): Likewise.
7007         (tanh_test_data): Likewise.
7008         (tgamma_test_data): Likewise.
7009         (y0_test_data): Likewise.
7010         (y1_test_data): Likewise.
7011         (yn_test_data): Likewise.
7012         (significand_test_data): Likewise.
7013         * sysdeps/i386/fpu/libm-test-ulps: Update.
7014
7015 2015-11-03  David Kastrup  <dak@gnu.org>
7016
7017         [BZ #18604]
7018         * assert/assert.h (assert): Don't macro-expand failed assertion
7019         expression in error message.
7020         * malloc/malloc.c (assert): Likewise.
7021
7022 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7023
7024         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7025         test.
7026         * configure: Regenerated.
7027
7028 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7029
7030         * math/libm-test.inc (modf_test_data): Add more tests.
7031         (nearbyint_test_data): Likewise.
7032         (nextafter_test_data): Likewise.
7033         (nexttoward_test_data): Likewise.
7034         (pow_test_data): Likewise.
7035         (remainder_test_data): Likewise.
7036         (remquo_test_data): Likewise.
7037         (rint_test_data): Likewise.
7038
7039         [BZ #19201]
7040         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7041         Check for zero remainder in case of large exponents and ensure
7042         correct sign of result in that case.
7043         * math/libm-test.inc (remainder_test_data): Add more tests.
7044
7045         [BZ #6799]
7046         * math/s_nextafter.c: Include <errno.h>.
7047         (__nextafter): Set errno on overflow and underflow.
7048         * math/s_nexttowardf.c: Include <errno.h>.
7049         (__nexttowardf): Set errno on overflow and underflow.
7050         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7051         (__nextafterl): Set errno on overflow and underflow.
7052         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7053         (__nexttoward): Set errno on overflow and underflow.
7054         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7055         (__nexttowardf): Set errno on overflow and underflow.
7056         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7057         (__nextafterf): Set errno on overflow and underflow.
7058         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7059         (__nextafterl): Set errno on overflow and underflow.
7060         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7061         (__nexttoward): Set errno on overflow and underflow.
7062         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7063         (__nexttowardf): Set errno on overflow and underflow.
7064         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7065         (__nextafterl): Set errno on overflow and underflow.
7066         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7067         (__nexttoward): Set errno on overflow and underflow.
7068         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7069         (__nexttowardf): Set errno on overflow and underflow.
7070         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7071         (__nexttoward): Set errno on overflow and underflow.
7072         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7073         (__nexttowardf): Set errno on overflow and underflow.
7074         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7075         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7076         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7077         (__nextafterl): Set errno on overflow and underflow.
7078         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7079         setting to be missing on overflow.  Add more tests.
7080         (nexttoward_test_data): Likewise.
7081
7082         * configure.ac (libc_cv_initfini_array): Remove configure test.
7083         * configure: Regenerated.
7084
7085 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7086
7087         [BZ #19189]
7088         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7089         non-finite argument handle arguments with negative sign.
7090
7091         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7092         result from infinite argument.
7093         (j1_test_data): Likewise.
7094         (jn_test_data): Likewise.
7095         (y0_test_data): Likewise.
7096         (y1_test_data): Likewise.
7097         (yn_test_data): Likewise.
7098
7099         [BZ #16171]
7100         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7101         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7102         * math/w_remainderf.c (dremf): Define as weak alias of
7103         __remainderf.
7104         * math/w_remainderl.c (dreml): Define as weak alias of
7105         __remainderl.
7106         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7107         __remainder.
7108         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7109         __remainderf.
7110         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7111         __remainderl.
7112         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7113         weak alias of remainderl.
7114         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7115         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7116         alias of __remainder.
7117         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7118         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7119         strong alias of __remainderl.
7120         (dreml): Use long_double_symbol.
7121         * math/Makefile (libm-calls): Remove w_drem.
7122         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7123         (CFLAGS-nldbl-drem.c): Remove variable.
7124         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7125         * math/w_drem.c: Remove file.
7126         * math/w_dremf.c: Likewise.
7127         * math/w_dreml.c: Likewise.
7128         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7129         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7130         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7131
7132         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7133         * sysdeps/i386/configure: Regenerated.
7134         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7135         * sysdeps/x86_64/configure: Regenerated.
7136
7137         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7138         test.
7139         (libc_cv_visibility_attribute): Likewise.
7140         (libc_cv_protected_data): Test unconditionally.
7141         (libc_cv_broken_visibility_attribute): Remove configure test.
7142         (libc_cv_have_sdata_section): Test unconditionally.
7143         * configure: Regenerated.
7144
7145         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7146         * include/scratch_buffer.h: Include <stddef.h> instead of
7147         <libc-internal.h>.
7148         (struct scratch_buffer): Use max_align_t instead of
7149         libc_max_align_t.
7150
7151 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7152
7153         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7154         instead of extend_alloca.  Change control flow to avoid a goto.
7155         Remove assert which is trivially always true.
7156
7157 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7158
7159         [BZ #16068]
7160         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7161         (FE_ALL_EXCEPT_X86): New macro.
7162         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7163         FE_ALL_EXCEPT.  Ensure precision control is included in
7164         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7165         handle "denormal operand exception" and clear FZ and DAZ bits.
7166         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7167         (FE_ALL_EXCEPT_X86): New macro.
7168         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7169         FE_ALL_EXCEPT.  Ensure precision control is included in
7170         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7171         handle "denormal operand exception" and clear FZ and DAZ bits.
7172         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7173         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7174         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7175         test-fenv-x87 and test-fenv-sse-2.
7176         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7177
7178         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7179         * math/test-double.h (BUILD_COMPLEX): New macro.
7180         * math/test-float.h (BUILD_COMPLEX): Likewise.
7181         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7182
7183         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7184         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7185         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7186         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7187         instead of DBL_DENORM_MIN in comment.
7188         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7189         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7190         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7191         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7192         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7193         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7194
7195 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7196
7197         [BZ# 19048]
7198         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7199         attached_threads member.
7200         (main_arena): Initialize attached_threads.
7201         * malloc/arena.c (list_lock): Update comment.
7202         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7203         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7204         (deattach_arena): New function.
7205         (_int_new_arena): Initialize arena reference count and deattach
7206         replaced arena.
7207         (get_free_list, reused_arena): Update reference count and deattach
7208         replaced arena.
7209         (arena_thread_freeres): Update arena reference count and only put
7210         unreferenced arenas on the free list.
7211
7212 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7213
7214         [BZ #19181]
7215         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7216         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7217         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7218         * math/test-fenv-clear-main.c: New file.
7219         * math/test-fenv-clear.c: Likewise.
7220         * math/Makefile (tests): Add test-fenv-clear.
7221         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7222         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7223         test-fenv-clear-sse.
7224         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7225
7226         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7227         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7228         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7229
7230 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7231
7232         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7233         static libc.
7234
7235 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7236
7237         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7238         test.
7239         * sysdeps/i386/configure: Regenerated.
7240         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7241         test.
7242         * sysdeps/x86_64/configure: Regenerated.
7243         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7244         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7245         memset-avx2 unconditionally instead of conditionally on
7246         [$(config-cflags-avx2) = yes].
7247         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7248         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7249         unconditional.
7250         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7251         * sysdeps/x86_64/multiarch/memset_chk.S
7252         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7253         to [IS_IN (libc) && SHARED].
7254
7255 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7256
7257         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7258         configure test.
7259         * sysdeps/arm/configure: Regenerated.
7260         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7261         Define variable if not already defined.
7262
7263         [BZ #17404]
7264         * sysdeps/mips/atomic-machine.h
7265         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7266         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7267         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7268
7269         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7270         unconditional.
7271         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7272         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7273         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7274         unconditional.
7275         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7276         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7277         unconditional.
7278         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7279         * stdlib/setenv.c
7280         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7281         code unconditional.
7282         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7283         Remove conditional code.
7284         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7285         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7286         unconditional.
7287         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7288         code.
7289         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7290         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7291         unconditional.
7292         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7293         code.
7294         * sysdeps/ieee754/ldbl-128/k_tanl.c
7295         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7296         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7297         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7298         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7299         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7300         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7301         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7302         unconditional.
7303         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7304         code.
7305         * sysdeps/ieee754/ldbl-96/k_tanl.c
7306         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7307         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7308
7309         * nptl/tst-initializers1-c11.c: New file.
7310         * nptl/tst-initializers1-gnu11.c: Likewise.
7311         * nptl/Makefile (tests): Add these new tests.
7312         (CFLAGS-tst-initializers1-c11.c): New variable.
7313         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7314
7315         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7316         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7317         instead of -std=gnu99.
7318         * configure.ac (systemtap): Test with -std=gnu11 instead of
7319         -std=gnu99.
7320         * configure: Regenerated.
7321         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7322         in compilation command in comment.
7323
7324         * sysdeps/nptl/configure.ac: Remove file.
7325         * sysdeps/nptl/configure: Remove generated file.
7326         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7327         * configure: Regenerated.
7328         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7329         * config.make.in (have-forced-unwind): Remove variable.
7330         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7331         unconditional.
7332         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7333         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7334         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7335         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7336         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7337         unconditional.
7338
7339 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7340
7341         [BZ #19174]
7342         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7343         .skip_lock_out_of_tbegin_retries.
7344         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7345         (__lll_lock_elision): Likewise, and respect a value of
7346         try_tbegin <= 0.
7347
7348 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7349
7350         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7351         statement.
7352
7353 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7354
7355         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7356         variable.
7357         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7358         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7359
7360         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7361         of -std=c1x -D_ISOC11_SOURCE.
7362
7363         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7364         * configure: Regenerated.
7365         * manual/install.texi (Tools for Compilation): Document
7366         requirement for GCC 4.7 or later.
7367         * INSTALL: Regenerated.
7368
7369 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7370
7371         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7372         on CNT to a conditional jump to 'puntdata'.
7373
7374 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7375
7376         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7377         (libc_cv_gcc_tls_model_attr): Likewise.
7378         * configure: Regenerated.
7379
7380         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7381         * configure: Regenerated.
7382         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7383
7384 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7385
7386         * configure.ac (old_glibc_headers): Remove configure test.
7387         * configure: Regenerated.
7388         * config.make.in (old-glibc-headers): Remove variable.
7389         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7390         (install): Remove dependency on remove-old-headers.
7391         (headers2_0): Remove variable.
7392         (remove-old-headers): Remove rule.
7393
7394         * configure.ac (libc_cv_dot_text): Remove configure test.
7395         (libc_cv_asm_set_directive): Use .text instead of
7396         ${libc_cv_dot_text} in configure test.
7397         * configure: Regenerated.
7398
7399 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7400
7401         [BZ #19168]
7402         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7403
7404 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7405
7406         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7407         not support static linking.
7408         * configure: Regenerate.
7409
7410 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7411
7412         * math/libm-test.inc (check_float_internal): Do not special-case
7413         errors up to 0.5 ulp.
7414
7415         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7416         log2.
7417         * math/auto-libm-test-out: Regenerated.
7418         * math/libm-test.inc (MAX_EXP): New macro.
7419         (ilogb_test_data): Add more tests.
7420         (isfinite_test_data): Likewise.
7421         (isgreater_test_data): Likewise.
7422         (isgreaterequal_test_data): Likewise.
7423         (isinf_test_data): Likewise.
7424         (isless_test_data): Likewise.
7425         (islessequal_test_data): Likewise.
7426         (islessgreater_test_data): Likewise.
7427         (isnan_test_data): Likewise.
7428         (isnormal_test_data): Likewise.
7429         (issignaling_test_data): Likewise.
7430         (isunordered_test_data): Likewise.
7431         (j0_test_data): Likewise.
7432         (j1_test_data): Likewise.
7433         (jn_test_data): Likewise.
7434         (lgamma_test_data): Likewise.
7435         (log_test_data): Likewise.
7436         (log10_test_data): Likewise.
7437         (log1p_test_data): Likewise.
7438         (log2_test_data): Likewise.
7439         (logb_test_data): Likewise.
7440         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7441
7442         [BZ #18611]
7443         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7444         avoid excess range and precision on underflow.
7445         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7446         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7447         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7448         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7449         underflow.
7450         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7451         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7452         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7453         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7454         * math/auto-libm-test-in: Do not allow missing errno setting for
7455         tests of j1 and jn.
7456         * math/auto-libm-test-out: Regenerated.
7457
7458 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7459
7460         [BZ #15491]
7461         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7462         floating-point environment instead of clearing all exceptions.
7463         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7464         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7465         merging in "invalid" exceptions from frndint.
7466         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7467         * math/test-nearbyint-except.c: New file.
7468         * math/Makefile (tests): Add test-nearbyint-except.
7469
7470 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7471
7472         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7473
7474         * sysdeps/tile/libm-test-ulps: Regenerated.
7475
7476 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7477
7478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7479         (__NR_sync_file_range2): Assume it is always defined.
7480         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7481         (__NR_sync_file_range): Assume it is always defined.
7482
7483 2015-10-22  Andreas Schwab  <schwab@suse.de>
7484
7485         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7486         INTERNAL_SYSCALL_ERRNO.
7487         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7488         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7489         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7490         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7491         Likewise.
7492         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7493
7494 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7495
7496         * io/tst-fcntl.c (fd): New static variable.
7497         (do_prepare): Open temporary file here....
7498         (do_test): ...not here.
7499
7500         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7501
7502 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7503
7504         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7505         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7506         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7507         Moved before "#ifdef __ASSEMBLER__".
7508
7509 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7510
7511         [BZ #19156]
7512         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7513         arguments very close to 0.
7514
7515 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7516
7517         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7518         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7519
7520 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7521
7522         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7523         New.  Defined for GCC 5 and above when not compiling for
7524         profiling.
7525         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7526
7527         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7528         Renamed to ...
7529         (CFLAGS-epoll_pwait.o): This.
7530         (CFLAGS-mmap.c): Renamed to ...
7531         (CFLAGS-mmap.o): This.
7532         (CFLAGS-mmap64.c): Renamed to ...
7533         (CFLAGS-mmap64.o): This.
7534         (CFLAGS-epoll_pwait.os): New.
7535         (CFLAGS-mmap.os): Likewise.
7536         (CFLAGS-mmap64.os): Likewise.
7537         (CFLAGS-semtimedop.os): Likewise.
7538         (CFLAGS-semtimedop.c): Renamed to ...
7539         (CFLAGS-semtimedop.o): This.
7540
7541 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7542
7543         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7544         warning message.
7545
7546 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7547
7548         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7549         * Makefile ($(objpfx)c++-types-check.out): Filter out
7550         $(+gccwarn-c) instead of -Wstrict-prototypes.
7551
7552         * io/fts.c (fts_open): Convert to prototype-style function
7553         definition.
7554         * malloc/mcheck.c (mcheck): Likewise.
7555         (mcheck_pedantic): Likewise.
7556         * posix/regexec.c (re_search_2_stub): Likewise.  Use
7557         internal_function.
7558         (re_search_internal): Likewise.
7559         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
7560         prototype-style function definition.
7561         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7562         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7563         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
7564         (xdr_utmpptr): Likewise.
7565         (xdr_utmparr): Likewise.
7566         (xdr_utmpidle): Likewise.
7567         (xdr_utmpidleptr): Likewise.
7568         (xdr_utmpidlearr): Likewise.
7569
7570         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
7571         log, log10 and log2.
7572         * math/auto-libm-test-out: Regenerated.
7573         * math/libm-test.inc (fmod_test_data): Add more tests.
7574         (fpclassify_test_data): Likewise.
7575         (frexp_test_data): Likewise.
7576         (hypot_test_data): Likewise.
7577         (ilogb_test_data): Likewise.
7578
7579 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7580
7581         * debug/fortify_fail.c (__fortify_fail): Convert to
7582         prototype-style function definition.  Use internal_function.
7583         * libio/genops.c (save_for_backup): Convert to prototype-style
7584         function definition.
7585         * libio/wgenops.c (save_for_wbackup): Likewise.
7586         * login/grantpt.c (grantpt): Likewise.
7587         * login/ptsname.c (ptsname): Likewise.
7588         (__ptsname_r): Likewise.
7589         * login/unlockpt.c (unlockpt): Likewise.
7590         * mach/msgserver.c (__mach_msg_server): Likewise.
7591         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
7592         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
7593         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
7594         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
7595         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
7596         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
7597         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
7598         Likewise.
7599         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
7600         internal_function.
7601         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
7602         prototype-style function definition.
7603         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
7604         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
7605         (__pthread_create_2_0): Likewise.
7606         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
7607         * nptl/register-atfork.c (__register_atfork): Likewise.
7608         * posix/glob.c (glob): Likewise.
7609         * posix/regcomp.c (re_comp): Likewise.
7610         * posix/regexec.c (re_exec): Likewise.
7611         * stdlib/add_n.c [__STDC__]: Make code unconditional.
7612         [!__STDC__]: Remove conditional code.
7613         * stdlib/cmp.c [__STDC__]: Make code unconditional.
7614         [!__STDC__]: Remove conditional code.
7615         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
7616         [!__STDC__]: Remove conditional code.
7617         * stdlib/divrem.c [__STDC__]: Make code unconditional.
7618         [!__STDC__]: Remove conditional code.
7619         * stdlib/lshift.c [__STDC__]: Make code unconditional.
7620         [!__STDC__]: Remove conditional code.
7621         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
7622         [!__STDC__]: Remove conditional code.
7623         * stdlib/mul.c [__STDC__]: Make code unconditional.
7624         [!__STDC__]: Remove conditional code.
7625         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
7626         [!__STDC__]: Remove conditional code.
7627         * stdlib/rshift.c [__STDC__]: Make code unconditional.
7628         [!__STDC__]: Remove conditional code.
7629         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
7630         function definition.
7631         (STRTOF): Likewise.
7632         * stdlib/strtod_l.c (__STRTOF): Likewise.
7633         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
7634         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
7635         (__strtol_l): Likewise.
7636         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
7637         [!__STDC__]: Remove conditional code.
7638         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
7639         definition.
7640         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7641         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7642         type.
7643         (__strcasecmp): Convert to prototype-style function definition.
7644         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
7645         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7646         type.
7647         (__strncasecmp): Convert to prototype-style function definition.
7648         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
7649         * sunrpc/xdr.c (xdr_union): Likewise.
7650         * sunrpc/xdr_array.c (xdr_array): Likewise.
7651         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
7652         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
7653         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
7654         Likewise.
7655         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
7656         Likewise.
7657         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
7658         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7659         Likewise.
7660         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
7661         (LOCALE_PARAM_PROTO): Likewise.
7662         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
7663         argument type.
7664         (ut_argument_spec): Remove macro.
7665         (ut_argument_spec_iso): Rename to ut_argument_spec.
7666         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
7667         prototype-style function definition.
7668         (memcpy_uppcase): Likewise.
7669         (__strftime_internal): Likewise.
7670         (my_strftime): Likewise.
7671         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
7672         (LOCALE_PARAM_DECL): Likewise.
7673         [_LIBC] (LOCALE_PARAM): Include argument type.
7674         (__strptime_internal): Convert to prototype-style function
7675         definition.
7676         (strptime): Likewise.
7677         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7678         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7679         type.
7680         (__wcscasecmp): Convert to prototype-style function definition.
7681         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
7682         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7683         type.
7684         (__wcsncasecmp): Convert to prototype-style function definition.
7685
7686         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
7687         function definition.
7688         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7689         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7690         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
7691         * elf/dl-minimal.c (_itoa): Likewise.
7692         * hurd/hurdmalloc.c (malloc): Likewise.
7693         (free): Likewise.
7694         (realloc): Likewise.
7695         * inet/inet6_option.c (inet6_option_space): Likewise.
7696         (inet6_option_init): Likewise.
7697         (inet6_option_append): Likewise.
7698         (inet6_option_alloc): Likewise.
7699         (inet6_option_next): Likewise.
7700         (inet6_option_find): Likewise.
7701         * io/ftw.c (FTW_NAME): Likewise.
7702         (NFTW_NAME): Likewise.
7703         (NFTW_NEW_NAME): Likewise.
7704         (NFTW_OLD_NAME): Likewise.
7705         * libio/iofwide.c (_IO_fwide): Likewise.
7706         * libio/strops.c (_IO_str_init_static_internal): Likewise.
7707         (_IO_str_init_static): Likewise.
7708         (_IO_str_init_readonly): Likewise.
7709         (_IO_str_overflow): Likewise.
7710         (_IO_str_underflow): Likewise.
7711         (_IO_str_count): Likewise.
7712         (_IO_str_seekoff): Likewise.
7713         (_IO_str_pbackfail): Likewise.
7714         (_IO_str_finish): Likewise.
7715         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
7716         (_IO_wstr_overflow): Likewise.
7717         (_IO_wstr_underflow): Likewise.
7718         (_IO_wstr_count): Likewise.
7719         (_IO_wstr_seekoff): Likewise.
7720         (_IO_wstr_pbackfail): Likewise.
7721         (_IO_wstr_finish): Likewise.
7722         * locale/programs/localedef.c (normalize_codeset): Likewise.
7723         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
7724         (add_locales_to_archive): Likewise.
7725         (delete_locales_from_archive): Likewise.
7726         * malloc/malloc.c (__libc_mallinfo): Likewise.
7727         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
7728         * misc/tsearch.c (__tfind): Likewise.
7729         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
7730         * nptl/pthread_attr_getdetachstate.c
7731         (__pthread_attr_getdetachstate): Likewise.
7732         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
7733         Likewise.
7734         * nptl/pthread_attr_getinheritsched.c
7735         (__pthread_attr_getinheritsched): Likewise.
7736         * nptl/pthread_attr_getschedparam.c
7737         (__pthread_attr_getschedparam): Likewise.
7738         * nptl/pthread_attr_getschedpolicy.c
7739         (__pthread_attr_getschedpolicy): Likewise.
7740         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
7741         Likewise.
7742         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
7743         Likewise.
7744         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
7745         Likewise.
7746         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
7747         Likewise.
7748         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
7749         (__pthread_attr_init_2_0): Likewise.
7750         * nptl/pthread_attr_setdetachstate.c
7751         (__pthread_attr_setdetachstate): Likewise.
7752         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
7753         Likewise.
7754         * nptl/pthread_attr_setinheritsched.c
7755         (__pthread_attr_setinheritsched): Likewise.
7756         * nptl/pthread_attr_setschedparam.c
7757         (__pthread_attr_setschedparam): Likewise.
7758         * nptl/pthread_attr_setschedpolicy.c
7759         (__pthread_attr_setschedpolicy): Likewise.
7760         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
7761         Likewise.
7762         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
7763         Likewise.
7764         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
7765         Likewise.
7766         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
7767         Likewise.
7768         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
7769         Likewise.
7770         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
7771         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
7772         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
7773         use internal_function.
7774         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
7775         prototype-style function definition.
7776         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
7777         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
7778         internal_function.
7779         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
7780         Convert to prototype-style function definition.
7781         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
7782         Likewise.
7783         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
7784         Likewise.
7785         (__pthread_mutex_unlock): Likewise.
7786         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
7787         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
7788         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
7789         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
7790         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
7791         * nss/makedb.c (process_input): Likewise.
7792         * posix/fnmatch.c (__strchrnul): Likewise.
7793         (__wcschrnul): Likewise.
7794         (fnmatch): Likewise.
7795         * posix/fnmatch_loop.c (FCT): Likewise.
7796         * posix/glob.c (globfree): Likewise.
7797         (__glob_pattern_type): Likewise.
7798         (__glob_pattern_p): Likewise.
7799         * posix/regcomp.c (re_compile_pattern): Likewise.
7800         (re_set_syntax): Likewise.
7801         (re_compile_fastmap): Likewise.
7802         (regcomp): Likewise.
7803         (regerror): Likewise.
7804         (regfree): Likewise.
7805         * posix/regexec.c (regexec): Likewise.
7806         (re_match): Likewise.
7807         (re_search): Likewise.
7808         (re_match_2): Likewise.
7809         (re_search_2): Likewise.
7810         (re_search_stub): Likewise.  Use internal_function
7811         (re_copy_regs): Likewise.
7812         (re_set_registers): Convert to prototype-style function
7813         definition.
7814         (prune_impossible_nodes): Likewise.  Use internal_function.
7815         * resolv/inet_net_pton.c (inet_net_pton): Convert to
7816         prototype-style function definition.
7817         (inet_net_pton_ipv4): Likewise.
7818         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7819         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
7820         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
7821         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
7822         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
7823         Make variadic.
7824         * time/strptime_l.c (localtime_r): Convert to prototype-style
7825         function definition.
7826         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
7827         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
7828         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
7829         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
7830
7831         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
7832         definition.
7833         (_ufc_doit_r): Likewise.
7834         * crypt/crypt_util.c (_ufc_copymem): Likewise.
7835         (_ufc_output_conversion_r): Likewise.
7836         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
7837         * inet/rcmd.c (rcmd_af): Likewise.
7838         (rcmd): Likewise.
7839         (ruserok_af): Likewise.
7840         (ruserok): Likewise.
7841         (ruserok2_sa): Likewise.
7842         (ruserok_sa): Likewise.
7843         (iruserok_af): Likewise.
7844         (iruserok): Likewise.
7845         (__ivaliduser): Likewise.
7846         (__validuser2_sa): Likewise.
7847         * inet/rexec.c (rexec_af): Likewise.
7848         (rexec): Likewise.
7849         * inet/ruserpass.c (ruserpass): Likewise.
7850         * locale/programs/xmalloc.c (xcalloc): Likewise.
7851         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
7852         * math/w_drem.c (__drem): Likewise.
7853         * math/w_dremf.c (__dremf): Likewise.
7854         * math/w_dreml.c (__dreml): Likewise.
7855         * misc/daemon.c (daemon): Likewise.
7856         * resolv/res_debug.c (p_fqnname): Likewise.
7857         * stdlib/div.c (div): Likewise.
7858         * string/memcmp.c (memcmp_bytes): Likewise.
7859         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
7860         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7861
7862         * crypt/cert.c (main): Convert to prototype-style function
7863         definition.
7864         * io/pipe.c (__pipe): Likewise.
7865         * io/pipe2.c (__pipe2): Likewise.
7866         * misc/futimesat.c (futimesat): Likewise.
7867         * misc/utimes.c (__utimes): Likewise.
7868         * posix/execve.c (__execve): Likewise.
7869         * posix/execvp.c (execvp): Likewise.
7870         * posix/execvpe.c (__execvpe): Likewise.
7871         * posix/fexecve.c (fexecve): Likewise.
7872         * socket/socketpair.c (socketpair): Likewise.
7873         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
7874         * stdlib/erand48.c (erand48): Likewise.
7875         * stdlib/erand48_r.c (__erand48_r): Likewise.
7876         * stdlib/jrand48.c (jrand48): Likewise.
7877         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
7878         * stdlib/lcong48.c (lcong48): Likewise.
7879         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
7880         * stdlib/nrand48.c (nrand48): Likewise.
7881         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
7882         * stdlib/seed48.c (seed48): Likewise.
7883         * stdlib/seed48_r.c (__seed48_r): Likewise.
7884         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
7885         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
7886         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
7887
7888 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
7889
7890         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
7891         * configure: Regenerated.
7892         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
7893         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
7894         unconditional.
7895         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7896         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7897         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7898         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
7899         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
7900         unconditional.
7901         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7902
7903         * posix/Makefile (CFLAGS-regex.c): Remove variable.
7904         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
7905
7906         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
7907         function definition.
7908         * crypt/crypt_util.c (__encrypt_r): Likewise.
7909         * libio/genops.c (_IO_no_init): Likewise.
7910         * libio/iofopncook.c (_IO_fopencookie): Likewise.
7911         (_IO_old_fopencookie): Likewise.
7912         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7913         * libio/iogetline.c (_IO_getline): Likewise.
7914         (_IO_getline_info): Likewise.
7915         * libio/iogetwline.c (_IO_getwline): Likewise.
7916         (_IO_getwline_info): Likewise.
7917         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
7918         * libio/vswprintf.c (_IO_vswprintf): Likewise.
7919         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
7920         (find_entry): Likewise.
7921         (iterate_table): Likewise.
7922         (lookup): Likewise.
7923         * login/forkpty.c (forkpty): Likewise.
7924         * misc/hsearch_r.c (__hsearch_r): Likewise.
7925         * misc/select.c (__select): Likewise.
7926         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
7927         Likewise.
7928         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
7929         Likewise.
7930         * nptl/old_pthread_cond_timedwait.c
7931         (__pthread_cond_timedwait_2_0): Likewise.
7932         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
7933         * nptl/pthread_barrierattr_getpshared.c
7934         (pthread_barrierattr_getpshared): Likewise.
7935         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
7936         Likewise.
7937         * nptl/pthread_mutex_setprioceiling.c
7938         (pthread_mutex_setprioceiling): Likewise.
7939         * nptl/pthread_mutexattr_getprioceiling.c
7940         (pthread_mutexattr_getprioceiling): Likewise.
7941         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
7942         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
7943         Likewise.
7944         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
7945         Likewise.
7946         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
7947         Likewise.
7948         * socket/recvfrom.c (__recvfrom): Likewise.
7949         * socket/sendto.c (__sendto): Likewise.
7950         * socket/setsockopt.c (__setsockopt): Likewise.
7951         * stdio-common/_itoa.c (_itoa): Likewise.
7952         * stdio-common/_itowa.c (_itowa): Likewise.
7953         * stdio-common/reg-printf.c (__register_printf_specifier):
7954         Likewise.
7955         (__register_printf_function): Likewise.
7956         * stdio-common/tempname.c (__path_search): Likewise.
7957         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
7958         * stdlib/mul_1.c (mpn_mul_1): Likewise.
7959         * stdlib/random_r.c (__initstate_r): Likewise.
7960         * stdlib/setenv.c (__add_to_environ): Likewise.
7961         * stdlib/submul_1.c (mpn_submul_1): Likewise.
7962         * streams/getpmsg.c (getpmsg): Likewise.
7963         * streams/putmsg.c (putmsg): Likewise.
7964         * streams/putpmsg.c (putpmsg): Likewise.
7965         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
7966         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
7967         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
7968         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
7969         * sunrpc/pm_getport.c (pmap_getport): Likewise.
7970         * sunrpc/svc_udp.c (cache_get): Likewise.
7971         * sunrpc/xdr_array.c (xdr_vector): Likewise.
7972         * sysdeps/mach/hurd/getcwd.c
7973         (__canonicalize_directory_name_internal): Likewise.
7974         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
7975         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
7976         * sysdeps/mach/hurd/select.c (__select): Likewise.
7977         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7978         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
7979         * sysdeps/sparc/nptl/pthread_barrier_init.c
7980         (__pthread_barrier_init): Likewise.
7981         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
7982         (__pthread_cond_timedwait): Likewise.
7983         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
7984         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
7985         Likewise.
7986         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
7987         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
7988         Likewise.
7989         * sysvipc/semtimedop.c (semtimedop): Likewise.
7990         * time/setitimer.c (__setitimer): Likewise.
7991         * time/strftime_l.c (emacs_strftime): Likewise.
7992
7993 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
7994
7995         * config.make.in (have-ssp): Delete.
7996         (stack-protector): New variable.
7997         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
7998         cache test for -fstack-protector-strong.  Export stack_protector to
7999         the best ssp flag.
8000         * configure: Regenerated.
8001         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8002         * nscd/Makefile (CFLAGS-nscd): Likewise.
8003         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8004
8005 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8006
8007         [BZ #19122]
8008         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8009         attribute_hidden.
8010
8011 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8012
8013         [BZ #18743]
8014         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8015         code to...
8016         (ELIDE_LOCK): ...here.
8017         (__get_new_count): New function with part of the code from
8018         __elide_lock that updates the value of adapt_count after a
8019         transaction abort.
8020         (__elided_trylock): Moved this code to...
8021         (ELIDE_TRYLOCK): ...here.
8022
8023 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8024
8025         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8026         * configure: Regenerate.
8027         * INSTALL: Regenerate.
8028         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8029         and tweak grammar.
8030
8031 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8032
8033         * login/programs/pt_chown.c: Include signal.h
8034         (main): Clear any signal mask from the parent process.
8035
8036 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8037
8038         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8039         * configure: Regenerated.
8040         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8041         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8042         $(gnu89-inline-CFLAGS).
8043
8044         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8045         test.
8046         (libc_cv_asm_weakext_directive): Likewise.
8047         * configure: Regenerated.
8048         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8049         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8050         * include/libc-symbols.h
8051         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8052         #error.
8053         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8054         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8055
8056         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8057         prototype-style function definition.
8058         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8059         * sysdeps/i386/ffs.c (__ffs): Likewise.
8060         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8061         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8062         Likewise.
8063         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8064         Likewise.
8065         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8066         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8067         Likewise.
8068         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8069         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8070         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8071         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8072         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8073         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8074         * sysdeps/mach/hurd/access.c (__access): Likewise.
8075         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8076         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8077         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8078         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8079         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8080         (cthread_getspecific): Likewise.
8081         (cthread_setspecific): Likewise.
8082         (__libc_getspecific): Likewise.
8083         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8084         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8085         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8086         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8087         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8088         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8089         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8090         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8091         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8092         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8093         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8094         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8095         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8096         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8097         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8098         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8099         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8100         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8101         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8102         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8103         * sysdeps/mach/hurd/link.c (__link): Likewise.
8104         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8105         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8106         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8107         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8108         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8109         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8110         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8111         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8112         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8113         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8114         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8115         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8116         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8117         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8118         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8119         * sysdeps/mach/hurd/send.c (__send): Likewise.
8120         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8121         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8122         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8123         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8124         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8125         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8126         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8127         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8128         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8129         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8130         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8131         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8132         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8133         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8134         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8135         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8136         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8137         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8138         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8139         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8140         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8141         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8142         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8143         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8144         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8145         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8146         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8147         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8148         * sysdeps/posix/alarm.c (alarm): Likewise.
8149         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8150         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8151         * sysdeps/posix/dup.c (__dup): Likewise.
8152         * sysdeps/posix/dup2.c (__dup2): Likewise.
8153         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8154         (main): Likewise.
8155         * sysdeps/posix/flock.c (__flock): Likewise.
8156         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8157         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8158         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8159         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8160         * sysdeps/posix/isatty.c (__isatty): Likewise.
8161         * sysdeps/posix/killpg.c (killpg): Likewise.
8162         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8163         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8164         * sysdeps/posix/raise.c (raise): Likewise.
8165         * sysdeps/posix/remove.c (remove): Likewise.
8166         * sysdeps/posix/rename.c (rename): Likewise.
8167         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8168         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8169         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8170         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8171         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8172         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8173         * sysdeps/posix/sigset.c (sigset): Likewise.
8174         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8175         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8176         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8177         * sysdeps/posix/time.c (time): Likewise.
8178         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8179         (ttyname): Likewise.
8180         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8181         * sysdeps/posix/utime.c (utime): Likewise.
8182         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8183         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8184         Likewise.
8185         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8186         (pthread_spin_trylock): Likewise.
8187         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8188         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8189         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8190         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8191         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8192         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8193         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8194         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8195         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8196         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8197         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8198         * sysdeps/s390/ffs.c (__ffs): Likewise.
8199         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8200         Likewise.
8201         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8202         Likewise.
8203         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8204         Likewise.
8205         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8206         (pthread_barrier_destroy): Likewise.
8207         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8208         (__pthread_barrier_wait): Likewise.
8209         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8210         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8211         (__pthread_barrier_wait): Likewise.
8212         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8213         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8214         (memcmp_not_common_alignment): Likewise.
8215         (MEMCMP): Likewise.
8216         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8217         (_wordcopy_fwd_dest_aligned): Likewise.
8218         (_wordcopy_bwd_aligned): Likewise.
8219         (_wordcopy_bwd_dest_aligned): Likewise.
8220         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8221         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8222         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8223         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8224         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8225         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8226         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8227         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8228         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8229         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8230         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8231         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8232         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8233         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8234         * sysdeps/unix/stime.c (stime): Likewise.
8235         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8236         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8237         Likewise.  Use internal_function.
8238         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8239         Convert to prototype-style function definition.
8240         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8241         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8242         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8243         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8244         Likewise.  Use internal_function.
8245         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8246         prototype-style function definition
8247         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8248         Likewise.
8249         (__getlogin_r): Likewise.
8250         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8251         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8252         (__pthread_cond_broadcast): Likewise.
8253         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8254         (__pthread_cond_destroy): Likewise.
8255         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8256         (__pthread_cond_init): Likewise.
8257         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8258         (__pthread_cond_signal): Likewise.
8259         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8260         (__pthread_cond_wait): Likewise.
8261         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8262         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8263         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8264         Likewise.
8265         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8266         Likewise.
8267         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8268         Likewise.
8269         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8270         Likewise.
8271         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8273         (__ftruncate64): Likewise.
8274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8275         (truncate64): Likewise.
8276         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8277         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8278         (pthread_getcpuclockid): Likewise.
8279         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8280         Likewise.
8281         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8282         Likewise.
8283         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8284         Likewise.
8285         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8286         Likewise.
8287         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8288         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8289         (__libc_sigaction): Likewise.
8290         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8291         Likewise.
8292         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8293         (__sigprocmask): Likewise.
8294         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8295         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8296         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8297         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8298         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8299         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8300         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8301         Likewise.
8302         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8303         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8304         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8305         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8306         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8307         Likewise.
8308         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8309         (__sigprocmask): Likewise.
8310         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8311         (cfgetispeed): Likewise.
8312         (cfsetospeed): Likewise.
8313         (cfsetispeed): Likewise.
8314         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8315         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8316         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8317         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8318         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8319         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8320         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8321         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8322         Likewise.
8323         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8324         Likewise.
8325         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8326         Likewise.
8327         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8328         Likewise.
8329         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8330
8331 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8332
8333         sunrpc: Rewrite with explicit TLS access using __thread.
8334         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8335         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8336         directly.
8337         (__rpc_thread_variables): Access thread_rpc_vars directly.
8338         Eliminate redundant assignment of the tvp variable.
8339
8340 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8341
8342         malloc: Rewrite with explicit TLS access using __thread.
8343         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8344         (tsd_setspecific, tsd_getspecific): Remove.
8345         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8346         (tsd_setspecific, tsd_getspecific): Likewise.
8347         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8348         (tsd_setspecific, tsd_getspecific): Likewise.
8349         * malloc/arena.c (thread_arena): New TLS variable.
8350         (arena_key): Remove variable.
8351         (arena_get): Use thread_arena.
8352         (arena_lookup): Remove macro.
8353         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8354         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8355         (_int_new_arena, get_free_list, reused_arena)
8356         (arena_thread_freeres): Use thread_arena.
8357         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8358         tsd_getspecific, tsd_setspecific from safety annotations.
8359         (Allocating Cleared Space): Remove arena_lookup from safety
8360         annotations.
8361
8362 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8363
8364         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8365         struct scratch_buffer instead of extend_alloca.
8366
8367 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8368
8369         * sysdeps/unix/sysv/linux/kernel-features.h
8370         (__ASSUME_SOCK_CLOEXEC): Remove.
8371         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8372         (__have_paccept): Remove unused macro.
8373         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8374         * misc/syslog.c (openlog_internal): Remove fallback code for
8375         !__ASSUME_SOCK_CLOEXEC.
8376         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8377         missing SOCK_CLOEXEC.
8378         * nscd/connections.c (have_sock_cloexec): Remove definition.
8379         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8380         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8381         !__ASSUME_SOCK_CLOEXEC.
8382         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8383         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8384         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8385         definition.
8386         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8387         code for !__ASSUME_SOCK_CLOEXEC.
8388
8389 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8390
8391         [BZ #18982]
8392         * manual/stdio.texi (Variable Arguments Output): Add portability
8393         note, explaining that vfprintf clobbers the va_list pointer.
8394
8395 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8396
8397         * math/libm-test.inc (fabs_test_data): Add more tests.
8398         (fdim_test_data): Likewise.
8399         (fma_test_data): Likewise.
8400         (fmax_test_data): Likewise.
8401         (fmin_test_data): Likewise.
8402         (fmod_test_data): Likewise.
8403
8404 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8405
8406         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8407         data.
8408
8409 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8410
8411         * math/libm-test.inc (ceil_test_data): Add more tests and more
8412         expectations for "inexact".
8413         (floor_test_data): Add more tests.
8414         (round_test_data): Likewise.
8415         (trunc_test_data): Likewise.
8416
8417         * crypt/cert.c (good_bye): Convert to prototype-style function
8418         definition.
8419         (get8): Likewise.
8420         (put8): Likewise.
8421         * crypt/crypt-entry.c (crypt): Likewise.
8422         (__fcrypt): Likewise.
8423         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8424         (_ufc_set_bits): Likewise.
8425         (_ufc_clearmem): Likewise.
8426         (__init_des_r): Likewise.
8427         (shuffle_sb): Likewise.
8428         (shuffle_sb): Likewise.
8429         (_ufc_setup_salt_r): Likewise.
8430         (_ufc_mk_keytab_r): Likewise.
8431         (_ufc_dofinalperm_r): Likewise.
8432         (encrypt): Likewise.
8433         (__setkey_r): Likewise.
8434         (setkey): Likewise.
8435         * crypt/md5.c (md5_init_ctx): Likewise.
8436         (md5_read_ctx): Likewise.
8437         (md5_finish_ctx): Likewise.
8438         (md5_stream): Likewise.
8439         (md5_buffer): Likewise.
8440         (md5_process_bytes): Likewise.
8441         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8442         (__sha256_finish_ctx): Likewise.
8443         (__sha256_process_bytes): Likewise.
8444         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8445         (__sha512_finish_ctx): Likewise.
8446         (__sha512_process_bytes): Likewise.
8447         * ctype/isctype.c (__isctype): Likewise.
8448         * debug/backtrace.c (__backtrace): Likewise.
8449         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8450         * debug/fgets_chk.c (__fgets_chk): Likewise.
8451         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8452         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8453         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8454         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8455         * debug/memset_chk.c (__memset_chk): Likewise.
8456         * debug/strcat_chk.c (__strcat_chk): Likewise.
8457         * debug/strncat_chk.c (__strncat_chk): Likewise.
8458         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8459         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8460         * dirent/dirfd.c (dirfd): Likewise.
8461         * dirent/getdents.c (__getdirentries): Likewise.
8462         * dirent/getdents64.c (getdirentries64): Likewise.
8463         * dirent/rewinddir.c (__rewinddir): Likewise.
8464         * dirent/seekdir.c (seekdir): Likewise.
8465         * dirent/telldir.c (telldir): Likewise.
8466         * elf/sln.c (makesymlinks): Likewise.
8467         (makesymlink): Likewise.
8468         * gmon/gmon.c (__moncontrol): Likewise.
8469         (__monstartup): Likewise.
8470         (write_hist): Likewise.
8471         (write_call_graph): Likewise.
8472         (write_bb_counts): Likewise.
8473         * grp/setgroups.c (setgroups): Likewise.
8474         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8475         * inet/inet_net.c (inet_network): Likewise.
8476         * inet/inet_netof.c (inet_netof): Likewise.
8477         * inet/rcmd.c (rresvport_af): Likewise.
8478         (rresvport): Likewise.
8479         * io/access.c (__access): Likewise.
8480         * io/chdir.c (__chdir): Likewise.
8481         * io/chmod.c (__chmod): Likewise.
8482         * io/chown.c (__chown): Likewise.
8483         * io/close.c (__close): Likewise.
8484         * io/creat.c (creat): Likewise.
8485         * io/creat64.c (creat64): Likewise.
8486         * io/dup.c (__dup): Likewise.
8487         * io/dup2.c (__dup2): Likewise.
8488         * io/dup3.c (__dup3): Likewise.
8489         * io/euidaccess.c (__euidaccess): Likewise.
8490         * io/faccessat.c (faccessat): Likewise.
8491         * io/fchmod.c (__fchmod): Likewise.
8492         * io/fchmodat.c (fchmodat): Likewise.
8493         * io/fchown.c (__fchown): Likewise.
8494         * io/fchownat.c (fchownat): Likewise.
8495         * io/fcntl.c (__fcntl): Likewise.
8496         * io/flock.c (__flock): Likewise.
8497         * io/fts.c (fts_load): Likewise.
8498         (fts_close): Likewise.
8499         (fts_read): Likewise.
8500         (fts_set): Likewise.
8501         (fts_children): Likewise.
8502         (fts_build): Likewise.
8503         (fts_stat): Likewise.
8504         (fts_sort): Likewise.
8505         (fts_alloc): Likewise.
8506         (fts_lfree): Likewise.
8507         (fts_palloc): Likewise.
8508         (fts_padjust): Likewise.
8509         (fts_maxarglen): Likewise.
8510         (fts_safe_changedir): Likewise.
8511         * io/getwd.c (getwd): Likewise.
8512         * io/isatty.c (__isatty): Likewise.
8513         * io/lchown.c (__lchown): Likewise.
8514         * io/link.c (__link): Likewise.
8515         * io/linkat.c (linkat): Likewise.
8516         * io/lseek.c (__libc_lseek): Likewise.
8517         * io/mkdir.c (__mkdir): Likewise.
8518         * io/mkdirat.c (mkdirat): Likewise.
8519         * io/mkfifo.c (mkfifo): Likewise.
8520         * io/mkfifoat.c (mkfifoat): Likewise.
8521         * io/open.c (__libc_open): Likewise.
8522         * io/open64.c (__libc_open64): Likewise.
8523         * io/readlink.c (__readlink): Likewise.
8524         * io/readlinkat.c (readlinkat): Likewise.
8525         * io/rmdir.c (__rmdir): Likewise.
8526         * io/symlink.c (__symlink): Likewise.
8527         * io/symlinkat.c (symlinkat): Likewise.
8528         * io/ttyname.c (ttyname): Likewise.
8529         * io/ttyname_r.c (__ttyname_r): Likewise.
8530         * io/umask.c (__umask): Likewise.
8531         * io/unlink.c (__unlink): Likewise.
8532         * io/unlinkat.c (unlinkat): Likewise.
8533         * io/utime.c (utime): Likewise.
8534         * libio/clearerr.c (clearerr): Likewise.
8535         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8536         * libio/feof.c (_IO_feof): Likewise.
8537         * libio/feof_u.c (feof_unlocked): Likewise.
8538         * libio/ferror.c (_IO_ferror): Likewise.
8539         * libio/ferror_u.c (ferror_unlocked): Likewise.
8540         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8541         * libio/fileno.c (__fileno): Likewise.
8542         * libio/fputc.c (fputc): Likewise.
8543         * libio/fputc_u.c (fputc_unlocked): Likewise.
8544         * libio/fputwc.c (fputwc): Likewise.
8545         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8546         * libio/freopen.c (freopen): Likewise.
8547         * libio/freopen64.c (freopen64): Likewise.
8548         * libio/fseek.c (fseek): Likewise.
8549         * libio/fseeko.c (fseeko): Likewise.
8550         * libio/fseeko64.c (fseeko64): Likewise.
8551         * libio/ftello.c (__ftello): Likewise.
8552         * libio/ftello64.c (ftello64): Likewise.
8553         * libio/fwide.c (fwide): Likewise.
8554         * libio/genops.c (_IO_un_link): Likewise.
8555         (_IO_link_in): Likewise.
8556         (_IO_least_marker): Likewise.
8557         (_IO_switch_to_main_get_area): Likewise.
8558         (_IO_switch_to_backup_area): Likewise.
8559         (_IO_switch_to_get_mode): Likewise.
8560         (_IO_free_backup_area): Likewise.
8561         (_IO_switch_to_put_mode): Likewise.
8562         (__overflow): Likewise.
8563         (__underflow): Likewise.
8564         (__uflow): Likewise.
8565         (_IO_setb): Likewise.
8566         (_IO_doallocbuf): Likewise.
8567         (_IO_default_underflow): Likewise.
8568         (_IO_default_uflow): Likewise.
8569         (_IO_default_xsputn): Likewise.
8570         (_IO_sgetn): Likewise.
8571         (_IO_default_xsgetn): Likewise.
8572         (_IO_sync): Likewise.
8573         (_IO_default_setbuf): Likewise.
8574         (_IO_default_seekpos): Likewise.
8575         (_IO_default_doallocate): Likewise.
8576         (_IO_init): Likewise.
8577         (_IO_old_init): Likewise.
8578         (_IO_default_sync): Likewise.
8579         (_IO_default_finish): Likewise.
8580         (_IO_default_seekoff): Likewise.
8581         (_IO_sputbackc): Likewise.
8582         (_IO_sungetc): Likewise.
8583         (_IO_set_column): Likewise.
8584         (_IO_set_column): Likewise.
8585         (_IO_adjust_column): Likewise.
8586         (_IO_get_column): Likewise.
8587         (_IO_init_marker): Likewise.
8588         (_IO_remove_marker): Likewise.
8589         (_IO_marker_difference): Likewise.
8590         (_IO_marker_delta): Likewise.
8591         (_IO_seekmark): Likewise.
8592         (_IO_unsave_markers): Likewise.
8593         (_IO_nobackup_pbackfail): Likewise.
8594         (_IO_default_pbackfail): Likewise.
8595         (_IO_default_seek): Likewise.
8596         (_IO_default_stat): Likewise.
8597         (_IO_default_read): Likewise.
8598         (_IO_default_write): Likewise.
8599         (_IO_default_showmanyc): Likewise.
8600         (_IO_default_imbue): Likewise.
8601         (_IO_iter_next): Likewise.
8602         (_IO_iter_file): Likewise.
8603         * libio/getc.c (_IO_getc): Likewise.
8604         * libio/getwc.c (_IO_getwc): Likewise.
8605         * libio/iofclose.c (_IO_new_fclose): Likewise.
8606         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8607         * libio/iofflush.c (_IO_fflush): Likewise.
8608         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
8609         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8610         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
8611         * libio/iofgets.c (_IO_fgets): Likewise.
8612         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
8613         * libio/iofgetws.c (fgetws): Likewise.
8614         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8615         * libio/iofopen64.c (_IO_fopen64): Likewise.
8616         * libio/iofopncook.c (_IO_cookie_read): Likewise.
8617         (_IO_cookie_write): Likewise.
8618         (_IO_cookie_seek): Likewise.
8619         (_IO_cookie_close): Likewise.
8620         (_IO_cookie_seekoff): Likewise.
8621         (_IO_old_cookie_seek): Likewise.
8622         * libio/iofputs.c (_IO_fputs): Likewise.
8623         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
8624         * libio/iofputws.c (fputws): Likewise.
8625         * libio/iofputws_u.c (fputws_unlocked): Likewise.
8626         * libio/iofread.c (_IO_fread): Likewise.
8627         * libio/iofread_u.c (__fread_unlocked): Likewise.
8628         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
8629         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8630         * libio/ioftell.c (_IO_ftell): Likewise.
8631         * libio/iofwrite.c (_IO_fwrite): Likewise.
8632         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8633         * libio/iogets.c (_IO_gets): Likewise.
8634         * libio/iopadn.c (_IO_padn): Likewise.
8635         * libio/iopopen.c (_IO_new_proc_open): Likewise.
8636         (_IO_new_popen): Likewise.
8637         (_IO_new_proc_close): Likewise.
8638         * libio/ioputs.c (_IO_puts): Likewise.
8639         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
8640         (_IO_seekoff): Likewise.
8641         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
8642         (_IO_seekpos): Likewise.
8643         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
8644         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8645         * libio/ioungetc.c (_IO_ungetc): Likewise.
8646         * libio/ioungetwc.c (ungetwc): Likewise.
8647         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8648         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
8649         * libio/iowpadn.c (_IO_wpadn): Likewise.
8650         * libio/libc_fatal.c (__libc_fatal): Likewise.
8651         * libio/memstream.c (__open_memstream): Likewise.
8652         (_IO_mem_sync): Likewise.
8653         (_IO_mem_finish): Likewise.
8654         * libio/oldfileops.c (_IO_old_file_init): Likewise.
8655         (_IO_old_file_close_it): Likewise.
8656         (_IO_old_file_finish): Likewise.
8657         (_IO_old_file_fopen): Likewise.
8658         (_IO_old_file_attach): Likewise.
8659         (_IO_old_file_setbuf): Likewise.
8660         (_IO_old_do_write): Likewise.
8661         (old_do_write): Likewise.
8662         (_IO_old_file_underflow): Likewise.
8663         (_IO_old_file_overflow): Likewise.
8664         (_IO_old_file_sync): Likewise.
8665         (_IO_old_file_seekoff): Likewise.
8666         (_IO_old_file_write): Likewise.
8667         (_IO_old_file_xsputn): Likewise.
8668         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
8669         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
8670         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
8671         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
8672         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
8673         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
8674         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
8675         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8676         (_IO_old_popen): Likewise.
8677         (_IO_old_proc_close): Likewise.
8678         * libio/oldpclose.c (__old_pclose): Likewise.
8679         * libio/pclose.c (__new_pclose): Likewise.
8680         * libio/peekc.c (_IO_peekc_locked): Likewise.
8681         * libio/putc.c (_IO_putc): Likewise.
8682         * libio/putc_u.c (putc_unlocked): Likewise.
8683         * libio/putchar.c (putchar): Likewise.
8684         * libio/putchar_u.c (putchar_unlocked): Likewise.
8685         * libio/putwc.c (putwc): Likewise.
8686         * libio/putwc_u.c (putwc_unlocked): Likewise.
8687         * libio/putwchar.c (putwchar): Likewise.
8688         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
8689         * libio/rewind.c (rewind): Likewise.
8690         * libio/setbuf.c (setbuf): Likewise.
8691         * libio/setlinebuf.c (setlinebuf): Likewise.
8692         * libio/vasprintf.c (_IO_vasprintf): Likewise.
8693         * libio/vscanf.c (_IO_vscanf): Likewise.
8694         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
8695         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
8696         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
8697         * libio/wgenops.c (_IO_least_wmarker): Likewise.
8698         (_IO_switch_to_main_wget_area): Likewise.
8699         (_IO_switch_to_wbackup_area): Likewise.
8700         (_IO_wsetb): Likewise.
8701         (_IO_wdefault_pbackfail): Likewise.
8702         (_IO_wdefault_finish): Likewise.
8703         (_IO_wdefault_uflow): Likewise.
8704         (__woverflow): Likewise.
8705         (__wuflow): Likewise.
8706         (__wunderflow): Likewise.
8707         (_IO_wdefault_xsputn): Likewise.
8708         (_IO_wdefault_xsgetn): Likewise.
8709         (_IO_wdoallocbuf): Likewise.
8710         (_IO_wdefault_doallocate): Likewise.
8711         (_IO_switch_to_wget_mode): Likewise.
8712         (_IO_free_wbackup_area): Likewise.
8713         (_IO_switch_to_wput_mode): Likewise.
8714         (_IO_sputbackwc): Likewise.
8715         (_IO_sungetwc): Likewise.
8716         (_IO_adjust_wcolumn): Likewise.
8717         (_IO_init_wmarker): Likewise.
8718         (_IO_wmarker_delta): Likewise.
8719         (_IO_seekwmark): Likewise.
8720         (_IO_unsave_wmarkers): Likewise.
8721         * libio/wmemstream.c (open_wmemstream): Likewise.
8722         (_IO_wmem_sync): Likewise.
8723         (_IO_wmem_finish): Likewise.
8724         * locale/nl_langinfo.c (nl_langinfo): Likewise.
8725         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
8726         * locale/programs/simple-hash.c (init_hash): Likewise.
8727         (delete_hash): Likewise.
8728         (insert_entry): Likewise.
8729         (set_entry): Likewise.
8730         (next_prime): Likewise.
8731         (is_prime): Likewise.
8732         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
8733         (xmalloc): Likewise.
8734         (xrealloc): Likewise.
8735         * locale/programs/xstrdup.c (xstrdup): Likewise.
8736         * localedata/collate-test.c (xstrcoll): Likewise.
8737         * localedata/xfrm-test.c (xstrcmp): Likewise.
8738         * login/getlogin_r.c (__getlogin_r): Likewise.
8739         * login/getpt.c (__posix_openpt): Likewise.
8740         * login/login_tty.c (login_tty): Likewise.
8741         * login/setlogin.c (setlogin): Likewise.
8742         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
8743         (mach_msg_destroy_port): Likewise.
8744         (mach_msg_destroy_memory): Likewise.
8745         * malloc/mcheck.c (flood): Likewise.
8746         * misc/acct.c (acct): Likewise.
8747         * misc/brk.c (__brk): Likewise.
8748         * misc/chflags.c (chflags): Likewise.
8749         * misc/chroot.c (chroot): Likewise.
8750         * misc/fchflags.c (fchflags): Likewise.
8751         * misc/fstab.c (getfsspec): Likewise.
8752         (getfsfile): Likewise.
8753         * misc/fsync.c (fsync): Likewise.
8754         * misc/ftruncate.c (__ftruncate): Likewise.
8755         * misc/ftruncate64.c (__ftruncate64): Likewise.
8756         * misc/getdomain.c (getdomainname): Likewise.
8757         (getdomainname): Likewise.
8758         * misc/gethostname.c (__gethostname): Likewise.
8759         * misc/getpass.c (getpass): Likewise.
8760         * misc/getttyent.c (skip): Likewise.
8761         (value): Likewise.
8762         * misc/gtty.c (gtty): Likewise.
8763         * misc/hsearch.c (hsearch): Likewise.
8764         (hcreate): Likewise.
8765         * misc/hsearch_r.c (__hcreate_r): Likewise.
8766         (__hdestroy_r): Likewise.
8767         * misc/ioctl.c (__ioctl): Likewise.
8768         * misc/mkdtemp.c (mkdtemp): Likewise.
8769         * misc/mkostemp.c (mkostemp): Likewise.
8770         * misc/mkostemp64.c (mkostemp64): Likewise.
8771         * misc/mkostemps.c (mkostemps): Likewise.
8772         * misc/mkostemps64.c (mkostemps64): Likewise.
8773         * misc/mkstemp.c (mkstemp): Likewise.
8774         * misc/mkstemp64.c (mkstemp64): Likewise.
8775         * misc/mkstemps.c (mkstemps): Likewise.
8776         * misc/mkstemps64.c (mkstemps64): Likewise.
8777         * misc/mktemp.c (__mktemp): Likewise.
8778         * misc/preadv.c (preadv): Likewise.
8779         * misc/preadv64.c (preadv64): Likewise.
8780         * misc/pwritev.c (pwritev): Likewise.
8781         * misc/pwritev64.c (pwritev64): Likewise.
8782         * misc/readv.c (__readv): Likewise.
8783         * misc/revoke.c (revoke): Likewise.
8784         * misc/setdomain.c (setdomainname): Likewise.
8785         * misc/setegid.c (setegid): Likewise.
8786         * misc/seteuid.c (seteuid): Likewise.
8787         * misc/sethostid.c (sethostid): Likewise.
8788         * misc/sethostname.c (sethostname): Likewise.
8789         * misc/setregid.c (__setregid): Likewise.
8790         * misc/setreuid.c (__setreuid): Likewise.
8791         * misc/sstk.c (sstk): Likewise.
8792         * misc/stty.c (stty): Likewise.
8793         * misc/syscall.c (syscall): Likewise.
8794         * misc/syslog.c (setlogmask): Likewise.
8795         * misc/truncate.c (__truncate): Likewise.
8796         * misc/truncate64.c (truncate64): Likewise.
8797         * misc/ualarm.c (ualarm): Likewise.
8798         * misc/usleep.c (usleep): Likewise.
8799         * misc/ustat.c (ustat): Likewise.
8800         * misc/writev.c (__writev): Likewise.
8801         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
8802         * nptl/old_pthread_cond_broadcast.c
8803         (__pthread_cond_broadcast_2_0): Likewise.
8804         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
8805         Likewise.
8806         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
8807         Likewise.
8808         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
8809         Likewise.
8810         * nptl/pt-raise.c (raise): Likewise.
8811         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
8812         Likewise.
8813         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
8814         * nptl/pthread_barrierattr_destroy.c
8815         (pthread_barrierattr_destroy): Likewise.
8816         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
8817         Likewise.
8818         * nptl/pthread_barrierattr_setpshared.c
8819         (pthread_barrierattr_setpshared): Likewise.
8820         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
8821         Likewise.
8822         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
8823         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
8824         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
8825         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
8826         Likewise.
8827         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
8828         Likewise.
8829         * nptl/pthread_condattr_getpshared.c
8830         (pthread_condattr_getpshared): Likewise.
8831         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
8832         Likewise.
8833         * nptl/pthread_condattr_setpshared.c
8834         (pthread_condattr_setpshared): Likewise.
8835         * nptl/pthread_detach.c (pthread_detach): Likewise.
8836         * nptl/pthread_equal.c (__pthread_equal): Likewise.
8837         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
8838         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
8839         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
8840         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
8841         Likewise.
8842         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8843         Likewise.
8844         * nptl/pthread_mutex_getprioceiling.c
8845         (pthread_mutex_getprioceiling): Likewise.
8846         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
8847         Likewise.
8848         * nptl/pthread_mutexattr_getprotocol.c
8849         (pthread_mutexattr_getprotocol): Likewise.
8850         * nptl/pthread_mutexattr_getpshared.c
8851         (pthread_mutexattr_getpshared): Likewise.
8852         * nptl/pthread_mutexattr_getrobust.c
8853         (pthread_mutexattr_getrobust): Likewise.
8854         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
8855         Likewise.
8856         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
8857         Likewise.
8858         * nptl/pthread_mutexattr_setprioceiling.c
8859         (pthread_mutexattr_setprioceiling): Likewise.
8860         * nptl/pthread_mutexattr_setprotocol.c
8861         (pthread_mutexattr_setprotocol): Likewise.
8862         * nptl/pthread_mutexattr_setpshared.c
8863         (pthread_mutexattr_setpshared): Likewise.
8864         * nptl/pthread_mutexattr_setrobust.c
8865         (pthread_mutexattr_setrobust): Likewise.
8866         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
8867         Likewise.
8868         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
8869         Likewise.
8870         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
8871         Likewise.
8872         * nptl/pthread_rwlockattr_getkind_np.c
8873         (pthread_rwlockattr_getkind_np): Likewise.
8874         * nptl/pthread_rwlockattr_getpshared.c
8875         (pthread_rwlockattr_getpshared): Likewise.
8876         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
8877         Likewise.
8878         * nptl/pthread_rwlockattr_setkind_np.c
8879         (pthread_rwlockattr_setkind_np): Likewise.
8880         * nptl/pthread_rwlockattr_setpshared.c
8881         (pthread_rwlockattr_setpshared): Likewise.
8882         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
8883         Likewise.
8884         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
8885         Likewise.
8886         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
8887         Likewise.
8888         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
8889         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
8890         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
8891         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
8892         * nptl/sem_close.c (sem_close): Likewise.
8893         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
8894         * nptl/sem_init.c (__old_sem_init): Likewise.
8895         * nptl/sigaction.c (__sigaction): Likewise.
8896         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
8897         * posix/_exit.c (_exit): Likewise.
8898         * posix/alarm.c (alarm): Likewise.
8899         * posix/confstr.c (confstr): Likewise.
8900         * posix/fpathconf.c (__fpathconf): Likewise.
8901         * posix/getgroups.c (__getgroups): Likewise.
8902         * posix/getpgid.c (__getpgid): Likewise.
8903         * posix/group_member.c (__group_member): Likewise.
8904         * posix/pathconf.c (__pathconf): Likewise.
8905         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
8906         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
8907         * posix/setgid.c (__setgid): Likewise.
8908         * posix/setpgid.c (__setpgid): Likewise.
8909         * posix/setuid.c (__setuid): Likewise.
8910         * posix/sleep.c (__sleep): Likewise.
8911         * posix/sysconf.c (__sysconf): Likewise.
8912         * posix/times.c (__times): Likewise.
8913         * posix/uname.c (__uname): Likewise.
8914         * posix/waitid.c (__waitid): Likewise.
8915         * pwd/getpw.c (__getpw): Likewise.
8916         * resolv/base64.c (b64_pton): Likewise.
8917         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
8918         * resolv/gethnamaddr.c (Dprintf): Likewise.
8919         (gethostbyname): Likewise.
8920         (gethostbyname2): Likewise.
8921         (gethostbyaddr): Likewise.
8922         (_sethtent): Likewise.
8923         (_gethtbyname): Likewise.
8924         (_gethtbyname2): Likewise.
8925         (_gethtbyaddr): Likewise.
8926         (map_v4v6_address): Likewise.
8927         (map_v4v6_hostent): Likewise.
8928         (addrsort): Likewise.
8929         (ht_sethostent): Likewise.
8930         (ht_gethostbyname): Likewise.
8931         (ht_gethostbyaddr): Likewise.
8932         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
8933         (inet_net_ntop_ipv4): Likewise.
8934         * resolv/inet_neta.c (inet_neta): Likewise.
8935         * resolv/inet_ntop.c (inet_ntop): Likewise.
8936         (inet_ntop4): Likewise.
8937         (inet_ntop6): Likewise.
8938         * resolv/inet_pton.c (__inet_pton): Likewise.
8939         (inet_pton4): Likewise.
8940         (inet_pton6): Likewise.
8941         * resolv/res_debug.c (loc_aton): Likewise.
8942         (loc_ntoa): Likewise.
8943         * resource/getpriority.c (__getpriority): Likewise.
8944         * resource/getrusage.c (__getrusage): Likewise.
8945         * resource/nice.c (nice): Likewise.
8946         * resource/setpriority.c (__setpriority): Likewise.
8947         * resource/setrlimit64.c (setrlimit64): Likewise.
8948         * resource/vlimit.c (vlimit): Likewise.
8949         * resource/vtimes.c (vtimes): Likewise.
8950         * rt/aio_error.c (aio_error): Likewise.
8951         * rt/aio_return.c (aio_return): Likewise.
8952         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
8953         * signal/kill.c (__kill): Likewise.
8954         * signal/killpg.c (killpg): Likewise.
8955         * signal/raise.c (raise): Likewise.
8956         * signal/sigaction.c (__sigaction): Likewise.
8957         * signal/sigaddset.c (sigaddset): Likewise.
8958         * signal/sigaltstack.c (sigaltstack): Likewise.
8959         * signal/sigandset.c (sigandset): Likewise.
8960         * signal/sigblock.c (__sigblock): Likewise.
8961         * signal/sigdelset.c (sigdelset): Likewise.
8962         * signal/sigempty.c (sigemptyset): Likewise.
8963         * signal/sigfillset.c (sigfillset): Likewise.
8964         * signal/sighold.c (sighold): Likewise.
8965         * signal/sigignore.c (sigignore): Likewise.
8966         * signal/sigintr.c (siginterrupt): Likewise.
8967         * signal/sigisempty.c (sigisemptyset): Likewise.
8968         * signal/sigismem.c (sigismember): Likewise.
8969         * signal/signal.c (signal): Likewise.
8970         * signal/sigorset.c (sigorset): Likewise.
8971         * signal/sigpause.c (__sigpause): Likewise.
8972         * signal/sigpending.c (sigpending): Likewise.
8973         * signal/sigprocmask.c (__sigprocmask): Likewise.
8974         * signal/sigrelse.c (sigrelse): Likewise.
8975         * signal/sigreturn.c (__sigreturn): Likewise.
8976         * signal/sigset.c (sigset): Likewise.
8977         * signal/sigsetmask.c (__sigsetmask): Likewise.
8978         * signal/sigstack.c (sigstack): Likewise.
8979         * signal/sigsuspend.c (__sigsuspend): Likewise.
8980         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
8981         * signal/sysv_signal.c (__sysv_signal): Likewise.
8982         * socket/accept.c (accept): Likewise.
8983         * socket/accept4.c (__libc_accept4): Likewise.
8984         * socket/bind.c (__bind): Likewise.
8985         * socket/connect.c (__connect): Likewise.
8986         * socket/getpeername.c (getpeername): Likewise.
8987         * socket/getsockname.c (__getsockname): Likewise.
8988         * socket/getsockopt.c (getsockopt): Likewise.
8989         * socket/listen.c (__listen): Likewise.
8990         * socket/recv.c (__recv): Likewise.
8991         * socket/recvmsg.c (__recvmsg): Likewise.
8992         * socket/send.c (__send): Likewise.
8993         * socket/sendmsg.c (__sendmsg): Likewise.
8994         * socket/shutdown.c (shutdown): Likewise.
8995         * socket/sockatmark.c (sockatmark): Likewise.
8996         * socket/socket.c (__socket): Likewise.
8997         * stdio-common/ctermid.c (ctermid): Likewise.
8998         * stdio-common/cuserid.c (cuserid): Likewise.
8999         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9000         * stdio-common/remove.c (remove): Likewise.
9001         * stdio-common/rename.c (rename): Likewise.
9002         * stdio-common/renameat.c (renameat): Likewise.
9003         * stdio-common/tempname.c (__gen_tempname): Likewise.
9004         * stdio-common/xbug.c (InitBuffer): Likewise.
9005         (AppendToBuffer): Likewise.
9006         (ReadFile): Likewise.
9007         * stdlib/a64l.c (a64l): Likewise.
9008         * stdlib/drand48_r.c (drand48_r): Likewise.
9009         * stdlib/getcontext.c (getcontext): Likewise.
9010         * stdlib/getenv.c (getenv): Likewise.
9011         * stdlib/l64a.c (l64a): Likewise.
9012         * stdlib/llabs.c (llabs): Likewise.
9013         * stdlib/lldiv.c (lldiv): Likewise.
9014         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9015         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9016         * stdlib/putenv.c (putenv): Likewise.
9017         * stdlib/random.c (__srandom): Likewise.
9018         (__initstate): Likewise.
9019         (__setstate): Likewise.
9020         * stdlib/random_r.c (__srandom_r): Likewise.
9021         (__setstate_r): Likewise.
9022         (__random_r): Likewise.
9023         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9024         * stdlib/setcontext.c (setcontext): Likewise.
9025         * stdlib/setenv.c (setenv): Likewise.
9026         (unsetenv): Likewise.
9027         * stdlib/srand48.c (srand48): Likewise.
9028         * stdlib/srand48_r.c (__srand48_r): Likewise.
9029         * stdlib/swapcontext.c (swapcontext): Likewise.
9030         * stdlib/system.c (__libc_system): Likewise.
9031         * stdlib/tst-strtod.c (expand): Likewise.
9032         * stdlib/tst-strtol.c (expand): Likewise.
9033         * stdlib/tst-strtoll.c (expand): Likewise.
9034         * streams/fattach.c (fattach): Likewise.
9035         * streams/fdetach.c (fdetach): Likewise.
9036         * streams/getmsg.c (getmsg): Likewise.
9037         * streams/isastream.c (isastream): Likewise.
9038         * string/ffs.c (__ffs): Likewise.
9039         * string/ffsll.c (ffsll): Likewise.
9040         * string/memcmp.c (memcmp_common_alignment): Likewise.
9041         (memcmp_not_common_alignment): Likewise.
9042         (MEMCMP): Likewise.
9043         * string/memcpy.c (memcpy): Likewise.
9044         * string/memmove.c (MEMMOVE): Likewise.
9045         * string/memset.c (memset): Likewise.
9046         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9047         * string/strchrnul.c (STRCHRNUL): Likewise.
9048         * string/strerror.c (strerror): Likewise.
9049         * string/strndup.c (__strndup): Likewise.
9050         * string/strverscmp.c (__strverscmp): Likewise.
9051         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9052         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9053         (clnttcp_freeres): Likewise.
9054         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9055         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9056         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9057         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9058         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9059         (xdr_callhdr): Likewise.
9060         * sunrpc/rpcinfo.c (udpping): Likewise.
9061         (tcpping): Likewise.
9062         (pstatus): Likewise.
9063         (pmapdump): Likewise.
9064         (brdcst): Likewise.
9065         (deletereg): Likewise.
9066         (getprognum): Likewise.
9067         (getvers): Likewise.
9068         (get_inet_address): Likewise.
9069         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9070         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9071         (svcudp_stat): Likewise.
9072         (svcudp_recv): Likewise.
9073         (svcudp_reply): Likewise.
9074         (svcudp_getargs): Likewise.
9075         (svcudp_freeargs): Likewise.
9076         (svcudp_destroy): Likewise.
9077         * sunrpc/xdr.c (xdr_bytes): Likewise.
9078         (xdr_netobj): Likewise.
9079         (xdr_string): Likewise.
9080         (xdr_wrapstring): Likewise.
9081         * sunrpc/xdr_float.c (xdr_float): Likewise.
9082         (xdr_double): Likewise.
9083         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9084         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9085         * sysvipc/ftok.c (ftok): Likewise.
9086         * sysvipc/msgctl.c (msgctl): Likewise.
9087         * sysvipc/msgget.c (msgget): Likewise.
9088         * sysvipc/msgrcv.c (msgrcv): Likewise.
9089         * sysvipc/msgsnd.c (msgsnd): Likewise.
9090         * sysvipc/semget.c (semget): Likewise.
9091         * sysvipc/semop.c (semop): Likewise.
9092         * sysvipc/shmat.c (shmat): Likewise.
9093         * sysvipc/shmctl.c (shmctl): Likewise.
9094         * sysvipc/shmdt.c (shmdt): Likewise.
9095         * sysvipc/shmget.c (shmget): Likewise.
9096         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9097         * termios/speed.c (cfgetospeed): Likewise.
9098         (cfgetispeed): Likewise.
9099         (cfsetospeed): Likewise.
9100         (cfsetispeed): Likewise.
9101         * termios/tcflow.c (tcflow): Likewise.
9102         * termios/tcflush.c (tcflush): Likewise.
9103         * termios/tcgetattr.c (__tcgetattr): Likewise.
9104         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9105         * termios/tcgetsid.c (tcgetsid): Likewise.
9106         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9107         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9108         * time/adjtime.c (__adjtime): Likewise.
9109         * time/dysize.c (dysize): Likewise.
9110         * time/ftime.c (ftime): Likewise.
9111         * time/getitimer.c (__getitimer): Likewise.
9112         * time/gettimeofday.c (__gettimeofday): Likewise.
9113         * time/gmtime.c (__gmtime_r): Likewise.
9114         (gmtime): Likewise.
9115         * time/localtime.c (__localtime_r): Likewise.
9116         (localtime): Likewise.
9117         * time/offtime.c (__offtime): Likewise.
9118         * time/settimeofday.c (__settimeofday): Likewise.
9119         * time/stime.c (stime): Likewise.
9120         * time/strftime_l.c (tm_diff): Likewise.
9121         (iso_week_days): Likewise.
9122         * time/strptime.c (strptime): Likewise.
9123         * time/time.c (time): Likewise.
9124         * time/timespec_get.c (timespec_get): Likewise.
9125         * time/tzset.c (tzset_internal): Likewise.
9126         (compute_change): Likewise.
9127         (__tz_compute): Likewise.
9128         * wcsmbs/btowc.c (__btowc): Likewise.
9129         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9130         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9131         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9132         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9133         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9134         * wcsmbs/wcscat.c (__wcscat): Likewise.
9135         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9136         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9137         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9138         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9139         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9140         * wcsmbs/wcslen.c (__wcslen): Likewise.
9141         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9142         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9143         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9144         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9145         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9146         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9147         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9148         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9149         * wcsmbs/wcstok.c (wcstok): Likewise.
9150         * wcsmbs/wctob.c (wctob): Likewise.
9151         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9152         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9153         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9154         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9155         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9156         * wcsmbs/wmemset.c (__wmemset): Likewise.
9157         * wctype/wcfuncs.c (__towlower): Likewise.
9158         (__towupper): Likewise.
9159
9160         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9161         (lll_unlock_elision): Add adapt_count parameter.
9162
9163 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9164
9165         * sysdeps/nptl/configure.ac: Do not give errors based on the
9166         results of top-level configure tests.
9167         * sysdeps/nptl/configure: Regenerated.
9168
9169         * configure.ac (libc_cv_Bgroup): Remove configure test.
9170         * configure: Regenerated.
9171         * config.make.in (have-Bgroup): Remove variable.
9172
9173         * configure.ac (sizeof_long_double): Remove configure test.
9174         * configure: Regenerated.
9175         * config.make.in (sizeof-long-double): Remove variable.
9176
9177         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9178         * configure: Regenerated.
9179         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9180         variable.
9181         (exceptions): Likewise.
9182         * sysdeps/arm/configure: Regenerated.
9183         * config.make.in (exceptions): Remove variable.
9184         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9185         $(exceptions).
9186         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9187         (CFLAGS-vdprintf_chk.c): Likewise.
9188         (CFLAGS-printf_chk.c): Likewise.
9189         (CFLAGS-fprintf_chk.c): Likewise.
9190         (CFLAGS-vprintf_chk.c): Likewise.
9191         (CFLAGS-vfprintf_chk.c): Likewise.
9192         (CFLAGS-gets_chk.c): Likewise.
9193         (CFLAGS-fgets_chk.c): Likewise.
9194         (CFLAGS-fgets_u_chk.c): Likewise.
9195         (CFLAGS-fread_chk.c): Likewise.
9196         (CFLAGS-fread_u_chk.c): Likewise.
9197         (CFLAGS-wprintf_chk.c): Likewise.
9198         (CFLAGS-fwprintf_chk.c): Likewise.
9199         (CFLAGS-vwprintf_chk.c): Likewise.
9200         (CFLAGS-vfwprintf_chk.c): Likewise.
9201         (CFLAGS-fgetws_chk.c): Likewise.
9202         (CFLAGS-fgetws_u_chk.c): Likewise.
9203         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9204         (CFLAGS-fputc.c): Likewise.
9205         (CFLAGS-fputwc.c): Likewise.
9206         (CFLAGS-freopen64.c): Likewise.
9207         (CFLAGS-freopen.c): Likewise.
9208         (CFLAGS-fseek.c): Likewise.
9209         (CFLAGS-fseeko64.c): Likewise.
9210         (CFLAGS-fseeko.c): Likewise.
9211         (CFLAGS-ftello64.c): Likewise.
9212         (CFLAGS-ftello.c): Likewise.
9213         (CFLAGS-fwide.c): Likewise.
9214         (CFLAGS-genops.c): Likewise.
9215         (CFLAGS-getc.c): Likewise.
9216         (CFLAGS-getchar.c): Likewise.
9217         (CFLAGS-getwc.c): Likewise.
9218         (CFLAGS-getwchar.c): Likewise.
9219         (CFLAGS-iofclose.c): Likewise.
9220         (CFLAGS-iofflush.c): Likewise.
9221         (CFLAGS-iofgetpos64.c): Likewise.
9222         (CFLAGS-iofgetpos.c): Likewise.
9223         (CFLAGS-iofgets.c): Likewise.
9224         (CFLAGS-iofgetws.c): Likewise.
9225         (CFLAGS-iofputs.c): Likewise.
9226         (CFLAGS-iofputws.c): Likewise.
9227         (CFLAGS-iofread.c): Likewise.
9228         (CFLAGS-iofsetpos64.c): Likewise.
9229         (CFLAGS-iofsetpos.c): Likewise.
9230         (CFLAGS-ioftell.c): Likewise.
9231         (CFLAGS-iofwrite.c): Likewise.
9232         (CFLAGS-iogetdelim.c): Likewise.
9233         (CFLAGS-iogetline.c): Likewise.
9234         (CFLAGS-iogets.c): Likewise.
9235         (CFLAGS-iogetwline.c): Likewise.
9236         (CFLAGS-ioputs.c): Likewise.
9237         (CFLAGS-ioseekoff.c): Likewise.
9238         (CFLAGS-ioseekpos.c): Likewise.
9239         (CFLAGS-iosetbuffer.c): Likewise.
9240         (CFLAGS-iosetvbuf.c): Likewise.
9241         (CFLAGS-ioungetc.c): Likewise.
9242         (CFLAGS-ioungetwc.c): Likewise.
9243         (CFLAGS-oldfileops.c): Likewise.
9244         (CFLAGS-oldiofclose.c): Likewise.
9245         (CFLAGS-oldiofgetpos64.c): Likewise.
9246         (CFLAGS-oldiofgetpos.c): Likewise.
9247         (CFLAGS-oldiofsetpos64.c): Likewise.
9248         (CFLAGS-oldiofsetpos.c): Likewise.
9249         (CFLAGS-peekc.c): Likewise.
9250         (CFLAGS-putc.c): Likewise.
9251         (CFLAGS-putchar.c): Likewise.
9252         (CFLAGS-putwc.c): Likewise.
9253         (CFLAGS-putwchar.c): Likewise.
9254         (CFLAGS-rewind.c): Likewise.
9255         (CFLAGS-wfileops.c): Likewise.
9256         (CFLAGS-wgenops.c): Likewise.
9257         (CFLAGS-oldiofopen.c): Likewise.
9258         (CFLAGS-iofopen.c): Likewise.
9259         (CFLAGS-iofopen64.c): Likewise.
9260         (CFLAGS-oldtmpfile.c): Likewise.
9261         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9262         (CFLAGS-fprintf.c): Likewise.
9263         (CFLAGS-printf.c): Likewise.
9264         (CFLAGS-vfwprintf.c): Likewise.
9265         (CFLAGS-vfscanf.c): Likewise.
9266         (CFLAGS-vfwscanf.c): Likewise.
9267         (CFLAGS-fscanf.c): Likewise.
9268         (CFLAGS-scanf.c): Likewise.
9269         (CFLAGS-isoc99_vfscanf.c): Likewise.
9270         (CFLAGS-isoc99_vscanf.c): Likewise.
9271         (CFLAGS-isoc99_fscanf.c): Likewise.
9272         (CFLAGS-isoc99_scanf.c): Likewise.
9273         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9274         (CFLAGS-isoc99_fwscanf.c): Likewise.
9275         (CFLAGS-isoc99_vwscanf.c): Likewise.
9276         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9277
9278         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9279         after mkstemp64.
9280         * login/tst-utmp.c (do_prepare): Likewise.
9281         * rt/tst-aio.c (do_prepare): Likewise.
9282         * rt/tst-aio64.c (do_prepare): Likewise.
9283
9284 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9285
9286         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9287         (__lll_lock_elision): Remove adapt_count decrement...
9288         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9289         (__lll_trylock_elision): Likewise.
9290         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9291         (__lll_unlock_elision): ... to here. And utilize
9292         new adapt_count parameter.
9293         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9294         (__lll_unlock_elision): Update to include adapt_count
9295         parameter.
9296         (lll_unlock_elision): Pass pointer to adapt_count
9297         variable.
9298
9299 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9300
9301         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9302         Add elision adapt_count parameter to list of arguments.
9303         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9304         (lll_unlock_elision): Update with new parameter list
9305         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9306         (lll_unlock_elision): Likewise.
9307         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9308         (lll_unlock_elision): Likewise.
9309
9310 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9311
9312         [BZ #19122]
9313         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9314         attribute_hidden.
9315
9316         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9317         attribute_hidden.
9318         [IS_IN (rtld)] (__strdup): Likewise.
9319         [IS_IN (rtld)] (__strerror_r): Likewise.
9320         [IS_IN (rtld)] (__strsep_g): Likewise.
9321         [IS_IN (rtld)] (memchr): Likewise.
9322         [IS_IN (rtld)] (memcmp): Likewise.
9323         [IS_IN (rtld)] (memcpy): Likewise.
9324         [IS_IN (rtld)] (memmove): Likewise.
9325         [IS_IN (rtld)] (memset): Likewise.
9326         [IS_IN (rtld)] (rawmemchr): Likewise.
9327         [IS_IN (rtld)] (stpcpy): Likewise.
9328         [IS_IN (rtld)] (strchr): Likewise.
9329         [IS_IN (rtld)] (strcmp): Likewise.
9330         [IS_IN (rtld)] (strlen): Likewise.
9331         [IS_IN (rtld)] (strnlen): Likewise.
9332         [IS_IN (rtld)] (strsep): Likewise.
9333
9334         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9335         attribute_hidden.
9336         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9337
9338         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9339         attribute_hidden.
9340         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9341
9342         * include/setjmp.h (__longjmp): Add attribute_hidden.
9343         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9344
9345         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9346         Add attribute_hidden.
9347
9348         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9349         [IS_IN (rtld)] (__open): Likewise.
9350         [IS_IN (rtld)] (__fcntl): Likewise.
9351
9352         * include/dirent.h (__opendirat): Add attribute_hidden.
9353         (__getdents): Likewise.
9354         (__getdents64): Likewise.
9355         (__alloc_dir): Likewise.
9356         [IS_IN (rtld)] (__closedir): Likewise.
9357         [IS_IN (rtld)] (__fdopendir): Likewise.
9358         [IS_IN (rtld)] (__readdir): Likewise.
9359         [IS_IN (rtld)] (__readdir64): Likewise.
9360         [IS_IN (rtld)] (__rewinddir): Likewise.
9361
9362         * include/dlfcn.h (_dl_catch_error): Moved to ...
9363         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9364         attribute_hidden.
9365
9366         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9367         (_itoa_word): Likewise.
9368
9369         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9370         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9371         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9372         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9373         (_dl_higher_prime_number): Likewise.
9374         (_dl_debug_printf_c): Likewise.
9375         (_dl_signal_cerror): Likewise.
9376         (_dl_receive_error): Likewise.
9377         (_dl_reloc_bad_type): Likewise.
9378         (_dl_resolve_conflicts): Likewise.
9379         (_dl_check_all_versions): Likewise.
9380         (_dl_check_map_versions): Likewise.
9381         (_dl_sort_fini): Likewise.
9382         (_dl_debug_initialize): Likewise.
9383         (_dl_init_paths): Likewise.
9384         (_dl_show_auxv): Likewise.
9385         (_dl_next_ld_env_entry): Likewise.
9386         (_dl_important_hwcaps): Likewise.
9387         (_dl_load_cache_lookup): Likewise.
9388         (_dl_update_slotinfo): Likewise.
9389         (_dl_show_scope): Likewise.
9390
9391         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9392         attribute_hidden.
9393         (_wordcopy_fwd_dest_aligned): Likewise.
9394         (_wordcopy_bwd_aligned): Likewise.
9395         (_wordcopy_bwd_dest_aligned): Likewise.
9396
9397         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9398         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9399         Likewise.
9400         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9401         Likewise.
9402         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9403
9404 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9405
9406         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9407         GCC 5 requirement.
9408
9409 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9410
9411         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9412         test.
9413         * sysdeps/i386/configure: Regenerated.
9414         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9415         code unconditional.
9416
9417         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9418         test.
9419         (libc_cv_asm_popsection_directive): Likewise.
9420         * configure: Regenerated.
9421         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9422         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9423         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9424         (__make_section_unallocated): Make definition unconditional.
9425         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9426         Remove conditional definition.
9427         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9428         (__make_section_unallocated): Likewise.
9429
9430         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9431         * configure: Regenerated.
9432         * config.make.in (static-libgcc): Remove variable.
9433         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9434         $(static-libgcc).
9435         (build-module-helper): Likewise.
9436
9437         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9438         * configure: Regenerated.
9439
9440 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9441
9442         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9443         (struct char_buffer): New type.
9444         (char_buffer_start, char_buffer_size, char_buffer_error)
9445         (char_buffer_rewind, char_buffer_add): New functions.
9446         (ADDW): Remove macro, replaced by the char_buffer_add function.
9447         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9448         of extend_alloca.  Make control flow more explicit.
9449
9450 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9451
9452         [BZ #19137]
9453         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9454         Add -fomit-frame-pointer.
9455         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9456
9457 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9458
9459         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9460         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9461         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9462         only if !__GNUC_PREREQ (5,0).
9463         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9464         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9465         (INTERNAL_SYSCALL_NCS): Likewise.
9466         (LOADREGS_0): New macro for GCC 5.
9467         (ASMARGS_0): Likewise.
9468         (LOADREGS_1): Likewise.
9469         (ASMARGS_1): Likewise.
9470         (LOADREGS_2): Likewise.
9471         (ASMARGS_2): Likewise.
9472         (LOADREGS_3): Likewise.
9473         (ASMARGS_3): Likewise.
9474         (LOADREGS_4): Likewise.
9475         (ASMARGS_4): Likewise.
9476         (LOADREGS_5): Likewise.
9477         (ASMARGS_5): Likewise.
9478         (LOADREGS_6): Likewise.
9479         (ASMARGS_6): Likewise.
9480
9481 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9482
9483         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9484         -fomit-frame-pointer.
9485         (CFLAGS-mmap64.c): Likewise.
9486         (CFLAGS-semtimedop.c): Likewise.
9487         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9488         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9489         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9490         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9491
9492 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9493
9494         [BZ #18928]
9495         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9496         _dl_pointer_guard member.
9497         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9498         initializer.
9499         (security_init): Always set up pointer guard.
9500         (process_envvars): Do not process LD_POINTER_GUARD.
9501
9502 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9503
9504         [BZ #19134]
9505         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9506         (.LC2): Likewise.
9507         (.LC3): Likewise.
9508         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9509
9510 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9511
9512         [BZ #19129]
9513         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9514         r0 and r1.
9515
9516 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9517
9518         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9519
9520 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9521
9522         * include/stap-probe.h: Fix macro definition formatting.
9523
9524 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9525
9526         [BZ #19074]
9527         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9528         load and store num_ifs.
9529
9530 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9531
9532         [BZ #18822]
9533         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9534         (__sched_getaffinity_new): Add libc_hidden_proto and
9535         libc_hidden_def.
9536
9537 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9538
9539         [BZ #19007]
9540         * scripts/localplt.awk: Also allow GOT references.
9541         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9542         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9543         with "+ REL R_386_GLOB_DAT".
9544         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9545         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9546
9547 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9548
9549         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9550         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9551         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
9552         Likewise.
9553         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9554         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
9555         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
9556         INTERNAL_SYSCALLINTERNAL_SYSCALL and
9557         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9558         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
9559         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9560         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
9561         Likewise.
9562         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9563
9564 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9565
9566         [BZ #19125]
9567         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
9568         <math_private.h> and <stdint.h>.
9569         (__llround): Avoid conversions to and from long long int, and
9570         subtractions, where those might raise spurious exceptions.
9571         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9572         <math_private.h> and <stdint.h>.
9573         (__llroundf): Avoid conversions to and from long long int, and
9574         subtractions, where those might raise spurious exceptions.
9575
9576 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9577
9578         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
9579         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9580         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
9581         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
9582         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9583         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9584         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
9585         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
9586         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
9587         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9588         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9589         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9590         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
9591         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9592         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9593         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
9594         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
9595         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9596         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
9597         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
9598         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9599         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
9600         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
9601         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9602         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
9603         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
9604         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
9605         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9606         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9607         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
9608         (__xstat64_conv): Likewise.
9609         (__xstat32_conv): Likewise.
9610
9611 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9612
9613         * sysdeps/unix/sysv/linux/sysdep.h: New file.
9614         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
9615         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
9616         <sysdeps/unix/sysv/linux/sysdep.h>.
9617         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9618         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
9619         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9620         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9621         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9622         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
9623         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
9624         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9625         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9628         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9629         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9630         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9631         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9632         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9633         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
9634         (sysdep-dl-routines): Add sysdep.
9635         [$(subdir) == nptl] (libpthread-routines): Likewise.
9636         [$(subdir) == rt] (librt-routines): Likewise.
9637         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
9638         PIC when branching to SYSCALL_ERROR_LABEL.
9639         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
9640         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
9641         <sysdeps/unix/sysv/linux/sysdep.h>.
9642         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
9643         (SYSCALL_ERROR_ERRNO): Removed.
9644         (SYSCALL_ERROR_HANDLER): Changed to empty.
9645         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
9646         (__syscall_error): New prototype.
9647         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
9648         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
9649
9650 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9651
9652         [BZ #19124]
9653         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
9654         (_dl_runtime_resolve_avx512): Make it a hidden alias of
9655         _dl_runtime_resolve_avx.
9656         (_dl_runtime_profile_avx512): Make it a hidden alias of
9657         _dl_runtime_profile_avx.
9658
9659 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9660
9661         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
9662         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
9663         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
9664         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
9665
9666         [BZ #16422]
9667         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
9668         New configure test.
9669         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
9670         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
9671         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
9672         <math_private.h> and <stdint.h>.
9673         (__llrint): Avoid conversions to long long int where those might
9674         raise spurious exceptions.
9675         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
9676         <math_private.h> and <stdint.h>.
9677         (__llrintf): Avoid conversions to long long int where those might
9678         raise spurious exceptions.
9679
9680 2015-10-12  Andreas Schwab  <schwab@suse.de>
9681
9682         [BZ #18969]
9683         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
9684         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
9685         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
9686         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
9687         $(gen-locales).
9688         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
9689         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
9690         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
9691         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
9692         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
9693         $(gen-locales).
9694         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
9695         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
9696         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
9697         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
9698         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
9699         ($(objpfx)tst-ftell-active-handler.out)
9700         ($(objpfx)tst-ftell-append.out)
9701         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
9702         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
9703         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
9704         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
9705         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
9706         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
9707         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
9708         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
9709         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
9710         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
9711         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
9712         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
9713         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
9714         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
9715         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
9716         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
9717         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
9718         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
9719         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
9720         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
9721         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
9722         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
9723         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
9724         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
9725         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
9726         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
9727         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
9728         $(gen-locales).
9729         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
9730         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
9731         $(gen-locales).
9732         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
9733         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
9734         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
9735         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
9736         $(gen-locales).
9737         * libio/tst_wprintf2.c (main): Use explicit locale.
9738         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
9739
9740 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9741
9742         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
9743         __msg_sig_post.
9744         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
9745
9746 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9747
9748         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
9749         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
9750
9751         * sysdeps/arm/libm-test-ulps: Regenerated.
9752
9753         [BZ #15470]
9754         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
9755
9756         [BZ #16399]
9757         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
9758         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
9759         and <fix-fp-int-convert-overflow.h>.
9760         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9761         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9762         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
9763         and <fix-fp-int-convert-overflow.h>.
9764         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
9765         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9766         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
9767         <fix-fp-int-convert-overflow.h>.
9768         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9769         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9770         * sysdeps/ieee754/dbl-64/s_lround.c: Include
9771         <fix-fp-int-convert-overflow.h>.
9772         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
9773         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9774         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
9775         and <fix-fp-int-convert-overflow.h>.
9776         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9777         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9778         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
9779         <limits.h> and <fix-fp-int-convert-overflow.h>.
9780         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9781         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9782         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
9783         and <fix-fp-int-convert-overflow.h>.
9784         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9785         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9786         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
9787         and <fix-fp-int-convert-overflow.h>.
9788         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9789         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9790         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
9791
9792 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
9793
9794         [BZ #18589]
9795         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
9796         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
9797         $(gen-locales).
9798
9799 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9800             Phil Blundell <pb@pbcl.net>
9801
9802         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
9803         * nptl/tst-cancel26.c: New file.
9804         * nptl/tst-cancel27.c: Likewise.
9805
9806 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
9807
9808         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
9809         __ILP32__ isn't defined.
9810         (lrint): Likewise.
9811         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
9812         (lrintf): Likewise.
9813         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
9814         (lrintl): Likewise.
9815         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
9816         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
9817         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
9818
9819 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9820
9821         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
9822         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
9823
9824         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
9825         file.
9826         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
9827         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
9828
9829 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9830
9831         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
9832         configure test.
9833         * sysdeps/i386/configure: Regenerated.
9834         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
9835         configure test.
9836         * sysdeps/x86_64/configure: Regenerated.
9837         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
9838         Make code unconditional.
9839
9840         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
9841         test.
9842         * sysdeps/i386/configure: Regenerated.
9843         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
9844         test.
9845         * sysdeps/x86_64/configure: Regenerated.
9846         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
9847         Make code unconditional.
9848         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
9849         Likewise.
9850         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
9851         Likewise.
9852         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9853         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
9854         code unconditional.
9855         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9856         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
9857         code unconditional.
9858         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9859         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
9860         code unconditional.
9861         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
9862         code unconditional.
9863         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9864         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
9865         code unconditional.
9866         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9867         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
9868         code unconditional.
9869         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9870         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
9871         code unconditional.
9872         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9873         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
9874         code unconditional.
9875         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9876         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
9877
9878         [BZ #19095]
9879         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
9880         mantissa to long int before shifting left.
9881
9882 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
9883
9884         [BZ #19094]
9885         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
9886         <limits.h>.
9887         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9888         when result overflows but exception would not result from cast.
9889         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
9890         <limits.h>.
9891         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9892         when result overflows but exception would not result from cast.
9893         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
9894         <limits.h>.
9895         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9896         when result overflows but exception would not result from cast.
9897         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
9898         <limits.h>.
9899         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9900         when result overflows but exception would not result from cast.
9901         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
9902         <limits.h>.
9903         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9904         when result overflows but exception would not result from cast.
9905         * math/libm-test.inc (lrint_test_data): Add more tests.
9906         (llrint_test_data): Likewise.
9907
9908 2015-10-08  Roland McGrath  <roland@hack.frob.com>
9909
9910         [BZ #18872]
9911         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
9912         Move out from under [$(run-built-tests) = yes] conditional.
9913         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
9914         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
9915
9916 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
9917
9918         [BZ #18589]
9919         * string/Makefile (tests): Add bug-strcoll2.
9920         (LOCALES): Add cs_CZ.UTF-8.
9921         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
9922
9923         [BZ #18589]
9924         * string/bug-strcoll2.c: New file.
9925         * locale/categories.def: Revert commit
9926         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
9927         * locale/langinfo.h: Likewise.
9928         * locale/localeinfo.h: Likewise.
9929         * locale/C-collate.c: Likewise.
9930         * locale/programs/ld-collate.c (collate_output): Likewise.
9931         * string/strcoll_l.c (STRDIFF): Likewise.
9932         (STRCOLL): Likewise.
9933         * wcsmbs/wcscoll_l.c: Likewise.
9934
9935 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
9936
9937         * math/libm-test.inc (lround_test_data): Do not expect the absence
9938         of "inexact" for some tests with non-integer arguments.
9939         (llround_test_data): Likewise.
9940
9941         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
9942         test.
9943         (libc_cv_cc_sse2avx): Likewise.
9944         * sysdeps/i386/configure: Regenerated.
9945         * sysdeps/i386/i686/multiarch/Makefile
9946         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
9947         [$(subdir) = math].
9948         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
9949         code unconditional.
9950         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
9951         Likewise.
9952         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
9953         Likewise.
9954         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
9955         Likewise.
9956         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
9957         test.
9958         (libc_cv_cc_sse2avx): Likewise.
9959         * sysdeps/x86_64/configure: Regenerated.
9960         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
9961         unconditional.
9962         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
9963         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
9964         unconditional.
9965         (_dl_runtime_profile)
9966         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
9967         conditional code.
9968         * sysdeps/x86_64/fpu/multiarch/Makefile
9969         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
9970         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
9971         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
9972         * sysdeps/x86_64/fpu/multiarch/e_exp.c
9973         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
9974         * sysdeps/x86_64/fpu/multiarch/e_log.c
9975         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
9976         * sysdeps/x86_64/fpu/multiarch/s_atan.c
9977         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
9978         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
9979         Likewise.
9980         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
9981         Likewise.
9982         * sysdeps/x86_64/fpu/multiarch/s_sin.c
9983         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
9984         * sysdeps/x86_64/fpu/multiarch/s_tan.c
9985         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
9986         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
9987         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
9988         (HAVE_SSE2AVX_SUPPORT): Likewise.
9989
9990 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
9991
9992         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
9993         instead of #pragma optimize.
9994
9995 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
9996
9997         [BZ #17195]
9998         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
9999         as is similarly done in systrim and _int_free already.
10000
10001 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10002
10003         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10004
10005 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10006
10007         [BZ #19088]
10008         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10009         <limits.h>.
10010         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10011         overflows but exception would not result from cast.
10012         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10013         and <limits.h>.
10014         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10015         overflows but exception would not result from cast.
10016         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10017         <limits.h>.
10018         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10019         overflows but exception would not result from cast.
10020         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10021         <limits.h>.
10022         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10023         overflows but exception would not result from cast.
10024         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10025         <limits.h>.
10026         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10027         overflows but exception would not result from cast.
10028         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10029         <limits.h>.
10030         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10031         overflows but exception would not result from cast.
10032         * math/libm-test.inc (lround_test_data): Add more tests.
10033         (llround_test_data): Likewise.
10034
10035 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10036
10037         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10038         (CFLAGS-ialloc.c): Ditto.
10039         (CFLAGS-scheck.c): Ditto.
10040
10041 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10042
10043         [BZ #19086]
10044         * manual/filesys.texi (Storage Allocation): Fix argument order for
10045         posix_fallocate64.
10046
10047 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10048
10049         [BZ #19085]
10050         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10051         exponent below 48 inside case for non-overflowing exponent.
10052         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10053
10054 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10055
10056         * iconvdata/cp737.h (from_idx): Add const.
10057         * iconvdata/cp775.h (from_idx): Likewise.
10058
10059 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10060
10061         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10062         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10063         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10064
10065         [BZ #19079]
10066         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10067         file, conditioned on [!_LP64].
10068         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10069         [!_LP64] (__lround): Do not define as function or alias.
10070         [!_LP64] (lround): Likewise.
10071         [!_LP64] (__lroundl): Likewise.
10072         [!_LP64] (lroundl): Likewise.
10073         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10074         macro.
10075         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10076         Likewise.
10077
10078 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10079
10080         * math/libm-test.inc (lrint_test_data): Add more tests.
10081         (llrint_test_data): Likewise.
10082         (lround_test_data): Likewise.
10083         (llround_test_data): Likewise.
10084
10085         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10086         (llrint_test_data): Add tests used for lrint.
10087
10088         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10089         test.
10090         * sysdeps/i386/configure: Regenerated.
10091         * sysdeps/i386/i686/multiarch/Makefile
10092         [$(config-cflags-sse4) = yes]: Make code unconditional.
10093         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10094         Likewise.
10095         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10096         Likewise.
10097         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10098         test.
10099         * sysdeps/x86_64/configure: Regenerated.
10100         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10101         Make code unconditional.
10102         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10103         Likewise.
10104         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10105         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10106
10107         * scripts/rpm2dynsym.sh: Remove file.
10108
10109 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10110
10111         * configure.ac (libc_cv_cxx_thread_local): Define.
10112         * configure: Regenerate.
10113         * config.make.in (have-cxx-thread_local): Define.
10114         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10115         (LDLIBS-tst-thread_local1): Define.
10116         (tests): Add tst-thread_local1.
10117         [have-cxx-thread_local != yes] (tests-unsupported): Add
10118         tst-thread_local1.
10119         * nptl/tst-thread_local1.cc: New file.
10120
10121 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10122
10123         [BZ #19078]
10124         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10125         (u_thres): Likewise.
10126         (__expl): Determine whether to call __kernel_standard_l based on
10127         value of result, not argument.
10128
10129         * math/libm-test.inc (scalb_test_data): Add more expectations for
10130         the "inexact" exception.
10131
10132         [BZ #19077]
10133         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10134         0.0L for argument 1.0L.
10135
10136         [BZ #19076]
10137         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10138         constant 0.0L when computing infinite result.
10139
10140 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10141
10142         [BZ #10432]
10143         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10144         malloc_usable_size.
10145
10146 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10147
10148         [BZ #19018]
10149         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10150         Mangle function pointer before storing it.
10151         (__call_tls_dtors): Demangle function pointer before calling it.
10152
10153 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10154
10155         [BZ #19012]
10156         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10157         Clean up on failure.
10158
10159 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10160
10161         [BZ #19071]
10162         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10163         long int variable to store possibly incremented high part of
10164         mantissa.
10165         * math/libm-test.inc (lround_test_data): Add tests used for
10166         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10167         for tests requiring 64-bit long.  Do not condition tests on
10168         [TEST_FLOAT] unnecessarily.
10169         (llround_test_data): Add tests used for lround.  Add another
10170         expectation for the "inexact" exception.  Do not condition tests
10171         on [TEST_FLOAT] unnecessarily.
10172
10173         [BZ #887]
10174         [BZ #19049]
10175         [BZ #19050]
10176         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10177         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10178         <fix-int-fp-convert-zero.h>.
10179         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10180         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10181         <fix-int-fp-convert-zero.h>.
10182         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10183         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10184         <fix-int-fp-convert-zero.h>.
10185         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10186         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10187         <fix-int-fp-convert-zero.h>.
10188         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10189         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10190         <fix-int-fp-convert-zero.h>.
10191         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10192         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10193         <fix-int-fp-convert-zero.h>.
10194         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10195         * sysdeps/ieee754/flt-32/s_erff.c: Include
10196         <fix-int-fp-convert-zero.h>.
10197         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10198         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10199         <fix-int-fp-convert-zero.h>.
10200         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10201         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10202         <fix-int-fp-convert-zero.h>.
10203         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10204         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10205         <fix-int-fp-convert-zero.h>.
10206         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10207         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10208         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10209         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10210         file.
10211         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10212
10213 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10214
10215         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10216
10217 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10218
10219         [BZ #19059]
10220         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10221         overflowing computation.
10222         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10223         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10224         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10225         Likewise.
10226         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10227         Likewise.
10228         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10229         Likewise.
10230         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10231         Likewise.
10232         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10233         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10234         Likewise.
10235         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10236         Likewise.
10237         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10238
10239         * nss/rewrite_field.c (__nss_rewrite_field): Use
10240         internal_function.
10241         * nss/valid_field.c (__nss_valid_field): Likewise.
10242         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10243
10244 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10245
10246         [BZ #18724]
10247         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10248         (__nss_invalid_field_characters, __nss_valid_field)
10249         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10250         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10251         tst-field.c: New file.
10252         * nss/Makefile (routines): Add valid_field, rewrite_field.
10253         (tests-static): Define unconditionally.
10254         (tests): Include tests-static.
10255         [build-static-nss] (tests-static): Use append.
10256         [build-static-nss] (tests): Remove modification.
10257         * nss/getent.c (print_group): Call putgrent.  Report error.
10258         (print_gshadow): Call putsgent.  Report error.
10259         (print_passwd): Call putpwent.  Report error.
10260         (print_shadow): Call putspent.  Report error.
10261         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10262         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10263         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10264         name, password, directory, shell fields for valid syntax.  Rewrite
10265         GECOS field to match syntax.
10266         * pwd/Makefile (tests): Add tst-putpwent.
10267         * pwd/tst-putpwent.c: New file.
10268         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10269         Check grName, grpasswd, gr_mem fields for valid syntax.
10270         Change loop variable i to size_t.
10271         * grp/Makefile (tests): Add tst-putgrent.
10272         * grp/tst-putgrent.c: New file.
10273         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10274         valid syntax.
10275         * shadow/Makefile (tests): Add tst-putspent.
10276         * shadow/tst-putspent.c: New file.
10277         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10278         sg_mem fields for valid syntax.
10279         * gshadow/Makefile (tests): Add tst-putsgent.
10280         * gshadow/tst-putsgent.c: New file.
10281
10282 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10283
10284         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10285         assembly instructions.
10286
10287 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10288
10289         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10290         prefix from operands.
10291
10292 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10293
10294         [BZ #16347]
10295         [BZ #19046]
10296         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10297         <libc-internal.h>.
10298         (MAXLGM): Do not use diagnostic control macros.
10299         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10300         threshold for ldbl-128ibm.
10301         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10302         instead of multiplying by log then subtracting.
10303         * math/auto-libm-test-in: Add more tests of lgamma.
10304         * math/auto-libm-test-out: Regenerated.
10305
10306         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10307         (TYPE_HEX_DIG): Likewise.
10308         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10309         precisions when printing floating-point numbers.
10310         (check_float_internal): Likewise.
10311
10312 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10313
10314         [BZ #16620]
10315         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10316         of log (10) rounded downward to 48 bits.
10317         (log10_low): Use corresponding low part of log (10).
10318
10319         [BZ #19032]
10320         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10321         compute result as (x - x) / (x - x) not as 0 / 0.
10322         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10323         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10324
10325         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10326         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10327         and expm1.
10328         * math/auto-libm-test-out: Regenerated.
10329         * math/libm-test.inc (acos_test_data): Add more tests.
10330         (asin_test_data): Likewise.
10331         (asinh_test_data): Likewise.
10332         (atan_test_data): Likewise.
10333         (atanh_test_data): Likewise.
10334         (atan2_test_data): Likewise.
10335         (cbrt_test_data): Likewise.
10336         (ceil_test_data): Likewise.
10337         (copysign_test_data): Likewise.
10338         (cos_test_data): Likewise.
10339         (cosh_test_data): Likewise.
10340         (erf_test_data): Likewise.
10341         (erfc_test_data): Likewise.
10342         (exp_test_data): Likewise.
10343         (exp10_test_data): Likewise.
10344         (exp2_test_data): Likewise.
10345         (expm1_test_data): Likewise.
10346         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10347
10348 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10349
10350         [BZ #19006]
10351         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10352         to ...
10353         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10354         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10355         to ...
10356         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10357         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10358         to ...
10359         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10360         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10361         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10362         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10363         to ...
10364         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10365         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10366         Moved to ...
10367         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10368         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10369         Moved to ...
10370         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10371         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10372         to ...
10373         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10374         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10375         Moved to ...
10376         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10377         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10378         to ...
10379         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10380         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10381         Removed.
10382         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10383         Likewise.
10384         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10385         Likewise.
10386         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10387         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10388         Likewise.
10389         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10390         Likewise.
10391         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10392         Likewise.
10393         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10394         Likewise.
10395         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10396         Likewise.
10397         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10398         Likewise.
10399         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10400         Likewise.
10401         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10402         Likewise.
10403         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10404         Likewise.
10405         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10406         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10407         Likewise.
10408         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10409         Likewise.
10410         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10411         Likewise.
10412         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10413         Likewise.
10414         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10415         Likewise.
10416         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10417         Replace ../i486/pthread_cond_timedwait.S with
10418         ../pthread_cond_timedwait.S.
10419
10420 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10421
10422         * math/libm-test.inc (acos_test_data): Refine expectations for
10423         errno and "inexact" exceptions.
10424         (acosh_test_data): Likewise.
10425         (asin_test_data): Likewise.
10426         (asinh_test_data): Likewise.
10427         (atan_test_data): Likewise.
10428         (atanh_test_data): Likewise.
10429         (atan2_test_data): Likewise.
10430         (cbrt_test_data): Likewise.
10431         (ceil_test_data): Likewise.
10432         (copysign_test_data): Likewise.
10433         (cosh_test_data): Likewise.
10434         (erf_test_data): Likewise.
10435         (erfc_test_data): Likewise.
10436         (exp_test_data): Likewise.
10437         (exp10_test_data): Likewise.
10438         (exp2_test_data): Likewise.
10439         (expm1_test_data): Likewise.
10440         (fabs_test_data): Likewise.
10441         (floor_test_data): Likewise.
10442         (fma_test_data): Likewise.
10443         (fmax_test_data): Likewise.
10444         (fmin_test_data): Likewise.
10445         (fmod_test_data): Likewise.
10446         (fpclassify_test_data): Likewise.
10447         (frexp_test_data): Likewise.
10448         (hypot_test_data): Likewise.
10449         (ilogb_test_data): Likewise.
10450         (isgreater_test_data): Likewise.
10451         (isgreaterequal_test_data): Likewise.
10452         (isinf_test_data): Likewise.
10453         (isless_test_data): Likewise.
10454         (islessequal_test_data): Likewise.
10455         (islessgreater_test_data): Likewise.
10456         (isnan_test_data): Likewise.
10457         (isnormal_test_data): Likewise.
10458         (issignaling_test_data): Likewise.
10459         (isunordered_test_data): Likewise.
10460         (j0_test_data): Likewise.
10461         (j1_test_data): Likewise.
10462         (jn_test_data): Likewise.
10463         (lgamma_test_data): Likewise.
10464         (lrint_test_data): Likewise.
10465         (llrint_test_data): Likewise.
10466         (log_test_data): Likewise.
10467         (log10_test_data): Likewise.
10468         (log1p_test_data): Likewise.
10469         (log2_test_data): Likewise.
10470         (logb_test_data): Likewise.
10471         (lround_test_data): Likewise.
10472         (llround_test_data): Likewise.
10473         (modf_test_data): Likewise.
10474         (nearbyint_test_data): Likewise.
10475         (nextafter_test_data): Likewise.
10476         (nexttoward_test_data): Likewise.
10477         (pow_test_data): Likewise.
10478         (remainder_test_data): Likewise.
10479         (remquo_test_data): Likewise.
10480         (rint_test_data): Likewise.
10481         (round_test_data): Likewise.
10482         (signbit_test_data): Likewise.
10483         (sinh_test_data): Likewise.
10484         (sqrt_test_data): Likewise.
10485         (tanh_test_data): Likewise.
10486         (tgamma_test_data): Likewise.
10487         (trunc_test_data): Likewise.
10488         (y0_test_data): Likewise.
10489         (y1_test_data): Likewise.
10490         (yn_test_data): Likewise.
10491         (significand_test_data): Likewise.
10492
10493 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10494
10495         * manual/filesys.texi (Storage Allocation): Document that
10496         posix_fallocate emulation fails when fd is open with O_WRONLY.
10497
10498 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10499
10500         [BZ #19016]
10501         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10502         allow more cases with X^2 + Y^2 >= 0.5.
10503         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10504         normal element in sum instead of special-casing based on values of
10505         arguments.
10506         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10507         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10508         -1 as normal element in sum instead of special-casing based on
10509         values of arguments.
10510         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10511         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10512         (__x2y2m1): Update comment.
10513         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10514         as normal element in sum instead of special-casing based on values
10515         of arguments.
10516         * math/s_clog.c (__clog): Handle more cases using log1p without
10517         hypot.
10518         * math/s_clog10.c (__clog10): Likewise.
10519         * math/s_clog10f.c (__clog10f): Likewise.
10520         * math/s_clog10l.c (__clog10l): Likewise.
10521         * math/s_clogf.c (__clogf): Likewise.
10522         * math/s_clogl.c (__clogl): Likewise.
10523         * math/auto-libm-test-in: Add more tests of clog and clog10.
10524         * math/auto-libm-test-out: Regenerated.
10525         * sysdeps/i386/fpu/libm-test-ulps: Update.
10526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10527
10528 2015-09-28  Martin Sebor  <msebor@redhat.com>
10529
10530         [BZ #18969]
10531         * string/Makefile (LOCALES): Define.
10532         (gen-locales.mk): Include.
10533         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10534         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10535         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10536         on setlocale failure.
10537
10538 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10539
10540         [BZ #18985]
10541         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10542         (__strftime_internal): Likewise.
10543         * time/tst-strftime.c (do_bz18985): New test.
10544         (do_test): Call it.
10545
10546 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10547
10548         [BZ #18956]
10549         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10550         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10551         extracting high part.
10552         * math/auto-libm-test-in: Add another test of pow.
10553         * math/auto-libm-test-out: Regenerated.
10554         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10555
10556 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10557
10558         [BZ #18825]
10559         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
10560         New macro.
10561         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
10562         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10563         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
10564         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
10565         DBL_NARROW_EVAL, reloading the PIC register as needed.
10566         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
10567         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
10568         FLT_NARROW_EVAL.  Use separate return path for case when first
10569         argument is NaN.
10570         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
10571         DEFINE_LDBL_MIN.
10572         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
10573         PIC register.
10574         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
10575         math_check_force_underflow_nonneg.
10576         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
10577         underflow for subnormal result.
10578         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10579         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
10580         math_check_force_underflow_nonneg.
10581         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
10582         math_check_force_underflow.
10583         * sysdeps/x86_64/fpu/x86_64-math-asm.h
10584         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
10585         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
10586         DEFINE_LDBL_MIN.
10587         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
10588         * math/auto-libm-test-in: Add more tests of pow.
10589         * math/auto-libm-test-out: Regenerated.
10590
10591 2015-09-25  Florian Weimer  <fweimer@redhat.com>
10592
10593         * nss/bug17079.c (init_test_items): Add diagnostic for
10594         inconsistent entries.
10595         (test_buffer_size): Skip inconsistent entries.
10596
10597 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10598
10599         [BZ #13304]
10600         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
10601         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
10602         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
10603
10604         [BZ #13304]
10605         * sysdeps/microblaze/s_fma.c: New file.
10606         * sysdeps/microblaze/s_fmaf.c: Likewise.
10607         * sysdeps/microblaze/sfp-machine.h: Likewise.
10608
10609 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
10610
10611         [BZ #17250]
10612         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
10613         member.
10614
10615 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10616
10617         [BZ #18803]
10618         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
10619         (MO): New macro.
10620         (__ieee754_hypot) [PIC]: Load PIC register.
10621         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
10622         DBL_NARROW_EVAL.
10623         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
10624         math_check_force_underflow_nonneg in case where result might be
10625         tiny.
10626         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10627         Likewise.
10628         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
10629         Likewise.
10630         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10631         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10632         * math/auto-libm-test-in: Add more tests of hypot.
10633         * math/auto-libm-test-out: Regenerated.
10634
10635 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
10636
10637         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
10638
10639 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10640
10641         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
10642         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
10643         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10644         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10645         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
10646         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10647         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10648
10649         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
10650         LOAD_PIC_REG.
10651
10652         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
10653         (FLT_CHECK_FORCE_UFLOW): Likewise.
10654         (DBL_CHECK_FORCE_UFLOW): Likewise.
10655         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
10656         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
10657         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
10658         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10659         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10660         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10661         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10662         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10663         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
10664         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10665         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
10666         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
10667         (flt_min): Replace with use of DEFINE_FLT_MIN.
10668         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
10669         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
10670         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10671         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
10672         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
10673         (flt_min): Replace with use of DEFINE_FLT_MIN.
10674         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
10675         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
10676         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10677         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
10678         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
10679         (flt_min): Replace with use of DEFINE_FLT_MIN.
10680         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
10681         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
10682         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10683         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10684         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
10685         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10686         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10687         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
10688         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10689         (__atan): Use DBL_CHECK_FORCE_UFLOW.
10690         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
10691         (flt_min): Replace with use of DEFINE_FLT_MIN.
10692         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
10693         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
10694         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10695         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
10696         main computation.
10697         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
10698         (flt_min): Replace with use of DEFINE_FLT_MIN.
10699         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
10700         main computation.
10701         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
10702         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10703         (MO): New macro.
10704         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
10705         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
10706         (flt_min): Replace with use of DEFINE_FLT_MIN.
10707         (MO): New macro.
10708         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
10709         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
10710         (__log1pl): Use MO.
10711
10712         [BZ #19003]
10713         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
10714         $(config-cflags-nofma).
10715
10716 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10717
10718         * sysdeps/aarch64/libm-test-ulps: Regenerated.
10719
10720 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
10721
10722         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
10723         (TWO127): Likewise.
10724
10725         * sysdeps/generic/math_private.h (fabs_tg): New macro.
10726         (min_of_type): Likewise.
10727         (math_check_force_underflow): Likewise.
10728         (math_check_force_underflow_nonneg): Likewise.
10729         (math_check_force_underflow_complex): Likewise.
10730         * math/e_exp2l.c (__ieee754_exp2l): Use
10731         math_check_force_underflow_nonneg.
10732         * math/k_casinh.c (__kernel_casinh): Likewise.
10733         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10734         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10735         * math/s_catan.c (__catan): Use
10736         math_check_force_underflow_complex.
10737         * math/s_catanf.c (__catanf): Likewise.
10738         * math/s_catanh.c (__catanh): Likewise.
10739         * math/s_catanhf.c (__catanhf): Likewise.
10740         * math/s_catanhl.c (__catanhl): Likewise.
10741         * math/s_catanl.c (__catanl): Likewise.
10742         * math/s_ccosh.c (__ccosh): Likewise.
10743         * math/s_ccoshf.c (__ccoshf): Likewise.
10744         * math/s_ccoshl.c (__ccoshl): Likewise.
10745         * math/s_cexp.c (__cexp): Likewise.
10746         * math/s_cexpf.c (__cexpf): Likewise.
10747         * math/s_cexpl.c (__cexpl): Likewise.
10748         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
10749         * math/s_clog10.c (__clog10): Likewise.
10750         * math/s_clog10f.c (__clog10f): Likewise.
10751         * math/s_clog10l.c (__clog10l): Likewise.
10752         * math/s_clogf.c (__clogf): Likewise.
10753         * math/s_clogl.c (__clogl): Likewise.
10754         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
10755         * math/s_csinf.c (__csinf): Likewise.
10756         * math/s_csinh.c (__csinh): Likewise.
10757         * math/s_csinhf.c (__csinhf): Likewise.
10758         * math/s_csinhl.c (__csinhl): Likewise.
10759         * math/s_csinl.c (__csinl): Likewise.
10760         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
10761         * math/s_csqrtf.c (__csqrtf): Likewise.
10762         * math/s_csqrtl.c (__csqrtl): Likewise.
10763         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
10764         * math/s_ctanf.c (__ctanf): Likewise.
10765         * math/s_ctanh.c (__ctanh): Likewise.
10766         * math/s_ctanhf.c (__ctanhf): Likewise.
10767         * math/s_ctanhl.c (__ctanhl): Likewise.
10768         * math/s_ctanl.c (__ctanl): Likewise.
10769         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
10770         instead of volatile.
10771         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
10772         math_check_force_underflow.
10773         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
10774         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
10775         volatile when forcing underflow.
10776         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10777         math_check_force_underflow_nonneg.
10778         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10779         Likewise.
10780         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
10781         math_check_force_underflow.
10782         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10783         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10784         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10785         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
10786         math_check_force_underflow_nonneg.
10787         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
10788         math_check_force_underflow.
10789         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10790         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
10791         instead of volatile.
10792         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
10793         math_check_force_underflow.
10794         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10795         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10796         math_check_force_underflow_nonneg.
10797         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
10798         math_check_force_underflow.
10799         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10800         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
10801         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
10802         math_check_force_underflow_nonneg.
10803         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10804         Likewise.
10805         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
10806         math_check_force_underflow.
10807         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
10808         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
10809         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10810         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
10811         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10812         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
10813         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10814         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10815         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
10816         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
10817         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
10818         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10819         Likewise.
10820         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
10821         math_check_force_underflow_nonneg.
10822         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10823         Likewise.
10824         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
10825         math_check_force_underflow.
10826         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10827         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10828         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10829         Likewise.
10830         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10831         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
10832         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
10833         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
10834         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
10835         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
10836         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
10837         instead of volatile.
10838         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
10839         math_check_force_underflow.
10840         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10841         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
10842         math_check_force_underflow.
10843         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
10844         Likewise.
10845         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10846         Use math_check_force_underflow_nonneg.
10847         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
10848         math_check_force_underflow.
10849         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
10850         Likewise.
10851         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10852         Likewise.
10853         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10854         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
10855         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
10856         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
10857         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
10858         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
10859         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10860         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10861         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
10862         math_check_force_underflow_nonneg.
10863         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
10864         math_check_force_underflow.
10865         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10866         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10867         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
10868         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
10869         math_check_force_underflow_nonneg.
10870         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
10871         math_check_force_underflow.
10872         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10873         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
10874         instead of volatile.
10875         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
10876         math_check_force_underflow.
10877
10878         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
10879         * stdlib/strtod_l.c: Include <math_private.h>.
10880         (overflow_value): Use math_narrow_eval.
10881         (underflow_value): Likewise.
10882         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10883         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10884         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
10885         (__ieee754_gamma_r): Likewise.
10886         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
10887         Likewise.
10888         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
10889         Likewise.
10890         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
10891         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
10892         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10893         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10894         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10895         (__ieee754_gammaf_r): Likewise.
10896         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10897         Likewise.
10898         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
10899         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
10900         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10901         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10902         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
10903         volatile.
10904         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10905         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
10906         math_narrow_eval.
10907         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10908         Likewise.
10909         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10910         Likewise.
10911         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
10912         Likewise.
10913         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
10914         volatile.
10915         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10916         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
10917         math_narrow_eval.
10918         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10919         Likewise.
10920         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10921         Likewise.
10922
10923 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
10924
10925         * nptl/Versions: Remove ignored symbols.
10926
10927 2015-09-22  Florian Weimer  <fweimer@redhat.com>
10928
10929         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
10930         * nss/Makefile (tests): Update.
10931
10932 2015-09-22  Florian Weimer  <fweimer@redhat.com>
10933
10934         * nss/bug18287.c: New file.
10935         * nss/Makefile (tests): Add bug18287.
10936
10937 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10938
10939         * mach/Versions (__mach_host_self_): Add symbol.
10940
10941 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10942
10943         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
10944         vm_page_size.
10945
10946 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10947
10948         Really fix sysdeps/i386/fpu/s_scalbn.S build
10949
10950         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
10951         (libc: GLIBC_2_22): Remove unused version set.
10952
10953 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
10954
10955         * config.make.in (enable-timezone-tools): New variable.
10956         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
10957         (enable_timezone_tools): Export to generated files.
10958         * configure: Regenerate.
10959         * INSTALL: Regenerate.
10960         * manual/install.texi (--disable-timezone-tools): Document new flag.
10961         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
10962         ifeq ($(enable-timezone-tools),yes) check.
10963
10964 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
10965
10966         * timezone/Makefile: Revert previous change.
10967
10968         [BZ #18980]
10969         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
10970         (DEFINE_DBL_MIN): Likewise.
10971         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
10972         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
10973         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
10974         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
10975         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
10976         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10977         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
10978         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
10979         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
10980         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10981         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
10982         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
10983         (flt_min): Replace with use of DEFINE_FLT_MIN.
10984         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
10985         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
10986         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10987         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
10988         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
10989         (flt_min): Replace with use of DEFINE_FLT_MIN.
10990         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
10991         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
10992         (flt_min): Replace with use of DEFINE_FLT_MIN.
10993         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
10994         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
10995         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
10996         (__ieee754_hypot): Use DBL_NARROW_EVAL.
10997         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
10998         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
10999         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11000         (__ieee754_pow): Use DBL_NARROW_EVAL.
11001         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11002         (__ieee754_powf): Use FLT_NARROW_EVAL.
11003         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11004         (__ieee754_expf_sse2): Convert double-precision result to single
11005         precision.
11006         * sysdeps/i386/fpu/libm-test-ulps: Update.
11007
11008 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11009
11010         * timezone/Makefile: Ignore unused variable errors due to private.h
11011         (time_t_min) and (time_t_max).
11012         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11013         Likewise.
11014
11015 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11016
11017         [BZ #18981]
11018         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11019         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11020         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11021         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11022         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11023         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11024         (__scalbn): Use DBL_NARROW_EVAL.
11025         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11026         (__scalbnf): Use FLT_NARROW_EVAL.
11027
11028 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11029
11030         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11031         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11032         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11033         * stdio-common/printf_fp.c (___printf_fp):
11034         Use signbit to get the sign. Use isinf macro to allow inlining.
11035         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11036         * stdio-common/printf_size.c (__printf_size): Likewise.
11037
11038 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11039
11040         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11041
11042 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11043
11044         [BZ #18980]
11045         * sysdeps/generic/math_private.h: Include <float.h>.
11046         (math_narrow_eval): New macro.
11047         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11048         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11049         math_narrow_eval on overflowing return value.
11050         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11051         Likewise.
11052         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11053         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11054         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11055         Likewise.
11056         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11057
11058 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11059
11060         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11061         * math/Makefile: Remove isinf_ns.c.
11062         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11063         * math/multc3.c (__multc3): Likewise.
11064         * math/s_casin.c (__casin): Likewise.
11065         * math/s_casinf.c (__casinf): Likewise.
11066         * math/s_casinl.c (__casinl): Likewise.
11067         * math/s_cproj.c (__cproj): Likewise.
11068         * math/s_cprojf.c (__cprojf): Likewise.
11069         * math/s_cprojl.c (__cprofl): Likewise.
11070         * math/s_ctan.c (__ctan): Likewise.
11071         * math/s_ctanf.c (__ctanf): Likewise.
11072         * math/s_ctanh.c (__ctanh): Likewise.
11073         * math/s_ctanhf.c (__ctanhf): Likewise.
11074         * math/s_ctanhl.c (__ctanhl): Likewise.
11075         * math/s_ctanl.c (__ctanl): Likewise.
11076         * math/w_fmod.c (__fmod): Likewise.
11077         * math/w_fmodf.c (__fmodf): Likewise.
11078         * math/w_fmodl.c (_fmodl): Likewise.
11079         * math/w_remainder.c (__remainder): Likewise.
11080         * math/w_remainderf.c (__remainderf): Likewise.
11081         * math/w_remainderl.c (__remainderl): Likewise.
11082         * math/w_scalb.c (__scalb): Likewise.
11083         * math/w_scalbf.c (__scalbf): Likewise.
11084         * math/w_scalbl.c (__scalbl): Likewise.
11085         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11086         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11087         with isinf.
11088         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11089         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11090         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11091         __isinf_nsf with isinf.
11092         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11093         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11094         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11095         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11096         with isinf.
11097         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11098         __isinf_nsl with isinf.
11099         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11100         with isinf.
11101         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11102         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11103         __isinf_nsl with isinf.
11104         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11105         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11106         with isinf.
11107
11108 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11109
11110         * resolv/base64.c (rcsid): Remove unused static.
11111         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11112         static.  (tqpi1): Likewise.
11113         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11114         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11115         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11116         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11117         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11118         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11119         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11120         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11121         Likewise.
11122
11123 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11124
11125         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11126         <nptl/pthreadP.h>.
11127         (_longjmp_unwind): Use __libc_ptf_call.
11128         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11129
11130 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11131
11132         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11133         * sysdeps/arm/__longjmp.S: Likewise.
11134
11135 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11136
11137         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11138         Use __builtin_signbit.
11139         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11140         Use __builtin_signbitf.
11141         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11142         Use __builtin_signbitl.
11143         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11144         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11145
11146 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11147
11148         [BZ #15367]
11149         [BZ #17441]
11150
11151         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11152         * math/math.h (fpclassify): Use __builtin_fpclassify when
11153         available.  (signbit): Use __builtin_signbit(f/l).
11154         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11155         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11156         (isinf): Use __builtin_isinf_sign.
11157
11158 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11159
11160         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11161         * benchtests/bench-math-inlines.c: New benchmark.
11162         * benchtests/bench-util.h: New file.
11163         * benchtests/bench-util.c: New file.
11164         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11165
11166 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11167
11168         * elf/tst-dlmopen1.c: Define TEST_SO.
11169         (do_test): Use TEST_SO.
11170
11171         * elf/dl-load.c: Include libc-internal.h.
11172         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11173
11174 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11175
11176         [BZ #17887]
11177         * time/strptime_l.c (__strptime_internal): Make %z accept
11178         [+-]HH:MM time zones.
11179
11180 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11181
11182         [BZ #17886]
11183         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11184         valid time zone.
11185
11186 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11187
11188         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11189         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11190         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11191         (__ASSUME_FDATASYNC): Delete.
11192
11193 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11194
11195         * conform/linknamespace.pl: Require weak undefined symbols to be
11196         in the standard namespace.
11197         (%strong_syms): Rename to %seen_syms.
11198         (%strong_seen): Rename to %seen_where.
11199
11200 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11201
11202         [BZ #18970]
11203         * misc/error.c (error): Replace pthread_setcancelstate with
11204         __pthread_setcancelstate.
11205         (error_at_line): Likewise.
11206         * posix/wordexp.c (parse_comm): Likewise.
11207         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11208         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11209         (__pthread_setcancelstate): This.
11210         (pthread_setcancelstate): Add an alias.
11211         * nptl/nptl-init.c (pthread_functions): Replace
11212         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11213         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11214         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11215         hidden_proto.
11216         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11217         it with hidden_def.
11218         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11219         (pthread_setcancelstate): Renamed to ...
11220         (__pthread_setcancelstate): This.
11221         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11222         __libc_ptf_call with __pthread_setcancelstate.
11223
11224 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11225             Andreas Schwab  <schwab@suse.de>
11226
11227         [BZ #17118]
11228         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11229         result when imaginary part of argument is infinite using sine and
11230         cosine.
11231         * math/s_ctanf.c (__ctanf): Likewise.
11232         * math/s_ctanl.c (__ctanl): Likewise.
11233         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11234         of result when real part of argument is infinite using sine and
11235         cosine.
11236         * math/s_ctanhf.c (__ctanhf): Likewise.
11237         * math/s_ctanhl.c (__ctanhl): Likewise.
11238         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11239         (ctanh_test_data): Add more tests of ctanh.
11240
11241 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11242
11243         [BZ #15384]
11244         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11245         bit-mask as in subtraction.
11246         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11247         Likewise.
11248         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11249         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11250         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11251
11252         [BZ #18951]
11253         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11254         underflow exception for small results.
11255         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11256         Likewise.
11257         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11258         Likewise.
11259         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11260         Likewise.
11261         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11262         Likewise.
11263         * math/auto-libm-test-in: Add more tests of tgamma.
11264         * math/auto-libm-test-out: Regenerated.
11265
11266 2015-09-17  Andreas Schwab  <schwab@suse.de>
11267
11268         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11269
11270 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11271
11272         [BZ #18977]
11273         * math/bits/mathcalls.h
11274         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11275         not declare.
11276         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11277         Likewise.
11278         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11279         Likewise.
11280         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11281         Likewise.
11282         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11283         Likewise.
11284         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11285         Likewise.
11286         * conform/data/math.h-data
11287         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11288         function.
11289         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11290         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11291         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11292         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11293         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11294         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11295         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11296         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11297         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11298         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11299         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11300
11301         [BZ #6803]
11302         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11303         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11304         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11305         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11306         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11307         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11308         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11309         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11310         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11311         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11312         Likewise.
11313         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11314         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11315         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11316         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11317         long_double_symbol calls.
11318         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11319         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11320         strong alias of __ldexpl.
11321         (scalbnl): Define using long_double_symbol.
11322         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11323         Remove alias.
11324         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11325         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11326         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11327         (scalbln_test_data): Add more errno expectations.
11328
11329 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11330
11331         Cache the host port like we cache the task port.  This way we do not
11332         need to call the kernel just to get the port.  Furthermore, we no
11333         longer increase the reference count on every invocation of
11334         `mach_host_self'.
11335
11336         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11337         Protect declarations against the macro expansion.
11338         * mach/mach_init.c (__mach_host_self_): New variable.
11339         (mach_init): Initialize `__mach_host_self_'.
11340         * mach/mach_init.h (__mach_host_self_): New declaration.
11341         (__mach_host_self, mach_host_self): New macros.
11342         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11343         Release reference.
11344
11345 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11346
11347         [BZ #4404]
11348         * po/de.po: Update from Translation Project.
11349
11350         [BZ #16415]
11351         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11352         (__expm1l): Remove code to handle positive infinity and overflow.
11353         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11354         variable.
11355         (__expm1l): Remove code to handle positive infinity and overflow.
11356
11357 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11358             Paul Pluzhnikov  <ppluzhnikov@google.com>
11359
11360         [BZ #18872]
11361         * stdio-common/Makefile (tst-printf-bz18872): New test.
11362         (tst-printf-bz18872-mem.out): Likewise.
11363         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11364         * stdio-common/vfprintf.c: Fix memory leaks.
11365
11366 2015-09-16  Andreas Schwab  <schwab@suse.de>
11367
11368         [BZ #17244]
11369         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11370         Remove extra va_start/va_end calls.
11371
11372         [BZ #17243]
11373         * posix/execl.c (execl): Add missing va_end.
11374         * posix/execle.c (execle): Likewise.
11375         * posix/execlp.c (execlp): Likewise.
11376
11377 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11378
11379         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11380         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11381
11382 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11383
11384         [BZ #18967]
11385         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11386         undefine around includes of <bits/mathcalls.h>.
11387         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11388         not declare function.
11389         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11390         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11391         (scalb): Likewise.
11392         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11393         not define macro.
11394         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11395         variable.
11396         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11397         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11398         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11399
11400         [BZ #18857]
11401         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11402         return non-finite argument without doing ordered comparisons on
11403         it.
11404
11405         [BZ #16296]
11406         * math/fenv.h (fegetround): Use __attribute_pure__.
11407         * include/fenv.h (__fegetround): Likewise.
11408
11409         [BZ #18595]
11410         * math/s_ctan.c (__ctan): Force underflow exception for results
11411         whose real or imaginary part has small absolute value.
11412         * math/s_ctanf.c (__ctanf): Likewise.
11413         * math/s_ctanh.c (__ctanh): Likewise.
11414         * math/s_ctanhf.c (__ctanhf): Likewise.
11415         * math/s_ctanhl.c (__ctanhl): Likewise.
11416         * math/s_ctanl.c (__ctanl): Likewise.
11417         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11418         and ctanh.  Add more tests of ctan and ctanh.
11419
11420         [BZ #15918]
11421         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11422         handling of cases where one argument is an infinity.
11423
11424         [BZ #18875]
11425         [BZ #18966]
11426         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11427         (MO): New macro.
11428         (__ieee754_exp10): For small results, force underflow exception
11429         and remove excess range and precision from return value.
11430         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11431         (MO): New macro.
11432         (__ieee754_exp10f): For small results, force underflow exception
11433         and remove excess range and precision from return value.
11434         * math/auto-libm-test-in: Add more tests of exp10.
11435         * math/auto-libm-test-out: Regenerated.
11436
11437 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11438
11439         [BZ #18875]
11440         [BZ #18961]
11441         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11442         (MO): New macro.
11443         (__ieee754_exp): For small results, force underflow exception and
11444         remove excess range and precision from return value.
11445         (__exp_finite): Likewise.
11446         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11447         (MO): New macro.
11448         (__ieee754_expf): For small results, force underflow exception and
11449         remove excess range and precision from return value.
11450         (__expf_finite): Likewise.
11451         * math/auto-libm-test-in: Add more tests of exp.
11452         * math/auto-libm-test-out: Regenerated.
11453
11454         [BZ #16521]
11455         [BZ #18875]
11456         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11457         small results.
11458         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11459         (MO): New macro.
11460         (__ieee754_exp2): For small results, force underflow exception and
11461         remove excess range and precision from return value.
11462         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11463         (MO): New macro.
11464         (__ieee754_exp2f): For small results, force underflow exception
11465         and remove excess range and precision from return value.
11466         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11467         (MO): New macro.
11468         (__ieee754_exp2l): Force underflow exception for small results.
11469         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11470         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11471         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11472         (MO): New macro.
11473         (__ieee754_exp2l): Force underflow exception for small results.
11474         * math/auto-libm-test-in: Add more tests or exp2.
11475         * math/auto-libm-test-out: Regenerated.
11476
11477 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11478
11479         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11480
11481         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11482         /dev/null.
11483
11484 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11485
11486         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11487         io fs process)): Drop spurious backslash.
11488
11489 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11490
11491         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11492         Use sysinfo system call instead of parsing /proc/meminfo.
11493         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11494         Likewise.
11495
11496 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11497
11498         [BZ #16985]
11499         * programs/localedef.c (main): Display argv[remaining] when
11500         output_path is NULL.
11501
11502 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11503
11504         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11505         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11506         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11507         tanh.
11508         * math/auto-libm-test-out: Regenerated.
11509         * sysdeps/i386/fpu/libm-test-ulps: Update.
11510         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11511         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11513
11514 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11515
11516         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11517         Use 'override' keyword to freeze the value here, preventing
11518         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11519
11520 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11521
11522         [BZ #14912]
11523         * sysdeps/aarch64/bits/atomic.h: Move to ...
11524         * sysdeps/aarch64/atomic-machine.h: ...here.
11525         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11526         _AARCH64_ATOMIC_MACHINE_H.
11527         * sysdeps/alpha/bits/atomic.h: Move to ...
11528         * sysdeps/alpha/atomic-machine.h: ...here.
11529         * sysdeps/arm/bits/atomic.h: Move to ...
11530         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11531         * bits/atomic.h: Move to ...
11532         * sysdeps/generic/atomic-machine.h: ...here.
11533         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11534         * sysdeps/i386/bits/atomic.h: Move to ...
11535         * sysdeps/i386/atomic-machine.h: ...here.
11536         * sysdeps/ia64/bits/atomic.h: Move to ...
11537         * sysdeps/ia64/atomic-machine.h: ...here.
11538         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11539         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11540         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11541         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11542         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11543         * sysdeps/microblaze/bits/atomic.h: Move to ...
11544         * sysdeps/microblaze/atomic-machine.h: ...here.
11545         * sysdeps/mips/bits/atomic.h: Move to ...
11546         * sysdeps/mips/atomic-machine.h: ...here.
11547         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11548         * sysdeps/powerpc/bits/atomic.h: Move to ...
11549         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11550         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11551         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
11552         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
11553         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
11554         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
11555         <atomic-machine.h> instead of <bits/atomic.h>.
11556         * sysdeps/s390/bits/atomic.h: Move to ...
11557         * sysdeps/s390/atomic-machine.h: ...here.
11558         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
11559         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
11560         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11561         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
11562         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
11563         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
11564         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
11565         * sysdeps/tile/bits/atomic.h: Move to ...
11566         * sysdeps/tile/atomic-machine.h: ...here.
11567         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
11568         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
11569         <sysdeps/tile/atomic-machine.h> instead of
11570         <sysdeps/tile/bits/atomic.h>.
11571         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11572         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
11573         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
11574         <sysdeps/tile/atomic-machine.h> instead of
11575         <sysdeps/tile/bits/atomic.h>.
11576         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11577         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
11578         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
11579         <sysdeps/arm/atomic-machine.h> instead of
11580         <sysdeps/arm/bits/atomic.h>.
11581         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
11582         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
11583         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11584         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
11585         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
11586         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11587         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
11588         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
11589         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
11590         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
11591         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
11592         * sysdeps/x86_64/bits/atomic.h: Move to ...
11593         * sysdeps/x86_64/atomic-machine.h: ...here.
11594         * include/atomic.h: Include <atomic-machine.h> instead of
11595         <bits/atomic.h>.
11596
11597         * sysdeps/mips/mips32/libm-test-ulps: Update.
11598         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11599
11600         [BZ #18952]
11601         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
11602         not convert non-integer negative arguments to int to determine the
11603         value of signgam.
11604         * math/auto-libm-test-in: Add more tests of lgamma.
11605         * math/auto-libm-test-out: Regenerated.
11606
11607         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
11608         cosh, csqrt, erfc, expm1 and lgamma.
11609         * math/auto-libm-test-out: Regenerated.
11610         * sysdeps/i386/fpu/libm-test-ulps: Update.
11611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11612
11613 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
11614
11615         [BZ #2542]
11616         [BZ #2543]
11617         [BZ #2558]
11618         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
11619         __lgamma_neg for arguments from -28.0 to -2.0.
11620         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
11621         __lgamma_negf for arguments from -15.0 to -2.0.
11622         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11623         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
11624         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
11625         Call __lgamma_negl for arguments from -33.0 to -2.0.
11626         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
11627         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
11628         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11629         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
11630         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11631         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11632         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
11633         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
11634         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
11635         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
11636         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
11637         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
11638         (__lgamma_neg): Likewise.
11639         (__lgamma_negl): Likewise.
11640         (__lgamma_product): Likewise.
11641         (__lgamma_productl): Likewise.
11642         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
11643         * math/auto-libm-test-in: Add more tests of lgamma.
11644         * math/auto-libm-test-out: Regenerated.
11645         * sysdeps/i386/fpu/libm-test-ulps: Update.
11646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11647
11648 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
11649
11650         [BZ #18675]
11651         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
11652
11653 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11654
11655         [BZ #14912]
11656         * bits/libc-lock.h: Move to ...
11657         * sysdeps/generic/libc-lock.h: ...here.
11658         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11659         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
11660         * sysdeps/mach/hurd/libc-lock.h: ...here.
11661         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11662         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
11663         * sysdeps/mach/bits/libc-lock.h: Move to ...
11664         * sysdeps/mach/libc-lock.h: ...here.
11665         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11666         * sysdeps/nptl/bits/libc-lock.h: Move to ...
11667         * sysdeps/nptl/libc-lock.h: ...here.
11668         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11669         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
11670         * sysdeps/nptl/libc-lockP.h: ...here.
11671         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
11672         * crypt/crypt_util.c: Include <libc-lock.h> instead of
11673         <bits/libc-lock.h>.
11674         * dirent/scandir-tail.c: Likewise.
11675         * dlfcn/dlerror.c: Likewise.
11676         * elf/dl-close.c: Likewise.
11677         * elf/dl-iteratephdr.c: Likewise.
11678         * elf/dl-lookup.c: Likewise.
11679         * elf/dl-open.c: Likewise.
11680         * elf/dl-support.c: Likewise.
11681         * elf/dl-writev.h: Likewise.
11682         * elf/rtld.c: Likewise.
11683         * grp/fgetgrent.c: Likewise.
11684         * gshadow/fgetsgent.c: Likewise.
11685         * gshadow/sgetsgent.c: Likewise.
11686         * iconv/gconv_conf.c: Likewise.
11687         * iconv/gconv_db.c: Likewise.
11688         * iconv/gconv_dl.c: Likewise.
11689         * iconv/gconv_int.h: Likewise.
11690         * iconv/gconv_trans.c: Likewise.
11691         * include/link.h: Likewise.
11692         * inet/getnameinfo.c: Likewise.
11693         * inet/getnetgrent.c: Likewise.
11694         * inet/getnetgrent_r.c: Likewise.
11695         * intl/bindtextdom.c: Likewise.
11696         * intl/dcigettext.c: Likewise.
11697         * intl/finddomain.c: Likewise.
11698         * intl/gettextP.h: Likewise.
11699         * intl/loadmsgcat.c: Likewise.
11700         * intl/localealias.c: Likewise.
11701         * intl/textdomain.c: Likewise.
11702         * libidn/idn-stub.c: Likewise.
11703         * libio/libioP.h: Likewise.
11704         * locale/duplocale.c: Likewise.
11705         * locale/freelocale.c: Likewise.
11706         * locale/newlocale.c: Likewise.
11707         * locale/setlocale.c: Likewise.
11708         * login/getutent_r.c: Likewise.
11709         * login/getutid_r.c: Likewise.
11710         * login/getutline_r.c: Likewise.
11711         * login/utmp-private.h: Likewise.
11712         * login/utmpname.c: Likewise.
11713         * malloc/mtrace.c: Likewise.
11714         * misc/efgcvt.c: Likewise.
11715         * misc/error.c: Likewise.
11716         * misc/fstab.c: Likewise.
11717         * misc/getpass.c: Likewise.
11718         * misc/mntent.c: Likewise.
11719         * misc/syslog.c: Likewise.
11720         * nis/nis_call.c: Likewise.
11721         * nis/nis_callback.c: Likewise.
11722         * nis/nss-default.c: Likewise.
11723         * nis/nss_compat/compat-grp.c: Likewise.
11724         * nis/nss_compat/compat-initgroups.c: Likewise.
11725         * nis/nss_compat/compat-pwd.c: Likewise.
11726         * nis/nss_compat/compat-spwd.c: Likewise.
11727         * nis/nss_nis/nis-alias.c: Likewise.
11728         * nis/nss_nis/nis-ethers.c: Likewise.
11729         * nis/nss_nis/nis-grp.c: Likewise.
11730         * nis/nss_nis/nis-hosts.c: Likewise.
11731         * nis/nss_nis/nis-network.c: Likewise.
11732         * nis/nss_nis/nis-proto.c: Likewise.
11733         * nis/nss_nis/nis-pwd.c: Likewise.
11734         * nis/nss_nis/nis-rpc.c: Likewise.
11735         * nis/nss_nis/nis-service.c: Likewise.
11736         * nis/nss_nis/nis-spwd.c: Likewise.
11737         * nis/nss_nisplus/nisplus-alias.c: Likewise.
11738         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
11739         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11740         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
11741         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
11742         * nis/nss_nisplus/nisplus-network.c: Likewise.
11743         * nis/nss_nisplus/nisplus-proto.c: Likewise.
11744         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11745         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
11746         * nis/nss_nisplus/nisplus-service.c: Likewise.
11747         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
11748         * nis/ypclnt.c: Likewise.
11749         * nptl/libc_pthread_init.c: Likewise.
11750         * nss/getXXbyYY.c: Likewise.
11751         * nss/getXXent.c: Likewise.
11752         * nss/getXXent_r.c: Likewise.
11753         * nss/nss_db/db-XXX.c: Likewise.
11754         * nss/nss_db/db-netgrp.c: Likewise.
11755         * nss/nss_db/nss_db.h: Likewise.
11756         * nss/nss_files/files-XXX.c: Likewise.
11757         * nss/nss_files/files-alias.c: Likewise.
11758         * nss/nsswitch.c: Likewise.
11759         * posix/regex_internal.h: Likewise.
11760         * posix/wordexp.c: Likewise.
11761         * pwd/fgetpwent.c: Likewise.
11762         * resolv/res_hconf.c: Likewise.
11763         * resolv/res_libc.c: Likewise.
11764         * shadow/fgetspent.c: Likewise.
11765         * shadow/lckpwdf.c: Likewise.
11766         * shadow/sgetspent.c: Likewise.
11767         * socket/opensock.c: Likewise.
11768         * stdio-common/reg-modifier.c: Likewise.
11769         * stdio-common/reg-printf.c: Likewise.
11770         * stdio-common/reg-type.c: Likewise.
11771         * stdio-common/vfprintf.c: Likewise.
11772         * stdio-common/vfscanf.c: Likewise.
11773         * stdlib/abort.c: Likewise.
11774         * stdlib/cxa_atexit.c: Likewise.
11775         * stdlib/fmtmsg.c: Likewise.
11776         * stdlib/random.c: Likewise.
11777         * stdlib/setenv.c: Likewise.
11778         * string/strsignal.c: Likewise.
11779         * sunrpc/auth_none.c: Likewise.
11780         * sunrpc/bindrsvprt.c: Likewise.
11781         * sunrpc/create_xid.c: Likewise.
11782         * sunrpc/key_call.c: Likewise.
11783         * sunrpc/rpc_thread.c: Likewise.
11784         * sysdeps/arm/backtrace.c: Likewise.
11785         * sysdeps/generic/ldsodefs.h: Likewise.
11786         * sysdeps/generic/stdio-lock.h: Likewise.
11787         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
11788         * sysdeps/i386/backtrace.c: Likewise.
11789         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
11790         * sysdeps/m68k/backtrace.c: Likewise.
11791         * sysdeps/mach/hurd/cthreads.c: Likewise.
11792         * sysdeps/mach/hurd/dirstream.h: Likewise.
11793         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
11794         * sysdeps/nptl/malloc-machine.h: Likewise.
11795         * sysdeps/nptl/stdio-lock.h: Likewise.
11796         * sysdeps/posix/dirstream.h: Likewise.
11797         * sysdeps/posix/getaddrinfo.c: Likewise.
11798         * sysdeps/posix/system.c: Likewise.
11799         * sysdeps/pthread/aio_suspend.c: Likewise.
11800         * sysdeps/s390/s390-32/backtrace.c: Likewise.
11801         * sysdeps/s390/s390-64/backtrace.c: Likewise.
11802         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
11803         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
11804         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
11805         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
11806         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
11807         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
11808         * sysdeps/unix/sysv/linux/system.c: Likewise.
11809         * sysdeps/x86_64/backtrace.c: Likewise.
11810         * time/alt_digit.c: Likewise.
11811         * time/era.c: Likewise.
11812         * time/tzset.c: Likewise.
11813         * wcsmbs/wcsmbsload.c: Likewise.
11814         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
11815         instead of <bits/libc-lock.h> in comment.
11816
11817 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
11818
11819         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
11820         Only use .set mips2 if the current ISA is below mips2.
11821         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
11822         Likewise.
11823         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
11824         mips32r2 if the current ISA is below mips32r2.
11825         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
11826         (TLS_IE): Updated to use the TLD_RDHWR macro.
11827         (TLS_LE): Likewise.
11828         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
11829         __ASSEMBLER__ condition.
11830
11831 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11832
11833         Fix parallel build of before-compile targets.
11834
11835         * sysdeps/mach/Makefile ($(patsubst
11836         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
11837         mach-before-compile target.
11838         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11839         io fs process)): Move rule to dedicated hurd-before-compile target.
11840
11841 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11842
11843         Fix rules generating headers in hurd/ and mach/ when initial make call
11844         has subdir= explicitly set.
11845
11846         * sysdeps/mach/Makefile ($(patsubst
11847         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
11848         calling $(MAKE).
11849         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11850         io fs process)): Force subdir to hurd when calling $(MAKE).
11851         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
11852         subdir to mach when calling $(MAKE).
11853
11854 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
11855
11856         Check sysheaders when looking for Mach and Hurd headers
11857
11858         * sysdeps/mach/configure.ac: Add sysheaders check.
11859         * sysdeps/mach/configure: Regenerate.
11860         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
11861         * sysdeps/mach/hurd/configure: Regenerate.
11862
11863 2015-09-04  Roland McGrath  <roland@hack.frob.com>
11864
11865         [BZ #18921]
11866         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
11867         Fix inverted sense of test of 'o_directory_works' value.
11868         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
11869         Bernhard Voelker <mail@bernhard-voelker.de>.
11870
11871 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
11872
11873         [BZ #14912]
11874         * bits/linkmap.h: Move to ...
11875         * sysdeps/generic/linkmap.h: ...here.
11876         * sysdeps/aarch64/bits/linkmap.h: Move to ...
11877         * sysdeps/aarch64/linkmap.h: ...here.
11878         * sysdeps/arm/bits/linkmap.h: Move to ...
11879         * sysdeps/arm/linkmap.h: ...here.
11880         * sysdeps/hppa/bits/linkmap.h: Move to ...
11881         * sysdeps/hppa/linkmap.h: ...here.
11882         * sysdeps/ia64/bits/linkmap.h: Move to ...
11883         * sysdeps/ia64/linkmap.h: ...here.
11884         * sysdeps/mips/bits/linkmap.h: Move to ...
11885         * sysdeps/mips/linkmap.h: ...here.
11886         * sysdeps/s390/bits/linkmap.h: Move to ...
11887         * sysdeps/s390/linkmap.h: ...here.
11888         * sysdeps/sh/bits/linkmap.h: Move to ...
11889         * sysdeps/sh/linkmap.h: ...here.
11890         * sysdeps/x86/bits/linkmap.h: Move to ...
11891         * sysdeps/x86/linkmap.h: ...here.
11892         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
11893
11894 2015-09-04  Andreas Schwab  <schwab@suse.de>
11895
11896         [BZ #18635]
11897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11898         (__makecontext): Terminate FDE before return label.
11899         (__novec_makecontext): Likewise.
11900
11901 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11902
11903         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
11904         first member of struct sv in syscall macro.
11905
11906 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
11907
11908         [BZ #14912]
11909         * bits/stdio-lock.h: Move to ...
11910         * sysdeps/generic/stdio-lock.h: ...here.
11911         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
11912         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
11913         * sysdeps/nptl/stdio-lock.h: ...here.
11914         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
11915         * include/libio.h: Include <stdio-lock.h> instead of
11916         <bits/stdio-lock.h>.
11917         * sysdeps/nptl/fork.c: Likewise.
11918         * sysdeps/pthread/flockfile.c: Likewise.
11919         * sysdeps/pthread/ftrylockfile.c: Likewise.
11920         * sysdeps/pthread/funlockfile.c: Likewise.
11921
11922         [BZ #14912]
11923         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
11924         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
11925         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
11926         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
11927         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
11928         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
11929         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
11930
11931 2015-09-03  Roland McGrath  <roland@hack.frob.com>
11932
11933         * elf/Makefile (test-xfail-tst-protected1a): New variable.
11934         (test-xfail-tst-protected1b): New variable.
11935
11936 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
11937
11938         [BZ #14912]
11939         * bits/libc-tsd.h: Move to ...
11940         * sysdeps/generic/libc-tsd.h: ...here.
11941         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
11942         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
11943         * sysdeps/mach/hurd/libc-tsd.h: ...here.
11944         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
11945         * include/ctype.h: Include <libc-tsd.h> instead of
11946         <bits/libc-tsd.h>.
11947         * include/rpc/rpc.h: Likewise.
11948         * locale/localeinfo.h: Likewise.
11949         * sunrpc/rpc_thread.c: Likewise.
11950         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
11951         * sysdeps/nptl/malloc-machine.h: Likewise.
11952
11953         * Makefile (headers): Remove bits/libc-lock.h.
11954         * libio/Makefile (headers): Remove bits/stdio-lock.h.
11955
11956         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
11957         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
11958         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
11959         <bits/stdio-lock.h>.
11960         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
11961         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
11962
11963 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
11964
11965         [BZ #18757]
11966         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
11967         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
11968         BZ #18757.
11969
11970 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
11971
11972         * malloc/mtrace.pl: Filter out NULL entries.
11973
11974 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
11975
11976         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
11977         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
11978         macro.
11979
11980         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
11981         (TCP_CC_INFO): Likewise.
11982         (TCP_SAVE_SYN): Likewise.
11983         (TCP_SAVED_SYN): Likewise.
11984
11985 2015-08-31  Brett Neumeier <brett@neumeier.us>
11986
11987         [BZ #18870]
11988         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
11989
11990 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11991
11992         [BZ #18873]
11993         Fix broken overflow check in posix_fallocate
11994         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
11995         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
11996         Fix parenthesization typo.
11997
11998 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
11999
12000         [BZ #18887]
12001         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12002         tst-mntent-blank-passno.
12003         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12004         * misc/tst-mntent-blank-corrupt.c: New test.
12005         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12006         * misc/tst-mntent.c (do_test): ... here.
12007
12008 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12009
12010         [BZ #4404]
12011         * po/de.po: Fix SIGALRM typo.
12012
12013 2015-08-28  James Perkins  <james@loowit.net>
12014
12015         * time/tst-strptime2.c (tests): Replace short list of test
12016         strings for strptime %z specifier with code which exhaustively
12017         tests every combination of sign and 0 to 5 digits. Tests for
12018         rejection of invalid strings.
12019
12020 2015-08-28  James Perkins  <james@loowit.net>
12021
12022         [BZ #16141]
12023         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12024         calculation, removing incorrect decimal time rounding, so that
12025         all minute values result in a valid seconds value.
12026         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12027         offset range limits to UTC-99:59 through UTC+99:59 to parse
12028         current and historical use cases.
12029         * time/tst-strptime2.c (tests): Modify and add tests for the
12030         strptime %z input field descriptor, specifically conversion of
12031         minutes to seconds and validating an offset range of -9959 to
12032         +9959.
12033
12034 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12035             Dmitry V. Levin  <ldv@altlinux.org>
12036
12037         [BZ #18877]
12038         * posix/Makefile (tests): Add tst-mmap-offset.
12039         * posix/tst-mmap.c: New file.
12040         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12041         offset calculation for negative values.
12042
12043 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12044
12045         * sysdeps/i386/init-arch.h: New file.
12046         * sysdeps/i386/i586/init-arch.h: Likewise.
12047         * sysdeps/i386/i686/init-arch.h: Likewise.
12048         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12049         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12050         * sysdeps/x86/cpu-features.h (bit_I586): New.
12051         (bit_I686): Likewise.
12052         (bit_CX8): Likewise.
12053         (bit_CMOV): Likewise.
12054         (index_CX8): Likewise.
12055         (index_CMOV): Likewise.
12056         (index_I586): Likewise.
12057         (index_I686): Likewise.
12058         (reg_CX8): Likewise.
12059         (reg_CMOV): Likewise.
12060         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12061         available at compile-time.
12062         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12063         available at compile-time.
12064         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12065         (USE_I686): Likewise.
12066
12067 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12068
12069         * sysdeps/i386/bcopy.S: New file.
12070         * sysdeps/i386/bzero.S: Likewise.
12071         * sysdeps/i386/memcpy.S: Likewise.
12072         * sysdeps/i386/memmove.S: Likewise.
12073         * sysdeps/i386/mempcpy.S: Likewise.
12074         * sysdeps/i386/memset.S: Likewise.
12075         * sysdeps/i386/bzero.c: Removed.
12076         * sysdeps/i386/memset.c: Likewise.
12077         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12078         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12079         * sysdeps/i386/i586/memset_chk.S: Likewise.
12080         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12081         * sysdeps/i386/memcpy_chk.S: Here.
12082         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12083         * sysdeps/i386/memmove_chk.S: Here.
12084         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12085         * sysdeps/i386/mempcpy_chk.S: Likewise.
12086         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12087         * sysdeps/i386/memset_chk.S: Likewise.
12088
12089 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12090
12091         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12092         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12093         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12094         * soft-fp/fmadf4.c: Ditto.
12095         * soft-fp/fmatf4.c: Ditto.
12096
12097 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12098
12099         * sysdeps/i386/i586/Implies: Removed.
12100         * sysdeps/i386/i686/Implies: Likewise.
12101
12102 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12103
12104         * sysdeps/i386/i486/strlen.S: Moved to ...
12105         * sysdeps/i386/strlen.S: Here.
12106
12107 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12108
12109         * sysdeps/i386/i486/strcat.S: Moved to ...
12110         * sysdeps/i386/strcat.S: Here.
12111
12112 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12113
12114         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12115         * sysdeps/i386/pthread_spin_trylock.S: Here.
12116         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12117         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12118
12119 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12120
12121         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12122         * sysdeps/i386/string-inlines.c: Here.
12123
12124 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12125
12126         * sysdeps/i386/i486/htonl.S: Moved ...
12127         * sysdeps/i386/htonl.S: here.
12128
12129 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12130
12131         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12132         * sysdeps/i386/bits/atomic.h: Here.
12133
12134 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12135
12136         * sysdeps/i386/i486/Versions: Removed.
12137
12138 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12139
12140         [BZ #2898]
12141         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12142         Based on patch by Aurelien Jarno.
12143
12144 2015-08-26  Stan Shebs  <stanshebs@google.com>
12145
12146         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12147         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12148
12149 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12150
12151         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12152         * sysdeps/powerpc/dl-procinfo.c:
12153         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12154         feature so it shows when LD_SHOW_AUXV=1.
12155
12156 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12157
12158         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12159         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12160         definition.  ISA 2.07B no longer requires full sync.
12161
12162 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12163
12164         [BZ #18863]
12165         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12166         (si_call_addr): Define.
12167         (si_syscall): Define.
12168         (si_arch): Define.
12169
12170 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12171
12172         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12173         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12174         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12175         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12176         (__memset_zero_constant_len_parameter): New.
12177         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12178         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12179         (__memset_zero_constant_len_parameter): Don't define if
12180         __memset_chk or USE_AS_BZERO are defined.
12181
12182         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12183         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12184         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12185
12186         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12187         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12188         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12189         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12190         comments.
12191         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12192         -mno-mmx for $(all-rtld-routines).
12193         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12194         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12195         i386.
12196
12197 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12198
12199         * sysdeps/generic/unwind.h
12200         (_Unwind_Word): Use __mode__(__unwind_word__)
12201         instead of __mode__(__word__).
12202         (_Unwind_Sword): Likewise.
12203
12204         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12205         (MAX_NEEDED_INPUT): New define.
12206         (MAX_NEEDED_OUTPUT): New define.
12207
12208         * NEWS: New item for IBM z13 string optimizations.
12209
12210         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12211         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12212         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12213         * sysdeps/s390/multiarch/Makefile
12214         (sysdep_routines): Add memrchr functions.
12215         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12216         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12217
12218         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12219         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12220         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12221         * sysdeps/s390/multiarch/Makefile
12222         (sysdep_routines): Add wmemcmp functions.
12223         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12224         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12225         * benchtests/bench-wmemcmp.c: New File.
12226         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12227
12228         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12229         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12230         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12231         * sysdeps/s390/multiarch/Makefile
12232         (sysdep_routines): Add wmemset functions.
12233         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12234         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12235         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12236         * string/test-memset.c: Add wmemset support.
12237         * wcsmbs/test-wmemset.c: New File.
12238         * wcsmbs/Makefile (strop-tests): Add wmemset.
12239         * benchtests/bench-memset.c: Add wmemset support.
12240         * benchtests/bench-wmemset.c: New File.
12241         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12242
12243         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12244         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12245         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12246         * sysdeps/s390/multiarch/Makefile
12247         (sysdep_routines): Add memccpy functions.
12248         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12249         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12250         * string/memccpy.c: Use MEMCCPY if defined.
12251
12252         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12253         * sysdeps/s390/multiarch/memchr.c: Likewise.
12254         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12255         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12256         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12257         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12258         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12259         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12260         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12261         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12262         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12263         and rawmemchr functions.
12264         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12265         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12266         and wmemchr.
12267         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12268         * string/test-memchr.c: Add wmemchr support.
12269         * wcsmbs/test-wmemchr.c: New File.
12270         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12271         * benchtests/bench-memchr.c: Add wmemchr support.
12272         * benchtests/bench-wmemchr.c: New File.
12273         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12274
12275         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12276         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12277         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12278         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12279         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12280         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12281         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12282         wcscspn functions.
12283         * sysdeps/s390/multiarch/ifunc-impl-list.c
12284         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12285         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12286         * string/test-strcspn.c: Add wcscspn support.
12287         * wcsmbs/test-wcscspn.c: New File.
12288         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12289         * benchtests/bench-strcspn.c: Add wcscspn support.
12290         * benchtests/bench-wcscspn.c: New File.
12291         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12292
12293         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12294         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12295         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12296         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12297         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12298         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12299         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12300         wcspbrk functions.
12301         * sysdeps/s390/multiarch/ifunc-impl-list.c
12302         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12303         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12304         * string/test-strpbrk.c: Add wcspbrk support.
12305         * wcsmbs/test-wcspbrk.c: New File.
12306         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12307         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12308         * benchtests/bench-wcspbrk.c: New File.
12309         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12310
12311         * sysdeps/s390/multiarch/strspn-c.c: New File.
12312         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12313         * sysdeps/s390/multiarch/strspn.c: Likewise.
12314         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12315         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12316         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12317         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12318         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12319         wcsspn functions.
12320         * sysdeps/s390/multiarch/ifunc-impl-list.c
12321         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12322         * string/test-strspn.c: Add wcsspn support.
12323         * wcsmbs/test-wcsspn.c: New File.
12324         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12325         * benchtests/bench-strspn.c: Add wcsspn support.
12326         * benchtests/bench-wcsspn.c: New File.
12327         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12328
12329         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12330         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12331         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12332         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12333         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12334         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12335         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12336         wcsrchr functions.
12337         * sysdeps/s390/multiarch/ifunc-impl-list.c
12338         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12339         * benchtests/bench-wcsrchr.c: New File.
12340         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12341
12342         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12343         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12344         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12345         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12346         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12347         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12348         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12349         wcschrnul functions.
12350         * sysdeps/s390/multiarch/ifunc-impl-list.c
12351         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12352         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12353         * string/test-strchr.c: Add wcschrnul support.
12354         * wcsmbs/test-wcschrnul.c: New File.
12355         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12356         * benchtests/bench-strchr.c: Add wcschrnul support.
12357         * benchtests/bench-wcschrnul.c: New File.
12358         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12359
12360         * sysdeps/s390/multiarch/strchr-c.c: New File.
12361         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12362         * sysdeps/s390/multiarch/strchr.c: Likewise.
12363         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12364         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12365         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12366         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12367         wcschr functions.
12368         * sysdeps/s390/multiarch/ifunc-impl-list.c
12369         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12370         * string/strchr.c (STRCHR): Define and use macro.
12371         * benchtests/bench-wcschr.c: New File.
12372         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12373
12374         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12375         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12376         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12377         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12378         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12379         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12380         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12381         wcsncmp functions.
12382         * sysdeps/s390/multiarch/ifunc-impl-list.c
12383         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12384         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12385         * benchtests/bench-strncmp.c: Add wcsncmp support.
12386         * benchtests/bench-wcsncmp.c: New File.
12387         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12388
12389         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12390         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12391         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12392         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12393         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12394         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12395         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12396         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12397         wcscmp functions.
12398         * sysdeps/s390/multiarch/ifunc-impl-list.c
12399         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12400         * string/strcmp.c (STRCMP): Define and use macro.
12401         * benchtests/bench-wcscmp.c: New File.
12402         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12403         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12404         instead of _HAVE_STRING_ARCH_memchr.
12405
12406         * sysdeps/s390/multiarch/strncat-c.c: New File.
12407         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12408         * sysdeps/s390/multiarch/strncat.c: Likewise.
12409         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12410         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12411         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12412         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12413         wcsncat functions.
12414         * sysdeps/s390/multiarch/ifunc-impl-list.c
12415         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12416         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12417         * string/test-strncat.c: Add wcsncat support.
12418         * wcsmbs/test-wcsncat.c: New File.
12419         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12420         * benchtests/bench-strncat.c: Add wcsncat support.
12421         * benchtests/bench-wcsncat.c: New File.
12422         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12423
12424         * sysdeps/s390/multiarch/strcat-c.c: New File.
12425         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12426         * sysdeps/s390/multiarch/strcat.c: Likewise.
12427         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12428         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12429         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12430         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12431         wcscat functions.
12432         * sysdeps/s390/multiarch/ifunc-impl-list.c
12433         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12434         * string/strcat.c (STRCAT): Define and use macro.
12435         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12436         * string/test-strcat.c: Add wcscat support.
12437         * wcsmbs/test-wcscat.c: New File.
12438         * wcsmbs/Makefile (strop-tests): Add wcscat.
12439         * benchtests/bench-strcat.c: Add wcscat support.
12440         * benchtests/bench-wcscat.c: New File.
12441         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12442
12443         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12444         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12445         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12446         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12447         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12448         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12449         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12450         wcpncpy functions.
12451         * sysdeps/s390/multiarch/ifunc-impl-list.c
12452         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12453         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12454         * string/test-stpncpy.c: Add wcpncpy support.
12455         * wcsmbs/test-wcpncpy.c: New File.
12456         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12457         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12458         * benchtests/bench-wcpncpy.c: New File.
12459         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12460
12461         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12462         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12463         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12464         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12465         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12466         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12467         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12468         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12469         wcsncpy functions.
12470         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12471         * sysdeps/s390/multiarch/ifunc-impl-list.c
12472         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12473         * string/test-strncpy.c: Add wcsncpy support.
12474         * wcsmbs/test-wcsncpy.c: New File.
12475         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12476         * benchtests/bench-strncpy.c: Add wcsncpy support.
12477         * benchtests/bench-wcsncpy.c: New File.
12478         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12479
12480         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12481         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12482         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12483         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12484         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12485         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12486         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12487         wcpcpy functions.
12488         * string/stpcpy.c: Use STPCPY if defined.
12489         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12490         * sysdeps/s390/multiarch/ifunc-impl-list.c
12491         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12492         * string/test-stpcpy.c: Add wcpcpy support.
12493         * wcsmbs/test-wcpcpy.c: New File.
12494         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12495         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12496         * benchtests/bench-wcpcpy.c: New File.
12497         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12498
12499         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12500         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12501         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12502         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12503         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12504         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12505         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12506         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12507         wcscpy functions.
12508         * sysdeps/s390/multiarch/ifunc-impl-list.c
12509         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12510         * benchtests/bench-wcscpy.c: New File.
12511         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12512
12513         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12514         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12515         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12516         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12517         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12518         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12519         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12520         wcsnlen functions.
12521         * sysdeps/s390/multiarch/ifunc-impl-list.c
12522         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12523         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12524         * string/test-strnlen.c: Add wcsnlen support.
12525         * wcsmbs/test-wcsnlen.c: New File.
12526         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12527         * benchtests/bench-strnlen.c: Add wcsnlen support.
12528         * benchtests/bench-wcsnlen.c: New File.
12529         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12530
12531         * sysdeps/s390/multiarch/Makefile: New File.
12532         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12533         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12534         * sysdeps/s390/multiarch/strlen.c: Likewise.
12535         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12536         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12537         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12538         * string/strlen.c (STRLEN): Define and use macro.
12539         * sysdeps/s390/multiarch/ifunc-impl-list.c
12540         (IFUNC_VX_IMPL): New macro function.
12541         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12542         * benchtests/Makefile (wcsmbs-bench): New variable.
12543         (string-bench-all): Added wcsmbs-bench.
12544         * benchtests/bench-wcslen.c: New File.
12545
12546         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12547         s390_vx_libc_ifunc2): New macro function.
12548
12549         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12550         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12551         assembler support.
12552         * sysdeps/s390/configure: Regenerated.
12553
12554         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
12555         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12556
12557         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
12558         * sysdeps/s390/dl-procinfo.h: Add vector capability.
12559         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
12560
12561         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
12562         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
12563         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
12564         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
12565         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
12566         (memcmp, bcmp): Use __memcmp_default as alias source.
12567         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
12568         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
12569         Rename to __memcmp_default.
12570         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
12571         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
12572         (memcpy): Use __memcpy_default as alias source.
12573         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
12574         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
12575         Rename to __memcpy_default.
12576         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
12577         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
12578         (memset): Use __memset_default as alias source.
12579         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
12580         * sysdeps/s390/s390-32/memset.S (__memset_g5):
12581         Rename to __memset_default.
12582         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
12583         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
12584         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
12585         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
12586         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
12587         (memcmp, bcmp): Use __memcmp_default as alias source.
12588         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
12589         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
12590         Rename to __memcmp_default.
12591         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
12592         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
12593         (memcpy): Use __memcpy_default as alias source.
12594         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
12595         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
12596         Rename to __memcpy_default.
12597         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
12598         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
12599         (memset): Use __memset_default as alias source.
12600         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
12601         * sysdeps/s390/s390-64/memset.S (__memset_z900):
12602         Rename to __memset_default.
12603         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
12604         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
12605
12606         [BZ #18610]
12607         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
12608         __ieee_instruction_pointer to __unused.
12609         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
12610         __ieee_instruction_pointer.
12611         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
12612         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
12613         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12614         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12615         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
12616         Mark dxc-field as reserved.
12617
12618 2015-08-25  Roland McGrath  <roland@hack.frob.com>
12619
12620         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
12621         if the weak reference is not null.
12622
12623 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12624
12625         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
12626
12627         [BZ #11214]
12628         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
12629
12630 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12631
12632         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
12633         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
12634         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
12635         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
12636         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
12637         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
12638         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
12639         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
12640         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
12641         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
12642         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
12643         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
12644         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
12645         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
12646         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
12647         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
12648         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
12649         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
12650
12651 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12652
12653         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
12654         register other than r0 for tabort, it has special meaning.
12655         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
12656         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
12657         transaction before starting syscall.
12658
12659 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12660
12661         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
12662
12663 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12664
12665         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
12666
12667         * sysdeps/x86_64/rtld-memcmp.c: Removed.
12668         * sysdeps/x86_64/rtld-memset.S: Likewise.
12669         * sysdeps/x86_64/rtld-strchr.S: Likewise.
12670         * sysdeps/x86_64/rtld-strlen.S: Likewise.
12671         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
12672         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
12673
12674         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
12675
12676 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
12677
12678         * debug/strcpy_chk.c: Improve performance.
12679         * debug/stpcpy_chk.c: Likewise.
12680         * sysdeps/x86_64/strcpy_chk.S: Remove.
12681         * sysdeps/x86_64/stpcpy_chk.S: Remove.
12682
12683         [BZ #18240]
12684         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
12685
12686 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12687
12688         [BZ #15128]
12689         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
12690         ifuncmain8.
12691         (modules-names): Add ifuncmod8.
12692         ($(objpfx)ifuncmain8): New rule.
12693         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
12694         <cpuid.h>.
12695         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
12696         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
12697         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
12698         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
12699         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
12700         * sysdeps/x86_64/dl-trampoline.h: Likewise.
12701         * sysdeps/x86_64/ifuncmain8.c: New file.
12702         * sysdeps/x86_64/ifuncmod8.c: Likewise.
12703         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
12704         Removed.
12705         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
12706         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
12707         Change rtld_savespace_sse to __glibc_unused2.
12708         (RTLD_CHECK_FOREIGN_CALL): Removed.
12709         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
12710         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
12711         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
12712
12713 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12714
12715         * sysdeps/aarch64/bzero.S (__bzero): Remove.
12716
12717 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12718
12719         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
12720         Unconditionally set __fpcr to avoid uninialized warning.
12721         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
12722
12723 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
12724
12725         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
12726         is corrupt.
12727
12728         * malloc/arena.c (arena_get2): Drop unused argument.
12729         (arena_lock): Adjust.
12730         (arena_get_retry): Likewise.
12731
12732 2015-08-24  Andreas Schwab  <schwab@suse.de>
12733
12734         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
12735         Don't define.
12736         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
12737         (__ASSUME_IPC64): Don't undef.
12738         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
12739         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
12740         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
12741         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
12742         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
12743         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
12744         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
12745         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
12746         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
12747         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
12748         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
12749         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
12750         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
12751         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
12752         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
12753         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
12754         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
12755         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
12756         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
12757         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
12758         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
12759
12760 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
12761
12762         * manual/Makefile (install): Only build manual when perl is available.
12763
12764 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12765
12766         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
12767         '#undef memcpy' by '#undef memchr'.
12768
12769 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12770
12771         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
12772         memchr not point to the internal __GI_memchr implementation.
12773
12774 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12775
12776         * timezone/Makefile (CFLAGS-zdump.c): Remove
12777         -Wno-strict-prototypes.
12778         (CFLAGS-zic.c): Likewise.
12779         (CFLAGS-ialloc.c): Likewise.
12780         (CFLAGS-scheck.c): Likewise.
12781
12782         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
12783         -Wno-error=undef.
12784
12785 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12786
12787         * i386/i686/multiarch/strcasestr-c.c: Removed.
12788         * x86_64/multiarch/strcasestr.c: Likewise.
12789         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
12790         Remove strcasestr.
12791
12792 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12793
12794         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
12795
12796         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
12797         variables for high and low parts before possibly modifying them.
12798
12799 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12800
12801         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
12802         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
12803         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
12804         of "multiarch/init-arch.h".
12805         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
12806         * sysdeps/x86/init-arch.h: This.
12807
12808 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12809
12810         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
12811         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
12812
12813 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
12814
12815         [BZ #17787]
12816         * manual/macros.texi: Add twoexp macro.
12817         * manual/filesys.texi: Fix exponents.
12818         * manual/llio.texi: Likewise.
12819         * manual/stdio.texi: Likewise.
12820
12821 2015-08-20  Florian Weimer  <fweimer@redhat.com>
12822
12823         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
12824         incorrect use.
12825
12826 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
12827
12828         [BZ #18370]
12829         * math/s_csqrt.c (__csqrt): Force underflow exception for results
12830         whose real or imaginary part has small absolute value.
12831         * math/s_csqrtf.c (__csqrtf): Likewise.
12832         * math/s_csqrtl.c (__csqrtl): Likewise.
12833         * math/auto-libm-test-in: Add more tests of csqrt.
12834         * math/auto-libm-test-out: Regenerated.
12835         * sysdeps/i386/fpu/libm-test-ulps: Update.
12836
12837 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12838
12839         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
12840         __ppc_set_ppr_very_low): New functions.
12841         * manual/platform.texi: Add documentation about
12842         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
12843
12844 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
12845
12846         * string/stpncpy.c (stpncpy): Improve performance using
12847         __strnlen/memcpy/memset.
12848
12849 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12850
12851         [BZ #18796]
12852         * scripts/test-installation.pl: Don't add -lmvec to build options if
12853         libmvec wasn't built.
12854
12855 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
12856
12857         [BZ #14341]
12858         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
12859         case when there is a gap between DT_REL and DT_JMPREL sections.
12860         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
12861         (LDFLAGS-tst-split-dynreloc): New.
12862         (tst-split-dynreloc-ENV): Likewise.
12863         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
12864         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
12865
12866 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12867
12868         [BZ #18822]
12869         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
12870         attribute_hidden.
12871         (__xstat64_conv): Likewise.
12872         (__xstat32_conv): Likewise.
12873
12874 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12875
12876         [BZ #18822]
12877         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
12878         Don't load %ebx when calling __setcontext.  Call __setcontext
12879         with HIDDEN_JUMPTARGET.
12880         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
12881         libc_hidden_def.
12882
12883 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12884
12885         * sysdeps/i386/i686/Makefile
12886         [$(subdir) == string] (sysdep_routines): Moved to ...
12887         * sysdeps/i386/Makefile: Here.
12888         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
12889         * sysdeps/i386/cacheinfo.c: Here.
12890         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
12891         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
12892         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
12893         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
12894
12895 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12896
12897         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
12898         __i586__ is defined.
12899         (HAS_I686): Defined to 1 if __i686__ is defined.
12900
12901 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
12902
12903         * elf/Makefile [$(have-z-execstack) = yes]
12904         (CPPFLAGS-tst-execstack.c): New variable.
12905
12906         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
12907         conditional to [defined UTMPX || _HAVE_UT_TYPE].
12908         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
12909         UTMPX || _HAVE_UT_TV].
12910         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
12911         UTMPX || _HAVE_UT_TV - 0].
12912
12913 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
12914
12915         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
12916         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
12917         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
12918
12919 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12920
12921         * sysdeps/powerpc/dl-procinfo.c:
12922         (_dl_powerpc_cap_flags): Added missing strings for some
12923         hwcap features.
12924         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
12925
12926 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12927
12928         Port the 0x7efe...feff pattern to GCC 6.
12929         See Steve Ellcey's bug report in:
12930         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
12931         * string/memrchr.c (MEMRCHR):
12932         * string/rawmemchr.c (RAWMEMCHR):
12933         * string/strchr.c (strchr):
12934         * string/strchrnul.c (STRCHRNUL):
12935         Rewrite code to avoid issues with signed shift overflow.
12936
12937 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12938
12939         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
12940         whether cpuid is available only if HAS_CPUID is 0.
12941         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
12942         (HAS_I586): Likewise.
12943         (HAS_I686): Likewise.
12944
12945 2015-08-18  Zack Weinberg  <zackw@panix.com>
12946
12947         * misc/Versions (libc): Add GLIBC_2.23.
12948
12949 2015-08-18  Alan Modra  <amodra@gmail.com>
12950
12951         [BZ #18421]
12952         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
12953         .Lp__global.
12954         (_start): Load %dp via .Lp__global.
12955         [!SHARED]: Use .section .rodata.
12956
12957 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12958
12959         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
12960         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
12961
12962 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12963
12964         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
12965         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
12966
12967 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12968
12969         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
12970         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
12971
12972 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12973
12974         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
12975         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
12976
12977 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12978
12979         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
12980         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
12981
12982 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12983
12984         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
12985         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
12986
12987 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12988
12989         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
12990
12991 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12992
12993         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
12994         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
12995         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
12996         (__ASSUME_LWS_CAS): Delete.
12997
12998 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12999
13000         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13001         * sysdeps/hppa/configure: Regenerated.
13002         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13003         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13004         * sysdeps/hppa/nptl/tls.h: Likewise.
13005
13006 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13007
13008         [BZ #18823]
13009         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13010         for scaling up small arguments.
13011         * math/s_csqrtf.c (__csqrtf): Likewise.
13012         * math/s_csqrtl.c (__csqrtl): Likewise.
13013         * math/auto-libm-test-in: Add more tests of csqrt.
13014         * math/auto-libm-test-out: Regenerated.
13015
13016 2015-08-17  Andreas Schwab  <schwab@suse.de>
13017
13018         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13019         version set GLIBC_2.19.
13020
13021 2015-08-16  Zack Weinberg  <zackw@panix.com>
13022
13023         [BZ #18681]
13024         * misc/regexp.h: This interface is no longer supported.
13025         Remove all contents, leaving only an #error directive.
13026         * misc/regexp.c (loc1, loc2, locs, step, advance):
13027         Demote to compatibility symbols.
13028
13029 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13030
13031         [BZ #18084]
13032         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13033         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13034         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13035         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13036         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13037         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13038         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13039         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13040         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13041
13042 2015-08-15  Zack Weinberg  <zackw@panix.com>
13043
13044         [BZ #18795]
13045         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13046         buffer length is known to be too large, not if it's known to be
13047         small enough.
13048         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13049         overflow at runtime, involving a length parameter, twice: once
13050         with a compile-time constant length parameter, once without.
13051
13052 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13053
13054         [BZ #18824]
13055         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13056         scaling x * y up instead of down.
13057         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13058         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13059         * math/auto-libm-test-in: Add more tests of fma.
13060         * math/auto-libm-test-out: Regenerated.
13061
13062 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13063
13064         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13065
13066 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13067
13068         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13069         unnecessary movq.
13070         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13071         Likewise.
13072
13073 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13074
13075         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13076         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13077         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13078         and tgamma.
13079         * math/auto-libm-test-out: Regenerated.
13080         * sysdeps/i386/fpu/libm-test-ulps: Update.
13081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13082
13083         [BZ #16520]
13084         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13085         (__tanh): Force underflow exception for arguments with small
13086         absolute value.
13087         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13088         (__tanhf): Force underflow exception for arguments with small
13089         absolute value.
13090         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13091         (__tanhl): Force underflow exception for arguments with small
13092         absolute value.
13093         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13094         (__tanhl): Force underflow exception for arguments with small
13095         absolute value.
13096         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13097         (__tanhl): Force underflow exception for arguments with small
13098         absolute value.
13099         * math/auto-libm-test-in: Add more tests of tanh.
13100         * math/auto-libm-test-out: Regenerated.
13101         * sysdeps/i386/fpu/libm-test-ulps: Update.
13102
13103 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13104
13105         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13106         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13107
13108 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13109
13110         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13111         <cpuid.h>.
13112
13113 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13114
13115         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13116         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13117
13118 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13119
13120         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13121         Remove $(objpfx)init-arch.o.
13122         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13123         init-arch.
13124         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13125         (INIT_ARCH_EXT): Defined as empty.
13126         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13127         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13128         __init_cpu_features call.  Replace HAS_XXX with
13129         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13130         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13131         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13132         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13133         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13134         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13135         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13136         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13137         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13138         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13139         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13140         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13141         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13142         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13143         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13144         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13145         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13146         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13147         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13148         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13149         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13150         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13151         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13152         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13153         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13154         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13155         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13156         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13157         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13158         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13159         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13160         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13161         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13162         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13163         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13164         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13165
13166 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13167
13168         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13169         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13170         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13171         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13172         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13173         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13174         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13175         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13176         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13177         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13178         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13179         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13180         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13181         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13182         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13183         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13184         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13185         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13186         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13187         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13188         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13189         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13190         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13191         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13192         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13193         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13194         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13195         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13196         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13197         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13198         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13199         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13200         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13201         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13202         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13203         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13204         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13205         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13206         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13207         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13208         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13209         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13210         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13211
13212 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13213
13214         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13215         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13216         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13217         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13218         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13219         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13220         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13221         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13222         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13223         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13224         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13225         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13226         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13227         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13228         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13229         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13230         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13231         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13232         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13233         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13234         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13235         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13236         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13237         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13238         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13239         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13240         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13241         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13242         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13243         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13244         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13245         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13246         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13247         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13248         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13249         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13250         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13251         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13252         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13253         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13254         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13255         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13256         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13257
13258 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13259
13260         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13261         (dl_platform_init): Call init_cpu_features.
13262         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13263         * sysdeps/i386/i686/cacheinfo.c
13264         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13265         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13266         * sysdeps/i386/i686/multiarch/Versions: Removed.
13267         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13268         Removed.
13269         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13270         * sysdeps/unix/sysv/linux/x86/Makefile
13271         (libpthread-sysdep_routines): Remove init-arch.
13272         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13273         <sysdeps/x86_64/dl-procinfo.c> instead of
13274         sysdeps/generic/dl-procinfo.c>.
13275         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13276         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13277         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13278         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13279         [$(subdir) == elf] (tests-static): Add
13280         tst-get-cpu-features-static.
13281         * sysdeps/x86/Versions: New file.
13282         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13283         * sysdeps/x86/cpu-features.c: Likewise.
13284         * sysdeps/x86/cpu-features.h: Likewise.
13285         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13286         * sysdeps/x86/libc-start.c: Likewise.
13287         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13288         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13289         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13290         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13291         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13292         Assume USE_MULTIARCH is defined and don't check it.
13293         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13294         (is_amd): Likewise.
13295         (max_cpuid): Likewise.
13296         (intel_check_word): Likewise.
13297         (__cache_sysconf): Don't call __init_cpu_features.
13298         (__x86_preferred_memory_instruction): Removed.
13299         (init_cacheinfo): Don't call __init_cpu_features. Replace
13300         __cpu_features with GLRO(dl_x86_cpu_features).
13301         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13302         (dl_platform_init): Call init_cpu_features.
13303         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13304         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13305         * sysdeps/x86_64/multiarch/Versions: Removed.
13306         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13307         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13308         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13309         Removed.
13310         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13311
13312 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13313
13314         [BZ #18820]
13315         * libio/Makefile (test-fmemopen-mem): New test.
13316         * libio/test-fmemopen.c (do_bz18820): New test.
13317         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13318         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13319
13320 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13321
13322         [BZ #16734]
13323         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13324         (FREE_BUF): Delete.
13325         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13326         * libio/genops.c (_IO_setb): Use malloc and free directly.
13327         (_IO_default_doallocate, _IO_default_finish): Likewise.
13328         ( _IO_unbuffer_all): Likewise.
13329         ( libc_freeres_fn): Likewise.
13330         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13331         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13332         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13333         (_IO_wdefault_doallocate): Likewise.
13334
13335 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13336
13337         [BZ #18086]
13338         * sysdeps/posix/nice.c (nice): Restore old errno.
13339         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13340
13341 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13342
13343         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13344
13345 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13346
13347         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13348         __bcopy and add a weak_alias to bcopy.
13349         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13350         for static build.
13351
13352         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13353         cleanup macro usage.
13354         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13355         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13356         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13357         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13358         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13359         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13360         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13361         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13362         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13363         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13364         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13365         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13366         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13367         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13368         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13369         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13370         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13371         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13372         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13373
13374         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13375         libc_hidden_def.
13376         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13377
13378         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13379         (sysdep_routines): Add strstr-ppc64.
13380         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13381
13382 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13383
13384         [BZ #18778]
13385         * elf/Makefile (tests): Add Add tst-nodelete2.
13386         (modules-names): Add tst-nodelete2mod.
13387         (tst-nodelete2mod.so-no-z-defs): New.
13388         ($(objpfx)tst-nodelete2): Likewise.
13389         ($(objpfx)tst-nodelete2.out): Likewise.
13390         (LDFLAGS-tst-nodelete2): Likewise.
13391         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13392         out of loop through all loaded libraries.
13393         * elf/tst-nodelete2.c: New file.
13394         * elf/tst-nodelete2mod.c: Likewise.
13395         * elf/tst-znodelete-zlib.cc: Delete.
13396
13397 2015-08-11  Andreas Schwab  <schwab@suse.de>
13398
13399         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13400         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13401         (__openat64_nocancel): Likewise.
13402
13403 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13404
13405         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13406         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13407         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13408         * math/auto-libm-test-out: Regenerated.
13409         * sysdeps/i386/fpu/libm-test-ulps: Update.
13410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13411
13412 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13413
13414         [BZ #18790]
13415         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13416         threshold for returning +/- 1.
13417         * math/auto-libm-test-in: Add more tests of tanh.
13418         * math/auto-libm-test-out: Regenerated.
13419         * sysdeps/i386/fpu/libm-test-ulps: Update.
13420
13421 2015-08-10  Andreas Schwab  <schwab@suse.de>
13422
13423         [BZ #18781]
13424         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13425         MORE_OFLAGS to oflag.
13426         * io/test-lfs.c (do_test): Test openat64.
13427
13428 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13429
13430         [BZ #18789]
13431         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13432         smaller threshold for returning the argument.
13433         * math/auto-libm-test-in: Add more tests of sinh.
13434         * math/auto-libm-test-out: Regenerated.
13435         * sysdeps/i386/fpu/libm-test-ulps: Update.
13436
13437 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13438
13439         [BZ #18674]
13440         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13441         break.
13442
13443 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13444
13445         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13446         (generated): Don't add $(addprefix z.,$(tzfiles)).
13447
13448 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13449
13450         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13451         * scripts/sysd-rules.awk: Likewise.
13452
13453 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13454
13455         * iconvdata/tst-tables.sh: Change echo -n to printf.
13456         * nss/db-Makefile: Likewise.
13457         * posix/tst-getconf.sh: Likewise.
13458         * stdio-common/tst-unbputc.sh: Likewise.
13459
13460 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13461
13462         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13463         MADV_*_PAGES defines behind this feature check.
13464
13465 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13466
13467         [BZ #18480]
13468         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13469         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13470         Define.
13471         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13472         LOAD_REGS_5, LOAD_REGS_6): Update.
13473         (INTERNAL_SYSCALL): Update using new LOAD defines.
13474         (INTERNAL_SYSCALL_NCS): Likewise.
13475         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13476
13477 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13478
13479         [BZ #16734]
13480         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13481
13482 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13483
13484         [BZ #17905]
13485         * catgets/Makefile (tst-catgets-mem): New test.
13486         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13487         * catgets/open_catalog.c (__open_catalog): Likewise.
13488         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13489
13490 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13491
13492         [BZ #18787]
13493         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13494         clobber registers.
13495         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13496         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13497         Cast return to __typeof (oldval).
13498
13499 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13500
13501         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13502         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13503         and delete sys/syscall.h include.
13504
13505 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13506
13507         [BZ #16517]
13508         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13509         (tan): Force underflow exception for arguments with small absolute
13510         value.
13511         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13512         (__kernel_tanf): Force underflow exception for arguments with
13513         small absolute value.
13514         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13515         (__kernel_tanl): Force underflow exception for arguments with
13516         small absolute value.
13517         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13518         (__kernel_tanl): Force underflow exception for arguments with
13519         small absolute value.
13520         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13521         (__kernel_tanl): Force underflow exception for arguments with
13522         small absolute value.
13523         * math/auto-libm-test-in: Add more tests of tan.
13524         * math/auto-libm-test-out: Regenerated.
13525
13526 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13527
13528         Fix sysdeps/i386/fpu/s_scalbn.S build
13529
13530         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13531
13532 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13533
13534         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13535
13536 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13537
13538         Fix gcrt0.o compilation
13539
13540         When static-start-installed-name is different from
13541         start-installed-name, we must not use the shared objects.
13542
13543         * csu/Makefile
13544         (extra-objs): Add gmon-start.o when building shared library and
13545         $(static-start-installed-name) is different from
13546         $(start-installed-name).
13547         $(objpfx)g$(static-start-installed-name): When building shared
13548         library and $(static-start-installed-name) is different from
13549         $(static-start-installed-name), revert to non-shared rule,
13550         i.e. using $(objpfx)% and gmon-start.o.
13551
13552 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
13553
13554         [BZ #16519]
13555         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
13556         (__ieee754_sinh): Force underflow exception for arguments with
13557         small absolute value.
13558         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
13559         (__ieee754_sinhf): Force underflow exception for arguments with
13560         small absolute value.
13561         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
13562         (__ieee754_sinhl): Force underflow exception for arguments with
13563         small absolute value.
13564         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
13565         (__ieee754_sinhl): Force underflow exception for arguments with
13566         small absolute value.
13567         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
13568         (__ieee754_sinhl): Force underflow exception for arguments with
13569         small absolute value.
13570         * math/auto-libm-test-in: Add more tests of sinh.
13571         * math/auto-libm-test-out: Regenerated.
13572         * sysdeps/i386/fpu/libm-test-ulps: Update.
13573
13574 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13575
13576         * libio/oldfileops.c: Include unistd.h.
13577
13578 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
13579
13580         * stdlib/isomac.c: Include ctype.h.
13581
13582 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
13583
13584         * dirent/tst-seekdir.c (main): Converted to ...
13585         (do_test): ... this.
13586         (TEST_FUNCTION): New macro.
13587         Include test-skeleton.c.
13588         * elf/tst-dlmodcount.c (main): Converted to ...
13589         (do_test): ... this.
13590         (TEST_FUNCTION): New macro.
13591         Include test-skeleton.c.
13592         * elf/tst-order-main.c (main): Converted to ...
13593         (do_test): ... this.
13594         (TEST_FUNCTION): New macro.
13595         Include test-skeleton.c.
13596         * elf/tst-pie2.c (main): Converted to ...
13597         (do_test): ... this.
13598         (TEST_FUNCTION): New macro.
13599         Include test-skeleton.c.
13600         * inet/tst-ether_aton.c (main): Converted to ...
13601         (do_test): ... this.
13602         (TEST_FUNCTION): New macro.
13603         Include test-skeleton.c.
13604         * misc/tst-mntent.c (main): Converted to ...
13605         (do_test): ... this.
13606         (TEST_FUNCTION): New macro.
13607         Include test-skeleton.c.
13608         * misc/tst-tsearch.c (main): Converted to ...
13609         (do_test): ... this.
13610         (TEST_FUNCTION): New macro.
13611         Include test-skeleton.c.
13612         * posix/tst-regexloc.c (main): Converted to ...
13613         (do_test): ... this.
13614         (TEST_FUNCTION): New macro.
13615         Include test-skeleton.c.
13616         * resolv/tst-aton.c (main): Converted to ...
13617         (do_test): ... this.
13618         (TEST_FUNCTION): New macro.
13619         Include test-skeleton.c.
13620         * stdio-common/test-fwrite.c (main): Converted to ...
13621         (do_test): ... this.
13622         (TEST_FUNCTION): New macro.
13623         Include test-skeleton.c.
13624         * stdio-common/tst-ferror.c (main): Converted to ...
13625         (do_test): ... this.
13626         (TEST_FUNCTION): New macro.
13627         Include test-skeleton.c.
13628         * stdio-common/tst-printf.c (main): Converted to ...
13629         (do_test): ... this.
13630         (TEST_FUNCTION): New macro.
13631         Include test-skeleton.c.
13632         * stdio-common/tst-printfsz.c (main): Converted to ...
13633         (do_test): ... this.
13634         (TEST_FUNCTION): New macro.
13635         Include test-skeleton.c.
13636         * stdlib/tst-strtod.c (main): Converted to ...
13637         (do_test): ... this.
13638         (TEST_FUNCTION): New macro.
13639         Include test-skeleton.c.
13640         * string/tst-strlen.c (main): Converted to ...
13641         (do_test): ... this.
13642         (TEST_FUNCTION): New macro.
13643         Include test-skeleton.c.
13644         * string/tst-svc.c (main): Converted to ...
13645         (do_test): ... this.
13646         (TEST_FUNCTION): New macro.
13647         Include test-skeleton.c.
13648         * time/tst-strptime.c (main): Converted to ...
13649         (do_test): ... this.
13650         (TEST_FUNCTION): New macro.
13651         Include test-skeleton.c.
13652         * timezone/tst-timezone.c (main): Converted to ...
13653         (do_test): ... this.
13654         (TEST_FUNCTION): New macro.
13655         Include test-skeleton.c.
13656
13657 2015-08-05  Zack Weinberg  <zackw@panix.com>
13658
13659         * misc/regexp.h: Update comments.
13660
13661 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
13662
13663         [BZ #18635]
13664         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
13665         before return label.
13666
13667 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13668
13669         [BZ #18661]
13670         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
13671         when calling __errno_location.
13672         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
13673         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
13674
13675 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13676
13677         [BZ #18661]
13678         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
13679         (__lll_timedwait_tid): Align stack to 16 bytes when calling
13680         __gettimeofday.
13681
13682 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13683
13684         [BZ #18661]
13685         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
13686         (__start_context): Don't use pop to restore %rdi so that stack
13687         is aligned to 16 bytes when calling __setcontext.
13688
13689 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13690
13691         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
13692         only for libc.
13693         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13694
13695 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13696
13697         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
13698         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
13699         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
13700
13701 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13702
13703         * string/memccpy.c (memccpy):
13704         Improve performance by using memchr/memcpy/__mempcpy.
13705
13706 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13707
13708         * string/strncpy.c (strncpy):
13709         Improve performance by using __strnlen/memcpy.
13710
13711 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13712
13713         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
13714         Optimize to avoid an unnecessary FPCR read.
13715
13716 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13717
13718         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
13719         Optimize to reduce FPCR/FPSR accesses.
13720
13721 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13722
13723         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
13724         dead->data[category] != NULL.
13725
13726 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
13727
13728         [BZ #18647]
13729         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
13730         and |x| close to 1, use absolute value of x when computing log.
13731         * math/auto-libm-test-in: Add more tests of pow.
13732         * math/auto-libm-test-out: Regenerated.
13733
13734 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13735
13736         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
13737         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
13738         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
13739
13740 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
13741
13742         [BZ #18525]
13743         * locales/km_KH: Remove timezone definition.
13744         * locales/lo_LA: Likewise.
13745         * locales/my_MM: Likewise.
13746         * locales/nan_TW@latin: Likewise.
13747         * locales/th_TH: Likewise.
13748         * locales/uk_UA: Likewise.
13749
13750 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
13751
13752         [BZ #18265]
13753         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
13754         (wcsncat): Likewise.
13755         (wcscmp): Likewise.
13756         (wcsncmp): Likewise.
13757
13758 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13759
13760         * test-skeleton.c (usage): New function.
13761         (main): Call usage when opt is '?'.
13762
13763 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13764
13765         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
13766         before first use.
13767
13768 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13769
13770         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
13771         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
13772         in there too.
13773
13774 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
13775
13776         * version.h (RELEASE): Set to "development".
13777         (VERSION): Set to "2.22.90"
13778
13779         * version.h (RELEASE): Set to "stable".
13780         (VERSION): Set to "2.22"
13781         * include/features.h (__GLIBC_MINOR__): Set to 22.
13782
13783 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
13784
13785         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
13786         Restructure macro to avoid "value computed is not used" warning.
13787         (atomic_compare_and_exchange_val_acq): Likewise.
13788
13789 2015-08-04  Andreas Schwab  <schwab@suse.de>
13790
13791         [BZ #18635]
13792         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
13793         ret.
13794         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
13795
13796 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
13797
13798         * po/pl.po: Updated translation.
13799         * po/uk.po: Likewise.
13800         * po/fi.po: Likewise.
13801         * po/ko.po: Likewise.
13802         * po/ru.po: Likewise.
13803         * po/vi.po: Likewise.
13804
13805 2015-07-31  Zack Weinberg  <zackw@panix.com>
13806
13807         [BZ #18681]
13808         * regexp.h: Add unconditional #warning stating that this header
13809         will be removed soon.  Revise banner comment to match.
13810         (compile): Consistently use ERROR instead of RETURN to report
13811         errors (partial fix for bz#18681).
13812         * regexp.c: Don't include regexp.h. Remove some unnecessary
13813         declarations.
13814
13815 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
13816
13817         * po/libc.pot: Regenerated.
13818
13819 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
13820
13821         [BZ #18740]
13822         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
13823         float-vlen4-arch-ext-cflags): Removed.
13824         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
13825         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
13826
13827 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13828
13829         [BZ #14113]
13830         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
13831         aligned to __aligned__.
13832         (pthread_cond_t, pthread_rwlock_t): Likewise.
13833
13834 2015-07-30  Torvald Riegel  <triegel@redhat.com>
13835
13836         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
13837
13838 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13839
13840         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
13841         (struct sigaction): Change sa_flags from a long to an int, and add
13842         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
13843
13844 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13845
13846         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
13847         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
13848         sysdeps/generic/sysdep.h include.
13849         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
13850         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
13851         sysdeps/hppa/sysdep.h.
13852         (ENTRY, PSEUDO): Undefine before defining.
13853
13854 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13855
13856         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
13857         from scratch to use INTERNAL_SYSCALL.
13858
13859 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
13860
13861         [BZ #18078]
13862         * scripts/check-localplt.awk: Support alternate relocations.
13863         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
13864         sections.
13865         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
13866         malloc entries with + REL R_386_GLOB_DAT.
13867         * sysdeps/x86_64/localplt.data: New file.
13868
13869 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
13870
13871         [BZ #18731]
13872         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
13873         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
13874         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
13875
13876 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13877
13878         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
13879
13880 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13881
13882         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
13883         directly in terms of __sync_fetch_and_add and delete (int) cast.
13884
13885 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13886
13887         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
13888         the -D_ASM_IA64_CURRENT_H flag.
13889
13890 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13891
13892         [BZ #18641]
13893         * pwd/pwd.h (putpwent): Delete __nonnull markings.
13894
13895 2015-07-27  Andreas Schwab  <schwab@suse.de>
13896
13897         * conform/conformtest.pl (checknamespace): Filter out string
13898         literals while tokenizing.
13899
13900 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
13901
13902         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
13903         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
13904         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
13905
13906 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
13907
13908         * nptl/tst-join7mod.c: Add #include <string.h>.
13909
13910 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
13911
13912         * sysdeps/nios2/libm-test-ulps: Update.
13913
13914 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
13915
13916         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
13917         Fix order of arguments to the rt_sigprocmask syscall.
13918         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
13919         Likewise.
13920
13921 2015-07-24  Roland McGrath  <roland@hack.frob.com>
13922
13923         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
13924
13925 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13926
13927         [BZ #18457]
13928         * nptl/Makefile (tests): New test case tst-join7.
13929         (modules-names): New test case module tst-join7mod.
13930         * nptl/tst-join7.c: New file.
13931         * nptl/tst-join7mod.c: New file.
13932         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
13933         all translation units in libc.so, libpthread.so and rtld.
13934
13935 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13936
13937         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13938
13939 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
13940
13941         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
13942         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13943         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13944         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13945         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13946         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13947         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13948         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13949         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13950         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13951         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13952         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13953         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
13954         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
13955         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
13956         implementation.
13957
13958 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13959
13960         [BZ #17711]
13961         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
13962         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
13963         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
13964         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
13965         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
13966         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
13967
13968 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13969
13970         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
13971         instead of just saying load lock in the comments.
13972
13973 2015-07-23  Roland McGrath  <roland@hack.frob.com>
13974
13975         * sysdeps/unix/Subdirs: Moved ...
13976         * sysdeps/posix/Subdirs: ... here.
13977         * login/pty.h (struct termios, struct winsize): Add forward decls.
13978         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
13979         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
13980         * sysdeps/arm/nacl/libc.abilist: Updated.
13981         * sysdeps/nacl/libutil.abilist: New file.
13982
13983         * bits/signum.h: Update comments to mention 1003.1-2013 too.
13984         (SIGWINCH): New macro.
13985
13986         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
13987         * sysdeps/arm/nacl/libc.abilist: Add it.
13988
13989 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
13990
13991         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
13992
13993 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
13994
13995         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
13996         Swap __glibc_reserved0 and sa_flags order.
13997
13998 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
13999
14000         [BZ #18657]
14001         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14002         are pending TLS destructor calls.
14003         * include/link.h (struct link_map): Add concurrency note for
14004         L_TLS_DTOR_COUNT.
14005         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14006         Don't touch the link map flag.  Atomically increment
14007         l_tls_dtor_count.
14008         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14009         Avoid taking the load lock and don't touch the link map flag.
14010         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14011         * stdlib/Makefile (tests): Use it.
14012         * stdlib/tst-tls-atexit.c (do_test): dlopen
14013         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14014         to allow tst-tls-atexit-nodelete test case to use it.
14015
14016 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14017
14018         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14019         to bits/types.h.
14020         (msgqnum_t): New typedef.
14021         (msglen_t): Likewise.
14022         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14023         and msg_qbytes type to msglen_t.
14024
14025 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14026
14027         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14028         pad0 to __glibc_reserved0.
14029         (struct stat64): Likewise.
14030
14031 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14032
14033         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14034         Change sa_flags from a long to an int and add __glibc_reserved0 before
14035         it for padding.
14036
14037 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14038
14039         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14040         anonymous by deleting "siginfo" name.
14041
14042 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14043
14044         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14045         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14046         rather than __nacl_irt_filename.
14047         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14048
14049         * NEWS: New item for arm-nacl port.
14050         * sysdeps/arm/nacl/libc.abilist: New file.
14051         * sysdeps/nacl/ld.abilist: New file.
14052         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14053         * sysdeps/nacl/libanl.abilist: New file.
14054         * sysdeps/nacl/libcrypt.abilist: New file.
14055         * sysdeps/nacl/libdl.abilist: New file.
14056         * sysdeps/nacl/libm.abilist: New file.
14057         * sysdeps/nacl/libpthread.abilist: New file.
14058         * sysdeps/nacl/libresolv.abilist: New file.
14059         * sysdeps/nacl/librt.abilist: New file.
14060
14061 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14062
14063         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14064         __startcontext to initialize the new context.
14065         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14066         up CFI directive to forbid further backtracing.
14067
14068 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14069
14070         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14071         reference.
14072         * charmaps/ANSI_X3.4-1968: Likewise.
14073         * charmaps/BS_4730: Likewise.
14074         * charmaps/BS_VIEWDATA: Likewise.
14075         * charmaps/CP1250: Likewise.
14076         * charmaps/CP1251: Likewise.
14077         * charmaps/CP1252: Likewise.
14078         * charmaps/CP1253: Likewise.
14079         * charmaps/CP1254: Likewise.
14080         * charmaps/CP1255: Likewise.
14081         * charmaps/CP1256: Likewise.
14082         * charmaps/CSN_369103: Likewise.
14083         * charmaps/EBCDIC-DK-NO: Likewise.
14084         * charmaps/GB_1988-80: Likewise.
14085         * charmaps/GREEK-CCITT: Likewise.
14086         * charmaps/GREEK7: Likewise.
14087         * charmaps/INIS-8: Likewise.
14088         * charmaps/ISIRI-3342: Likewise.
14089         * charmaps/ISO_2033-1983: Likewise.
14090         * charmaps/ISO_5427-EXT: Likewise.
14091         * locales/POSIX: Likewise.
14092         * locales/ar_SA: Likewise.
14093         * locales/be_BY: Likewise.
14094         * locales/be_BY@latin: Likewise.
14095         * locales/ca_ES: Likewise.
14096         * locales/cs_CZ: Likewise.
14097         * locales/da_DK: Likewise.
14098         * locales/de_BE: Likewise.
14099         * locales/de_CH: Likewise.
14100         * locales/de_LU: Likewise.
14101         * locales/en_AU: Likewise.
14102         * locales/en_BW: Likewise.
14103         * locales/en_CA: Likewise.
14104         * locales/en_DK: Likewise.
14105         * locales/en_GB: Likewise.
14106         * locales/en_IE: Likewise.
14107         * locales/en_NZ: Likewise.
14108         * locales/en_ZA: Likewise.
14109         * locales/en_ZW: Likewise.
14110         * locales/es_AR: Likewise.
14111         * locales/es_BO: Likewise.
14112         * locales/es_CL: Likewise.
14113         * locales/es_CO: Likewise.
14114         * locales/es_DO: Likewise.
14115         * locales/es_EC: Likewise.
14116         * locales/es_ES: Likewise.
14117         * locales/es_HN: Likewise.
14118         * locales/es_MX: Likewise.
14119         * locales/es_PA: Likewise.
14120         * locales/es_PE: Likewise.
14121         * locales/es_PY: Likewise.
14122         * locales/es_SV: Likewise.
14123         * locales/es_US: Likewise.
14124         * locales/es_UY: Likewise.
14125         * locales/es_VE: Likewise.
14126         * locales/et_EE: Likewise.
14127         * locales/fa_IR: Likewise.
14128         * locales/fo_FO: Likewise.
14129         * locales/fr_CA: Likewise.
14130         * locales/fr_CH: Likewise.
14131         * locales/gv_GB: Likewise.
14132         * locales/he_IL: Likewise.
14133         * locales/hr_HR: Likewise.
14134         * locales/id_ID: Likewise.
14135         * locales/is_IS: Likewise.
14136         * locales/it_CH: Likewise.
14137         * locales/iw_IL: Likewise.
14138         * locales/kl_GL: Likewise.
14139         * locales/ko_KR: Likewise.
14140         * locales/kw_GB: Likewise.
14141         * locales/lg_UG: Likewise.
14142         * locales/lt_LT: Likewise.
14143         * locales/lv_LV: Likewise.
14144         * locales/mi_NZ: Likewise.
14145         * locales/nhn_MX: Likewise.
14146         * locales/nl_BE: Likewise.
14147         * locales/pl_PL: Likewise.
14148         * locales/sk_SK: Likewise.
14149         * locales/sl_SI: Likewise.
14150         * locales/sv_FI: Likewise.
14151         * locales/tl_PH: Likewise.
14152         * locales/tr_TR: Likewise.
14153         * locales/vi_VN: Likewise.
14154
14155 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14156
14157         [BZ #17475]
14158         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14159         of tu_IN and bh_IN.
14160
14161 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14162
14163         [BZ #18694]
14164         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14165         bits/wordsize.h.
14166         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14167
14168 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14169
14170         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14171         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14172         (spawn_thread): New function.
14173         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14174         (do_test): ... here.  Use IS_LOADED to test for its
14175         availability.
14176
14177 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14178
14179         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14180
14181 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14182
14183         [BZ #18696]
14184         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14185         si_addr_bnd.
14186         (si_lower): New.
14187         (si_upper): Likewise.
14188
14189 2015-07-16  David S. Miller  <davem@davemloft.net>
14190
14191         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14192
14193 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14194
14195         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14196         buffer.
14197         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14198         fail output information.
14199
14200 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14201
14202         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14203         and strstr-ppc64..
14204         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14205         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14206         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14207         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14208         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14209
14210 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14211
14212         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14213         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14214         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14215         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14216
14217 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14218
14219         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14220         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14221         rtld_hidden_proto.
14222         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14223
14224 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14225
14226         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14227         the test can fail.
14228
14229         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14230
14231         [BZ #18676]
14232         * elf/tst-nodelete-opened.c: New test case.
14233         * elf/tst-nodelete-opened-lib.c: New test case module.
14234         * elf/Makefile (tests, modules-names): Use them.
14235         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14236         early.
14237
14238 2015-07-15  David S. Miller  <davem@davemloft.net>
14239
14240         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14241         futex-intenal.h
14242         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14243         * sysdeps/sparc/sparc64/Makefile: Likewise.
14244         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14245         Remove space from macro define.
14246         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14247
14248 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14249
14250         [BZ #17475]
14251         * locale/iso-639.def: Update Bhili and Tulu language codes as
14252         per iso639-3.
14253
14254 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14255
14256         * elf/tst-leaks1.c (main): Converted to ...
14257         (do_test): ... this.
14258         (TEST_FUNCTION): New macro.
14259         Include test-skeleton.c.
14260         * localedata/tst-langinfo.c (main): Converted to ...
14261         (do_test): ... this.
14262         (TEST_FUNCTION): New macro.
14263         Include test-skeleton.c.
14264         * math/test-fpucw.c (main): Converted to ...
14265         (do_test): ... this.
14266         (TEST_FUNCTION): New macro.
14267         Include test-skeleton.c.
14268         * math/test-tgmath.c (main): Converted to ...
14269         (do_test): ... this.
14270         (TEST_FUNCTION): New macro.
14271         Include test-skeleton.c.
14272         * math/test-tgmath2.c (main): Converted to ...
14273         (do_test): ... this.
14274         (TEST_FUNCTION): New macro.
14275         Include test-skeleton.c.
14276         * setjmp/tst-setjmp.c (main): Converted to ...
14277         (do_test): ... this.
14278         (TEST_FUNCTION): New macro.
14279         Include test-skeleton.c.
14280         * stdio-common/tst-sscanf.c (main): Converted to ...
14281         (do_test): ... this.
14282         (TEST_FUNCTION): New macro.
14283         Include test-skeleton.c.
14284         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14285         (do_test): ... this.
14286         (TEST_FUNCTION): New macro.
14287         Include test-skeleton.c.
14288
14289         * elf/tst-audit9.c (main): Converted to ...
14290         (do_test): ... this.
14291         (TEST_FUNCTION): New macro.
14292         Include test-skeleton.c.
14293
14294 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14295
14296         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14297
14298 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14299
14300         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14301         New variable.
14302
14303 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14304
14305         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14306
14307 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14308
14309         * sysdeps/generic/dl-fileid.h: New file.
14310         * sysdeps/posix/dl-fileid.h: New file.
14311         * sysdeps/nacl/dl-fileid.h: New file.
14312         * include/link.h: Include <dl-fileid.h>.
14313         (struct link_map): Replace l_dev and l_ino with l_file_id.
14314         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14315         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14316         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14317
14318 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14319
14320         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14321
14322 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14323
14324         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14325         Add iff $CXX is set.
14326         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14327         Likewise.
14328         (tst-nodelete-zmodiff): Likewise.
14329         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14330
14331 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14332
14333         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14334
14335 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14336
14337         * sysdeps/aarch64/fpu/math_private.h
14338         (define math_opt_barrier): Add AArch64 version.
14339         (math_force_eval): Likewise.
14340
14341 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14342
14343         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14344
14345 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14346
14347         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14348         %ld with %jd and cast to intmax_t.
14349         (do_test_length_zero): Likewise.
14350
14351 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14352
14353         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14354
14355 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14356
14357         * sysdeps/tile/libm-test-ulps: Regenerated.
14358
14359         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14360         Comment out the whole function, not just its body.
14361
14362 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14363
14364         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14365         locks.
14366
14367         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14368
14369 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14370
14371         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14372         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14373
14374 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14375
14376         * sysdeps/nptl/futex-internal.h: New file.
14377         * sysdeps/nacl/futex-internal.h: New file.
14378         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14379         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14380         error checking.
14381         (setxid_unmark_thread): Likewise.
14382         (__nptl_setxid): Likewise.
14383         (__wait_lookup_done): Likewise.
14384         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14385         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14386         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14387         * nptl/pthread_once.c (clear_once_control): Likewise.
14388         (__pthread_once_slow): Likewise.
14389         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14390         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14391         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14392         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14393         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14394         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14395         Likewise.
14396         (__pthread_rwlock_rdlock): Likewise.
14397         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14398         Likewise.
14399         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14400         Likewise.
14401         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14402         Likewise.
14403         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14404         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14405         Likewise.
14406         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14407         __ASSUME_PRIVATE_FUTEX check.
14408         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14409         Check that shared futexes are supported.
14410         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14411         wrappers with error checking.
14412         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14413         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14414         * nptl/pthread_barrierattr_setpshared.c
14415         (pthread_barrierattr_setpshared): Check that shared futexes are
14416         supported.
14417         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14418         Likewise.
14419         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14420         Likewise.
14421         * nptl/sem_init.c (futex_private_if_supported): Remove.
14422         (__new_sem_init): Adapt and check that shared futexes are supported.
14423         * nptl/sem_open.c (sem_open): Likewise.
14424         * nptl/sem_post.c (futex_wake): Remove.
14425         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14426         (do_futex_wait): Use futex wrappers with error checking.
14427         * nptl/sem_wait.c: Include lowlevellock.h.
14428         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14429         Use futex_supports_pshared.
14430         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14431         Use futex wrappers with error checking.
14432         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14433         Likewise.
14434         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14435         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14436         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14437         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14438         (futex_wake): Likewise.
14439         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14440         (do_futex_wait): Use futex wrappers with error checking.
14441         (__new_sem_wait_slow): Update EINTR handling.
14442         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14443
14444 2015-07-09  Martin Sebor  <msebor@redhat.com>
14445
14446         [BZ #18435]
14447         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14448         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14449         * nptl/Makefile (test-xfail-tst-once5): Define.
14450
14451 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14452
14453         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14454         * elf/dl-minimal.c: For readability, reorder some definitions and
14455         introduce more page breaks.  Include <stdio.h>.
14456         (__libc_fatal): New function.
14457
14458         * include/unistd.h: Add rtld_hidden_proto for _exit.
14459         * posix/_exit.c: Add rtld_hidden_def.
14460         * sysdeps/mach/hurd/_exit.c: Likewise.
14461         * sysdeps/nacl/_exit.c: Likewise.
14462         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14463         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14464
14465 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14466
14467         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14468         bndmov encoding with zero displacement.
14469
14470 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14471             H.J. Lu  <hongjiu.lu@intel.com>
14472
14473         [BZ #18134]
14474         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14475         * sysdeps/i386/configure: Regenerated.
14476         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14477         (_dl_runtime_profile): Save and restore Intel MPX return bound
14478         registers when calling _dl_call_pltexit.  Add
14479         PRESERVE_BND_REGS_PREFIX before return.
14480         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14481         (LRV_BND1_OFFSET): Likewise.
14482         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14483         lrv_bnd1.
14484         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14485         typo in bndmov encoding.
14486         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14487         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14488         branch instructions to preserve bounds.
14489
14490 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14491
14492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14493         [GLIBC_2.22]: Add fmemopen.
14494
14495 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14496
14497         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14498         returns an error, also try to use host port from __mach_host_self for
14499         the __vm_wire call.
14500         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14501
14502 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14503
14504         [BZ #18400]
14505         [BZ #18648]
14506         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14507         Fix pr_uid and pr_gid members.
14508         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14509         definition to elf_greg_t.
14510
14511 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14512
14513         [BZ #18383]
14514         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14515         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14516         * sysdeps/arm/configure: Regenerated.
14517         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14518         (test-xfail-tst-tlsalign-static): Variable removed.
14519
14520         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14521         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14522         rather than explicit 'ln -s'.
14523
14524         * resolv/rpc/netdb.h: New file.
14525         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14526
14527 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14528
14529         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14530         length buffers.
14531         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14532         test-skeleton.c.
14533
14534         [BZ #6544]
14535         [BZ #11216]
14536         [BZ #12836]
14537         [BZ #13151]
14538         [BZ #13152]
14539         [BZ #14292]
14540         * include/stdio.h (fmemopen): Remove hidden prototype.
14541         (__fmemopen): Add new hidden prototype.
14542         * libio/Makefile: Add oldfmemopen object.
14543         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14544         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14545         compliance.
14546         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14547         symbol compatibility.
14548         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14549         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14550         fmemopen.
14551         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
14552         on append and read mode.
14553         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
14554         fmemopen.
14555         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
14556         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
14557         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
14558         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
14559         Likewise.
14560         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
14561         [GLIBC_2.22]: Likewise.
14562         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
14563         Likewise.
14564         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
14565         Likewise.
14566         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
14567         [GLIBC_2.22]: Likewise.
14568         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
14569         [GLIBC_2.22]: Likewise.
14570         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
14571         [GLIBC_2.22]: Likewise.
14572         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
14573         [GLIBC_2.22]: Likewise.
14574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
14575         [GLIBC_2.22]: Likewise.
14576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
14577         [GLIBC_2.22]: Likewise.
14578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
14579         [GLIBC_2.22]: Likewise.
14580         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
14581         Likewise.
14582         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
14583         Likewise.
14584         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
14585         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
14586         [GLIBC_2.22]: Likewise.
14587         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
14588         [GLIBC_2.22]: Likewise.
14589         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
14590         [GLIBC_2.22]: Likewise.
14591         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
14592         [GLIBC_2.22]: Likewise.
14593         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
14594         Likewise.
14595         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
14596         Likewise.
14597         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
14598         Likewise.
14599         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
14600         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
14601
14602 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14603
14604         [BZ #18643]
14605         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
14606         IPV6_PATHMTU, and IPV6_DONTFRAG.
14607
14608 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
14609
14610         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
14611         and _IO_UNBUFFERED.
14612         * libio/oldfileops.c: Likewise.
14613         * libio/wfileops.c: Likewise.
14614
14615 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14616
14617         * nscd/selinux.c: Delete selinux/flask.h include.
14618
14619 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14620
14621         [BZ #18641]
14622         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
14623         (putpwent): Likewise.
14624         (getpwnam): Likewise.
14625         (getpwent_r): Likewise.
14626         (getpwuid_r): Likewise.
14627         (getpwnam_r): Likewise.
14628         (fgetpwent_r): Likewise.
14629
14630 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14631
14632         [BZ #18557]
14633         * inet/rcmd.c (__validuser2_sa): Check user first to
14634         short-circuit host check.
14635
14636 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
14637             Mikhail Ilin  <m.ilin@samsung.com>
14638
14639         [BZ #17833]
14640         * elf/Makefile (tests): Add tst-nodelete.
14641         (modules-names): Add tst-nodelete-uniquemod.
14642         (tst-nodelete-uniquemod.so-no-z-defs): New.
14643         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
14644         (tst-nodelete-zmod.so-no-z-defs): Likewise.
14645         ($(objpfx)tst-nodelete): Likewise.
14646         ($(objpfx)tst-nodelete.out): Likewise.
14647         (LDFLAGS-tst-nodelete): Likewise.
14648         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
14649         * elf/dl-close.c (_dl_close_worker): Add a parameter to
14650         implement forced object deletion.
14651         (_dl_close): Pass false to _dl_close_worker.
14652         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
14653         * elf/tst-nodelete.cc: New file.
14654         * elf/tst-nodeletelib.cc: Likewise.
14655         * elf/tst-znodeletelib.cc: Likewise.
14656         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
14657
14658 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14659
14660         [BZ #18508]
14661         * stdlib/Makefile ($(objpfx)tst-makecontext3):
14662         Depend on $(libdl).
14663         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
14664         is not called infinitely times.
14665         (backtrace_helper): New function.
14666         (trace_arg): New struct.
14667         (st1): Enlarge stack size.
14668         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
14669         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
14670         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
14671         Likewise.
14672
14673 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14674
14675         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14676
14677 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14678
14679         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
14680         Include sys/types.h instead of bits/types.h.
14681         Remove inclusion of bits/wordsize.h.
14682
14683 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14684
14685         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
14686         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
14687         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
14688         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
14689         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
14690         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
14691
14692 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14693
14694         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
14695         link-defines.sym.
14696         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
14697         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
14698         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
14699         and LR_SIZE.
14700         * sysdeps/i386/link-defines.sym: New file.
14701
14702 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14703
14704         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
14705         (modules-names): Add tst-auditmod3a tst-auditmod3b.
14706         ($(objpfx)tst-audit3): New rule.
14707         ($(objpfx)tst-audit3.out): Likewise.
14708         * sysdeps/i386/tst-audit3.c: New file.
14709         * sysdeps/i386/tst-audit3.h: Likewise.
14710         * sysdeps/i386/tst-auditmod3a.c: Likewise.
14711         * sysdeps/i386/tst-auditmod3b.c: Likewise.
14712
14713 2015-07-07  Torvald Riegel  <triegel@redhat.com>
14714
14715         [BZ #18633]
14716         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
14717         pointer in C code.
14718         (__strcat_c): Likewise.
14719         (__strcat_g): Likewise.
14720
14721 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
14722
14723         [BZ #18592]
14724         * misc/sbrk.c: Set errno to ENOMEM on overflow.
14725
14726 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14727
14728         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
14729         New function.  (__ieee754_sqrtf): New function.
14730         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
14731         New function.
14732         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
14733         New function.
14734
14735 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14736
14737         * sysdeps/ieee754/support.c: Remove unused file.
14738
14739 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14740
14741         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
14742         registers instead of d ones so the layout is kernel abi compatible.
14743         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
14744         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
14745         Likewise.
14746
14747 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14748
14749         * sysdeps/aarch64/libm-test-ulps: Regenerated.
14750
14751 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14752
14753         [BZ #18619]
14754         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
14755         and return argument in case of subnormal argument.
14756
14757 2015-07-01  Martin Sebor  <msebor@redhat.com>
14758
14759         [BZ #18435]
14760         * nptl/Makefile: Add tst-once5.cc.
14761         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14762         Remove macro redefinitions.
14763         * nptl/tst-once5.cc: New test.
14764
14765 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14766
14767         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
14768
14769         * sysdeps/arm/libm-test-ulps: Regenerated.
14770
14771         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
14772         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14773
14774 2015-06-30  Torvald Riegel  <triegel@redhat.com>
14775
14776         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
14777         lll_lock_wait_private and lll_futex_wake probes.
14778
14779         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14780         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
14781         Likewise.
14782         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
14783         atomic_spin_nop.
14784         * sysdeps/x86_64/bits/atomic.h: Likewise.
14785         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
14786         to atomic_spin_nop and move ...
14787         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14788         ... here and ...
14789         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
14790         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
14791         atomic_spin_nop instead of BUSY_WAIT_NOP.
14792         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
14793         Likewise.
14794         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
14795         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14796         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
14797         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
14798         instead of atomic_delay.
14799
14800 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
14801
14802         [BZ #18613]
14803         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
14804         X_ADJ not X when adjusting exponent.
14805         (__ieee754_gamma_r): Do intermediate computations in
14806         round-to-nearest then adjust overflowing and underflowing results
14807         as needed.
14808         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
14809         of X_ADJ not X when adjusting exponent.
14810         (__ieee754_gammaf_r): Do intermediate computations in
14811         round-to-nearest then adjust overflowing and underflowing results
14812         as needed.
14813         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
14814         log of X_ADJ not X when adjusting exponent.
14815         (__ieee754_gammal_r): Do intermediate computations in
14816         round-to-nearest then adjust overflowing and underflowing results
14817         as needed.  Use 1.0L not 1.0f as numerator of division.
14818         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
14819         log of X_ADJ not X when adjusting exponent.
14820         (__ieee754_gammal_r): Do intermediate computations in
14821         round-to-nearest then adjust overflowing and underflowing results
14822         as needed.  Use 1.0L not 1.0f as numerator of division.
14823         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
14824         of X_ADJ not X when adjusting exponent.
14825         (__ieee754_gammal_r): Do intermediate computations in
14826         round-to-nearest then adjust overflowing and underflowing results
14827         as needed.  Use 1.0L not 1.0f as numerator of division.
14828         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
14829         to auto-libm-test-in.
14830         (tgamma_test): Use ALL_RM_TEST.
14831         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
14832         tests of tgamma with spurious-overflow.
14833         * math/auto-libm-test-out: Regenerated.
14834         * math/gen-libm-have-vector-test.sh: Do not check for START.
14835         * sysdeps/i386/fpu/libm-test-ulps: Update.
14836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14837
14838         [BZ #18612]
14839         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
14840         arguments, just return 0.5 times the argument, with underflow
14841         forced as needed.
14842         * math/auto-libm-test-in: Add more tests of j1.
14843         * math/auto-libm-test-out: Regenerated.
14844
14845         [BZ #16559]
14846         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
14847         (__ieee754_j1): Force underflow exception for small results.
14848         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14849         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
14850         (__ieee754_j1f): Force underflow exception for small results.
14851         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14852         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14853         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14854         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
14855         (__ieee754_j1l): Force underflow exception for small results.
14856         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14857         * math/auto-libm-test-in: Add more tests of j1 and jn.
14858         * math/auto-libm-test-out: Regenerated.
14859
14860         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
14861         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
14862         (PF_MPLS): Likewise.
14863         (AF_IB): Likewise.
14864         (AF_MPLS): Likewise.
14865         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
14866         value and macro.
14867         (MS_RMT_MASK): Include MS_LAZYTIME.
14868
14869 2015-06-26  Mel Gorman  <mgorman@suse.de>
14870
14871         [BZ #18502]
14872         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
14873         already minimal.
14874
14875 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
14876
14877         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
14878         (DT_MIPS_NUM): Update.
14879         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
14880         DT_MIPS_RLD_MAP_REL.
14881
14882 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
14883
14884         [BZ #16559]
14885         [BZ #18602]
14886         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
14887         round-to-nearest internally then recompute results that
14888         underflowed to zero in the original rounding mode.
14889         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14890         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14891         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14892         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14893         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
14894         * sysdeps/i386/fpu/libm-test-ulps: Update.
14895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14896
14897 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
14898
14899         * NEWS: Fixed description of link with vector math library.
14900
14901 2015-06-25  Andreas Schwab  <schwab@suse.de>
14902
14903         [BZ #18549]
14904         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
14905         * libio/test-fmemopen.c (do_test): Add test for it.
14906
14907 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14908
14909         [BZ #17841]
14910         * Makeconfig (no-pie-ldflag): New.
14911         (+link): Set to $(+link-pie) if default to PIE.
14912         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
14913         * config.make.in (build-pie-default): New.
14914         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
14915         is default.  AC_SUBST.
14916         * configure: Regenerated.
14917         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
14918
14919 2015-06-24  Roland McGrath  <roland@hack.frob.com>
14920
14921         * nptl/descr.h (struct pthread): Change type of field setxid_futex
14922         to 'unsigned int'.
14923
14924         * resolv/gai_misc.h (struct waitlist): Change type of field
14925         counterp to 'volatile unsigned int *'.
14926         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
14927         FUTEXADDR and OLDVAL.
14928         * resolv/getaddrinfo_a.c (getaddrinfo_a):
14929         Give local variable TOTAL type 'volatile unsigned int'.
14930         (struct async_waitlist): Change type of field counter to 'unsigned int'.
14931         * resolv/gai_suspend.c (gai_suspend):
14932         Give local variable CNTR type 'unsigned int'.
14933
14934         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
14935         counterp to 'volatile unsigned int *'.
14936         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
14937         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
14938         (aio_suspend): Give local variable CNTR type 'unsigned int'.
14939         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
14940         Give local variable TOTAL type 'volatile unsigned int'.
14941         (struct async_waitlist): Change type of field counter to 'unsigned int'.
14942
14943 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14944
14945         [BZ #18383]
14946         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
14947         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
14948         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
14949         comment for i386/x86-64.
14950         (test-xfail-tst-tlsalign-extern-static): Removed.
14951
14952 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
14953
14954         * math/test-double.h: New file.
14955         * math/test-float.h: Likewise.
14956         * math/test-ldouble.h: Likewise.
14957         * math/test-math-inline.h: Likewise.
14958         * math/test-math-no-inline.h: Likewise.
14959         * math/test-math-scalar.h: Likewise.
14960         * math/test-math-vector.h: Likewise.
14961         * math/test-vec-loop.h: Remove file.  Contents moved into
14962         test-math-vector.h.
14963         * math/libm-test.inc (MATHCONST): Do not document macro.
14964         * math/test-double.c: Include test-double.h, test-math-no-inline.h
14965         and test-math-scalar.h.
14966         (FUNC): Remove macro.
14967         (FUNC_TEST): Likewise.
14968         (FLOAT): Likewise.
14969         (MATHCONST): Likewise.
14970         (PRINTF_EXPR): Likewise.
14971         (PRINTF_XEXPR): Likewise.
14972         (PRINTF_NEXPR): Likewise.
14973         (TEST_DOUBLE): Likewise.
14974         (TEST_MATHVEC): Likewise.
14975         (__NO_MATH_INLINES): Likewise.
14976         * math/test-float.c: Include test-float.h, test-math-no-inline.h
14977         and test-math-scalar.h.
14978         (FUNC): Remove macro.
14979         (FUNC_TEST): Likewise.
14980         (FLOAT): Likewise.
14981         (MATHCONST): Likewise.
14982         (PRINTF_EXPR): Likewise.
14983         (PRINTF_XEXPR): Likewise.
14984         (PRINTF_NEXPR): Likewise.
14985         (TEST_FLOAT): Likewise.
14986         (TEST_MATHVEC): Likewise.
14987         (__NO_MATH_INLINES): Likewise.
14988         * math/test-idouble.c: Include test-double.h, test-math-inline.h
14989         and test-math-scalar.h.
14990         (FUNC): Remove macro.
14991         (FUNC_TEST): Likewise.
14992         (FLOAT): Likewise.
14993         (MATHCONST): Likewise.
14994         (PRINTF_EXPR): Likewise.
14995         (PRINTF_XEXPR): Likewise.
14996         (PRINTF_NEXPR): Likewise.
14997         (TEST_DOUBLE): Likewise.
14998         (TEST_MATHVEC): Likewise.
14999         (TEST_INLINE): Likewise.
15000         (__NO_MATH_INLINES): Likewise.
15001         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15002         test-math-scalar.h.
15003         (FUNC): Remove macro.
15004         (FUNC_TEST): Likewise.
15005         (FLOAT): Likewise.
15006         (MATHCONST): Likewise.
15007         (PRINTF_EXPR): Likewise.
15008         (PRINTF_XEXPR): Likewise.
15009         (PRINTF_NEXPR): Likewise.
15010         (TEST_FLOAT): Likewise.
15011         (TEST_MATHVEC): Likewise.
15012         (TEST_INLINE): Likewise.
15013         (__NO_MATH_INLINES): Likewise.
15014         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15015         and test-math-scalar.h.
15016         (FUNC): Remove macro.
15017         (FUNC_TEST): Likewise.
15018         (FLOAT): Likewise.
15019         (MATHCONST): Likewise.
15020         (PRINTF_EXPR): Likewise.
15021         (PRINTF_XEXPR): Likewise.
15022         (PRINTF_NEXPR): Likewise.
15023         (TEST_LDOUBLE): Likewise.
15024         (TEST_MATHVEC): Likewise.
15025         (TEST_INLINE): Likewise.
15026         (__NO_MATH_INLINES): Likewise.
15027         * math/test-ldouble.c: Include test-ldouble.h,
15028         test-math-no-inline.h and test-math-scalar.h.
15029         (FUNC): Remove macro.
15030         (FUNC_TEST): Likewise.
15031         (FLOAT): Likewise.
15032         (MATHCONST): Likewise.
15033         (PRINTF_EXPR): Likewise.
15034         (PRINTF_XEXPR): Likewise.
15035         (PRINTF_NEXPR): Likewise.
15036         (TEST_LDOUBLE): Likewise.
15037         (TEST_MATHVEC): Likewise.
15038         (__NO_MATH_INLINES): Likewise.
15039         * math/test-double-vlen2.h: Include test-double.h,
15040         test-math-no-inline.h and test-math-vector.h.
15041         (FLOAT): Remove macro.
15042         (FUNC): Likewise.
15043         (MATHCONST): Likewise.
15044         (PRINTF_EXPR): Likewise.
15045         (PRINTF_XEXPR): Likewise.
15046         (PRINTF_NEXPR): Likewise.
15047         (TEST_DOUBLE): Likewise.
15048         (TEST_MATHVEC): Likewise.
15049         (__NO_MATH_INLINES): Likewise.
15050         (CNCT): Likewise.
15051         (CONCAT): Likewise.
15052         (WRAPPER_NAME): Likewise.
15053         (WRAPPER_DECL): Likewise.
15054         (WRAPPER_DECL_ff): Likewise.
15055         (WRAPPER_DECL_fFF): Likewise.
15056         (VECTOR_WRAPPER): Likewise.
15057         (VECTOR_WRAPPER_ff): Likewise.
15058         (VECTOR_WRAPPER_fFF): Likewise.
15059         (VEC_LEN): New macro.
15060         * math/test-double-vlen4.h: Include test-double.h,
15061         test-math-no-inline.h and test-math-vector.h.
15062         (FLOAT): Remove macro.
15063         (FUNC): Likewise.
15064         (MATHCONST): Likewise.
15065         (PRINTF_EXPR): Likewise.
15066         (PRINTF_XEXPR): Likewise.
15067         (PRINTF_NEXPR): Likewise.
15068         (TEST_DOUBLE): Likewise.
15069         (TEST_MATHVEC): Likewise.
15070         (__NO_MATH_INLINES): Likewise.
15071         (CNCT): Likewise.
15072         (CONCAT): Likewise.
15073         (WRAPPER_NAME): Likewise.
15074         (WRAPPER_DECL): Likewise.
15075         (WRAPPER_DECL_ff): Likewise.
15076         (WRAPPER_DECL_fFF): Likewise.
15077         (VECTOR_WRAPPER): Likewise.
15078         (VECTOR_WRAPPER_ff): Likewise.
15079         (VECTOR_WRAPPER_fFF): Likewise.
15080         (VEC_LEN): New macro.
15081         * math/test-double-vlen8.h: Include test-double.h,
15082         test-math-no-inline.h and test-math-vector.h.
15083         (FLOAT): Remove macro.
15084         (FUNC): Likewise.
15085         (MATHCONST): Likewise.
15086         (PRINTF_EXPR): Likewise.
15087         (PRINTF_XEXPR): Likewise.
15088         (PRINTF_NEXPR): Likewise.
15089         (TEST_DOUBLE): Likewise.
15090         (TEST_MATHVEC): Likewise.
15091         (__NO_MATH_INLINES): Likewise.
15092         (CNCT): Likewise.
15093         (CONCAT): Likewise.
15094         (WRAPPER_NAME): Likewise.
15095         (WRAPPER_DECL): Likewise.
15096         (WRAPPER_DECL_ff): Likewise.
15097         (WRAPPER_DECL_fFF): Likewise.
15098         (VECTOR_WRAPPER): Likewise.
15099         (VECTOR_WRAPPER_ff): Likewise.
15100         (VECTOR_WRAPPER_fFF): Likewise.
15101         (VEC_LEN): New macro.
15102         * math/test-float-vlen4.h: Include test-float.h,
15103         test-math-no-inline.h and test-math-vector.h.
15104         (FLOAT): Remove macro.
15105         (FUNC): Likewise.
15106         (MATHCONST): Likewise.
15107         (PRINTF_EXPR): Likewise.
15108         (PRINTF_XEXPR): Likewise.
15109         (PRINTF_NEXPR): Likewise.
15110         (TEST_FLOAT): Likewise.
15111         (TEST_MATHVEC): Likewise.
15112         (__NO_MATH_INLINES): Likewise.
15113         (CNCT): Likewise.
15114         (CONCAT): Likewise.
15115         (WRAPPER_NAME): Likewise.
15116         (WRAPPER_DECL): Likewise.
15117         (WRAPPER_DECL_ff): Likewise.
15118         (WRAPPER_DECL_fFF): Likewise.
15119         (VECTOR_WRAPPER): Likewise.
15120         (VECTOR_WRAPPER_ff): Likewise.
15121         (VECTOR_WRAPPER_fFF): Likewise.
15122         (VEC_LEN): New macro.
15123         * math/test-float-vlen8.h: Include test-float.h,
15124         test-math-no-inline.h and test-math-vector.h.
15125         (FLOAT): Remove macro.
15126         (FUNC): Likewise.
15127         (MATHCONST): Likewise.
15128         (PRINTF_EXPR): Likewise.
15129         (PRINTF_XEXPR): Likewise.
15130         (PRINTF_NEXPR): Likewise.
15131         (TEST_FLOAT): Likewise.
15132         (TEST_MATHVEC): Likewise.
15133         (__NO_MATH_INLINES): Likewise.
15134         (CNCT): Likewise.
15135         (CONCAT): Likewise.
15136         (WRAPPER_NAME): Likewise.
15137         (WRAPPER_DECL): Likewise.
15138         (WRAPPER_DECL_ff): Likewise.
15139         (WRAPPER_DECL_fFF): Likewise.
15140         (VECTOR_WRAPPER): Likewise.
15141         (VECTOR_WRAPPER_ff): Likewise.
15142         (VECTOR_WRAPPER_fFF): Likewise.
15143         (VEC_LEN): New macro.
15144         * math/test-float-vlen16.h: Include test-float.h,
15145         test-math-no-inline.h and test-math-vector.h.
15146         (FLOAT): Remove macro.
15147         (FUNC): Likewise.
15148         (MATHCONST): Likewise.
15149         (PRINTF_EXPR): Likewise.
15150         (PRINTF_XEXPR): Likewise.
15151         (PRINTF_NEXPR): Likewise.
15152         (TEST_FLOAT): Likewise.
15153         (TEST_MATHVEC): Likewise.
15154         (__NO_MATH_INLINES): Likewise.
15155         (CNCT): Likewise.
15156         (CONCAT): Likewise.
15157         (WRAPPER_NAME): Likewise.
15158         (WRAPPER_DECL): Likewise.
15159         (WRAPPER_DECL_ff): Likewise.
15160         (WRAPPER_DECL_fFF): Likewise.
15161         (VECTOR_WRAPPER): Likewise.
15162         (VECTOR_WRAPPER_ff): Likewise.
15163         (VECTOR_WRAPPER_fFF): Likewise.
15164         (VEC_LEN): New macro.
15165         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15166         test-vec-loop.h.
15167         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15168         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15169         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15170         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15171         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15172         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15173         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15174
15175 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15176
15177         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15178         (__getlogin_r): ... this.
15179
15180 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15181
15182         [BZ #18594]
15183         * math/s_ccosh.c (__ccosh): Compare with least normal value
15184         instead of comparing class with FP_SUBNORMAL.
15185         * math/s_ccoshf.c (__ccoshf): Likewise.
15186         * math/s_ccoshl.c (__ccoshl): Likewise.
15187         * math/s_cexp.c (__cexp): Likewise.
15188         * math/s_cexpf.c (__cexpf): Likewise.
15189         * math/s_cexpl.c (__cexpl): Likewise.
15190         * math/s_csin.c (__csin): Likewise.
15191         * math/s_csinf.c (__csinf): Likewise.
15192         * math/s_csinh.c (__csinh): Likewise.
15193         * math/s_csinhf.c (__csinhf): Likewise.
15194         * math/s_csinhl.c (__csinhl): Likewise.
15195         * math/s_csinl.c (__csinl): Likewise.
15196         * math/s_ctan.c (__ctan): Likewise.
15197         * math/s_ctanf.c (__ctanf): Likewise.
15198         * math/s_ctanh.c (__ctanh): Likewise.
15199         * math/s_ctanhf.c (__ctanhf): Likewise.
15200         * math/s_ctanhl.c (__ctanhl): Likewise.
15201         * math/s_ctanl.c (__ctanl): Likewise.
15202         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15203         csin, csinh, ctan and ctanh.
15204         * math/auto-libm-test-out: Regenerated.
15205         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15206         * sysdeps/i386/fpu/libm-test-ulps: Update.
15207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15208
15209 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15210
15211         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15212         return value is wrong, print the expected value too.
15213
15214 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15215
15216         [BZ #18585]
15217         * elf/readlib.c (is_gdb_python_file): New.
15218         (process_file): Don't issue errors on filenames with -gdb.py
15219         suffix.
15220
15221 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15222
15223         * math/auto-libm-test-in: Add more tests of csin and csinh.
15224         * math/auto-libm-test-out: Regenerated.
15225         * math/libm-test.inc (csin_test_data): Remove tests moved to
15226         auto-libm-test-in.
15227         (csinh_test_data): Likewise.
15228
15229         [BZ #18593]
15230         * math/s_csin.c (__csin): Negate before rather than after possibly
15231         overflowing multiplication.
15232         * math/s_csinf.c (__csinf): Likewise.
15233         * math/s_csinh.c (__csinh): Likewise.
15234         * math/s_csinhf.c (__csinhf): Likewise.
15235         * math/s_csinhl.c (__csinhl): Likewise.
15236         * math/s_csinl.c (__csinl): Likewise.
15237         * math/auto-libm-test-in: Add some tests of csin and csinh.
15238         * math/auto-libm-test-out: Regenerated.
15239         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15240         (csinh_test_data): Likewise.
15241         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15242
15243         [BZ #18586]
15244         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15245         underflow exception for small results.
15246
15247 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15248
15249         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15250         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15251         variable and included header.
15252         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15253         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15254         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15255         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15256         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15257         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15258         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15259         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15260         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15261         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15262         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15263         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15264         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15265         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15266         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15267         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15268
15269 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15270
15271         [BZ #16526]
15272         [BZ #16538]
15273         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15274         (__sin): Force underflow exception for arguments with small
15275         absolute value.
15276         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15277         (__kernel_sinf): Force underflow exception for arguments with
15278         small absolute value.
15279         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15280         (__kernel_sincosl): Force underflow exception for arguments with
15281         small absolute value.
15282         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15283         (__kernel_sinl): Force underflow exception for arguments with
15284         small absolute value.
15285         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15286         (__kernel_sincosl): Force underflow exception for arguments with
15287         small absolute value.
15288         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15289         (__kernel_sinl): Force underflow exception for arguments with
15290         small absolute value.
15291         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15292         (__kernel_sinl): Force underflow exception for arguments with
15293         small absolute value.
15294         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15295         (__kernel_sinf): Force underflow exception for arguments with
15296         small absolute value.
15297         * math/auto-libm-test-in: Add more tests of sin and sincos.
15298         * math/auto-libm-test-out: Regenerated.
15299
15300         [BZ #18245]
15301         [BZ #18583]
15302         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15303         (__kernel_standard_l): Use feholdexcept and fesetenv around
15304         conversion to double instead of special-casing overflow and
15305         underflow.
15306         * math/libm-test.inc (fmod_test_data): Add more tests.
15307         (remainder_test_data): Likewise.
15308         (sqrt_test_data): Likewise.
15309
15310 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15311
15312         [BZ #17403]
15313         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15314         atomic_read_barrier, atomic_write_barrier): Define.
15315         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15316         atomic_read_barrier, atomic_write_barrier): Define.
15317
15318 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15319
15320         * math/Makefile [$(PERL) != no]
15321         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15322         dependency on libm-test.stmp below the inclusion of Rules.
15323
15324 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15325
15326         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15327         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15328         and included header.
15329         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15330         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15331         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15332         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15333         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15334         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15335         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15336         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15337         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15338         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15339         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15340         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15341         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15342         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15343         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15344         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15345         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15346         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15347         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15348
15349 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15350
15351         [BZ #18371]
15352         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15353         intermediate but not final result might underflow.
15354         * math/s_csqrtf.c (__csqrtf): Likewise.
15355         * math/s_csqrtl.c (__csqrtl): Likewise.
15356         * math/auto-libm-test-in: Add more tests of csqrt.
15357         * math/auto-libm-test-out: Regenerated.
15358         * sysdeps/i386/fpu/libm-test-ulps: Update.
15359
15360         [BZ #18219]
15361         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15362         threshold on absolute value of exponent for which scaling is used.
15363         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15364         * math/auto-libm-test-in: Add more tests of exp2.
15365         * math/auto-libm-test-out: Regenerated.
15366
15367 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15368
15369         [BZ #17977]
15370         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15371         when initializing interface list, based on the bug analysis
15372         and the patch proposed by Eric Newton.
15373         * resolv/tst-res_hconf_reorder.c: New test.
15374         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15375         tst-res_hconf_reorder.
15376         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15377         and $(shared-thread-library).
15378         (tst-res_hconf_reorder-ENV): New variable.
15379
15380         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15381         in comment.
15382
15383 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15384
15385         [BZ #16353]
15386         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15387         (__expm1): Force underflow exception for arguments with small
15388         absolute value.
15389         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15390         (__expm1f): Force underflow exception for arguments with small
15391         absolute value.
15392         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15393         (__expm1): Force underflow exception for arguments with small
15394         absolute value.
15395         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15396         (__expm1f): Force underflow exception for arguments with small
15397         absolute value.
15398         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15399         Check for small arguments before calling __expm1.
15400         * math/auto-libm-test-in: Do not mark underflow exceptions as
15401         possibly missing for bug 16353.
15402         * math/auto-libm-test-out: Regenerated.
15403
15404 2015-06-22  Andreas Schwab  <schwab@suse.de>
15405
15406         [BZ #18513]
15407         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15408         PTR queries.
15409
15410 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15411
15412         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15413
15414         * string/strcoll_l.c: Remove unused struct element idxnow.
15415
15416 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15417
15418         [BZ #18569]
15419         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15420         underflow and return argument in case of subnormal argument.
15421         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15422         Likewise.
15423         * math/auto-libm-test-in: Add more tests of expm1.
15424         * math/auto-libm-test-out: Regenerated.
15425
15426         [BZ #16361]
15427         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15428         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15429         tiny results.
15430         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15431         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15432         tiny results.
15433         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15434         mark underflow exceptions as possibly missing for bug 16361.
15435         * math/auto-libm-test-out: Regenerated.
15436
15437 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15438
15439         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15440         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15441         Remove variable.
15442         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15443         (test-xfail-XOPEN2K8/utmpx.h/conform).
15444
15445         * conform/conformtest.pl ($xerrors): New variable.
15446         (note_error): New function.
15447         (compiletest): New argument $xfail.  Use not_error.
15448         (runtest): Likewise.
15449         (top level): Handle xfail- lines.  Update calls to compiletest and
15450         runtest.  Handle xfail- and optional- in headers listed with
15451         allow-header.
15452         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15453         (O_EXEC): Likewise.
15454         (O_SEARCH): Likewise.
15455         * conform/data/stropts.h-data (ioctl): Likewise.
15456         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15457         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15458         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15459         (msghdr.msg_controllen): Likewise.
15460         (cmsghdr.cmsg_len): Likewise.
15461         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15462         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15463         variable.
15464         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15465         (test-xfail-XPG4/stropts.h/conform): Likewise.
15466         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15467         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15468         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15469         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15470         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15471         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15472         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15473         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15474         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15475         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15476         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15477         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15478         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15479         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15480         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15481         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15482         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15483         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15484         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15485
15486 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15487
15488         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15489         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15490         definitions for proper unfolding of __MATHDECL_VEC.
15491
15492 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15493
15494         * benchtests/bench-strcoll.c:
15495         Include string.h.
15496         (main): Remove unused variable res.
15497
15498 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15499
15500         * timezone/Makefile (%/UTC %/Universal):
15501         Generate test-result files for UTC and Universal.
15502
15503 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15504
15505         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15506
15507 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15508
15509         [BZ #16350]
15510         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15511         for arguments with small absolute value.
15512         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15513         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15514         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15515         (__asinh): Force underflow exception for arguments with small
15516         absolute value.
15517         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15518         (__asinhf): Force underflow exception for arguments with small
15519         absolute value.
15520         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15521         (__asinhl): Force underflow exception for arguments with small
15522         absolute value.
15523         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15524         (__asinhl): Force underflow exception for arguments with small
15525         absolute value.
15526         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15527         (__asinhl): Force underflow exception for arguments with small
15528         absolute value.
15529         * math/auto-libm-test-in: Do not mark underflow exceptions as
15530         possibly missing for bug 16350.
15531         * math/auto-libm-test-out: Regenerated.
15532
15533         * include/bits/ipc.h: Remove file.
15534         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15535         variable.
15536         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15537         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15538         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15539         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15540         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15541         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15542         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15543         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15544         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15545
15546         * math/auto-libm-test-in: Remove spurious underflow allowance for
15547         tests of cexp.
15548         * math/auto-libm-test-out: Regenerated.
15549
15550         [BZ #18558]
15551         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
15552         unconditional definition.
15553         (MCAST_BLOCK_SOURCE): Likewise.
15554         (MCAST_UNBLOCK_SOURCE): Likewise.
15555         (MCAST_LEAVE_GROUP): Likewise.
15556         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15557         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15558         (MCAST_MSFILTER): Likewise.
15559         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
15560         Remove variable.
15561         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
15562         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
15563         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
15564         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
15565         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
15566
15567 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
15568
15569         * NEWS: Mention addition of x86_64 vector sincosf.
15570         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
15571         * math/test-float-vlen4.h: Likewise.
15572         * math/test-float-vlen8.h: Likewise.
15573         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15574         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
15575         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15576         * sysdeps/x86_64/fpu/Versions: New versions added.
15577         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15578         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15579         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15580         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
15581         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
15582         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
15583         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
15584         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
15585         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
15586         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
15587         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
15588         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
15589         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
15590         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
15591         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
15592         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
15593         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
15594         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15595         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15596         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15597         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15598         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15599         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15600         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15601
15602         * NEWS: Mention addition of x86_64 vector sincos.
15603         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
15604         * math/math.h (__MATHDECL_VEC): New macro.
15605         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
15606         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
15607         declaration under condition.
15608         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
15609         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
15610         TEST_VEC_LOOP change.
15611         * math/test-double-vlen4.h: Likewise.
15612         * math/test-double-vlen8.h: Likewise.
15613         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
15614         * math/test-float-vlen4.h: Likewise.
15615         * math/test-float-vlen8.h: Likewise.
15616         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15617         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
15618         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15619         * sysdeps/x86_64/fpu/Versions: New versions added.
15620         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15621         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15622         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15623         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
15624         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
15625         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
15626         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
15627         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
15628         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
15629         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
15630         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
15631         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
15632         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
15633         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
15634         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
15635         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
15636         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
15637         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15638         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15639         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15640         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15641         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15642         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15643         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15644
15645         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15646         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15647         redirections for powf.
15648         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15649         * sysdeps/x86_64/fpu/Versions: New versions added.
15650         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15651         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15652         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15653         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
15654         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
15655         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
15656         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
15657         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
15658         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
15659         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
15660         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
15661         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
15662         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
15663         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
15664         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
15665         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
15666         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
15667         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15668         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15669         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15670         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15671         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15672         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15673         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15674         * math/test-float-vlen16.h: Fixed 2 argument macro.
15675         * math/test-float-vlen4.h: Likewise.
15676         * math/test-float-vlen8.h: Likewise.
15677         * NEWS: Mention addition of x86_64 vector powf.
15678
15679 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
15680
15681         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15682         and redefine.
15683         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15684         and redefine.
15685         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
15686         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
15687         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15688
15689         [BZ #18553]
15690         * resource/getpriority.c (getpriority): Rename to __getpriority
15691         and define as weak alias of __getpriority.
15692         * resource/setpriority.c (setpriority): Rename to __setpriority
15693         and define as weak alias of __setpriority.
15694         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
15695         __getpriority and define as weak alias of __getpriority.
15696         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
15697         __setpriority and define as weak alias of __setpriority.
15698         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
15699         strong name.
15700         (setpriority): Use __setpriority as strong name.
15701         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
15702         __getpriority and define as weak alias of __getpriority.
15703         * include/sys/resource.h (__getpriority): Declare.  Use
15704         libc_hidden_proto.
15705         (__setpriority): Likewise.
15706         (getpriority): Don't use libc_hidden_proto.
15707         (setpriority): Likewise.
15708         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
15709         getpriority.  Call __setpriority instead of setpriority.
15710         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
15711         Remove variable.
15712
15713         [BZ #18547]
15714         * misc/getttyent.c (getttynam): Rename to __getttynam and define
15715         as weak alias of __getttynam.  Use prototype function definition.
15716         Call __setttyent, __getttyent and __endttyent instead of
15717         setttyent, getttyent and endttyent.
15718         (getttyent): Rename to __getttyent and define as weak alias of
15719         __getttyent.  Call __setttyent instead of setttyent.  Call
15720         __fgets_unlocked instead of fgets_unlocked.
15721         (setttyent): Rename to __setttyent and define as weak alias of
15722         __setttyent.
15723         (endttyent): Rename to __endttyent and define as weak alias of
15724         __endttyent.
15725         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
15726         (__setttyent): Likewise.
15727         (__endttyent): Likewise.
15728         (getttyent): Don't use libc_hidden_proto.
15729         (setttyent): Likewise.
15730         (endttyent): Likewise.
15731         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
15732         __endttyent instead of setttyent, getttyent and endttyent.
15733         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
15734         Remove variable.
15735
15736         [BZ #18546]
15737         * socket/recv.c (__recv): Use libc_hidden_def.
15738         * socket/socket.c (__socket): Likewise.
15739         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
15740         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
15741         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
15742         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
15743         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
15744         libc_hidden_def.
15745         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
15746         libc_hidden_weak.
15747         * include/sys/socket.h (__socket): Do not use attribute_hidden.
15748         Use libc_hidden_proto.
15749         (__recv): Likewise.
15750         * socket/Versions (libc): Export __recv and __socket at version
15751         GLIBC_PRIVATE.
15752         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
15753         instead of recv.
15754         (init_mq_netlink): Call __socket instead of socket.
15755         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
15756         Remove variable.
15757
15758         [BZ #18545]
15759         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
15760         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
15761         hidden_weak.
15762         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
15763         define as alias of __mq_timedsend.  Use hidden_weak.
15764         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
15765         __mq_timedsend as strong name.
15766         (mq_timedreceive): Use __mq_timedreceive as strong name.
15767         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
15768         (__mq_timedreceive): Likewise.
15769         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
15770         __mq_timedreceive instead of mq_timedreceive.
15771         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
15772         instead of mq_timedsend.
15773         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
15774         Remove variable.
15775
15776         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
15777         hidden_def and hidden_weak instead of libc_hidden_def and
15778         libc_hidden_weak.
15779         (top level): Refer to hidden_def in comment.
15780         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
15781         macro.  Use it instead of libc_hidden_def.
15782         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
15783         specify __GI_* name explicitly.
15784         (mq_timedreceive): Likewise.
15785         (mq_setattr): Likewise.
15786
15787         [BZ #18544]
15788         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
15789         __pthread_barrier_init and define as weak alias of
15790         __pthread_barrier_init.
15791         * sysdeps/sparc/nptl/pthread_barrier_init.c
15792         (pthread_barrier_init): Likewise.
15793         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
15794         __pthread_barrier_wait and define as weak alias of
15795         __pthread_barrier_wait.
15796         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15797         (pthread_barrier_wait): Likewise.
15798         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15799         (pthread_barrier_wait): Likewise.
15800         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
15801         (pthread_barrier_wait): Likewise.
15802         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
15803         (pthread_barrier_wait): Likewise.
15804         * nptl/Versions (libpthread): Export __pthread_barrier_init and
15805         __pthread_barrier_wait at version GLIBC_PRIVATE.
15806         * include/pthread.h (__pthread_barrier_init): Declare.
15807         (__pthread_barrier_wait): Likewise.
15808         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
15809         Call __pthread_barrier_wait instead of pthread_barrier_wait.
15810         (helper_thread): Likewise.
15811         (init_mq_netlink): Call __pthread_barrier_init instead of
15812         pthread_barrier_init.
15813
15814         [BZ #18542]
15815         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
15816         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
15817         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
15818         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
15819         vswscanf.
15820         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
15821         Remove variable.
15822
15823         [BZ #18540]
15824         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
15825         strong alias of _IO_fflush.  Use libc_hidden_def.
15826         * libio/iofflush_u.c (fflush_unlocked): Rename to
15827         __fflush_unlocked and define as weak alias of __fflush_unlocked.
15828         Use libc_hidden_weak.
15829         * include/stdio.h (__fflush_unlocked): Declare.  Use
15830         libc_hidden_proto.
15831         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
15832         fflush_unlocked.
15833         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
15834         Remove variable.
15835
15836         [BZ #18539]
15837         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
15838         define as weak alias of __addseverity.
15839         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
15840         Remove variable.
15841         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
15842         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
15843         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
15844
15845         [BZ #18536]
15846         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
15847         (__tfind): Likewise.
15848         (__tdelete): Likewise.
15849         (__twalk): Likewise.
15850         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
15851         __twalk to GLIBC_PRIVATE.
15852         * include/search.h (__tsearch): Use libc_hidden_proto.
15853         (__tfind): Likewise.
15854         (__tdelete): Likewise.
15855         (__twalk): Likewise.
15856         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
15857         Call __tdelete instead of tdelete.
15858         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
15859         tfind.  Call __tsearch instead of tsearch.
15860         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
15861         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
15862         Remove variable.
15863         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
15864
15865         [BZ #18534]
15866         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
15867         (dprintf): Define as a weak alias of __dprintf, not a strong
15868         alias.
15869         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
15870         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
15871         dprintf.
15872         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
15873         Remove variable.
15874         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
15875         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
15876
15877         [BZ #18533]
15878         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
15879         not a strong alias.
15880         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
15881         Remove variable.
15882
15883         [BZ #18532]
15884         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
15885         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
15886         (in6addr_loopback): Rename to __in6addr_loopback and define as
15887         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
15888         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
15889         libc_hidden_proto.
15890         (__in6addr_any): Likewise.
15891         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
15892         in6addr_any.
15893         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
15894         variable.
15895         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
15896
15897 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
15898
15899         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
15900         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
15901         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
15902         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15903         redirections for pow.
15904         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15905         * sysdeps/x86_64/fpu/Versions: New versions added.
15906         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15907         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
15908         build of SSE, AVX2 and AVX512 IFUNC versions.
15909         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
15910         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
15911         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
15912         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
15913         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
15914         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
15915         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
15916         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
15917         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
15918         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
15919         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
15920         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
15921         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
15922         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
15923         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15924         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15925         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15926         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15927         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15928         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15929         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15930         * NEWS: Mention addition of x86_64 vector pow.
15931
15932         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15933         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15934         redirections for expf.
15935         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15936         * sysdeps/x86_64/fpu/Versions: New versions added.
15937         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15938         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
15939         build of SSE, AVX2 and AVX512 IFUNC versions.
15940         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
15941         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
15942         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
15943         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
15944         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
15945         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
15946         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
15947         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
15948         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
15949         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
15950         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
15951         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
15952         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
15953         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15954         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15955         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15956         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15957         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15958         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15959         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15960         * NEWS: Mention addition of x86_64 vector expf.
15961
15962         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
15963         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
15964         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
15965         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15966         redirections for exp.
15967         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15968         * sysdeps/x86_64/fpu/Versions: New versions added.
15969         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15970         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
15971         build of SSE, AVX2 and AVX512 IFUNC versions.
15972         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
15973         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
15974         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
15975         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
15976         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
15977         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
15978         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
15979         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
15980         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
15981         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
15982         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
15983         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
15984         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
15985         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15986         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15987         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15988         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15989         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15990         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15991         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15992         * NEWS: Mention addition of x86_64 vector exp.
15993
15994         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15995         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15996         redirections for logf.
15997         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15998         * sysdeps/x86_64/fpu/Versions: New versions added.
15999         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16000         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16001         build of SSE, AVX2 and AVX512 IFUNC versions.
16002         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16003         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16004         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16005         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16006         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16007         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16008         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16009         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16010         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16011         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16012         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16013         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16014         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16015         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16016         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16017         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16018         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16019         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16020         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16021         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16022         * NEWS: Mention addition of x86_64 vector logf.
16023
16024         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16025         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16026         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16027         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16028         redirections for log.
16029         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16030         * sysdeps/x86_64/fpu/Versions: New versions added.
16031         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16032         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16033         build of SSE, AVX2 and AVX512 IFUNC versions.
16034         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16035         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16036         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16037         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16038         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16039         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16040         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16041         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16042         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16043         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16044         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16045         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16046         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16047         test.
16048         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16049         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16050         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16051         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16052         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16053         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16054         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16055         * NEWS: Mention addition of x86_64 vector log.
16056
16057 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16058
16059         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16060         cfi_adjust_cfa_offset argument.
16061         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16062         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16063
16064         [BZ #18034]
16065         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16066         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16067         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16068         ordering using ldar.
16069         (_dl_tlsdesc_dynamic): Likewise.
16070         (_dl_tlsdesc_return_lazy): Likewise.
16071         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16072         relaxed atomics instead of volatile and synchronize with release store.
16073         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16074         volatile.
16075         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16076
16077 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16078
16079         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16080         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16081         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16082         * sysdeps/x86_64/fpu/Versions: New versions added.
16083         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16084         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16085         build of SSE, AVX2 and AVX512 IFUNC versions.
16086         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16087         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16088         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16089         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16090         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16091         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16092         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16093         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16094         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16095         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16096         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16097         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16098         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16099         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16100         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16101         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16102         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16103         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16104         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16105         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16106         * NEWS: Mention addition of x86_64 vector sinf.
16107
16108 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16109
16110         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16111         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16112         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16113         Remove variable.
16114         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16115         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16116
16117 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16118
16119         [BZ #18530]
16120         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16121         strong alias of _IO_fputs.  Use libc_hidden_def.
16122         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16123         and define as weak alias of __fputs_unlocked.  Use
16124         libc_hidden_weak.
16125         * include/stdio.h (__fputs_unlocked): Declare.  Use
16126         libc_hidden_proto.
16127         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16128         fputs_unlocked.
16129
16130         [BZ #18529]
16131         * resolv/netdb.h [__USE_POSIX]: Change condition to
16132         [__USE_XOPEN2K].
16133         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16134         not expect.
16135         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16136         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16137         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16138         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16139         [XPG4 || UNIX98] (AI_ALL): Likewise.
16140         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16141         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16142         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16143         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16144         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16145         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16146         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16147         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16148         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16149         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16150         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16151         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16152         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16153         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16154         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16155         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16156         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16157         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16158         [XPG4 || UNIX98] (gai_strerror): Likewise.
16159         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16160         [XPG4 || UNIX98] (getnameinfo): Likewise.
16161
16162         [BZ #18528]
16163         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16164         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16165         __USE_XOPEN2K8].
16166         (getgrent): Likewise.
16167         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16168         expect.
16169         [XPG3 || POSIX2008] (endgrent): Likewise.
16170         [XPG3] (setgrent): Likewise.
16171         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16172         variable.
16173         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16174
16175         [BZ #18527]
16176         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16177         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16178         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16179         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16180         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16181         * include/unistd.h (__getlogin_r): Declare.  Use
16182         libc_hidden_proto.
16183         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16184         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16185         variable.
16186         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16187         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16188         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16189
16190 2015-06-12  Martin Sebor  <msebor@redhat.com>
16191
16192         [BZ #18512]
16193         * Makerules (check-install-supported): New target.
16194         (install): Add check-install-supported as a dependency.
16195         * manual/install.texi (Installing the C Library): Document
16196         that overriding prefix and exec_prefix is not supported.
16197         Mention DESTDIR.
16198         * INSTALL: Regenerate from the above.
16199
16200 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16201
16202         [BZ #18519]
16203         * posix/Versions (libc): Export __libc_pread at version
16204         GLIBC_PRIVATE.
16205         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16206         instead of pread.
16207         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16208         variable.
16209
16210         [BZ #18522]
16211         * misc/efgcvt_r.c
16212         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16213         (cvt_symbol): Use weak_alias instead of strong_alias.
16214         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16215         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16216         Remove variable.
16217         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16218         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16219
16220         [BZ #18520]
16221         * inet/herrno.c (h_errno): Rename to __h_errno.
16222         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16223         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16224         to __h_errno instead of h_errno.
16225         * nptl/herrno.c (h_errno): Rename to __h_errno.
16226         (__h_errno_location): Refer to __h_errno not h_errno.
16227         * resolv/Versions (h_errno): Rename to __h_errno.
16228         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16229         Remove variable.
16230         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16231
16232 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16233
16234         * configure.ac: More strict check for AVX512 assembler support.
16235         * configure: Regenerated.
16236
16237         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16238         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16239         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16240         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16241         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16242         * sysdeps/x86_64/fpu/Versions: New versions added.
16243         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16244         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16245         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16246         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16247         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16248         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16249         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16250         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16251         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16252         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16253         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16254         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16255         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16256         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16257         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16258         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16259         test.
16260         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16261         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16262         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16263         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16264         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16265         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16266         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16267         * NEWS: Mention addition of x86_64 vector sin.
16268
16269 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16270
16271         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16272         comment.
16273
16274 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16275
16276         [BZ #18479]
16277         * nptl/pt-interp.c: New file.
16278         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16279         Add pt-interp.
16280         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16281         $(common-objpfx)runtime-linker.h.
16282
16283 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16284
16285         * Makeconfig (+interp): Remove unused variable.
16286         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16287         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16288         $(elf-objpfx)runtime-linker.h.
16289         ($(elf-objpfx)runtime-linker.h): Rename to
16290         $(common-objpfx)runtime-linker.h and move ...
16291         * Makerules [$(build-shared) = yes]: ... here.
16292         * elf/interp.c: Include <runtime-linker.h> instead of
16293         <elf/runtime-linker.h>.
16294
16295 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16296
16297         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16298         (__gettimeofday_syscall): Remove vsyscall fallback.
16299         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16300         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16301         Add syscall fallback function.
16302         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16303         if vDSO is not present.
16304         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16305         fallback function.
16306         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16307         present.
16308         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16309         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16310
16311 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16312
16313         [BZ #18497]
16314         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16315         of wcscmp.
16316         (wcscmp): Define as weak alias of WCSCMP.
16317         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16318         wcscoll.
16319         (USE_HIDDEN_DEF): Define.
16320         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16321         __wcscoll.  Don't use libc_hidden_weak.
16322         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16323         wcscmp.
16324         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16325         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16326         __GI_wcscmp.
16327         (weak_alias): Undefine and redefine.
16328         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16329         __wcscmp and define as weak alias of __wcscmp.
16330         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16331         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16332         (__wcscoll): Likewise.
16333         (wcscmp): Don't use libc_hidden_proto.
16334         (wcscoll): Likewise.
16335         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16336         wcscoll.
16337         * posix/regexec.c (check_node_accept_bytes): Likewise.
16338         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16339         variable.
16340         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16341         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16342
16343         [BZ #18507]
16344         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16345         __fstatvfs and define as weak alias of __fstatvfs.  Use
16346         libc_hidden_weak.
16347         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16348         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16349         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16350         Define as alias of __fstatvfs, not fstatvfs.
16351         (fstatvfs64): Likewise.
16352         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16353         Define as alias of __statvfs, not statvfs.
16354         (statvfs64): Likewise.
16355         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16356         Remove variable.
16357
16358 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16359
16360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16361         (HAVE_GETCPU_VSYSCALL): Define.
16362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16363         (HAVE_GETCPU_VSYSCALL): Likewise.
16364         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16365         * sysdeps/unix/sysv/linux/sched_getcpu.c
16366         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16367         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16368         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16369         prototype.
16370         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16371         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16372         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16373         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16374         Define.
16375         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16376         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16377         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16378         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16379
16380 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16381
16382         * sysdeps/x86_64/fpu/Makefile: New file.
16383         * sysdeps/x86_64/fpu/Versions: New file.
16384         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16385         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16386         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16387         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16388         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16389         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16390         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16391         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16392         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16393         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16394         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16395         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16396         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16397         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16398         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16399         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16400         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16401         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16402         * sysdeps/x86_64/configure: Regenerated.
16403         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16404         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16405         * manual/install.texi (Configuring and compiling): Document
16406         --disable-mathvec.
16407         * INSTALL: Regenerated.
16408         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16409
16410         * math/Makefile: Added rules for vector tests.
16411         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16412         declaration under condition.
16413         * math/test-double-vlen2.h: New file.
16414         * math/test-double-vlen4.h: New file.
16415         * math/test-double-vlen8.h: New file.
16416         * math/test-vec-loop.h: Added initialization macro.
16417         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16418         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16419         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16420         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16421         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16422         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16423         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16424         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16425         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16426         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16427         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16428
16429         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16430         * sysdeps/x86_64/fpu/Versions: New versions added.
16431         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16432         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16433         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16434         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16435         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16436         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16437         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16438         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16439         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16440         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16441         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16442         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16443         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16444         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16445         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16446         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16447         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16448         * NEWS: Mention addition of x86_64 vector cosf.
16449
16450         * math/Makefile: Added CFLAGS for new tests.
16451         * math/test-float-vlen16.h: New file.
16452         * math/test-float-vlen4.h: New file.
16453         * math/test-float-vlen8.h: New file.
16454         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16455         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16456         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16457         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16458         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16459         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16460         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16461         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16462         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16463         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16464         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16465
16466 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16467
16468         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16469         * locale/programs/ld-ctype.c: Likewise.
16470
16471 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16472
16473         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16474         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16475         bit_ZMM16_31_state): New macro.
16476         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16477         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16478
16479 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16480
16481         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16482
16483 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16484
16485         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16486
16487 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16488
16489         [BZ #18498]
16490         * libio/memstream.c (open_memstream): Rename to __open_memstream
16491         and define as weak alias of __open_memstream.
16492         * include/stdio.h (__open_memstream): Declare.  Use
16493         libc_hidden_proto.
16494         (open_memstream): Don't use libc_hidden_proto.
16495         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16496         open_memstream.
16497         * posix/getopt.c (_getopt_internal_r): Likewise.
16498         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16499         variable.
16500         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16501         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16502         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16503
16504         [BZ #18496]
16505         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16506         instead of wcrtomb.
16507
16508         [BZ #18483]
16509         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16510         [__USE_XOPEN2K8].  Remove redundant #endif.
16511         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16512         Remove redundant #if.
16513         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16514         Remove variable.
16515         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16516         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16517
16518         [BZ #18495]
16519         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16520         (__iswlower): Likewise.
16521         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16522         (__iswlower): Likewise.
16523         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16524         instead of towlower.
16525         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16526         instead of iswlower.  Call __towupper instead of towupper.
16527         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16528         instead of iswalnum.
16529
16530 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16531
16532         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16533         errors to stderr.
16534
16535 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16536
16537         [BZ #15661]
16538         [BZ #17322]
16539         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16540         Check for overflow properly.  Check for O_APPEND.  Ignore large
16541         file system block sizes.  Add comments about problems.
16542         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16543         * manual/filesys.texi (Storage Allocation): New node.
16544
16545 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16546
16547         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16548         cancellable syscalls.
16549         (SYS_ify): Add guard to no redefine it.
16550         (INLINE_SYSCALL): Likewise.
16551         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
16552         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
16553         SYSCALL_CANCEL instead.
16554         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
16555         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
16556         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
16557         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
16558         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
16559         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
16560         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
16561         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
16562         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
16563         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
16564         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
16565         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
16566         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
16567         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
16568         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
16569         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
16570         Likewise.
16571         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
16572         (__libc_pread64): Likewise.
16573         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
16574         (__libc_preadv): Likewise.
16575         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
16576         (__libc_readv64): Likewise.
16577         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
16578         (__libc_pwrite): Likewise.
16579         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
16580         (__libc_pwrite64): Likewise.
16581         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
16582         (__libc_pwritev): Likewise.
16583         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
16584         (__libc_pwritev64): Likewise.
16585         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
16586         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
16587         (sync_file_range): Likewise.
16588         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
16589         Likewise.
16590         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
16591         Likewise.
16592         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
16593         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
16594         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
16595         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
16596         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
16597         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
16598         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
16599         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
16600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
16601         Likewise.
16602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
16603         (__libc_read64): Likewise.
16604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
16605         Likewise.
16606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
16607         Likewise.
16608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
16609         Likewise.
16610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
16611         Likewise.
16612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
16613         (__libc_pread64): Likewise.
16614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
16615         Likewise.
16616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
16617         (__libc_pwrite64): Likewise.
16618         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
16619         (sync_file_range): Likewise.
16620         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
16621         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
16622         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
16623         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
16624         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
16625         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
16626         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
16627         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
16628         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
16629         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
16630         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16631         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
16632         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
16633         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
16634         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
16635         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
16636         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
16637         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16638         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
16639         Likewise.
16640         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
16641         Likewise.
16642         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
16643         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
16644         Likewise.
16645         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
16646         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
16647         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
16648         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
16649         Likewise.
16650         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
16651         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
16652         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
16653         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
16654         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
16655
16656 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
16657
16658         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
16659         Include dl-vdso.
16660         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
16661         Use VDSO routines for gettimeofday, clock_gettime if
16662         available.
16663         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
16664         Declare VDSO symbols.
16665         * sysdeps/unix/sysv/linux/arm/sysdep.h:
16666         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
16667         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
16668         * sysdeps/unix/sysv/linux/arm/Versions: Add
16669         __vdso_clock_gettime.
16670
16671 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16672
16673         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
16674         be an inline implementation regardless of library is built within.
16675         (open_not_cancel_2): Likewise.
16676         (__read_nocancel): Likewise.
16677         (__write_nocancel): Likewise.
16678         (openat_not_cancel): Likewise.
16679         (openat_not_cancel_3): Likewise.
16680         (openat64_not_cancel): Likewise.
16681         (openat64_not_cancel_3): Likewise.
16682         (__close_nocancel): Likewise.
16683         (pause_not_cancel): Likewise.
16684         (nanosleep_not_cancel): Likewise.
16685         (sigsuspend_not_cancel): Likewise.
16686
16687 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16688
16689         [BZ #14958]
16690         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
16691         wake-up.
16692         (__pthread_rwlock_rdlock_slow): Likewise.
16693         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
16694         Likewise.
16695         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
16696         Likewise.
16697         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
16698         * nptl/tst-rwlock16.c: New file.
16699         * nptl/Makefile (tests): Add new test.
16700
16701 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16702
16703         [BZ #18324]
16704         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
16705         missing wake-up of readers.
16706         * nptl/tst-rwlock15.c: New file.
16707         * nptl/Makefile (tests): Add new test.
16708
16709 2015-06-03  Roland McGrath  <roland@hack.frob.com>
16710
16711         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
16712         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
16713         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
16714         and __nacl_supply_interface_rtld.
16715         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
16716         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
16717         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
16718         Add __nacl_supply_interface_rtld.
16719         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
16720
16721 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16722
16723         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
16724         isfinite.
16725         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16726         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
16727
16728 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16729
16730         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
16731         __signbit* with standard C99 macros.
16732         * math/e_exp10l.c: Likewise.
16733         * math/e_exp2l.c: Likewise.
16734         * math/e_scalb.c: Likewise.
16735         * math/e_scalbf.c: Likewise.
16736         * math/e_scalbl.c: Likewise.
16737         * math/s_ldexp.c: Likewise.
16738         * math/s_ldexpf.c: Likewise.
16739         * math/s_ldexpl.c: Likewise.
16740         * math/w_atan2.c: Likewise.
16741         * math/w_atan2f.c: Likewise.
16742         * math/w_atan2l.c: Likewise.
16743         * math/w_cosh.c: Likewise.
16744         * math/w_coshf.c: Likewise.
16745         * math/w_coshl.c: Likewise.
16746         * math/w_exp10.c: Likewise.
16747         * math/w_exp10f.c: Likewise.
16748         * math/w_exp10l.c: Likewise.
16749         * math/w_exp2.c: Likewise.
16750         * math/w_exp2f.c: Likewise.
16751         * math/w_exp2l.c: Likewise.
16752         * math/w_fmod.c: Likewise.
16753         * math/w_fmodf.c: Likewise.
16754         * math/w_fmodl.c: Likewise.
16755         * math/w_hypot.c: Likewise.
16756         * math/w_hypotf.c: Likewise.
16757         * math/w_hypotl.c: Likewise.
16758         * math/w_jnl.c: Likewise.
16759         * math/w_lgamma.c: Likewise.
16760         * math/w_lgamma_r.c: Likewise.
16761         * math/w_lgammaf.c: Likewise.
16762         * math/w_lgammaf_r.c: Likewise.
16763         * math/w_lgammal.c: Likewise.
16764         * math/w_lgammal_r.c: Likewise.
16765         * math/w_pow.c: Likewise.
16766         * math/w_powf.c: Likewise.
16767         * math/w_powl.c: Likewise.
16768         * math/w_remainder.c: Likewise.
16769         * math/w_remainderf.c: Likewise.
16770         * math/w_remainderl.c: Likewise.
16771         * math/w_scalb.c: Likewise.
16772         * math/w_scalbf.c: Likewise.
16773         * math/w_scalbl.c: Likewise.
16774         * math/w_scalbln.c: Likewise.
16775         * math/w_scalblnf.c: Likewise.
16776         * math/w_scalblnl.c: Likewise.
16777         * math/w_sinh.c: Likewise.
16778         * math/w_sinhf.c: Likewise.
16779         * math/w_sinhl.c: Likewise.
16780         * math/w_tgamma.c: Likewise.
16781         * math/w_tgammaf.c: Likewise.
16782         * math/w_tgammal.c: Likewise.
16783         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16784         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
16785         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16786         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16787         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16788         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16789         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
16790         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16791         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16792         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16793         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16794         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16795         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16796         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16797         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16798         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16799         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16800         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
16801         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16802         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16803         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16804         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16805         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16806         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16807         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16808         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16809         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
16810         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16811         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16812         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16813         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
16814         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
16815         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
16816         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
16817         * stdio-common/printf_fp.c: Likewise.
16818         * stdio-common/printf_fphex.c: Likewise.
16819         * stdio-common/printf_size.c: Likewise.
16820
16821 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
16822
16823         [BZ #18470]
16824         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
16825         strnlen.
16826         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
16827         Remove variable.
16828         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
16829         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
16830         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
16831         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
16832         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
16833         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
16834         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
16835         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
16836         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
16837         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
16838
16839         [BZ #18468]
16840         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
16841         weak alias of __wmemchr.  Use libc_hidden_weak.
16842         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
16843         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
16844         instead of wmemchr.
16845
16846 2015-06-02  Roland McGrath  <roland@hack.frob.com>
16847
16848         [BZ #18383]
16849         * elf/tst-tlsalign-extern.c: New file.
16850         * elf/tst-tlsalign-extern-static.c: New file.
16851         * elf/tst-tlsalign-vars.c: New file.
16852         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
16853         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
16854         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
16855         ($(objpfx)tst-tlsalign-extern-static): Likewise.
16856         (test-xfail-tst-tlsalign-extern-static): New variable.
16857
16858 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
16859
16860         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
16861         Use variable name _sc_err instead of err.
16862         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
16863         instead of ret.
16864         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
16865         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
16866         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
16867         (INLINE_SYSCALL): Likewise.
16868
16869         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
16870         * include/string.h (__strnlen): Use libc_hidden_proto.
16871         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
16872         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
16873         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
16874         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
16875         (libc_hidden_def): Undefine and redefine.
16876         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
16877         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
16878         __GI_strnlen.
16879         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
16880         libc_hidden_def.
16881         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
16882
16883         [BZ #18469]
16884         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
16885         weak alias of __towlower.  Use libc_hidden_weak.
16886         (towupper): Rename to __towupper and define as weak alias of
16887         __towupper.  Use libc_hidden_weak.
16888         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
16889         (__towupper): Likewise.
16890         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
16891         __towlower instead of towlower.
16892
16893 2015-06-02  Roland McGrath  <roland@hack.frob.com>
16894
16895         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
16896         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
16897
16898 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16899
16900         * sysdeps/aarch64/libm-test-ulps: Update.
16901
16902 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16903
16904         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
16905         Define.
16906         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
16907         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
16908         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
16909         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
16910         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
16911         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
16912         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
16913
16914 2015-06-01  Martin Sebor  <msebor@redhat.com>
16915
16916         [BZ #18116]
16917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
16918         (__setcontext): Use extended four-operand version of mtsf whenever
16919         possible.
16920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
16921         (__novec_swapcontext): Likewise.
16922
16923 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16924
16925         * benchtests/scripts/compare_bench.py: New file.
16926         * benchtests/scripts/import_bench.py (mean): New function.
16927         (split_list): Likewise.
16928         (do_for_all_timings): Likewise.
16929         (compress_timings): Likewise.
16930
16931         * benchtests/scripts/import_bench.py: New file.
16932         * benchtests/scripts/validate_benchout.py: Import import_bench
16933         instead of jsonschema.
16934         (validate_bench): Remove function.
16935         (main): Use import_bench.
16936
16937 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
16938
16939         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
16940         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
16941
16942 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16943
16944         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16945
16946 2015-05-28  Roland McGrath  <roland@hack.frob.com>
16947
16948         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
16949         set THREAD_SELF->tid to a magic value and futex-wake it.
16950         Pass its address to the thread_exit system call.
16951         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
16952         bit is clear.
16953         * sysdeps/nacl/lowlevellock.h: New file.
16954         * sysdeps/nacl/lll_timedwait_tid.c: New file.
16955
16956         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
16957         Add TIMEOUT to current time, don't subtract it.
16958
16959 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
16960
16961         [BZ #2981]
16962         [BZ #18422]
16963         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
16964         ($(objpfx)tst-audit2.out): Also depend on
16965         $(objpfx)tst-auditmod9b.so.
16966         * elf/tst-audit2.c: Include <dlfcn.h>.
16967         (calloc_called): New.
16968         (calloc): Allow to be called more than once.
16969         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
16970
16971 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
16972
16973         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
16974         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
16975
16976 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
16977
16978         * stdlib/monetary.h: Fix comment.
16979
16980 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
16981
16982         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
16983         Avoid using variables in #defines that might cause shadowing.
16984         (INTERNAL_VSYSCALL_CALL): Likewise.
16985
16986 2015-05-26  Roland McGrath  <roland@hack.frob.com>
16987
16988         * sysdeps/nacl/lll_timedlock_wait.c: New file.
16989
16990         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
16991         * nptl/lll_timedlock_wait.c: ... to this new file.
16992         * nptl/Makefile (libpthread-routines): Add it.
16993         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
16994         * nptl/lll_timedwait_tid.c: ... to this new file.
16995         * nptl/Makefile (libpthread-routines): Add it.
16996         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
16997         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
16998         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
16999         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17000         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17001         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17002         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17003         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17004         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17005         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17006
17007 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17008
17009         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17010         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17011         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17012         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17013         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17014         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17015         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17016         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17017         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17018         * sysdeps/unix/sysv/linux/tile/sysdep.h
17019         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17020         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17021         using vDSO syscall macro.
17022
17023 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17024
17025         [BZ #17293]
17026         * uk_UA: Fix sorting order for Ukrainian locale
17027
17028 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17029
17030         * stdlib/monetary.h: Fix comment.
17031
17032 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17033
17034         [BZ #18234]
17035         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17036         st_mtim and st_ctim members.
17037         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17038         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17039         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17040         (struct stat64): Likewise.
17041         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17042         (struct stat64): Likewise.
17043         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17044         (struct stat64): Likewise.
17045
17046 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17047
17048         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17049         Define and include sysdep-vdso.h.
17050         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17051         Likewise.
17052         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17053         Likewise.
17054         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17055         Define with VDSO_SYMBOL and use PTR_MANGLE.
17056         (__vdso_clock_gettime): Likewise.
17057         (__vdso_clock_getres): Likewise.
17058         (_libc_vdso_platform_setup): Likewise.
17059         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17060         Likewise.
17061         (_libc_vdso_platform_setup): Likewise.
17062         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17063         Likewise.
17064         (__vdso_clock_gettime): Likewise.
17065         (__vdso_clock_getres): Likewise.
17066         (__vdso_get_tbfreq): Likewise.
17067         (__vdso_getcpu): Likewise.
17068         (__vdso_time): Likewise.
17069         (__vdso_sigtramp_rt64): Likewise.
17070         (__vdso_signtramp32): Likewise.
17071         (__vdso_sigtramp_rt32): Likewise.
17072         (_libc_vdso_platform_setup): Likewise.
17073         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17074         Likewise.
17075         (__vdso_clock_gettime): Likewise.
17076         (__vdso_clock_getres): Likewise.
17077         (_libc_vdso_platform_setup): Likewise.
17078         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17079         Likewise.
17080         (__vdso_clock_gettime): Likewise.
17081         (_libc_vdso_platform_setup): Likewise.
17082         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17083         Likewise.
17084         (__vdso_getcpu): Likewise.
17085         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17086         Use VDSO_SYMBOL macro to define.
17087         (__vdso_clock_gettime): Likewise.
17088         (__vdso_clock_getres): Likewise.
17089         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17090         Likewise.
17091         (__vdso_clock_gettime): Likewise.
17092         (__vdso_clock_getres): Likewise.
17093         (__vdso_get_tbfreq): Likewise.
17094         (__vdso_getcpu): Likewise.
17095         (__vdso_time): Likewise.
17096         (__vdso_sigtramp_rt64): Likewise.
17097         (__vdso_signtramp32): Likewise.
17098         (__vdso_sigtramp_rt32): Likewise.
17099         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17100         Likewise.
17101         (__vdso_clock_gettime): Likewise.
17102         (__vdso_clock_getres): Likewise.
17103         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17104         Likewise.
17105         (__vdso_clock_gettime): Likewise.
17106         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17107         Likewise.
17108         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17109         macro.
17110         (INTERNAL_VSYSCALL): Likewise.
17111         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17112         Remove macro.
17113         (INTERNAL_VSYSCALL): Likewise.
17114         (INTERNAL_VSYSCALL_NCS): Likewise.
17115         (INTERNAL_VSYSCALL_CALL): New macro.
17116         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17117         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17118         Likewise.
17119         (INTERNAL_VSYSCALL): Likewise.
17120         (INTERNAL_VSYSCALL_NCS): Likewise.
17121         (INTERNAL_VSYSCALL_CALL): New macro.
17122         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17124         (INLINE_VSYSCALL): Remove macro.
17125         (INTERNAL_VSYSCALL): Remove macro.
17126         (INTERNAL_VSYSCALL_NCS): Remove macro.
17127         (INTERNAL_VSYSCALL_CALL): New macro.
17128         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17129         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17130         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17131         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17132         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17134         (INLINE_VSYSCALL): Remove macro.
17135         (INTERNAL_VSYSCALL): Likewise.
17136         (INTERNAL_VSYSCALL_NCS): Likewise.
17137         (INTERNAL_VSYSCALL_CALL): New macro.
17138         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17139         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17140         PTR_DEMANGLE on vDSO pointer.
17141         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17142         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17143         macro.
17144         (INTERNAL_SYSCALL): Likewise.
17145         (INTERNAL_VSYSCALL_NCS): Remove macro.
17146         (INTERNAL_VSYSCALL_CALL): New macro.
17147         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17148         Remove macro.
17149         (INTERNAL_VSYSCALL): Likewise.
17150         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17151         sysdep-vdso.h instead of libc-vdso.h.
17152         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17153         definition.
17154         (INLINE_VSYSCALL): Likewise.
17155         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17156         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17157         definition.
17158         (INLINE_VSYSCALL): Likewise.
17159         (INTERNAL_VSYSCALL): Likewise.
17160         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17161         * sysdeps/unix/sysv/linux/timespec_get.c
17162         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17163         (timespec_get): Use ANSI prototype.
17164         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17165         and definition for Linux.
17166
17167 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17168
17169         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17170         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17171
17172 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17173
17174         [BZ #2981]
17175         [BZ #18410]
17176         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17177         for missing DT_PLTRELSZ.
17178
17179 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17180
17181         Remove obsolete aliases that broke 'locale -a'
17182         [BZ #18412]
17183         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17184         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17185         breaking some applications that use 'locale -a' output.
17186         Change the encoding of this file from Latin-1 to ASCII to avoid
17187         other potential problems with people grepping this file.
17188
17189 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17190
17191         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17192         -fasynchronous-unwind-tables.
17193         (CFLAGS-sendto.c): Likewise.
17194         (CFLAGS-sendmsg.c): Likewise.
17195         (CFLAGS-connect.c): Likewise.
17196         (CFLAGS-recvmsg.c): Likewise.
17197         (CFLAGS-recvfrom.c): Likewise.
17198         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17199         (SOCKETCALL): New macro: non-cancellable socketcall.
17200         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17201         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17202         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17203         * sysdeps/unix/sysv/linux/accept.c: New file.
17204         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17205         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17206         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17207         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17208         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17209         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17210         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17211         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17212         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17213         * sysdeps/unix/sysv/linux/send.c: Likewise.
17214         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17215         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17216         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17217         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17218         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17219         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17220         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17221         prototype.
17222         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17223         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17224         instead of __internal_xxx function.
17225         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17226         prototype.
17227         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17228         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17229         instead of __internal_xxx function.
17230         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17231         prototype.
17232         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17233         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17234         instead of __internal_xxx function.
17235         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17236         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17237         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17238         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17239         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17240         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17241         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17242         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17243         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17244         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17245         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17246         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17247         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17248         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17249         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17250         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17251         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17252         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17253         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17254         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17257         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17258         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17259         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17260         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17261         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17262         * sysdeps/unix/sysv/linux/send.S: Likewise.
17263         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17264         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17265         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17266         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17267         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17268         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17269         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17270         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17271         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17272         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17273         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17274         socketcall is implemented in GLIBC.
17275
17276 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17277
17278         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17279         (__fma): Ignore uninitialized warnings around packing.
17280         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17281         (__fmaf): Ignore uninitialized warnings around packing.
17282         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17283         (__fmal): Ignore uninitialized warnings around packing.
17284
17285         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17286         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17287         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17288         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17289
17290         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17291         switch statement into default case.
17292         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17293
17294         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17295         a conditional in forcing "inexact".
17296         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17297         Likewise.
17298
17299 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17300
17301         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17302         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17303         for each INTERNAL_SYSCALL use.
17304
17305 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17306
17307         [BZ #438]
17308         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17309         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17310         variable.
17311
17312         [BZ #18444]
17313         * string/basename.c (basename): Rename to __basename and define as
17314         weak alias of __basename.  Use libc_hidden_weak.
17315         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17316         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17317         __basename instead of basename.
17318         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17319         Remove variable.
17320         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17321
17322 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17323
17324         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17325         (_IO_JUMPS_FILE_plus): New.
17326         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17327         _IO_CAST_FIELD_ACCESS.
17328         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17329         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17330         * libio/freopen.c (freopen): Likewise.
17331         * libio/freopen64.c (freopen64): Likewise.
17332         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17333         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17334         * libio/iofwide.c (_IO_fwide): Likewise.
17335         * libio/memstream.c (open_memstream): Likewise.
17336         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17337         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17338         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17339
17340 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17341
17342         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17343         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17344         NADJ.
17345         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17346         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17347         NADJ.
17348         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17349         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17350         NADJ.
17351
17352         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17353         (p == 4) case.
17354
17355         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17356         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17357         Remove variable.
17358         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17359         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17360         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17361
17362 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17363
17364         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17365         Adjust jump table label generation macros.
17366
17367 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17368
17369         * stdio-common/vfprintf.c (vfprintf): Move local variables
17370         args_malloced, specs, specs_malloced, and the code after
17371         do_positional to the printf_positional function.
17372         (printf_positional): New function.
17373
17374 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17375
17376         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17377         function.
17378         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17379         STEP4_TABLE, process_arg): Move macro definitions
17380         out of the vfprintf function.  (Cosmetic change only.)
17381
17382 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17383
17384         * benchtests/Makefile (stdio-common-bench): Define.
17385         (benchset): Add stdio-common-bench.
17386         * sprintf-inputs: New file.
17387         * sprintf-source.c: New file.
17388
17389 2015-05-21  Andreas Schwab  <schwab@suse.de>
17390
17391         [BZ #13028]
17392         [BZ #17053]
17393         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17394         of struct __res_state.
17395         * resolv/res_send.c (__libc_res_nsend): Likewise.
17396         (get_nsaddr): New function.
17397         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17398         statp directly.
17399
17400 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17401
17402         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17403         -D_POSIX_C_SOURCE=199506L.
17404
17405         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17406
17407         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17408         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17409         Do not mention otherwise.
17410         [POSIX] (_XOPEN_VERSION): Do not expect.
17411         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17412         [POSIX] (_POSIX2_C_BIND): Likewise.
17413         [POSIX] (_POSIX2_VERSION): Likewise.
17414         [POSIX] (_XOPEN_XPG2): Likewise.
17415         [POSIX] (_XOPEN_XPG3): Likewise.
17416         [POSIX] (_XOPEN_XPG4): Likewise.
17417         [POSIX] (_XOPEN_UNIX): Likewise.
17418         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17419         [POSIX] (_POSIX_BARRIERS): Likewise.
17420         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17421         [POSIX] (_POSIX_CPUTIME): Likewise.
17422         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17423         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17424         [POSIX] (_POSIX_SHELL): Likewise.
17425         [POSIX] (_POSIX_SPAWN): Likewise.
17426         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17427         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17428         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17429         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17430         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17431         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17432         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17433         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17434         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17435         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17436         [POSIX] (_POSIX2_PBS): Likewise.
17437         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17438         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17439         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17440         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17441         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17442         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17443         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17444         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17445         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17446         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17447         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17448         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17449         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17450         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17451         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17452         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17453         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17454         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17455         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17456         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17457         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17458         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17459         [POSIX] (_SC_2_C_BIND): Likewise.
17460         [POSIX] (_SC_2_C_VERSION): Likewise.
17461         [POSIX] (_SC_2_PBS): Likewise.
17462         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17463         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17464         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17465         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17466         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17467         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17468         [POSIX] (_SC_BARRIERS): Likewise.
17469         [POSIX] (_SC_BASE): Likewise.
17470         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17471         [POSIX] (_SC_DEVICE_IO): Likewise.
17472         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17473         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17474         [POSIX] (_SC_FD_MGMT): Likewise.
17475         [POSIX] (_SC_FIFO): Likewise.
17476         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17477         [POSIX] (_SC_FILE_LOCKING): Likewise.
17478         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17479         [POSIX] (_SC_IOV_MAX): Likewise.
17480         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17481         [POSIX] (_SC_NETWORKING): Likewise.
17482         [POSIX] (_SC_PAGE_SIZE): Likewise.
17483         [POSIX] (_SC_PASS_MAX): Likewise.
17484         [POSIX] (_SC_PIPE): Likewise.
17485         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17486         [POSIX] (_SC_REGEXP): Likewise.
17487         [POSIX] (_SC_SHELL): Likewise.
17488         [POSIX] (_SC_SIGNALS): Likewise.
17489         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17490         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17491         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17492         [POSIX] (_SC_USER_GROUPS): Likewise.
17493         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17494         [POSIX] (_SC_STREAMS): Likewise.
17495         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17496         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17497         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17498         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17499         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17500         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17501         [POSIX] (_PC_FILESIZEBITS): Likewise.
17502         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17503         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17504         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17505         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17506         [POSIX] (uid_t): Likewise.
17507         [POSIX] (gid_t): Likewise.
17508         [POSIX] (off_t): Likewise.
17509         [POSIX] (pid_t): Likewise.
17510         [POSIX] (cuserid): Allow.
17511         (_SC_2_CHAR_TERM): Require constant.
17512         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17513         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17514         variable.
17515
17516 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17517
17518         * sysdeps/nacl/pthread-pids.h: New file.
17519         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17520         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17521
17522         * nptl/pthread-pids.h: New file.
17523         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17524         * nptl/nptl-init.c: Include <pthread-pids.h>.
17525         (__pthread_initialize_minimal_internal):
17526         Call __pthread_initialize_pids instead of set_tid_address syscall.
17527
17528         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17529         * sysdeps/posix/usleep.c: ... here.
17530
17531 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17532
17533         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17534         call_pselect6 object.
17535         [$(subdir) = io]: Remove call_sync_file_range object.
17536         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17537         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17538         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17539         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17540
17541 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17542
17543         * math/s_cproj.c: Add include "math_private.h".
17544         * math/s_cprojf.c: Likewise.
17545         * math/s_cprojl.c: Likewise.
17546
17547 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17548
17549         [BZ #18244]
17550         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17551         high mantissa bit when testing whether P is a NaN.
17552         * math/libm-test.inc (remainder_test_data): Add more tests.
17553         (remquo_test_data): Likewise.
17554
17555         [BZ #18049]
17556         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
17557         below -32, return the argument, with underflow if subnormal.
17558         * math/auto-libm-test-in: Add more tests of atanh.
17559         * math/auto-libm-test-out: Regenerated.
17560
17561 2015-05-19  Roland McGrath  <roland@hack.frob.com>
17562
17563         [BZ #18434]
17564         * nptl/tst-sem15.c: New file.
17565         * nptl/Makefile (tests): Add it.
17566         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
17567         s/<</>>/ to fix typo in EOVERFLOW check.
17568         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
17569
17570 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17571
17572         * manual/strings.texi (envz_remove): Fix typo in safety
17573         annotations.
17574
17575 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17576             Steve Ellcey  <sellcey@imgtec.com>
17577
17578         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
17579         in order to avoid strict alias warnings.
17580         (iruserok_af): Ditto for ra.
17581
17582 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
17583
17584         [BZ #17581]
17585         * malloc/hooks.c
17586         (magicbyte): Convert to a function and avoid returning 0x01.
17587         (mem2mem_check): Avoid using a length byte equal to the magic byte.
17588         (mem2chunk_check): Fix unsigned comparisons to zero.
17589         Hoist defs of sz and magic.
17590
17591 2015-05-19  Richard Henderson  <rth@redhat.com>
17592
17593         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
17594
17595         * sysdeps/alpha/fpu/libm-test-ulps: Update.
17596
17597 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17598
17599         [BZ #16159]
17600         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
17601         * malloc/arena.c (arena_lock): Check if arena is corrupt.
17602         (reused_arena): Find a non-corrupt arena.
17603         (heap_trim): Pass arena to unlink.
17604         * malloc/hooks.c (malloc_check_get_size): Pass arena to
17605         malloc_printerr.
17606         (top_check): Likewise.
17607         (free_check): Likewise.
17608         (realloc_check): Likewise.
17609         * malloc/malloc.c (malloc_printerr): Add arena argument.
17610         (unlink): Likewise.
17611         (munmap_chunk): Adjust.
17612         (ARENA_CORRUPTION_BIT): New macro.
17613         (arena_is_corrupt): Likewise.
17614         (set_arena_corrupt): Likewise.
17615         (sysmalloc): Use mmap if there are no usable arenas.
17616         (_int_malloc): Likewise.
17617         (__libc_malloc): Don't fail if arena_get returns NULL.
17618         (_mid_memalign): Likewise.
17619         (__libc_calloc): Likewise.
17620         (__libc_realloc): Adjust for additional argument to
17621         malloc_printerr.
17622         (_int_free): Likewise.
17623         (malloc_consolidate): Likewise.
17624         (_int_realloc): Likewise.
17625         (_int_memalign): Don't touch corrupt arenas.
17626         * malloc/tst-malloc-backtrace.c: New test case.
17627
17628         * Makefile (summarize-tests): Fix return value on success.
17629
17630         * manual/string.texi (Envz Functions): Add envz_remove.
17631
17632 2015-05-18  Roland McGrath  <roland@hack.frob.com>
17633
17634         * sysdeps/posix/opendir.c: Include <stdbool.h>.
17635         (invalid_name): New function, broken out of ...
17636         (__opendirat): ... here.  Call it.
17637         (need_isdir_precheck): New function, broken out of ...
17638         (__opendirat): ... here.  Call it.
17639         Use __fxstatat64, not __xstatat64.
17640         (opendir_oflags): New function, broken out of ...
17641         (__opendirat): ... here.  Call it.
17642         (opendir_tail): New function, broken out of ...
17643         (__opendirat): ... here.  Call it.
17644         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
17645         opendir_tail, rather than punting to __opendirat.
17646         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
17647
17648 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17649
17650         * .gitignore: Ignore generated *.pyc.
17651
17652 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
17653
17654         * include/stdio.h: Define __need_wint_t.
17655         * test-skeleton.c: Avoid `for' loop initial declaration.
17656         * nptl/tst-initializers1.c: Use test-skeleton.c.
17657
17658 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17659
17660         [BZ #18418]
17661         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
17662
17663 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17664
17665         [BZ #16352]
17666         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
17667         (__ieee754_atanh): Force underflow exception for results with
17668         small absolute value.
17669         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
17670         (__ieee754_atanhf): Force underflow exception for results with
17671         small absolute value.
17672         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
17673         (__ieee754_atanh): Force underflow exception for results with
17674         small absolute value.
17675         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
17676         (__ieee754_atanhf): Force underflow exception for results with
17677         small absolute value.
17678         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
17679         (__ieee754_atanhl): Force underflow exception for results with
17680         small absolute value.
17681         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
17682         (__ieee754_atanhl): Force underflow exception for results with
17683         small absolute value.
17684         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
17685         (__ieee754_atanhl): Force underflow exception for results with
17686         small absolute value.
17687         * math/auto-libm-test-in: Do not allow missing underflow
17688         exceptions from atanh.
17689         * math/auto-libm-test-out: Regenerated.
17690
17691         [BZ #18221]
17692         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
17693         2**-28 as threshold for returning x or +/- 1/x.
17694         * math/auto-libm-test-in: Add more tests of tan.
17695         * math/auto-libm-test-out: Regenerated.
17696
17697         [BZ #18220]
17698         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
17699         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
17700         * math/auto-libm-test-in: Add another test of lgamma.
17701         * math/auto-libm-test-out: Regenerated.
17702
17703 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
17704
17705         * stdio-common/printf_fp.c (___printf_fp): Use abs.
17706         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
17707         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
17708         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
17709         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
17710         (ADD2A): Use fabs.  (SUB2A): Use fabs.
17711         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
17712         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
17713         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
17714         (log1): Use fabs.  (my_log2): Use fabs.
17715         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
17716         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
17717         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
17718         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
17719         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
17720         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
17721         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
17722         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
17723         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
17724         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
17725         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
17726
17727 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17728
17729         [BZ #18217]
17730         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
17731         as threshold for returning 1 - x.
17732         * math/auto-libm-test-in: Add more tests of erfc.
17733         * math/auto-libm-test-out: Regenerated.
17734
17735 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
17736
17737         [BZ #18196]
17738         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
17739         threshold for large arguments.
17740         * math/auto-libm-test-in: Add another test of atan.
17741         * math/auto-libm-test-out: Regenerated.
17742
17743         [BZ #16339]
17744         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
17745         (__log1p): Force underflow exception for results with small
17746         absolute value.
17747         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
17748         (__log1pf): Force underflow exception for results with small
17749         absolute value.
17750         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
17751         (__log1p): Force underflow exception for results with small
17752         absolute value.
17753         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
17754         (__log1pf): Force underflow exception for results with small
17755         absolute value.
17756         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
17757         (__log1pl): Force underflow exception for results with small
17758         absolute value.
17759         * math/auto-libm-test-in: Do not allow missing underflow
17760         exceptions from log1p.
17761         * math/auto-libm-test-out: Regenerated.
17762
17763 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
17764             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17765
17766         [BZ #16704]
17767         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
17768
17769 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
17770
17771         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
17772         (libmvec): New variable.
17773         * configure.ac: Added option for mathvec build.
17774         * configure: Regenerated.
17775         * mathvec/Depend: New file.
17776         * mathvec/Makefile: New file.
17777         * shlib-versions: Added libmvec.
17778         * math/Makefile: Added rule for libm.so installation.
17779
17780         * bits/math-vector.h: New file.
17781         * bits/libm-simd-decl-stubs.h: New header.
17782         * math/Makefile (headers): Added new header
17783         libm-simd-decl-stubs.h.
17784         * math/math.h (__MATHCALL_VEC): New macro.
17785
17786         * math/gen-libm-have-vector-test.sh: Script generates series of macros
17787         for conditions in testing functions.
17788         * math/Makefile: Added call of libm-have-vector-test.sh.
17789         * math/libm-test.inc (HAVE_VECTOR): New macros.
17790
17791         * math/libm-test.inc: START refactored.
17792         * math/test-double.c (TEST_MATHVEC): Add define.
17793         * math/test-float.c: Likewise.
17794         * math/test-idouble.c: Likewise.
17795         * math/test-ifloat.c: Likewise.
17796         * math/test-ildoubl.c: Likewise.
17797         * math/test-ldouble.c: Likewise.
17798         * sysdeps/generic/math-tests-arch.h
17799         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
17800         architecture check.
17801
17802         * math/test-double.c (FUNC_TEST): New macro.
17803         * math/test-float.c: Likewise.
17804         * math/test-idouble.c: Likewise.
17805         * math/test-ifloat.c: Likewise.
17806         * math/test-ildoubl.c: Likewise.
17807         * math/test-ldouble.c: Likewise.
17808         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
17809
17810 2015-05-13  Roland McGrath  <roland@hack.frob.com>
17811
17812         * sysdeps/nacl/fdopendir.c: New file.
17813
17814         * dirent/scandir-tail.c: New file.
17815         * dirent/scandir64-tail.c: New file.
17816         * dirent/Makefile (routines): Add them.
17817         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
17818         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
17819         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
17820         [!SCANDIR] (SCANDIR_TAIL): New macro.
17821         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
17822         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
17823         (SCANDIRAT): Macro removed.
17824         (SCANDIR_TAIL): New macro.
17825         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
17826         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
17827         (SCANDIRAT): Just call __opendirat and __scandir_tail.
17828         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
17829         (READDIR): Macro removed.
17830         (SCANDIR_TAIL): New macro.
17831         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
17832         (SCANDIR_TAIL): New macro.
17833
17834         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
17835         * dirent/scandir-cancel.c: ... to this new file.
17836         * dirent/Makefile (routines): Add it.
17837         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
17838         * sysdeps/unix/sysv/linux/i386/scandir64.c
17839         (SKIP_SCANDIR_CANCEL): Macro removed.
17840         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
17841
17842         * dirent/tst-scandir.c: New file.
17843         * dirent/tst-scandir64.c: New file.
17844         * dirent/Makefile (tests): Add them.
17845
17846 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17847
17848         [BZ #18409]
17849         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
17850
17851 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17852
17853         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
17854         list.
17855
17856 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
17857
17858         * benchtests/bench-strcoll.c: New benchmark.
17859         * benchtests/Makefile: Generate locales and run benchmark.
17860         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
17861         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17862         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
17863         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
17864         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
17865         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
17866         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
17867         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
17868         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
17869         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
17870         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
17871         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
17872         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
17873         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
17874         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
17875         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
17876         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
17877         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
17878         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
17879         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
17880         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
17881         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
17882         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
17883         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
17884
17885 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
17886
17887         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
17888         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
17889
17890 2015-05-12  Roland McGrath  <roland@hack.frob.com>
17891
17892         * posix/uname-values.h: New file.
17893         * posix/uname.c: Include that instead of <config-name.h>.
17894         * sysdeps/nacl/uname-values.h: New file.
17895         * sysdeps/arm/nacl/uname-values.h: New file.
17896
17897 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
17898
17899         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
17900         splitting into fields.
17901
17902 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
17903
17904         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
17905         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
17906         * locale/localeinfo.h: Add enum collation_encoding_type.
17907         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
17908         * programs/ld-collate.c (collate_output): Add encoding type info.
17909         * string/strcoll_l.c (STRDIFF): New function.
17910         * (STRCOLL): Use STRDIFF to skip over equal prefix.
17911         * wcsmbs/wcscoll_l.c: Define STRDIFF.
17912
17913 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
17914
17915         [BZ #18397]
17916         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
17917         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
17918         <fpu_control.h> instead of <math/fpu_control.c>.
17919         * sysdeps/mips/mips32/fpu/Makefile: New file.
17920
17921 2015-05-11  Andreas Schwab  <schwab@suse.de>
17922
17923         [BZ #18007]
17924         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
17925         nss_endgrent.
17926         (_nss_compat_endgrent): Call nss_endgrent.
17927         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
17928         nss_endpwent.
17929         (_nss_compat_endpwent): Call nss_endpwent.
17930         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
17931         needent, call nss_setspent only if non-zero.
17932         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
17933         (internal_endspent): Don't call nss_endspent.
17934         (_nss_compat_endspent): Call nss_endspent.
17935         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
17936         Remove.  All uses removed.
17937         (internal_setent): Remove parameter stayopen, add parameter
17938         stream.  Use it instead of global variable.
17939         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
17940         (internal_endent, internal_getent): Add parameter stream.  Use it
17941         instead of global variable.
17942         (CONCAT(_nss_files_end,ENTNAME))
17943         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
17944         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
17945         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
17946         uses removed.
17947         (internal_setent, internal_endent): Add parameter stream.  Use it
17948         instead of global variable.
17949         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
17950         stream.
17951         (get_next_alias): Add parameter stream.
17952         (_nss_files_getaliasent_r): Pass global stream.
17953         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
17954         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
17955         (_nss_files_gethostbyname4_r): Pass local stream to
17956         internal_setent, internal_getent and internal_endent.  Remove
17957         locking.
17958
17959 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
17960
17961         * tst-strfmon1.c (tests): Update expected currency symbol.
17962
17963 2015-05-08  Roland McGrath  <roland@hack.frob.com>
17964
17965         * sysdeps/nacl/gethostname.c: New file.
17966
17967 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
17968
17969         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
17970         and sinh.
17971         * math/auto-libm-test-out: Regenerated.
17972         * sysdeps/i386/fpu/libm-test-ulps: Update.
17973         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17974
17975 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
17976
17977         [BZ #18125]
17978         * stdlib/tst-setcontext3.c: New file.
17979         * stdlib/tst-setcontext3.sh: New file.
17980         * stdlib/Makefile (tests): Add tst-setcontext3.
17981         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
17982         to verify test program created output file.
17983         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
17984         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
17985         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
17986         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
17987
17988 2015-05-06  Roland McGrath  <roland@hack.frob.com>
17989
17990         [BZ #18383]
17991         * elf/tst-tlsalign.c: New file.
17992         * elf/tst-tlsalign-static.c: New file.
17993         * elf/tst-tlsalign-lib.c: New file.
17994         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
17995         (tests-static): Add tst-tlsalign-static.
17996         (modules-names): Add tst-tlsalign-lib.
17997         (test-xfail-tst-tlsalign): New variable.
17998         (test-xfail-tst-tlsalign-static): New variable.
17999
18000         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18001         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18002
18003 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18004
18005         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18006         csqrt, erfc, sin and sincos.
18007         * math/auto-libm-test-out: Regenerated.
18008         * sysdeps/i386/fpu/libm-test-ulps: Update.
18009         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18010
18011 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18012
18013         * sysdeps/aarch64/libm-test-ulps: Update.
18014
18015 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18016
18017         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18018         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18019         * math/auto-libm-test-out: Regenerated.
18020         * sysdeps/i386/fpu/libm-test-ulps: Update.
18021         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18022
18023 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18024
18025         [BZ #18265]
18026         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18027         (wcsncpy): Likewise.
18028
18029 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18030
18031         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18032         Assume __ASSUME_FALLOCATE is always true.
18033         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18034         (__posix_fallocate64_l64): Likweise.
18035         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18036         (posix_fallocate): Likewise.
18037         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18038         (__posix_fallocate64_l64): Likewise.
18039         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18040         [!__ASSUME_FALLOCATE]: Add comment.
18041
18042 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18043
18044         * sysdeps/unix/sysv/linux/i386/Makefile
18045         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18046         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18047         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18048         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18049         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18050         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18051         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18052
18053 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18054
18055         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18056         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18057         tgamma.
18058         * math/auto-libm-test-out: Regenerated.
18059         * sysdeps/i386/fpu/libm-test-ulps: Update.
18060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18061
18062 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18063
18064         * math/auto-libm-test-in: Add more tests of tgamma.
18065         * math/auto-libm-test-out: Regenerated.
18066         * sysdeps/i386/fpu/libm-test-ulps: Update.
18067         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18068
18069         * math/auto-libm-test-in: Add more tests of tanh.
18070         * math/auto-libm-test-out: Regenerated.
18071         * sysdeps/i386/fpu/libm-test-ulps: Update.
18072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18073
18074         * math/auto-libm-test-in: Add more tests of tan.
18075         * math/auto-libm-test-out: Regenerated.
18076         * sysdeps/i386/fpu/libm-test-ulps: Update.
18077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18078
18079         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18080         * math/auto-libm-test-out: Regenerated.
18081         * sysdeps/i386/fpu/libm-test-ulps: Update.
18082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18083
18084         * math/auto-libm-test-in: Add another test of pow.
18085         * math/auto-libm-test-out: Regenerated.
18086         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18087
18088         * math/auto-libm-test-in: Add more tests of lgamma.
18089         * math/auto-libm-test-out: Regenerated.
18090         * sysdeps/i386/fpu/libm-test-ulps: Update.
18091         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18092
18093         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18094         log1p.
18095         * math/auto-libm-test-out: Regenerated.
18096         * sysdeps/i386/fpu/libm-test-ulps: Update.
18097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18098
18099 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18100
18101         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18102         Elf64_Chdr structs and ELFCOMPRESS constants.
18103
18104 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18105
18106         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18107         expm1.
18108         * math/auto-libm-test-out: Regenerated.
18109         * sysdeps/i386/fpu/libm-test-ulps: Update.
18110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18111
18112         * math/auto-libm-test-in: Add more tests of erf and erfc.
18113         * math/auto-libm-test-out: Regenerated.
18114         * sysdeps/i386/fpu/libm-test-ulps: Update.
18115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18116
18117 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18118
18119         * config.h.in (HAVE_AARCH64_BE): Add.
18120
18121 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18122
18123         * math/auto-libm-test-in: Add more tests of csqrt.
18124         * math/auto-libm-test-out: Regenerated.
18125         * sysdeps/i386/fpu/libm-test-ulps: Update.
18126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18127
18128         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18129         * math/auto-libm-test-out: Regenerated.
18130         * sysdeps/i386/fpu/libm-test-ulps: Update.
18131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18132
18133         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18134
18135 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18136
18137         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18138         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18139
18140         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18141         (euidaccess, eaccess): Define as weak aliases.
18142
18143         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18144         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18145         but __suseconds_t is often 'long int' so some sources assume that
18146         type is being used (e.g. they use %ld to print tv_usec).
18147
18148 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18149
18150         [BZ #18007]
18151         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18152         (CVE-2014-8121)
18153         * nss/tst-nss-getpwent.c: New file.
18154         * nss/Makefile (tests): Add new test.
18155
18156 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18157
18158         [BZ #18346]
18159         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18160         exponents less than 48 as cases where high part of mantissa needs
18161         examining to determine whether argument is integral.
18162         * math/libm-test.inc (round_test_data): Add more tests.
18163
18164 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18165
18166         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18167
18168 2015-04-27  David S. Miller  <davem@davemloft.net>
18169
18170         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18171         __tls_get_addr.
18172         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18173
18174 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18175
18176         [BZ#18333]
18177         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18178
18179 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18180
18181         [BZ#18333]
18182         * time/tzset.c (parse_tzname): Return error on memory allocation
18183         failure.
18184         * test-skeleton.c (struct temp_name_list): Change type of name
18185         member to non-const.
18186         (add_temp_file): Create a copy of the file name.
18187         (delete_temp_files): Deallocate memory.
18188         (create_temp_file): Add comment.
18189
18190 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18191
18192         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18193         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18194
18195 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18196
18197         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18198         * sysdeps/arm/configure: Regenerated.
18199
18200 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18201
18202         [BZ #17715]
18203         * time/tzfile.c (__tzfile_read): Check for large values of
18204         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18205         * time/tzset.c (__tzstring_len): New function, based on the old
18206         __tzstring function.
18207         (__tzstring): Call __tzstring_len.
18208         (parse_tzname): New helper function extracted from
18209         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18210         the input string.
18211         (parse_offset): New helper function extracted from
18212         __tzset_parse_tz.  Replace switch with fallthrough with
18213         initialization before sscanf.
18214         (parse_rule): Likewise.
18215         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18216         new-style function definition.
18217         * timezone/Makefile (tests): Add tst-tzset.
18218         (tst-tzset.out): Dependencies on time zone files.
18219         (tst-tzset-ENV): Set TZDIR.
18220         (testdata/XT%): Copy crafted time zone files.
18221         * timezone/README: Mention crafted time zone files.
18222         * timezone/testdata/XT1, timezone/testdata/XT2,
18223         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18224         files.
18225         * timezone/tst-tzset.c: New test.
18226
18227 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18228
18229         * Makeconfig (+gccwarn): Remove -Winline.
18230
18231 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18232
18233         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18234
18235 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18236
18237         * NEWS: Mention sysconf() cache information support for s390.
18238         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18239
18240 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18241
18242         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18243         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18244         (__nearbyint): Likewise.
18245         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18246         (copysignl): Likewise.
18247
18248 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18249
18250         [BZ #18287]
18251         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18252         based on padding.  (CVE-2015-1781)
18253
18254 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18255
18256         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18257         libc-vdso.h.
18258         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18259         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18260         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18261         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18262         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18263         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18264         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18265         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18266         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18267         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18268         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18269         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18270         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18271         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18272         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18273         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18274         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18275         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18276         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18277         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18278         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18279         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18280         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18281
18282 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18283
18284         * stdlib/setenv.c (__add_to_environ):
18285         Dump core quickly if setenv (..., NULL, ...) is called.
18286         This time, do it the right way, and pacify GCC with a pragma.
18287
18288 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18289
18290         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18291         IMAP->l_prev cannot be null, and #if out the code for the contrary
18292         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18293         believe that NS (&_dl_ns[NSID]) could point outside the array.
18294
18295         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18296         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18297         before using NSID as an index.
18298
18299 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18300
18301         [BZ #17825]
18302         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18303         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18304         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18305
18306 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18307
18308         Add preliminary port to Google Native Client on ARM.
18309         * abi-tags (.*-.*-nacl.*): New entry.
18310         * sysdeps/arm/nacl: New directory.
18311         * sysdeps/nacl: New directory.
18312
18313 2015-04-16  David S. Miller  <davem@davemloft.net>
18314
18315         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18316         lowlevellock-futex.h
18317
18318 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18319
18320         * sysdeps/tile/configure.ac: New file.
18321         * sysdeps/tile/configure: Regenerated.
18322
18323 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18324
18325         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18326         conditionals for weak_alias and libc_hidden_weak.
18327         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18328         libc_hidden_weak and weak_alias.
18329         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18330         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18331         and weak_alias for static one.
18332
18333 2015-04-15  David S. Miller  <davem@davemloft.net>
18334
18335         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18336
18337 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18338
18339         [BZ #18206]
18340         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18341           Use signed comparision instead of substraction to avoid
18342           overflow bug.
18343         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18344           Take the sign of ret.
18345         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18346           Do not expect precise return values. Only the sign matters.
18347         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18348         * wcsmbs/test-wcsncmp.c: New File.
18349         * string/test-strncmp.c: Add wcsncmp support.
18350
18351 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18352
18353         [BZ #6792]
18354         * math/w_log1p.c: New file.
18355         * math/w_log1pf.c: Likewise.
18356         * math/w_log1pl.c: Likewise.
18357         * math/Makefile (libm-calls): Add w_log1p.
18358         * math/s_log1pl.c (log1pl): Remove weak_alias.
18359         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18360         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18361         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18362         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18363         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18364         [NO_LONG_DOUBLE] (log1pl): Likewise.
18365         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18366         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18367         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18368         (log1p): Remove long_double_symbol.
18369         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18370         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18371         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18372         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18373         remove weak_alias for corresponding log1p function.
18374         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18375         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18376         * sysdeps/ia64/fpu/w_log1p.c: New file.
18377         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18378         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18379         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18380
18381 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18382
18383         [BZ #18247]
18384         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18385         decimal exponent by 1.
18386         * stdlib/tst-strtod-round-data: Add more tests.
18387         * stdlib/tst-strtod-round.c (tests): Regenerated.
18388
18389 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18390
18391         * math/auto-libm-test-in: Add more tests of clog and clog10.
18392         * math/auto-libm-test-out: Regenerated.
18393         * sysdeps/i386/fpu/libm-test-ulps: Update.
18394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18395
18396 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18397
18398         * Makeconfig (module-cppflags): Exclude all .v.i files.
18399         (skip-module-cppflags): Variable removed.
18400
18401         * configure.ac (libc_config_ok): Initialize before reading
18402         preconfigure scripts, not after.
18403         * configure: Regenerated.
18404
18405         * test-skeleton.c (TIMEOUT): Move #define to top level.
18406         (main): Grok environment variable TEST_DIRECT.  If set, print
18407         test expectation details into that file and then behave as if
18408         given --direct.
18409
18410 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18411
18412         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18413         warning on 32-bit.
18414
18415 2015-04-08  David S. Miller  <davem@davemloft.net>
18416
18417         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18418
18419 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18420
18421         * math/auto-libm-test-in: Add more tests of atanh.
18422         * math/auto-libm-test-out: Regenerated.
18423         * sysdeps/i386/fpu/libm-test-ulps: Update.
18424         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18425
18426         * math/auto-libm-test-in: Add more tests of atan.
18427         * math/auto-libm-test-out: Regenerated.
18428         * sysdeps/i386/fpu/libm-test-ulps: Update.
18429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18430
18431 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18432
18433         * elf/pldd.c (main): Rewrite to use struct
18434         scratch_buffer instead of extend_alloca.
18435         * elf/pldd-xx.c (find_maps): Likewise.
18436         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18437         <alloca.h>.
18438         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18439         scratch_buffer instead of extend_alloca.
18440         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18441         grp/compat-initgroups.c.
18442         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18443         Rewrite to use struct scratch_buffer instead of extend_alloca.
18444         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18445         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18446
18447 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18448
18449         * math/auto-libm-test-in: Add more tests of cbrt.
18450         * math/auto-libm-test-out: Regenerated.
18451         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18452
18453         * math/auto-libm-test-in: Add more tests of cabs.
18454         * math/auto-libm-test-out: Regenerated.
18455         * sysdeps/i386/fpu/libm-test-ulps: Update.
18456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18457
18458         [BZ #18210]
18459         [BZ #18211]
18460         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18461         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18462         computations.
18463         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18464         clog10.
18465         * math/auto-libm-test-out: Regenerated.
18466         * sysdeps/i386/fpu/libm-test-ulps: Update.
18467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18468
18469         [BZ #18197]
18470         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18471         (atan): Set FE_TONEAREST mode for internal computations.
18472         * math/auto-libm-test-in: Add more tests of atan.
18473         * math/auto-libm-test-out: Regenerated.
18474
18475 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18476
18477         [BZ #17930]
18478         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18479
18480 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18481
18482         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18483
18484 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18485
18486         * include/scratch_buffer.h: New file.
18487         * malloc/scratch_buffer_grow.c: Likewise.
18488         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18489         * malloc/scratch_buffer_set_array_size.c: Likewise.
18490         * malloc/tst-scratch_buffer.c: Likewise.
18491         * malloc/Makefile (routines): Add scratch_buffer_grow.
18492         (tests): Add test case.
18493         * malloc/Versions (GLIBC_PRIVATE): Export
18494         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18495         __libc_scratch_buffer_set_array_size.
18496
18497 2015-04-06  Richard Henderson  <rth@redhat.com>
18498
18499         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18500         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18501
18502         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18503         unsigned int before printing.
18504
18505 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18506
18507         [BZ #17596]
18508         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18509         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18510
18511 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18512
18513         * include/libc-internal.h (libc_max_align_t): Define.
18514
18515 2015-04-02  Andreas Schwab  <schwab@suse.de>
18516
18517         [BZ #16850]
18518         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18519
18520 2015-04-02  Mel Gorman  <mgorman@suse.de>
18521
18522         [BZ #17195]
18523         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18524         as well as the main arena.
18525
18526 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18527
18528         [BZ #18185]
18529         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18530         sharing L2 cache to 2 for Silvermont/Knights Landing.
18531
18532 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18533
18534         [BZ #17711]
18535         * config.make.in (have-protected-data): New.
18536         * configure.ac: Check linker support for protected data symbol.
18537         * configure: Regenerated.
18538         * elf/Makefile (modules-names): Add tst-protected1moda and
18539         tst-protected1modb if $(have-protected-data) is yes.
18540         (tests): Add tst-protected1a and tst-protected1b if
18541         $(have-protected-data) is yes.
18542         ($(objpfx)tst-protected1a): New.
18543         ($(objpfx)tst-protected1b): Likewise.
18544         (tst-protected1modb.so-no-z-defs): Likewise.
18545         * elf/tst-protected1a.c: New file.
18546         * elf/tst-protected1b.c: Likewise.
18547         * elf/tst-protected1mod.h: Likewise.
18548         * elf/tst-protected1moda.c: Likewise.
18549         * elf/tst-protected1modb.c: Likewise.
18550
18551 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18552
18553         [BZ #17711]
18554         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
18555         indicates it is called from do_lookup_x on relocation against
18556         protected data, skip the data definion in the executable from
18557         copy reloc.
18558         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
18559         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
18560         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
18561         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
18562         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
18563         otherwise to 0.
18564         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18565         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
18566         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
18567         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18568         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
18569         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
18570
18571 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
18572
18573         * sysdeps/nptl/pthread.h: Remove duplicate definition of
18574         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
18575
18576 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
18577
18578         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
18579         THREAD_SETMEM_NC.
18580         * sysdeps/x86_64/nptl/tls.h: Ditto.
18581
18582 2015-03-27  Roland McGrath  <roland@hack.frob.com>
18583
18584         * dlfcn/tststatic.c (main): Converted to ...
18585         (do_test): ... this.
18586         (TEST_FUNCTION): New macro.
18587         Include test-skeleton.c.
18588
18589 2015-03-26  Alan Modra  <amodra@gmail.com>
18590
18591         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
18592         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
18593         zero for undefined weak.
18594         (elf_machine_plt_conflict): Similarly.
18595
18596 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18597
18598         * math/auto-libm-test-in: Add more tests of acosh, asinh and
18599         atanh.
18600         * math/auto-libm-test-out: Regenerated.
18601         * sysdeps/i386/fpu/libm-test-ulps: Update.
18602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18603
18604         * math/auto-libm-test-in: Add another test of asin.
18605         * math/auto-libm-test-out: Regenerated.
18606         * sysdeps/i386/fpu/libm-test-ulps: Update.
18607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18608
18609         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
18610         Remove macro.
18611         (LLL_EBX_REG): Likewise.
18612         (LLL_ENTER_KERNEL): Likewise.
18613
18614         * math/auto-libm-test-in: Add more tests of asin.
18615         * math/auto-libm-test-out: Regenerated.
18616         * sysdeps/i386/fpu/libm-test-ulps: Update.
18617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18618
18619         [BZ #18138]
18620         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
18621         libc_do_syscall_args): New structure.
18622         (INTERNAL_SYSCALL_MAIN_0): New macro.
18623         (INTERNAL_SYSCALL_MAIN_1): Likewise.
18624         (INTERNAL_SYSCALL_MAIN_2): Likewise.
18625         (INTERNAL_SYSCALL_MAIN_3): Likewise.
18626         (INTERNAL_SYSCALL_MAIN_4): Likewise.
18627         (INTERNAL_SYSCALL_MAIN_5): Likewise.
18628         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
18629         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
18630         Replace conditional definitions by conditional definitions of ....
18631         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
18632         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
18633         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
18634         (libpthread-sysdep_routines): Add libc-do-syscall.
18635         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
18636         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
18637         to __NR_futex not 240.
18638
18639 2015-03-25  Alan Modra  <amodra@gmail.com>
18640
18641         * NEWS: Advertise TLS optimization.
18642         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
18643         (DT_PPC_NUM): Increment.
18644         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
18645         (CHECK_STATIC_TLS): Use here.
18646         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
18647         TLS descriptors.
18648         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
18649         * sysdeps/powerpc/dl-tls.c: New file.
18650         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
18651         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
18652         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
18653         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
18654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
18655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18657
18658 2015-03-25  Alan Modra  <amodra@gmail.com>
18659
18660         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
18661         for overlapping .opd entries" to "support...".
18662         * sysdeps/powerpc/powerpc64/configure: Regenerate
18663
18664 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18665
18666         * math/auto-libm-test-in: Add more tests of acos.
18667         * math/auto-libm-test-out: Regenerated.
18668         * sysdeps/i386/fpu/libm-test-ulps: Update.
18669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18670
18671         * math/auto-libm-test-in: Add more tests of expm1.
18672         * math/auto-libm-test-out: Regenerated.
18673         * sysdeps/i386/fpu/libm-test-ulps: Update.
18674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18675
18676 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
18677
18678         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18679         * math/auto-libm-test-out: Regenerated.
18680         * sysdeps/i386/fpu/libm-test-ulps: Update.
18681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18682
18683         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
18684         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18685
18686         * math/auto-libm-test-in: Add more tests of log2.
18687         * math/auto-libm-test-out: Regenerated.
18688         * sysdeps/i386/fpu/libm-test-ulps: Update.
18689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18690
18691 2015-03-23  Roland McGrath  <roland@hack.frob.com>
18692
18693         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
18694         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
18695         _IO_IS_APPENDING bit in READ_WRITE instead.
18696
18697 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18698
18699         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
18700         (__determine_cpumask_size): Replace extend_alloca with a
18701         variable-length array.  Do not treat res == 0 as an error.
18702
18703 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18704
18705         [BZ #18100]
18706         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
18707         and integer overflow.
18708         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
18709         (main): Add integer overflow tests.
18710         * manual/pattern.texi (Calling Wordexp): Document additional use
18711         for WRDE_SYNTAX.
18712
18713 2015-03-23  Alan Modra  <amodra@gmail.com>
18714
18715         * config.h.in: Remove HAVE_ASM_PPC_REL16.
18716         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
18717         and false branch of conditional.
18718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
18719         Likewise.
18720
18721 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
18722
18723         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
18724         libc-modules.h
18725         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
18726         unused declaration of _hurd_intr_rpc_msg_in_trap.
18727         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
18728         defined instead of whether it is non-zero.
18729         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
18730         input constraint instead of both input and output constraint.  Use ecx
18731         clobber instead of %ecx.
18732         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
18733         mutex_unlock): Use a statement expression instead of an expression list.
18734         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
18735         type to vm_size_t instead of vm_address_t.
18736         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
18737         defined instead of whether it is non-zero.
18738         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
18739         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
18740         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
18741         comparisons with mapaddr.
18742         * nscd/nscd-client.h: Include <time.h>.
18743         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
18744         9th parameter to __vm_region instead of int.
18745         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
18746         * scripts/check-local-headers.sh (exclude): Add device/,
18747         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
18748         cthreads.h.
18749
18750 2015-03-19  Roland McGrath  <roland@hack.frob.com>
18751
18752         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
18753         to account for alignment padding.
18754         * sysdeps/arm/memmove.S: Likewise.
18755
18756 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
18757
18758         * sysdeps/unix/sysv/linux/generic/README: New file.
18759
18760 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
18761
18762         [BZ #18138]
18763         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
18764         (futex_abstimed_wait)
18765         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
18766         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
18767         of lll_futex_timed_wait.
18768
18769 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
18770
18771         [BZ #17542]
18772         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
18773
18774 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
18775
18776         [BZ #17090]
18777         [BZ #17620]
18778         [BZ #17621]
18779         [BZ #17628]
18780         * NEWS: Update.
18781         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
18782         entries with Static TLS too.  Skip entries past the end of the
18783         allocated DTV, from Alan Modra.
18784         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
18785         Static TLS DTV entry set up from...
18786         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
18787         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
18788         * nptl/allocatestack.c (init_one_static_tls): ... and here...
18789         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
18790         for Static TLS.
18791         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
18792         that the slot we find is associated with the given map before
18793         using its generation count.
18794         * nptl_db/db_info.c: Include ldsodefs.h.
18795         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
18796         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
18797         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
18798         (link_map::l_tls_offset): New struct field.
18799         (dtv_t::counter): Likewise.
18800         (rtld_global): New struct.
18801         (_rtld_global): New rtld variable.
18802         (dl_tls_dtv_slotinfo_list): New rtld global field.
18803         (dtv_slotinfo_list): New struct.
18804         (dtv_slotinfo): Likewise.
18805         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
18806         (td_lookup): Rename to...
18807         (td_mod_lookup): ... this.  Use new mod parameter instead of
18808         LIBPTHREAD_SO.
18809         * nptl_db/td_thr_tlsbase.c: Include link.h.
18810         (dtv_slotinfo_list, dtv_slotinfo): New functions.
18811         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
18812         addresses even if the DTV is out of date or missing them.
18813         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
18814         index zero-length arrays.
18815         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
18816         (td_lookup): Make it a macro implemented in terms of...
18817         (td_mod_lookup): ... this declaration.
18818         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
18819         (DB_MAIN_VARIABLE): Likewise.
18820
18821 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18822
18823         [BZ #18134]
18824         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
18825
18826 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
18827
18828         * stdlib/setenv.c (__add_to_environ): Revert previous change.
18829
18830 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
18831
18832         [BZ #18128]
18833         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
18834         (atomic_add, atomic_increment_and_test)
18835         (atomic_decrement_and_test): Fix 64-bit arithmetic.
18836
18837 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
18838
18839         * stdlib/setenv.c (__add_to_environ):
18840         Dump core quickly if setenv (..., NULL, ...) is called.
18841
18842 2015-03-13  Roland McGrath  <roland@hack.frob.com>
18843
18844         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
18845         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
18846         all the necessary asm magic in one place.
18847         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
18848         using those.
18849
18850 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
18851
18852         [BZ #14906]
18853         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
18854         traced file mtime. Use consistent log message.
18855         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
18856         (register_traced_file): Call install_watches. Always set mtime.
18857         (invalidate_cache): Iterate over all trace files. Call install_watches.
18858         (inotify_check_files): Don't inline. Handle watching parent
18859         directories and configuration file movement in and out.
18860         (handle_inotify_events): New function.
18861         (main_loop_poll): Call handle_inotify_events.
18862         (main_loop_epoll): Likewise.
18863         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
18864         (struct traced_file): Use array of inotify fds. Add parent directory,
18865         and basename.
18866         (struct database_dyn): Remove unused file_mtime.
18867         (init_traced_file): New inline function.
18868         (define_traced_file): New macro.
18869         * nss/nss_db/db-init.c: Use define_traced_file.
18870         (_nss_db_init): Use init_traced_file.
18871         * nss/nss_files/files-init.c: Use define_traced_file.
18872         (_nss_files_init): Use init_traced_file.
18873
18874 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
18875
18876         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
18877         [_LIBC]: Do not include <stdlib.h>.
18878         [!_LIBC] (abort): Remove declaration.
18879         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
18880         _FP_STATIC_ASSERT instead of conditionally calling abort.
18881         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
18882         (_FP_EXTEND_CNAN): Likewise.
18883         (FP_TRUNC): Likewise.
18884         (__FP_CLZ): Likewise.
18885         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
18886
18887 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
18888
18889         * manual/string.texi (XPG basename): Fix prototype.
18890
18891 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
18892
18893         [BZ #18080]
18894         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
18895         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
18896         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
18897         (__setcontext): Likewise.
18898         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
18899         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
18900         Call rt_sigprocmask syscall one time to set new signal mask
18901         and retrieve the current signal mask instead of two calls.
18902         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
18903         (__swapcontext): Likewise.
18904         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
18905         * stdlib/tst-setcontext2.c: New file.
18906
18907 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
18908
18909         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
18910
18911 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
18912
18913         [BZ #18093]
18914         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
18915         the wrong size.
18916
18917 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
18918
18919         [BZ #18043]
18920         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
18921
18922 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
18923
18924         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
18925         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
18926         Remove define.
18927         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
18928         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
18929         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
18930         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
18931         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
18932         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
18933         define.
18934         * nptl_db/td_symbol_list.c (td_lookup): Remove
18935         HAVE_ASM_GLOBAL_DOT_NAME code.
18936         * sysdeps/powerpc/powerpc64/configure.ac: Remove
18937         HAVE_ASM_GLOBAL_DOT_NAME check.
18938         * sysdeps/powerpc/powerpc64/configure: Regenerate.
18939         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
18940         (DOT_LABEL): Remove define.
18941         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
18942         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
18943         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
18944         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
18945         (__TLS_GET_ADDR): Likewise.
18946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
18947         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
18948
18949 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
18950
18951         [BZ #18111]
18952         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
18953         (_FPU_SETCW): Initialize cw from fpsr before storing.
18954         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
18955         (fesetexceptflag): Rewrite using fpu_control.h.
18956         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
18957
18958 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
18959
18960         [BZ #18110]
18961         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
18962         asms.
18963         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
18964
18965 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
18966
18967         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
18968         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
18969         abort.
18970         (_FP_FMA): Likewise.
18971         (_FP_DIV): Likewise.
18972
18973 2015-03-10  Roland McGrath  <roland@hack.frob.com>
18974
18975         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
18976         with 0 in that case.
18977         * Makefile (summarize-tests): New canned sequence, factored out of
18978         commands for targets tests and xtests.  Display summary lines that
18979         don't start with PASS: or XFAIL: rather than ones that do start with
18980         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
18981         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
18982         do start with ERROR: or FAIL:.
18983         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
18984         (except for [$(build-shared) = yes]).
18985         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
18986         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
18987         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
18988         * nptl/Makefile: Revert 2015-03-04 changes.
18989         [$(CXX) empty] (tests-unsupported): New variable.
18990         * debug/Makefile: Likewise.
18991
18992         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
18993         gnulib file.  Replace __attribute with __attribute__ throughout.
18994
18995 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
18996
18997         * sysdeps/hppa/fpu/libm-test-ulps: Update.
18998
18999 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19000
19001         [BZ #18104]
19002         * math/auto-libm-test-in: Add another test of pow.
19003         * math/auto-libm-test-out: Regenerated.
19004
19005 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19006
19007         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19008         $(config-cflags-nofma).
19009
19010 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19011
19012         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19013         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19014         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19015         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19016         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19017         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19018         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19019         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19020         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19021         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19022         Add comment on closing #endif.
19023
19024 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19025
19026         * posix/wordexp.c (CHAR_IN_SET): New macro.
19027         (parse_param): Use it.
19028
19029 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19030
19031         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19032
19033 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19034
19035         [BZ #18043]
19036         * posix/wordexp.c (parse_param): Fix buffer overflow.
19037         * posix/wordexp-test.c (test_case): Add test case.
19038
19039 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19040
19041         [BZ #18042]
19042         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19043         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19044
19045 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19046
19047         [BZ #18043]
19048         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19049         (do_bz18043): Delete.
19050         (at_page_end): New.
19051         (testit): Refactor to have words at the edge of unreadable page.
19052
19053 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19054
19055         [BZ #16734]
19056         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19057         Cleanup read-only streams as well.
19058         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19059
19060 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19061
19062         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19063         <bits/libc-lockP.h>
19064
19065 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19066
19067         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19068         on [__KERNEL__].
19069         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19070         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19071         * soft-fp/op-common.h (_FP_DECL): Likewise.
19072
19073 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19074
19075         * elf/ifuncdep2.c (global): Replace
19076         __attribute__((visibility("protected"))) with
19077         asm (".protected global").
19078         * elf/ifuncmod1.c (global): Likewise.
19079         * elf/ifuncmod5.c (global): Likewise.
19080
19081 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19082
19083         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19084         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19085
19086 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19087
19088         * manual/install.texi (Configuring and compiling):
19089         Document test-wrapper-env-only.
19090         * INSTALL: Regenerated.
19091
19092 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19093
19094         [BZ #18043]
19095         * posix/wordexp.c (parse_param): Fix buffer overflow.
19096         * posix/wordexp-test.c (do_bz18043): Add test case.
19097
19098 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19099
19100         * time/tst-strptime2.c (do_test): Ensure failing tests are
19101         reported correctly.
19102         * time/tst-strptime3.c (do_test): Likewise.
19103
19104 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19105
19106         Fix aio_error thread-safety.
19107         * sysdeps/pthread/aio_error.c: New file
19108         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19109         synchronization.
19110
19111 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19112
19113         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19114         (group_number, vfprintf): Use it.
19115         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19116         (JUMP, REF): Use it.
19117         (WORK_BUFFER_SIZE): New enum constant.
19118         (process_arg, vfprintf): Use it.
19119
19120 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19121
19122         * manual/errno.texi (Error Messages): Complete example function
19123         by adding missing #define.
19124         (program_invocation_name): Add statement indicating GNU
19125         extension and reference which header file declares the variable.
19126         (program_invocation_short_name): Likewise.
19127
19128 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19129
19130         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19131         compatibility note.
19132
19133 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19134
19135         * Makeconfig (test-wrapper-env-only): New variable.
19136         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19137         then use that with $(test-wrapper-env-only) rather than using
19138         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19139
19140 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19141
19142         [BZ #18082]
19143         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19144         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19145         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19146         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19147         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19148         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19149         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19150         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19151         Likewise.
19152         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19153         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19154         Likewise.
19155         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19156         Likewise.
19157         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19158         Likewise.
19159         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19160         Likewise.
19161         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19162         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19163         Likewise.
19164         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19165         Likewise.
19166         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19167         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19168
19169 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19170
19171         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19172         (ETH_ALEN): New macro.
19173         (struct ether_addr): Use it for length of ether_addr_octet.
19174
19175         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19176         (setdb): Don't call __nss_configure_lookup for "rpc".
19177         (do_test): Don't call test_rpc.
19178         (output_rpcent, test_rpc): Functions moved ...
19179         * sunrpc/test-rpcent.c: ... to this new file.
19180         * sunrpc/Makefile (tests): Add it.
19181
19182         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19183         __xpg_sigpause.
19184         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19185         * nptl/tst-signal6.c: Likewise.
19186         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19187         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19188
19189         * configure.ac (libc_cv_cxx_link_ok): New check.
19190         Reset CXX to empty if it fails to link.
19191         * configure: Regenerated.
19192         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19193         bug-atexit3-lib only if $(CXX) is nonempty.
19194         * nptl/Makefile (tests): Likewise for tst-cancel24.
19195         (tests, tests-static): Likewise for tst-cancel24-static.
19196         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19197         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19198         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19199         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19200
19201 2015-03-04  Andreas Schwab  <schwab@suse.de>
19202
19203         [BZ #17631]
19204         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19205         for non-GCC compilers.
19206         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19207         Likewise.
19208
19209 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19210
19211         [BZ #17776]
19212         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19213         integer before bitwise and assembly operations.
19214         (feclearexcept): Likewise.
19215         * math/test-fenvinline.c: New file.
19216         * math/Makefile: Add test-fenvinline test.
19217
19218 2015-03-03  Alan Modra  <amodra@gmail.com>
19219
19220         [BZ #16512]
19221         * scripts/localplt.awk: Strip off symbol version.
19222         * NEWS: Mention bug fix.
19223
19224 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19225
19226         * sysdeps/pthread/timer_routines.c
19227         (timer_free_list, thread_free_list, thread_active_list): Make static.
19228
19229 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19230
19231         [BZ #17779]
19232         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19233         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19234         Undefine.
19235         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19236         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19237         Likewise.
19238         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19239         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19240         Likewise.
19241
19242 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19243
19244         [BZ #18036]
19245         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19246         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19247
19248 2015-03-02  Andreas Schwab  <schwab@suse.de>
19249
19250         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19251         variable name.
19252
19253 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19254
19255         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19256         Return error status.
19257
19258 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19259
19260         [BZ #15969]
19261         * locale/findlocale.c (_nl_find_locale): Introduce const
19262         version of loc_name and drop unsafe type casts.
19263
19264 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19265
19266         * dlfcn/tststatic2.c (main): Converted to ...
19267         (do_test): ... this.
19268         (TEST_FUNCTION): New macro.
19269         Include test-skeleton.c.
19270
19271 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19272
19273         [BZ #17711]
19274         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19275         (tests-pie): Add vismain.
19276         (CFLAGS-vismain.c): New.
19277         * elf/vismain.c: Add comments for PIE requirement.
19278
19279 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19280
19281         [BZ #18046]
19282         [BZ #18047]
19283         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19284         0x1p-56L as threshold for just returning the argument.
19285         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19286         0x1p-32L as threshold for just returning the argument.
19287         * math/auto-libm-test-in: Add more tests of atanh.
19288         * math/auto-libm-test-out: Regenerated.
19289         * sysdeps/i386/fpu/libm-test-ulps: Update.
19290         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19291
19292 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19293
19294         * string/bcopy.c (bcopy): Call memmove for performance.
19295
19296 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19297
19298         * string/bzero.c (__bzero): Call memset for performance.
19299
19300 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19301
19302         [BZ #18068]
19303         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19304         to 00100000.
19305
19306 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19307
19308         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19309
19310 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19311
19312         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19313         (__kernel_standard): Use CSTR macro when setting exc.name.
19314         * sysdeps/ieee754/Makefile [$(subdir) = math]
19315         (CFLAGS-k_standard.c): Remove variable.
19316
19317         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19318         setting p and q from "else if" to "else".
19319         (qzero): Likewise.
19320         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19321         (qone): Likewise.
19322         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19323         (qzerof): Likewise.
19324         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19325         (qonef): Likewise.
19326         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19327         (qzero): Likewise.
19328         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19329         (qone): Likewise.
19330
19331         [BZ #18038]
19332         [BZ #18039]
19333         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19334         return pi/2 for arguments below 0x1p-113L.
19335         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19336         return pi/2 for arguments below 0x1p-106L.
19337         * math/auto-libm-test-in: Add more tests of acos.
19338         * math/auto-libm-test-out: Regenerated.
19339
19340         [BZ #16351]
19341         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19342         (MO): New macro.
19343         (__ieee754_asin): Force underflow exception for results with small
19344         absolute value.
19345         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19346         (MO): New macro.
19347         (__ieee754_asinf): Force underflow exception for results with
19348         small absolute value.
19349         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19350         (__ieee754_asin): Force underflow exception for results with small
19351         absolute value.
19352         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19353         (__ieee754_asinf): Force underflow exception for results with
19354         small absolute value.
19355         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19356         (__ieee754_asinl): Force underflow exception for results with
19357         small absolute value.
19358         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19359         (__ieee754_asinl): Force underflow exception for results with
19360         small absolute value.
19361         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19362         (__ieee754_asinl): Force underflow exception for results with
19363         small absolute value.
19364         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19365         Include <math.h>.
19366         * math/auto-libm-test-in: Do not mark underflow exceptions as
19367         possibly missing for bug 16351.
19368         * math/auto-libm-test-out: Regenerated.
19369
19370         [BZ #18030]
19371         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19372         of power of 2 down when low part has opposite sign.
19373         * math/libm-test.inc (logb_test_data): Add more tests.
19374
19375 2015-02-26  Andreas Schwab  <schwab@suse.de>
19376
19377         [BZ #18032]
19378         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19379         over collating symbol inside a bracket expression.  Minor cleanup.
19380         * posix/tst-fnmatch3.c (do_test): Add test case.
19381
19382 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19383
19384         [BZ #18029]
19385         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19386         Adjust exponent of power of 2 down when low part has opposite
19387         sign.
19388         * math/libm-test.inc (ilogb_test_data): Add more tests.
19389
19390 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19391
19392         [BZ #15969]
19393         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19394         the previous change.
19395
19396         [BZ #15969]
19397         * locale/findlocale.c (_nl_find_locale): Retry archive search
19398         after alias expansion.
19399
19400 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19401
19402         * iconv/tst-iconv3.c (main): Converted to ...
19403         (do_test): ... this.
19404         (TEST_FUNCTION): New macro.
19405         Include test-skeleton.c.
19406
19407         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19408         (convert): Make function static.
19409         (test_unalign): Likewise.  Add const to argument pointee types.
19410         (main): Replace with static function do_test.
19411         Print "Succeeded." only if RET is zero.
19412         (TEST_FUNCTION): New macro.
19413         Include test-skeleton.c.
19414
19415         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19416         returns a null pointer.
19417
19418 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19419
19420         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19421         to __memcpy_ppc only for static builds.
19422
19423 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19424
19425         [BZ #18020]
19426         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19427         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19428         * math/auto-libm-test-in: Add more tests of asinh.
19429         * math/auto-libm-test-out: Regenerated.
19430         * sysdeps/i386/fpu/libm-test-ulps: Update.
19431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19432
19433 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19434
19435         [BZ #15850]
19436         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19437         and ip6_mtuinfo definitions here.
19438         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19439         in this define too.  Update comment.
19440
19441 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19442
19443         * elf/sprof.c (load_shobj): Tweak error message to match others.
19444
19445 2015-02-24  Kevin Easton  <kevin@guarana.org>
19446
19447         [BZ #16145] (partial fix)
19448         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19449         to reduce lock contention.
19450
19451 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19452
19453         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19454         (struct timex): Update time comment.
19455         (ADJ_SETOFFSET): Define.
19456
19457 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19458
19459         [BZ #18019]
19460         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19461         2**56 not 2**28 as threshold for log (2x) formula.
19462         * math/auto-libm-test-in: Add more tests of acosh.
19463         * math/auto-libm-test-out: Regenerated.
19464         * sysdeps/i386/fpu/libm-test-ulps: Update.
19465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19466
19467 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19468
19469         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19470         parenthesis around the buf assignment.
19471         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19472
19473 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19474
19475         [BZ #16783]
19476         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19477         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19478         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19479         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19480         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19481         * math/libm-test.inc (scalb_test_data): Add more tests.
19482
19483 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19484
19485         [BZ #17916]
19486         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19487         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19488
19489 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19490
19491         [BZ #17523]
19492         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19493         * io/bits/fcntl2.h (open): Use it.
19494         (openat): Likewise.
19495         * io/open.c (__libc_open): Likewise.
19496         * io/open64.c (__libc_open64): Likewise.
19497         * io/open64_2.c (__open64_2): Likewise.
19498         * io/open_2.c (__open_2): Likewise.
19499         * io/openat.c (__openat): Likewise.
19500         * io/openat64.c (__openat64): Likewise.
19501         * io/openat64_2.c (__openat64_2): Likewise.
19502         * io/openat_2.c (__openat_2): Likewise.
19503         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19504         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19505         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19506         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19507         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19508         (__open_nocancel): Likewise.
19509         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19510         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19511         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19512
19513 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19514
19515         [BZ #14841]
19516         * resolv/gethnamaddr.c (getanswer): Skip logging if
19517         RES_USE_DNSSEC is set.
19518         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19519
19520 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19521
19522         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19523
19524 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19525
19526         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19527         201304L, for Unicode 7.
19528
19529 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19530
19531         [BZ #17836]
19532         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19533         shared library.  Add gmon-start.os otherwise.
19534         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19535         $(objpfx)gmon-start.os if builing shared library.
19536         ($(objpfx)g$(static-start-installed-name)): Likewise.
19537
19538 2015-02-23  Andreas Schwab  <schwab@suse.de>
19539
19540         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19541
19542 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19543
19544         [BZ #17269]
19545         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19546         (enlarge_userbuf): Likewise.
19547
19548 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19549
19550         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19551         * math/atest-exp.c (TIMEOUT): Adjust to 200.
19552         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
19553         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
19554
19555 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
19556
19557         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
19558         expression inside statement expression.
19559
19560 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19561
19562         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
19563         <sysdeps/nptl/lowlevellock.h> and remove macros and
19564         functions that are now defined there.
19565         (SYS_futex): Remove.
19566         (lll_compare_and_swap): Remove.
19567         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
19568
19569 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
19570
19571         [BZ #17999]
19572         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
19573         instead of scandirat.
19574         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
19575         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
19576         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
19577         __scandirat.
19578         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
19579         (__scandirat): Declare.  Use libc_hidden_proto.
19580         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
19581         Remove variable.
19582         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
19583
19584 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19585
19586         [BZ #15319]
19587         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
19588         (MO): New macro.
19589         (__ieee754_atan2): For results with small absolute value, force
19590         underflow exception and remove excess range and precision from
19591         return value.
19592         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
19593         (MO): New macro.
19594         (__ieee754_atan2f): For results with small absolute value, force
19595         underflow exception and remove excess range and precision from
19596         return value.
19597         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
19598         (MO): New macro.
19599         (__atan): For results with small absolute value, force underflow
19600         exception and remove excess range and precision from return value.
19601         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
19602         (MO): New macro.
19603         (__atanf): For results with small absolute value, force underflow
19604         exception and remove excess range and precision from return value.
19605         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
19606         <math.h>.
19607         (__ieee754_atan2): Force underflow exception for results with
19608         small absolute value.
19609         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
19610         <math_private.h>.
19611         (atan): Force underflow exception for results with small absolute
19612         value.
19613         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
19614         (__atanf): Force underflow exception for results with small
19615         absolute value.
19616         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
19617         <math.h>.
19618         (__atanl): Force underflow exception for results with small
19619         absolute value.
19620         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
19621         (__atanl): Force underflow exception for results with small
19622         absolute value.
19623         * sysdeps/x86/fpu/bits/mathinline.h
19624         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
19625         (__ieee754_atan2): Only define inline for long double.
19626         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
19627         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
19628         * math/auto-libm-test-in: Do not mark underflow exceptions as
19629         possibly missing for bug 15319.  Add more tests of atan2.
19630         * math/auto-libm-test-out: Regenerated.
19631         * math/libm-test.inc (casin_test_data): Do not mark underflow
19632         exceptions as possibly missing for bug 15319.
19633         (casinh_test_data): Likewise.
19634         * sysdeps/i386/fpu/libm-test-ulps: Update.
19635
19636 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
19637
19638         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
19639         * sysdeps/mips/bits/endian.h: Fix comments.
19640
19641 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19642
19643         [BZ #17996]
19644         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
19645         (hdestroy_r): Likewise.
19646         (hsearch_r): Likewise.
19647         (__hcreate_r): Declare and use libc_hidden_proto.
19648         (__hdestroy_r): Likewise.
19649         (__hsearch_r): Likewise.
19650         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
19651         (hcreate): Call __hcreate_r instead of hcreate_r.
19652         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
19653         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
19654         as weak alias of __hcreate_r.
19655         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
19656         __hdestroy_r.
19657         (hsearch_r): Rename to __hsearch_r and define as weak alias of
19658         __hsearch_r.
19659         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
19660         Remove variable.
19661         (test-xfail-XPG4/search.h/linknamespace): Likewise.
19662         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
19663         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
19664         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
19665
19666 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19667
19668         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
19669         arena_lock into a single arena_get.
19670
19671 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
19672
19673         * dl-reloc.c: Inlucde libc-internal.h.
19674         (_dl_try_allocate_static_tls): Call ALIGN_UP.
19675         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
19676         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
19677         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
19678         (grow_heap): Likewise.
19679         * malloc/malloc.c: Include libc-internal.h.
19680         (do_check_malloc): Call powerof2.
19681         (sysmalloc): Use pagesize. Call ALIGN_UP.
19682         (systrim): Use pagesize.
19683         (mremap_chunk): Use pagesize. Call ALIGN_UP.
19684         (__libc_valloc): Use pagesize.
19685         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
19686
19687 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19688
19689         [BZ #17991]
19690         * include/sys/resource.h (__getrlimit64): Declare.  Use
19691         libc_hidden_proto.
19692         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
19693         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
19694         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
19695         getrlimit64.
19696         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
19697         __getrlimit64.
19698         [!getrlimit64] (getrlimit64): Define as weak alias of
19699         __getrlimit64.  Use libc_hidden_weak.
19700         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
19701         using __getrlimit64 not __new_getrlimit64.
19702         (__GI_getrlimit64): Likewise.
19703         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
19704         Likewise.
19705         (__GI_getrlimit64): Likewise.
19706         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
19707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
19708         (getrlimit): Add __getrlimit64 alias.
19709         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
19710         Likewise.
19711         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
19712         Remove variable.
19713         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
19714         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
19715
19716 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
19717
19718         * libio/fileops.c: Add missing sys/mman.h
19719         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
19720
19721 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19722
19723         * manual/math.texi (Errors in Math Functions): Clarify goals
19724         regarding inexact and underflow exceptions.
19725
19726 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19727
19728         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
19729         * sysdeps/mips/memset.S: Ditto.
19730
19731 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19732
19733         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
19734
19735 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
19736
19737         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
19738         (__v1longjmp): Remove versioned symbol.
19739         (__v1siglongjmp): Remove alias and versioned symbol.
19740         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
19741         (__v2siglongjmp): Likewise.
19742
19743 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19744
19745         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
19746
19747 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
19748
19749         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
19750
19751 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19752
19753         [BZ #17987]
19754         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
19755         zero result does not depend on the sign resulting from
19756         subtraction.
19757         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19758         Likewise.
19759         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19760         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19761         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19762         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19763         * math/libm-test.inc (remquo_test_data): Add more tests.
19764
19765 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19766
19767         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
19768         Problem reported by J William Piggott.
19769
19770 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19771
19772         [BZ #17978]
19773         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
19774         products 4 * y and 2 * y where those would overflow.
19775         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19776         Likewise.
19777         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19778         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19779         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19780         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19781         * math/libm-test.inc (remquo_test_data): Add more tests.
19782
19783         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
19784
19785         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
19786         [defined _COMPILING_NEWLIB].
19787         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
19788         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
19789
19790         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
19791         [!defined __mips_isa_rev || __mips_isa_rev < 6].
19792
19793 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19794
19795         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
19796         acquired.
19797
19798 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
19799
19800         [BZ #17792]
19801         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
19802         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
19803         HOST_STACK_END_ADDR): Likewise.
19804
19805 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
19806
19807         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
19808         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
19809         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
19810
19811 2015-02-13  Roland McGrath  <roland@hack.frob.com>
19812
19813         * sysdeps/generic/c++-types.data: New file.
19814         * sysdeps/generic/ld.abilist: New file.
19815         * sysdeps/generic/libBrokenLocale.abilist: New file.
19816         * sysdeps/generic/libanl.abilist: New file.
19817         * sysdeps/generic/libc.abilist: New file.
19818         * sysdeps/generic/libcrypt.abilist: New file.
19819         * sysdeps/generic/libdl.abilist: New file.
19820         * sysdeps/generic/libm.abilist: New file.
19821         * sysdeps/generic/libpthread.abilist: New file.
19822         * sysdeps/generic/libresolv.abilist: New file.
19823         * sysdeps/generic/librt.abilist: New file.
19824
19825 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
19826
19827         [BZ #17569]
19828         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19829         Compute absolute value of x as modified by fmod, not original
19830         value of x.
19831         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
19832         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
19833         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
19834         RUN_TEST_ffI_f1_mod8.
19835         (remquo_test_data): Add more tests.
19836
19837 2015-02-13  Roland McGrath  <roland@hack.frob.com>
19838
19839         * sysdeps/init_array/pt-crti.S: New file.
19840
19841 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
19842
19843         [BZ #17967]
19844         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
19845         __builtin_fmaf instead of relying on contraction of a * b + c.
19846
19847 2015-02-12  J William Piggott  <elseifthen@gmx.com>
19848
19849         [BZ #17969]
19850         * manual/time.texi: correct the zoneinfo path in the TZ Variable
19851         node.
19852
19853 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
19854
19855         [BZ #17964]
19856         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
19857         __builtin_fma instead of relying on contraction of a * b + c.
19858
19859 2015-02-12  Roland McGrath  <roland@hack.frob.com>
19860
19861         * Makeconfig (ASFLAGS): Add -Werror=undef.
19862         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
19863         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
19864         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
19865
19866         * Makeconfig (after-link): New variable.
19867         (+link-pie, +link-pie-tests): Use it.
19868         (+link-static, +link-static-tests): Likewise.
19869         (+link, +link-tests): Likewise.
19870         * Makerules (build-module, build-module-asneeded): Likewise.
19871         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
19872         Likewise.
19873         * elf/Makefile ($(objpfx)ld.so): Likewise.
19874
19875 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
19876
19877         [BZ #17965]
19878         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
19879         both struct timeval and struct timespec.
19880
19881 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
19882
19883         [BZ #16560]
19884         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19885         and redefine.
19886         (__ieee754_exp2l): Do not multiply small fractional parts by
19887         M_LN2l.
19888         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
19889         small argument.
19890         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
19891         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
19892         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
19893         * math/auto-libm-test-in: Add more tests of exp2.
19894         * math/auto-libm-test-out: Regenerated.
19895
19896 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19897
19898         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
19899         unaligned path.
19900
19901 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19902
19903         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
19904         little endian.
19905
19906 2015-02-12  Andreas Schwab  <schwab@suse.de>
19907
19908         [BZ #15790]
19909         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
19910         Filter out elision flags from value returned in kind.
19911         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
19912         * nptl/tst-pthread-mutexattr.c: New file.
19913
19914 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19915
19916         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
19917         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
19918         into gnu-gnu, and update comment to refer to abi-tags.
19919
19920 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
19921
19922         [BZ #15467]
19923         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
19924         (__sincos): Set errno to EDOM for infinite argument.
19925         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
19926         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
19927         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
19928         (__sincosl): Set errno to EDOM for infinite argument.
19929         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
19930         (__sincosl): Set errno to EDOM for infinite argument.
19931         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
19932         (__sincosl): Set errno to EDOM for infinite argument.
19933         * math/libm-test.inc (sincos_test_data): Test errno setting.
19934
19935 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
19936
19937         * string/strxfrm_l.c: Remove #define STRCMP.
19938         * string/strcoll_l.c: Remove #define STRLEN.
19939         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
19940         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
19941
19942 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
19943
19944         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
19945         * sysdeps/mips/mips32/sfp-machine.h: ... here.
19946         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
19947         * sysdeps/mips/mips64/Makefile: ... here.
19948         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
19949         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
19950         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
19951         * sysdeps/mips/mips64/sfp-machine.h: ... here.
19952         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
19953         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
19954         * sysdeps/mips/mips64/n64/Implies: Likewise.
19955
19956 2015-02-10  Roland McGrath  <roland@hack.frob.com>
19957
19958         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
19959         <sys/time.h>, <string.h>, and <errno.h>.
19960         (dest_offset, dest_address, value, zero): Remove unused variables.
19961         (ldouble): Remove typedef.
19962         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
19963         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
19964         1).  Fix code style.
19965         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
19966         (check): Function removed.
19967         (CHECK): New macro.
19968         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
19969         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
19970         Don't call set_sigaction_FP and remove_sigaction_FP here.
19971         (ldouble_test): Just use 'long double' as macro argument, no need for
19972         the 'ldouble' typedef.
19973         (do_test): Set up SIGFPE handler at start, using plain signal rather
19974         than sigaction.  Fix code style.
19975
19976 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
19977
19978         [BZ #17949]
19979         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
19980         jump label.
19981
19982 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19983
19984         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
19985         * sysdeps/powerpc/powerpc32/configure: Regenerated.
19986
19987         * sysdeps/powerpc/configure.ac: Remove file.
19988         * sysdeps/powerpc/configure: Likewise.
19989
19990         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
19991         [sysdep_routines]: Remove wordcopy-power6 object.
19992         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
19993         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
19994         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
19995         (__memmove_ppc32): Likewise.
19996         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
19997         file.
19998         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
19999         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20000         Remove preprocessor.
20001
20002         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20003         [sysdep_routines]: Remove wide chars objects.
20004         [wcsmbs]: New rule for wide char objects.
20005
20006         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20007         Remove wordcopy-power6 obejct.
20008         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20009         Use local call for wordcopy and memcpy symbols.
20010         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20011         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20012         implementation for loader.
20013         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20014
20015         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20016         Remove wordcopy-power7 object.
20017         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20018         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20019         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20020         (_wordcopy_fwd_dest_aligned): Likewise.
20021         (_wordcopy_bwd_aligned): Likewise.
20022         (_wordcopy_bwd_dest_aligned): Likewise.
20023
20024         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20025         Rewrite to call __memmove_ppc instead of include default
20026         implementation.
20027
20028         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20029         Remove wide chars objects.
20030         [wcsmbs]: New rule for wide char objects.
20031
20032 2015-02-09  Andreas Schwab  <schwab@suse.de>
20033
20034         [BZ #17912]
20035         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20036         in terms of __O_DIRECTORY.
20037
20038 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20039
20040         * time/getdate.c: Include <stdbool.h>.
20041         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20042         call PTR_MANGLE.
20043         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20044         PTR_DEMANGLE.
20045
20046 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20047
20048         Add ersatz _Static_assert on older C hosts
20049         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20050         pre-C11 C platform that is not known to support _Static_assert.
20051
20052 2015-02-07  Richard Braun  <rbraun@sceen.net>
20053
20054         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20055         sigstate.
20056         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20057
20058 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20059
20060         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20061         priority against unexistent AIO_PRIO_DELTA_MAX.
20062         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20063         instead of int.
20064         * misc/fchflags.c (fchflags): Likewise.
20065         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20066         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20067         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20068         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20069         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20070         Declare macros.
20071         [__USE_MISC] (chflags, fchflags): Declare functions.
20072         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20073         EINVAL when nfds is greater than FD_SETSIZE.
20074         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20075         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20076         45.
20077         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20078         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20079         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20080         MACH_RCV_TIMED_OUT.
20081         * hurd/hurd/signal.h (_hurd_self_sigstate,
20082         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20083         Explicit casts from void *.
20084         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20085         * abi-tags: Rename gnu-gnu os into gnu.
20086
20087         [BZ #4719]
20088         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20089         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20090         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20091         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20092         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20093         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20094
20095         [BZ #17944]
20096         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20097         duplicates ADDR->sun_path with sockaddr LEN limitation.
20098         * sysdeps/mach/hurd/connect.c: Include <string.h>
20099         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20100         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20101         * sysdeps/mach/hurd/sendto.c: Likewise.
20102         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20103         implementing it by hand.
20104
20105 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20106
20107         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20108         Use sfi_breg on ldr.
20109         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20110         Likewise.
20111
20112         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20113         it's defined.
20114         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20115         Test SIGSETXID only if it's defined.
20116
20117         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20118
20119         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20120         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20121
20122         * nptl/tst-align2.c: Moved ...
20123         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20124         * nptl/Makefile (tests): Remove tst-align2.
20125         * sysdeps/unix/sysv/linux/Makefile
20126         [$(subdir) = nptl] (tests): Add tst-align-clone.
20127         * nptl/tst-getpid1.c: Moved ...
20128         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20129         * nptl/tst-getpid2.c: Moved ...
20130         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20131         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20132         * sysdeps/unix/sysv/linux/Makefile
20133         [$(subdir) = nptl] (tests): ... here.
20134         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20135         * sysdeps/unix/sysv/linux/Makefile
20136         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20137
20138         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20139         Drop trailing \n from perror argument.  Use return rather than exit.
20140
20141         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20142         on [SA_SIGINFO].
20143         * nptl/tst-cancel21.c (do_test): Likewise.
20144         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20145         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20146         [!SA_SIGINFO]: Make it a stub test.
20147
20148         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20149         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20150
20151         * posix/tst-getlogin.c: Move to ...
20152         * login/tst-getlogin.c: ... here.
20153         * posix/Makefile (tests): Move tst-getlogin to ...
20154         * login/Makefile (tests): ... here.
20155
20156         * libio/tst-atime.c (do_test): Move local variables SV and E
20157         inside [ST_NOATIME] conditional.
20158
20159         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20160
20161         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20162
20163         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20164         (wait_code): New function replaces macro.
20165         Call nanosleep rather than syscall.
20166
20167         * nptl/pt-system.c: Rewritten.  Put everything under
20168         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20169         Use IFUNC to redirect when possible.
20170
20171         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20172         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20173         Use IFUNC to redirect when possible.
20174
20175         * nptl/pt-fork.c: Rewritten.  Put everything under
20176         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20177         Use IFUNC to redirect when possible.
20178         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20179
20180         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20181         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20182         unconditionally nowadays.  This included the only reference to
20183         __vdso_clock_gettime that appears outside libc proper.
20184         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20185         Remove version set (containing only __vdso_clock_gettime).
20186         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20187         Add attribute_hidden.
20188         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20189         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20190         libc_hidden_data_def.
20191         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20192         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20193
20194         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20195         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20196         setrpcent, and getrpcport to ...
20197         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20198         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20199         getrpcbynumber_r, and getrpcent_r to ...
20200         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20201         * inet/getrpcbyname.c: Moved ...
20202         * sunrpc/getrpcbyname.c: ... here.
20203         * inet/getrpcbyname_r.c: Moved ...
20204         * sunrpc/getrpcbyname_r.c: ... here.
20205         * inet/getrpcbynumber.c: Moved ...
20206         * sunrpc/getrpcbynumber.c: ... here.
20207         * inet/getrpcbynumber_r.c: Moved ...
20208         * sunrpc/getrpcbynumber_r.c: ... here.
20209         * inet/getrpcent.c: Moved ...
20210         * sunrpc/getrpcent.c: ... here.
20211         * inet/getrpcent_r.c: Moved ...
20212         * sunrpc/getrpcent_r.c: ... here.
20213         * inet/Makefile (routines): Move those to ...
20214         * sunrpc/Makefile (routines): ... here.
20215         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20216         the $(subdirs) list.
20217         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20218         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20219         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20220         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20221
20222         * elf/Makefile (routines): Include $(all-dl-routines), not just
20223         $(dl-routines).
20224         (rtld-routines): Likewise.  Use = rather than :=.
20225         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20226         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20227         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20228         * sysdeps/arm/Makefile: Likewise.
20229         * sysdeps/i386/Makefile: Likewise.
20230         * sysdeps/x86_64/Makefile: Likewise.
20231         * sysdeps/hppa/Makefile [$(subdir) = elf]
20232         (sysdep_routines, sysdep-rtld-routines): Don't add
20233         $(sysdep-dl-routines) to these.
20234         * sysdeps/ia64/Makefile: Likewise.
20235         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20236         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20237         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20238         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20239         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20240         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20241         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20242         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20243         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20244         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20245         these; sysdep-dl-routines alone is enough.
20246
20247 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20248
20249         [BZ #17932]
20250         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20251         where multiplication results in zero and third argument is finite
20252         and nonzero.
20253         * math/auto-libm-test-in: Add more tests of fma.
20254         * math/auto-libm-test-out: Regenerated.
20255
20256         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20257         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20258         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20259         (_FP_CMP_EQ): Likewise.
20260         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20261
20262         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20263         extra argument CHECK_NAN.  Redefine as wrapper around
20264         _FP_EXTEND_CNAN.
20265
20266 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20267
20268         * version.h (RELEASE): Set to "stable".
20269         (VERSION): Set to "2.21"
20270         * include/features.h (__GLIBC_MINOR__): Set to 21.
20271
20272         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20273
20274 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20275             Paul Eggert  <eggert@cs.ucla.edu>
20276
20277         [BZ #16618]
20278         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20279         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20280         size in bytes. Store needed elements in wpmax. Use needed size
20281         in bytes for extend_alloca.
20282
20283 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20284
20285         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20286         binutls 2.25, and texinfo 5.2.
20287         * INSTALL: Regenerate.
20288         * sysdeps/nios2/configure: Regenerate.
20289         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20290         * manual/contrib.texi: Update.
20291         * po/be.po: Update.
20292         * po/bg.po: Update.
20293         * po/ca.po: Update.
20294         * po/cs.po: Update.
20295         * po/da.po: Update.
20296         * po/de.po: Update.
20297         * po/el.po: Update.
20298         * po/eo.po: Update.
20299         * po/es.po: Update.
20300         * po/fi.po: Update.
20301         * po/fr.po: Update.
20302         * po/gl.po: Update.
20303         * po/hr.po: Update.
20304         * po/hu.po: Update.
20305         * po/ia.po: Update.
20306         * po/id.po: Update.
20307         * po/it.po: Update.
20308         * po/ja.po: Update.
20309         * po/ko.po: Update.
20310         * po/lt.po: Update.
20311         * po/nb.po: Update.
20312         * po/nl.po: Update.
20313         * po/pl.po: Update.
20314         * po/pt_BR.po: Update.
20315         * po/ru.po: Update.
20316         * po/rw.po: Update.
20317         * po/sk.po: Update.
20318         * po/sl.po: Update.
20319         * po/sv.po: Update.
20320         * po/tr.po: Update.
20321         * po/uk.po: Update.
20322         * po/vi.po: Update.
20323         * po/zh_CN.po: Update.
20324         * po/zh_TW.po: Update.
20325
20326         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20327         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20328         * sysdeps/hppa/dl-irel.h: Remove #warning.
20329         * sysdeps/hppa/entry.h: Provide prototype for
20330         __canonicalize_funcptr_for_compare and cast argument.
20331         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20332         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20333         * sysdeps/hppa/sotruss-lib.c: New file.
20334         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20335         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20336         (atomic_compare_and_exchange_bool_acq): Likewise.
20337         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20338         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20339
20340         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20341         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20342         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20343
20344 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20345
20346         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20347         called function in non-PIC case.
20348
20349 2015-01-31  David S. Miller  <davem@davemloft.net>
20350
20351         * sysdeps/sparc/sparc32/bits/atomic.h
20352         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20353         unlock not after it.
20354         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20355         volatile register usage warnings from the compiler.
20356
20357         * sysdeps/sparc/nptl/sem_init.c: Delete.
20358         * sysdeps/sparc/nptl/sem_post.c: Delete.
20359         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20360         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20361         * sysdeps/sparc/sparc32/sem_init.c: New file.
20362         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20363         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20364         padding explicitly initialized.
20365         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20366         padding for in-semaphore spinlock.
20367         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20368         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20369         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20370         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20371         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20372         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20373         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20374         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20375         version.
20376         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20377         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20378
20379 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20380
20381         [BZ #17801]
20382         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20383         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20384         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20385         New.
20386         (index_AVX_Fast_Unaligned_Load): Likewise.
20387         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20388         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20389         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20390         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20391         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20392         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20393         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20394         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20395         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20396
20397 2015-01-29  Andreas Schwab  <schwab@suse.de>
20398
20399         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20400
20401 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20402
20403         [BZ #17892]
20404         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20405
20406 2015-01-28  Martin Sebor  <msebor@redhat.com>
20407
20408         * math/README.libm-test: Clarify. Add "How to read the test output."
20409
20410 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20411
20412         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20413         Define to 0.
20414
20415 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20416
20417         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20418         (__HAVE_64B_ATOMICS): Define to 0.
20419
20420 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20421
20422         [BZ #17885]
20423         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20424         value to set as new flag.
20425
20426         [BZ #16576]
20427         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20428         and use _ARCH_PPCSQ instead.
20429         (__ieee754_sqrt): Likewise.
20430         (__ieee754_sqrtf): Likewise.
20431         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20432         _ARCH_PPCSQ is defined.
20433         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20434         fsqrt instruction.
20435         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20436         _ARCH_PPCSQ is defined.
20437         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20438         fsqrts instruction.
20439         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20440
20441 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20442
20443         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20444         bug (GCC BZ #64739).
20445
20446 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20447
20448         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20449         Mark _retval as used.
20450         (lll_futex_wake_unlock): Likewise.
20451         (lll_futex_timed_wait_requeue_pi): Likewise.
20452
20453         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20454         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20455         register variables.
20456
20457         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20458         libm_hidden_def.
20459
20460         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20461         (__bswap_64): Mark as __always_inline.
20462
20463 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20464
20465         [BZ #15378]
20466         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20467         when none of the search directories exist.
20468
20469 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20470
20471         [BZ #17869]
20472         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20473         power8 in .machine directive.
20474
20475         [BZ #17868]
20476         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20477         set dependency from opd value.
20478
20479 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20480
20481         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20482         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20483         architecture.
20484
20485 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20486
20487         [BZ #17870]
20488         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20489         with uint64_t.
20490         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20491         (uint64_t) 1.
20492         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20493         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20494         Replace 1UL with (uint64_t) 1.
20495         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20496         int with uint64_t.
20497
20498 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20499
20500         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20501         (if_freenameindex): Likewise.
20502
20503         * resource/getrlimit64.c: Add missing libc_hidden_def.
20504
20505 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20506
20507         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20508         __label__.
20509         (_FP_FMA): Likewise.
20510         (_FP_TO_INT_ROUND): Likewise.
20511         (_FP_FROM_INT): Likewise.
20512
20513 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20514
20515         [BZ #16418]
20516         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20517         Make code racy and cancel safe.
20518
20519 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20520
20521         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20522         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20523         attribution.
20524
20525         * pwd/tst-getpw.c: Rewrite.
20526
20527         [BZ #17702]
20528         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20529         (modules-names): Add moddummy1 and moddummy2.
20530         ($(objpfx)tst-rec-dlopen): Define.
20531         * dlfcn/moddummy1.c: New file.
20532         * dlfcn/moddummy2.c: New file.
20533         * dlfcn/tst-rec-dlopen.c: New file.
20534         * elf/dl-cache.c (_dl_load_cache_lookup):
20535         Return char*. Copy result with alloca/strcpy/strdup.
20536         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20537         returns char*. Free cached. If not saving realname
20538         free cached.
20539         * elf/dl-open.c (dl_open_worker): Do not assert that
20540         _r_debug->r_state is RT_CONSISTENT.
20541         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20542         returns char*.
20543
20544 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20545             Carlos O'Donell  <carlos@redhat.com>
20546
20547         [BZ #12674]
20548         * nptl/sem_waitcommon.c: New file.
20549         * nptl/sem_wait.c: Include sem_waitcommon.c.
20550         (__sem_wait_cleanup, do_futex_wait): Remove.
20551         (__new_sem_wait): Adapt.
20552         (__new_sem_trywait): New function.
20553         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
20554         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
20555         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
20556         (sem_timedwait): Adapt.
20557         * nptl/sem_post.c (__new_sem_post): Adapt.
20558         (futex_wake): New function.
20559         (__old_sem_post): Add release MO fence.
20560         * nptl/sem_open.c (sem_open): Adapt.
20561         * nptl/sem_init.c (__new_sem_init): Adapt.
20562         (futex_private_if_supported): New function.
20563         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
20564         (__old_sem_getvalue): Add using previous code.
20565         * sysdeps/nptl/internaltypes.h: Adapt.
20566         * nptl/tst-sem13.c (do_test): Adapt.
20567         * nptl/tst-sem11.c (main): Adapt.
20568         * nptl/sem_trywait.c: Remove.
20569         * nptl/DESIGN-sem.txt: Remove.
20570         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
20571         (gen-as-const-headers): Remove structsem.sym.
20572         * nptl/structsem.sym: Remove.
20573         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
20574         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
20575         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
20576         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
20577         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
20578         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
20579         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
20580         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
20581         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
20582         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
20583         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
20584         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
20585         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
20586         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
20587         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
20588         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
20589         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
20590         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
20591         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
20592         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
20593         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
20594         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
20595
20596 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
20597
20598         * INSTALL: Regenerated.
20599
20600         * po/libc.pot: Regenerated.
20601
20602 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
20603             Sandra Loosemore  <sandra@codesourcery.com>
20604             Andrew Jenner  <andrew@codesourcery.com>
20605             Joseph Myers  <joseph@codesourcery.com>
20606             Nathan Sidwell  <nathan@codesourcery.com>
20607
20608         * NEWS: Mention new Nios II port.
20609         * sysdeps/nios2/Implies: New file.
20610         * sysdeps/nios2/Makefile: New file.
20611         * sysdeps/nios2/Subdirs: New file.
20612         * sysdeps/nios2/Versions: New file.
20613         * sysdeps/nios2/__longjmp.S: New file.
20614         * sysdeps/nios2/abort-instr.h: New file.
20615         * sysdeps/nios2/backtrace.c: New file.
20616         * sysdeps/nios2/bits/endian.h: New file.
20617         * sysdeps/nios2/bits/fenv.h: New file.
20618         * sysdeps/nios2/bits/link.h: New file.
20619         * sysdeps/nios2/bits/setjmp.h: New file.
20620         * sysdeps/nios2/bsd-_setjmp.S: New file.
20621         * sysdeps/nios2/bsd-setjmp.S: New file.
20622         * sysdeps/nios2/configure: New generated file.
20623         * sysdeps/nios2/configure.ac: New file.
20624         * sysdeps/nios2/crti.S: New file.
20625         * sysdeps/nios2/crtn.S: New file.
20626         * sysdeps/nios2/dl-init.c: New file.
20627         * sysdeps/nios2/dl-machine.h: New file.
20628         * sysdeps/nios2/dl-sysdep.h: New file.
20629         * sysdeps/nios2/dl-tls.h: New file.
20630         * sysdeps/nios2/dl-trampoline.S: New file.
20631         * sysdeps/nios2/gccframe.h: New file.
20632         * sysdeps/nios2/gmp-mparam.h: New file.
20633         * sysdeps/nios2/jmpbuf-offsets.h: New file.
20634         * sysdeps/nios2/jmpbuf-unwind.h: New file.
20635         * sysdeps/nios2/ldsodefs.h: New file.
20636         * sysdeps/nios2/libc-tls.c: New file.
20637         * sysdeps/nios2/libm-test-ulps: New file.
20638         * sysdeps/nios2/machine-gmon.h: New file.
20639         * sysdeps/nios2/math-tests.h: New file.
20640         * sysdeps/nios2/math_private.h: New file.
20641         * sysdeps/nios2/memusage.h: New file.
20642         * sysdeps/nios2/nptl/Makefile: New file.
20643         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
20644         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
20645         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
20646         * sysdeps/nios2/nptl/pthreaddef.h: New file.
20647         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
20648         * sysdeps/nios2/nptl/tls.h: New file.
20649         * sysdeps/nios2/preconfigure: New file.
20650         * sysdeps/nios2/s_fma.c: New file.
20651         * sysdeps/nios2/s_fmaf.c: New file.
20652         * sysdeps/nios2/setjmp.S: New file.
20653         * sysdeps/nios2/sfp-machine.h: New file.
20654         * sysdeps/nios2/sotruss-lib.c: New file.
20655         * sysdeps/nios2/stackguard-macros.h: New file.
20656         * sysdeps/nios2/stackinfo.h: New file.
20657         * sysdeps/nios2/start.S: New file.
20658         * sysdeps/nios2/sysdep.h: New file.
20659         * sysdeps/nios2/tls-macros.h: New file.
20660         * sysdeps/nios2/tst-audit.h: New file.
20661         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
20662         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
20663         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
20664         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
20665         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
20666         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
20667         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
20668         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
20669         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
20670         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
20671         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
20672         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
20673         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
20674         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
20675         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
20676         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
20677         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
20678         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
20679         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
20680         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
20681         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
20682         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
20683         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
20684         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
20685         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
20686         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
20687         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
20688         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
20689         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
20690         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
20691         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
20692         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
20693         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
20694         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
20695         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
20696         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
20697         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
20698         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
20699         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
20700         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
20701         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
20702         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
20703         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
20704         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
20705
20706 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20707
20708         [BZ #17844]
20709         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
20710         (getutent): Use weak_alias in non SHARED case
20711         and default_symbol_version in SHARED case.
20712         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
20713         (getutent_r, pututline): Likewise.
20714         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
20715         (getutid): Likewise.
20716         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
20717         (getutid_r): Likewise.
20718         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
20719         (getutline): Likewise.
20720         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
20721         (getutline_r): Likewise.
20722         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
20723         (updwtmp): Likewise.
20724
20725 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20726
20727         [BZ #17848]
20728         * sysdeps/s390/s390-32/memcmp.S
20729         (memcmp_g5): Rename to __memcmp_g5.
20730         * sysdeps/s390/s390-32/memcpy.S
20731         (memcpy_g5): Rename to __memcpy_g5.
20732         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20733         (memcpy_mvcle) Rename to __memcpy_mvcle.
20734         * sysdeps/s390/s390-32/memset.S
20735         (memset_g5): Rename to __memset_g5.
20736         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
20737         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20738         and use prefixed functions.
20739         * sysdeps/s390/s390-32/multiarch/memcmp.S
20740         (memcmp_z196): Rename to __memcmp_z196.
20741         (memcmp_z10): Rename to __memcmp_z10.
20742         (memcmp): Set alias to __memcmp_g5.
20743         (bcmp): Set alias to __memcmp_g5.
20744         * sysdeps/s390/s390-32/multiarch/memcpy.S
20745         (memcpy_z196): Rename to __memcpy_z196.
20746         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20747         (memcpy_z10): Rename to __memcpy_z10.
20748         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20749         (memcpy): Set alias to __memcpy_g5.
20750         * sysdeps/s390/s390-32/multiarch/memset.S
20751         (memset_z196): Rename to __memset_z196.
20752         Jump to __memset_mvcle instead of memset_mvcle.
20753         (memset_z10): Rename to __memset_z10.
20754         Jump to __memset_mvcle instead of memset_mvcle.
20755         (memset_mvcle) Rename to __memset_mvcle.
20756         (memset): Set alias to __memset_g5.
20757         * sysdeps/s390/s390-64/memcmp.S
20758         (memcmp_z900): Rename to __memcmp_z900.
20759         * sysdeps/s390/s390-64/memcpy.S
20760         (memcpy_z900): Rename to __memcpy_z900.
20761         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20762         (memcpy_mvcle) Rename to __memcpy_mvcle.
20763         * sysdeps/s390/s390-64/memset.S
20764         (memset_z900): Rename to __memset_z900.
20765         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
20766         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20767         and use prefixed functions.
20768         * sysdeps/s390/s390-64/multiarch/memcmp.S
20769         (memcmp_z196): Rename to __memcmp_z196.
20770         (memcmp_z10): Rename to __memcmp_z10.
20771         (memcmp): Set alias to __memcmp_z900.
20772         (bcmp): Set alias to __memcmp_z900.
20773         * sysdeps/s390/s390-64/multiarch/memcpy.S
20774         (memcpy_z196): Rename to __memcpy_z196.
20775         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20776         (memcpy_z10): Rename to __memcpy_z10.
20777         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20778         (memcpy): Set alias to __memcpy_z900.
20779         * sysdeps/s390/s390-64/multiarch/memset.S
20780         (memset_z196): Rename to __memset_z196.
20781         Jump to __memset_mvcle instead of memset_mvcle.
20782         (memset_z10): Rename to __memset_z10.
20783         Jump to __memset_mvcle instead of memset_mvcle.
20784         (memset_mvcle) Rename to __memset_mvcle.
20785         (memset): Set alias to __memset_z900.
20786
20787 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
20788
20789         [BZ #17748]
20790         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
20791         __fesetenv instead of fesetenv.
20792
20793 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20794
20795         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
20796         macro.
20797
20798 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20799
20800         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
20801         regression on LE.
20802
20803         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
20804         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
20805         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20806         strncmp-power8 object.
20807         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20808         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
20809         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
20810         * NEWS: Update.
20811
20812 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20813             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20814
20815         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
20816         trailing byte check.
20817
20818 2015-01-13  David S. Miller  <davem@davemloft.net>
20819
20820         * include/signal.h (__sigreturn): Guard with __USE_MISC.
20821
20822 2015-01-13  Roland McGrath  <roland@hack.frob.com>
20823
20824         * login/logout.c (logout): Use memset rather than bzero.
20825         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
20826         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
20827         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
20828         (_gethtbyaddr): Likewise.
20829         * locale/programs/simple-hash.c (bcopy): Macro removed.
20830
20831 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20832
20833         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20834         Add strcmp-power8 object.
20835         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20836         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
20837         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
20838         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
20839         __strcmp_power8 implementation.
20840         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
20841         * NEWS: Update.
20842
20843         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20844         Add strncpy-power8 and stpncpy-power8 objects.
20845         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20846         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
20847         implementations.
20848         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
20849         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
20850         __stpncpy_power8 implementation.
20851         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
20852         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
20853         __strncpy_power8 implementation.
20854         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
20855         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
20856         * NEWS: Update.
20857
20858         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
20859         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
20860         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
20861
20862         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20863         strncat-power8 object.
20864         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
20865         __strcat_power8 implementation.
20866         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20867         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
20868         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
20869         optimized strcat for power8.
20870
20871         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20872         strcpy-power8 and stpcpy-power8 objects.
20873         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20874         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
20875         implementations.
20876         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
20877         multiarch stpcpy implementation for POWER8.
20878         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
20879         multiarch strcpy implementation for POWER8.
20880         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
20881         __strcpy_power8 function.
20882         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
20883         stpcpy for POWER8.
20884         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
20885         strcpy for POWER8.
20886         * NEWS: Update.
20887
20888 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
20889
20890         [BZ #16009]
20891         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
20892         weights and rules. Use do_xfrm_cached if data fits in cache,
20893         do_xfrm otherwise.  Moved former main loop to...
20894         * (do_xfrm_cached): New function.
20895         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
20896         find_idx, find_position and stack_push.
20897         * (find_idx): New function.
20898         * (find_position): Likewise.
20899         * localedata/sort-test.sh: Added test run for do_xfrm.
20900         * localedata/xfrm-test.c (main): Added command line option
20901         -nocache to run the test with strings that are too large for
20902         the STRXFRM cache.
20903
20904 2015-01-13  Torvald Riegel  <triegel@redhat.com>
20905
20906         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
20907         variable to lll_futex_wake call, not the value itself.
20908
20909 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
20910
20911         [BZ #17803]
20912         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
20913         twom64.  Adjust value to 0x1p-64L.
20914         (__scalblnl): Only return standard underflowing result for K <=
20915         -64 not K <= -63; adjust exponent for underflowing result by 64
20916         not 63.
20917         * math/libm-test.inc (scalbn_test_data): Add more tests.
20918         (scalbln_test_data): Likewise.
20919
20920         [BZ #17834]
20921         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
20922         0x1p63L.
20923         (__scalblnl): Get new exponent of adjusted subnormal value from ES
20924         not HX.
20925         * math/libm-test.inc (scalbn_test_data): Add more tests.
20926         (scalbln_test_data): Likewise.
20927
20928 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20929             Stefani Seibold  <stefani@seibold.net>
20930
20931         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
20932         (sysdep_routines): Add dl-vdso here, ...
20933         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
20934         (sysdep_routines): ... not here.
20935         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
20936         fallback when vDSO is not presented.
20937         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
20938         Define with libc_hidden_proto/libc_hidden_data_def definitions.
20939         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
20940         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
20941         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
20942         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
20943         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
20944         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
20945         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
20946         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
20947         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
20948         fallback configurable symbol when vDSO is not available.
20949         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
20950         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
20951         be able to redefine fallback symbol when vDSO is not available.
20952         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
20953         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
20954
20955 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20956
20957         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
20958         (TLS_INIT_TP): Add tm_capable initialization.
20959         (TLS_DEFINE_INIT_TP): Likewise.
20960         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
20961         TCB.
20962         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
20963         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
20964         calculation.
20965         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
20966         transactoion is lock elision is built and TCB tm_capable is set.
20967         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
20968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20969         (INTERNAL_SYSCALL_NCS): Likewise.
20970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
20971         (INTERNAL_SYSCALL_NCS): Likewise.
20972         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
20973
20974         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
20975         for powerpc.
20976         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
20977         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
20978         and remove it for 32 bits case.
20979         [pthread_rwlock_t] (__rwelision): New field for lock elision.
20980         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
20981         initialization.
20982         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
20983         Disable lock elision with rdlocks if elision is not available.
20984
20985         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
20986         (sysdep_routines): Add lock elision objects.
20987         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
20988         [pthread_mutex_t] (__spins): Rework to add lock elision field.
20989         [pthread_mutex_t] (__elision): Add field.
20990         [__PTHREAD_SPINS]: Adjust to init lock elision field.
20991         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
20992         elision definitions for powerpc.
20993         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
20994         implementation of lock elision for powerpc.
20995         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
20996         implementation of timed lock elision for powerpc.
20997         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
20998         implementation of trylock with lock elision for powerpc.
20999         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21000         implementaion of unlock for lock elision for powerpc.
21001         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21002         automatic enable lock elision for mutexes.
21003         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21004         transaction execution definitions for powerpc.
21005         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21006         definitions.
21007         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21008         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21009         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21010         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21011         * NEWS: Update.
21012
21013 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21014
21015         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21016         for #include of <shm-directory.h>.
21017
21018 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21019
21020         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21021         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21022
21023 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21024
21025         [BZ #17791]
21026         * NEWS: Mention bug fix.
21027         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21028         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21029         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21030
21031 2015-01-09  Torvald Riegel <triegel@redhat.com>
21032
21033         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21034
21035 2015-01-09  Torvald Riegel <triegel@redhat.com>
21036
21037         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21038
21039 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21040
21041         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21042         pointer and cast to uintptr_t.
21043
21044 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21045
21046         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21047         removed.
21048         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21049
21050 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21051
21052         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21053         of 0.
21054
21055 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21056
21057         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21058         <nptl/pthreadP.h> instead.
21059         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21060
21061         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21062         already defined.
21063         [__SIGRTMIN] (init): Function removed.
21064         [__SIGRTMIN] (initialized): Variable removed.
21065         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21066         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21067         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21068         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21069         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21070         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21071         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21072         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21073         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21074         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21075         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21076         * sysdeps/nptl/allocrtsig.c: New file.
21077         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21078         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21079         * sysdeps/generic/testrtsig.h: File removed.
21080
21081         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21082         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21083
21084         * nptl/nptl-init.c (pthread_functions): Conditionalize
21085         .ptr__nptl_setxid initialization on [SIGSETXID].
21086
21087         * sysdeps/nptl/sys/procfs.h: New file.
21088         * nptl_db/Makefile (headers): Add it.
21089         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21090
21091         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21092         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21093         * nptl/pthread_attr_setaffinity.c: Include it.
21094         * nptl/pthread_setattr_default_np.c: Likewise.
21095         * nptl/check-cpuset.h: New file.
21096
21097 2015-01-08  Richard Henderson  <rth@redhat.com>
21098
21099         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21100         (CFLAGS-tst-execstack-prog.c): Likewise.
21101         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21102
21103 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21104             Sandra Loosemore  <sandra@codesourcery.com>
21105             Andrew Jenner  <andrew@codesourcery.com>
21106             Joseph Myers  <joseph@codesourcery.com>
21107             Nathan Sidwell  <nathan@codesourcery.com>
21108
21109         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21110         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21111         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21112         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21113         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21114         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21115         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21116         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21117         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21118         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21119         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21120         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21121         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21122         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21123         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21124         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21125         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21126
21127 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21128
21129         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21130         timespec struct member in syscall macro.
21131         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21132         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21133         first timeval struct member in syscall macro.
21134         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21135
21136 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21137
21138         [BZ #17748]
21139         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21140         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21141         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21142         __feupdateenv and define as weak alias of __feupdateenv.  Use
21143         libm_hidden_weak.
21144         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21145         libm_hidden_def.
21146         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21147         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21148         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21149         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21150         libm_hidden_def.
21151         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21152         __feupdateenv and define as weak alias of __feupdateenv.  Use
21153         libm_hidden_weak.
21154         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21155         libm_hidden_def.
21156         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21157         __feupdateenv and define as weak alias of __feupdateenv.  Use
21158         libm_hidden_weak.
21159         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21160         libm_hidden_def.
21161         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21162         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21163         (__feupdateenv): Likewise.
21164         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21165         __feupdateenv and define as weak alias of __feupdateenv.  Use
21166         libm_hidden_weak.
21167         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21168         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21169         libm_hidden_def.
21170         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21171         function.
21172         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21173         libm_hidden_def.
21174         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21175         __feupdateenv instead of feupdateenv.
21176         (default_libc_feupdateenv_test): Likewise.
21177         (libc_feresetround_ctx): Likewise.
21178
21179 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21180
21181         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21182         prototype.
21183
21184 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21185
21186         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21187         COLL_SYM in a couple of places to avoid uninitialized variable
21188         wanings on tilegx gcc 4.8.2.
21189
21190 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21191
21192         * sysdeps/aarch64/strcpy.S: New file.
21193         * sysdeps/aarch64/stpcpy.S: New file.
21194         * NEWS: Updated.
21195
21196 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21197
21198         * sysdeps/aarch64/strrchr.S: New file.
21199         * NEWS: Updated.
21200
21201 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21202
21203         [BZ #17658]
21204         * stdlib/setenv.c: Fix memory leak when setting large,
21205         duplicate string.
21206
21207 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21208
21209         [BZ #17273]
21210         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21211         and tabs from buffer before parsing fstab entry.
21212         * misc/tst-mntent.c (main): Add test for mount entry with
21213         trailing spaces and tabs.
21214
21215 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21216
21217         [BZ #17748]
21218         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21219         * math/fesetround.c (fesetround): Rename to __fesetround and
21220         define as weak alias of __fesetround.  Use libm_hidden_weak.
21221         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21222         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21223         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21224         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21225         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21226         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21227         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21228         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21229         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21230         __fesetround_inline.
21231         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21232         __fesetround_inline instead of __fesetround.
21233         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21234         __fesetround and define as weak alias of __fesetround.  Use
21235         libm_hidden_weak.  Call __fesetround_inline instead of
21236         __fesetround.
21237         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21238         __fesetround and define as weak alias of __fesetround.  Use
21239         libm_hidden_weak.
21240         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21241         Likewise.
21242         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21243         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21244         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21245         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21246         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21247         __fesetround and define as weak alias of __fesetround.  Use
21248         libm_hidden_weak.
21249         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21250         __fesetround instead of fesetround.
21251         (default_libc_feholdexcept_setround): Likewise.
21252         (libc_feholdsetround_ctx): Likewise.
21253         (libc_feholdsetround_noex_ctx): Likewise.
21254
21255         [BZ #17748]
21256         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21257         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21258         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21259         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21260         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21261         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21262         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21263         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21264         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21265         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21266         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21267         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21268         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21269         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21270         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21271         libm_hidden_def.
21272         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21273         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21274         Likewise.
21275         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21276         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21277         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21278         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21279         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21280         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21281         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21282         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21283         __fesetenv instead of fesetenv.
21284         (libc_feresetround_noex_ctx): Likewise.
21285         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21286         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21287         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21288         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21289         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21290         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21291         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21292         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21293         (__feupdateenv): Likewise.
21294         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21295         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21296         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21297         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21298
21299 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21300
21301         [BZ #17806]
21302         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21303         addresses have been freed.
21304
21305 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21306
21307         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21308         and nservall.
21309
21310 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21311
21312         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21313         Clean up check_pf allocation pattern. addresses
21314
21315 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21316
21317         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21318         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21319         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21320         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21321         * nptl/pthread_join.c (pthread_join): Likewise.
21322         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21323         * sysdeps/posix/waitid.c (__waitid): Likewise.
21324         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21325         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21326         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21327         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21328         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21329         Likewise.
21330         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21331         (__libc_pread64): Likewise.
21332         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21333         (__libc_pwrite): Likewise.
21334         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21335         (__libc_pwrite64): Likewsie.
21336         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21337         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21338         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21339         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21340         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21341         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21342         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21344         Likewise.
21345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21346         (__libc_pread64): Likewise.
21347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21348         Likewise.
21349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21350         (__libc_pwrite64): Likewise.
21351         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21352         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21353         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21354         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21355         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21356         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21357         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21358         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21359         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21360         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21361         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21362         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21363         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21364         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21365         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21366         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21367         Likewise.
21368
21369 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21370
21371         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21372         (CFLAGS-test-double.c): Likewise.
21373         (CFLAGS-test-ldouble.c): Likewise.
21374         (CPPFLAGS-test-ifloat.c): Likewise.
21375         (CPPFLAGS-test-idouble.c): Likewise.
21376         (CPPFLAGS-test-ildoubl.c): Likewise.
21377         (CFLAGS-test-test-fenv.c): Remove variable.
21378         (CFLAGS-test-misc.c): Likewise.
21379
21380 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21381
21382         [BZ #17797]
21383         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21384         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21385         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21386         CLOCKS_PER_SEC == 1000000.
21387         * time/clocktest.c (main): Replace %ld with %jd and cast to
21388         intmax_t.
21389
21390 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21391
21392         * sysdeps/generic/unwind-resume.h: New file.
21393         * sysdeps/gnu/unwind-resume.c: Include it.
21394         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21395         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21396         argument list.
21397         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21398         global rather than static.
21399         (_Unwind_Resume): Update user.
21400         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21401         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21402         rather than static.  Add __attribute__ ((cold)).
21403         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21404         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21405         * sysdeps/arm/arm-unwind-resume.S: New file.
21406         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21407         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21408         * sysdeps/arm/Makefile [$(subdir) = csu]
21409         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21410         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21411         Add rt-arm-unwind-resume.
21412         [$(subdir) = nptl]
21413         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21414         Add pt-arm-unwind-resume.
21415         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21416         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21417
21418 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21419
21420         [BZ #17748]
21421         * include/fenv.h (__feholdexcept): Declare.  Use
21422         libm_hidden_proto.
21423         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21424         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21425         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21426         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21427         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21428         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21429         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21430         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21431         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21432         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21433         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21434         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21435         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21436         (feholdexcept): Likewise.
21437         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21438         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21439         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21440         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21441         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21442         __feholdexcept instead of feholdexcept.
21443         (default_libc_feholdexcept_setround): Likewise.
21444
21445 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21446
21447         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21448         to avoid using stl/str to align destination.
21449
21450 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21451
21452         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21453
21454 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21455
21456         [BZ #17796]
21457         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21458         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21459         Define as weak alias not strong alias.
21460
21461 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21462
21463         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21464         bltzal with addiupc.
21465         (RTLD_START): Ditto.
21466
21467 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21468
21469         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21470         for __vdso_* functions in declarations.
21471         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21472         definitions.
21473         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21474         INTERNAL_VSYSCALL): Use struct return types to check for error.
21475
21476         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21477         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21478         function with cast from llround().
21479         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21480         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21481         Define.
21482
21483 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21484
21485         [BZ #17793]
21486         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21487         Define as weak alias not strong alias.
21488
21489         [BZ #17635]
21490         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21491         ...
21492         * ctype/ctype-extn.c: ... here.
21493         (__isblank_l): Move to ...
21494         * ctype/ctype-c99_l.c: ... here.  New file.
21495         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21496         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21497         Remove variable.
21498         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21499         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21500         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21501         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21502         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21503
21504         [BZ #17777]
21505         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21506         (posix_fadvise64): Define as weak alias not strong alias.
21507         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21508         (posix_fallocate64): Likewise.
21509         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21510         Remove variable.
21511         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21512         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21513         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21514         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21515         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21516
21517 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21518
21519         [BZ #16191]
21520         * NEWS: Mention bug fix.
21521         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21522         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21523         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21524         (HOST_STACK_END_ADDR): Likewise.
21525
21526 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21527
21528         [BZ #17748]
21529         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21530         * math/fegetround.c (fegetround): Rename to __fegetround and
21531         define as weak alias of __fegetround.  Use libm_hidden_weak.
21532         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21533         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21534         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21535         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21536         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21537         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21538         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21539         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21540         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21541         Undefine after rather than before function definition; use
21542         parentheses around function name in definition.
21543         (__fegetround): Also undefine macro after function definition.
21544         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21545         __fegetround and define as weak alias of __fegetround.  Use
21546         libm_hidden_weak.  Do not undefine as macro.
21547         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21548         Likewise.
21549         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21550         __fegetround and define as weak alias of __fegetround.  Use
21551         libm_hidden_weak.
21552         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21553         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
21554         * sysdeps/tile/math_private.h (__fegetround): New inline function.
21555         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
21556         __fegetround and define as weak alias of __fegetround.  Use
21557         libm_hidden_weak.
21558         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
21559         __fegetround instead of fegetround.
21560
21561         [BZ #17782]
21562         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
21563         Condition macro definition on [__USE_MISC].
21564
21565         [BZ #17781]
21566         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21567         (struct sigaction): Change type of sa_flags field to int.
21568
21569         [BZ #17780]
21570         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
21571         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
21572         __glibc_reserved0.
21573
21574         * nptl/version.c (banner): Use single year in copyright notice.
21575
21576         * NEWS: Update copyright dates.
21577         * catgets/gencat.c (print_version): Likewise.
21578         * csu/version.c (banner): Likewise.
21579         * debug/catchsegv.sh: Likewise.
21580         * debug/pcprofiledump.c (print_version): Likewise.
21581         * debug/xtrace.sh (do_version): Likewise.
21582         * elf/ldconfig.c (print_version): Likewise.
21583         * elf/ldd.bash.in: Likewise.
21584         * elf/pldd.c (print_version): Likewise.
21585         * elf/sotruss.sh: Likewise.
21586         * elf/sprof.c (print_version): Likewise.
21587         * iconv/iconv_prog.c (print_version): Likewise.
21588         * iconv/iconvconfig.c (print_version): Likewise.
21589         * locale/programs/locale.c (print_version): Likewise.
21590         * locale/programs/localedef.c (print_version): Likewise.
21591         * login/programs/pt_chown.c (print_version): Likewise.
21592         * malloc/memusage.sh (do_version): Likewise.
21593         * malloc/memusagestat.c (print_version): Likewise.
21594         * malloc/mtrace.pl: Likewise.
21595         * manual/libc.texinfo: Likewise.
21596         * nptl/version.c (banner): Likewise.
21597         * nscd/nscd.c (print_version): Likewise.
21598         * nss/getent.c (print_version): Likewise.
21599         * nss/makedb.c (print_version): Likewise.
21600         * posix/getconf.c (main): Likewise.
21601         * scripts/test-installation.pl: Likewise.
21602         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
21603
21604 2015-01-02  Will Newton  <will.newton@linaro.org>
21605
21606         * sysdeps/arm/armv7/configure: Removed.
21607         * sysdeps/arm/armv7/configure.ac: Likewise.
21608
21609 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21610
21611         * All files with FSF copyright notices: Update copyright dates
21612         using scripts/update-copyrights.
21613         * intl/plural.c: Regenerated.
21614         * locale/programs/charmap-kw.h: Likewise.
21615         * locale/programs/locfile-kw.h: Likewise.
21616
21617 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21618
21619         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
21620
21621 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21622
21623         [BZ #17748]
21624         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
21625         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
21626         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21627         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21628         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21629         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
21630         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21631         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
21632         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21633         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21634         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21635         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21636         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21637         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21638         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
21639         libm_hidden_def.
21640         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
21641         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
21642         Likewise.
21643         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21644         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21645         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21646         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21647         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
21648         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21649         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21650         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
21651         __fegetenv instead of fegetenv.
21652         (libc_feholdsetround_noex_ctx): Likewise.
21653
21654 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
21655
21656         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
21657         (Elf_MIPS_ABIFlags_v0): New structure.
21658         (EF_MIPS_FP64): Define.
21659         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
21660         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
21661         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
21662         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
21663         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
21664         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
21665         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
21666         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
21667         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
21668         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
21669         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
21670         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
21671         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
21672         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
21673         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
21674         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
21675         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
21676         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
21677         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
21678         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
21679         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
21680         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
21681         field.
21682         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
21683         EF_MIPS_FP64.
21684         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
21685         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
21686         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
21687         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
21688         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
21689         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
21690         * sysdeps/mips/tst-abi-interlink.c: Likewise.
21691         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
21692         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
21693         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
21694         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
21695         record the current FP ABI extension.
21696         (mips-mode-switch): Define to show if kernel headers support mode
21697         switching.
21698         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
21699         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
21700         supported SYSV ABI version to 3.
21701         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
21702         feature.
21703
21704 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21705             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21706
21707         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
21708         path.
21709         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
21710
21711 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21712
21713         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
21714         __fegetround and redefine to call __fegetround.  Remove condition
21715         on [!__NO_MATH_INLINES].
21716         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
21717         function.
21718         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
21719         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
21720         Remove macro.
21721         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
21722         instead of <fenv_libc.h>.
21723         (__llrintl): Call fegetround instead of __fegetround.
21724         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
21725         instead of <fenv_libc.h>.
21726         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21727         (__lrintl): Call fegetround instead of __fegetround.
21728         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
21729         instead of <fenv_libc.h>.
21730         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21731         (__rintl): Call fegetround instead of __fegetround.
21732
21733 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21734
21735         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
21736         arrays.
21737
21738 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21739
21740         [BZ #17775]
21741         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
21742         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
21743         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
21744
21745 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21746
21747         * sysdeps/i386/tls-macros.h: Include <features.h>.
21748         (TLS_LE): Use non-PIC version for GCC >= 5.0.
21749         (TLS_IE): Likewise.
21750         (TLS_LD): Likewise.
21751         (TLS_GD): Likewise.
21752         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
21753         define for GCC >= 5.0.
21754
21755 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
21756
21757         * math/test-fenv.c (test_single_exception, set_single_exc,
21758         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
21759         feexcp_mask_test, feenable_test, fe_single_test): Add
21760         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
21761         case where they are not used.
21762         * math/libm-test.inc: Likewise.
21763         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
21764         unused in the absence of FP rounding/exception support.
21765         * stdio-common/tst-printf-round.c: Likewise.
21766         * stdlib/tst-strtod-round.c: Likewise.
21767         * stdlib/tst-strtod-underflow.c: Likewise.
21768
21769 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
21770
21771         [BZ #17723]
21772         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
21773         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
21774         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21775         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21776         libm_hidden_weak.
21777         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
21778         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21779         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
21780         libm_hidden_def.
21781         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21782         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21783         libm_hidden_weak.
21784         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
21785         Likewise.
21786         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
21787         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21788         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21789         libm_hidden_weak.
21790         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21791         libm_hidden_def.
21792         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
21793         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
21794         (__feraiseexcept): Likewise.
21795         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21796         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21797         libm_hidden_weak.
21798         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21799         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21800         libm_hidden_def.
21801         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
21802         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
21803         Use libm_hidden_def.
21804         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
21805         libm_hidden_def.
21806         (feraiseexcept): Define as weak not strong alias.  Use
21807         libm_hidden_weak.
21808         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
21809         New inline function.  Factored out of ...
21810         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
21811         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
21812         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
21813         feraiseexcept.
21814         * math/w_acos.c (__acos): Likewise.
21815         * math/w_asin.c (__asin): Likewise.
21816         * math/w_ilogb.c (__ilogb): Likewise.
21817         * math/w_j0.c (y0): Likewise.
21818         * math/w_j1.c (y1): Likewise.
21819         * math/w_jn.c (yn): Likewise.
21820         * math/w_log.c (__log): Likewise.
21821         * math/w_log10.c (__log10): Likewise.
21822         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
21823         * sysdeps/aarch64/fpu/math_private.h
21824         (libc_feupdateenv_test_aarch64): Likewise.
21825         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21826         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
21827         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
21828         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21829         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21830         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21831         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
21832         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21833         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21834         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21835
21836 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21837
21838         [BZ #17732]
21839         * io/test-utime.c (main): Replace %ld with %jd and cast to
21840         intmax_t.
21841         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
21842         * nptl/tst-mutex5.c: Include <stdint.h>.
21843         (do_test): Replace %ld with %jd and cast to intmax_t.
21844         * posix/tst-regex.c (run_test): Likewise.
21845         (run_test_backwards): Likewise.
21846         * rt/tst-clock.c: Include <stdint.h>.
21847         (clock_test): Replace %ld with %jd and cast to intmax_t.
21848         * rt/tst-cpuclock1.c: Include <stdint.h>.
21849         (do_test): Replace %lu with %ju and cast to uintmax_t.
21850         * rt/tst-cpuclock2.c: Include <stdint.h>.
21851         (do_test): Replace %lu with %ju and cast to uintmax_t.
21852         * rt/tst-mqueue1.c: Include <stdint.h>.
21853         (check_attrs): Replace %ld with %jd and cast to intmax_t.
21854         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
21855         intmax_t.
21856         * rt/tst-mqueue4.c (do_test): Likewise.
21857         * rt/tst-timer4.c: Include <stdint.h>.
21858         (check_ts): Replace %ld with %jd and cast to intmax_t.
21859         (do_test): Likewise.
21860         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
21861         and cast to intmax_t.
21862         * sysdeps/pthread/tst-timer.c (main): Likewise.
21863         * time/clocktest.c (main): Likewise.
21864         * time/tst-posixtz.c (do_test): Likewise.
21865         * timezone/tst-timezone.c (main): Likewise.
21866
21867 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21868             H.J. Lu  <hongjiu.lu@intel.com>
21869
21870         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
21871         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
21872         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
21873         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
21874         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
21875         version if bit_Fast_Unaligned_Load is set.
21876         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21877         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21878         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21879         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21880         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21881         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21882         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21883         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
21884         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
21885         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
21886         to 4.
21887         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
21888         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
21889         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
21890         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
21891
21892 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
21893
21894         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
21895         instead of #if to avoid a Wundef warning.
21896         * stdlib/tst-limits.c (do_test): Likewise.
21897
21898         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
21899         parallel other exception macros.
21900         (fegetenv): Convert from macro to extern inline so that it applies
21901         retroactively to inline functions already seen by the compiler.
21902         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
21903
21904         * posix/Makefile (before-compile): Use $(objpfx) for
21905         posix-conf-vars-def.h.
21906
21907 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
21908
21909         * posix/getconf.c (main): Use size_t for type of I.
21910         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
21911         NSPEC.
21912
21913         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
21914         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
21915         * posix/posix-envs.def: Likewise.
21916         * sysdeps/posix/sysconf.c: Likewise.
21917         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
21918         (specs): Remove array.
21919         * scripts/gen-posix-conf-vars.awk: Support generation of specs
21920         array.
21921
21922         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
21923         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
21924         (__sysconf): Use CONF_IS_* macros.
21925
21926         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
21927         ($(objpfx)posix-conf-vars-def.h): New target.
21928         * posix/posix-conf-vars.list: New file.
21929         * posix/posix-conf-vars.h: New file.
21930         * posix/confstr.c: Include posix-conf-vars.h.
21931         (confstr): Use CONF_IS_* macros.
21932         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
21933         CONF_IS_* macros.
21934         * scripts/gen-posix-conf-vars.awk: New file.
21935
21936 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
21937
21938         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
21939         fegetround): Add no-op macros to avoid linknamespace issues.
21940
21941         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
21942         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
21943
21944         * sysdeps/unix/sysv/linux/tile/sysdep.h
21945         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
21946         assembly-specific section to avoid a redefinition warning.
21947
21948         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
21949         long before casting to pointer to avoid a cast warning.
21950
21951 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
21952
21953         * sysdeps/tile/tilegx/Implies: New file.
21954
21955 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
21956
21957         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
21958
21959 2014-12-23  Florian Weimer  <fweimer@redhat.com>
21960
21961         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
21962
21963 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
21964
21965         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
21966         not define.
21967         * sysdeps/unix/sysv/linux/utimes.c: Do not include
21968         <kernel-features.h>.
21969         (__utimes) [__NR_utimes]: Make code unconditional.
21970         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
21971         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
21972         (__ASSUME_UTIMES): Do not undefine.
21973         * sysdeps/unix/sysv/linux/tile/kernel-features.h
21974         (__ASSUME_UTIMES): Likewise.
21975         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
21976         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
21977         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
21978         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
21979
21980 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
21981
21982         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
21983
21984 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
21985
21986         [BZ #17747]
21987         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
21988         alias to weak alias for j0l, y0l.
21989         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
21990         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
21991
21992         [BZ #17746]
21993         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
21994         conversion.
21995
21996 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
21997
21998         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
21999         to zero if not already defined.
22000
22001 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22002
22003         [BZ #17724]
22004         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22005         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22006         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22007         (char *) casts added.
22008         * sysdeps/ieee754/k_standardf.c: New file.
22009         * sysdeps/ieee754/k_standardl.c: Likewise.
22010         * math/Makefile (libm-support): Remove k_standard.
22011         (libm-calls): Add k_standard.
22012
22013 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22014
22015         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22016         Optimize to avoid an unnecessary FPCR read.
22017
22018 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22019
22020         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22021         Optimize to reduce FPCR/FPSR accesses.
22022
22023 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22024
22025         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22026         Call libc_fetestexcept_aarch64.
22027
22028 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22029
22030         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22031         Call libc_fesetround_aarch64.
22032
22033 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22034
22035         [BZ #17733]
22036         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22037         (__bind): Do not define as weak alias.
22038         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22039         define.
22040         (__getsockname): Do not define as weak alias.
22041
22042 2014-12-22  Will Newton  <will.newton@linaro.org>
22043
22044         * manual/install.texi: Document that we require bison 2.7
22045         or above.
22046         * INSTALL: Regenerate.
22047         * configure.ac: Use AC_CHECK_PROG_VER instead of
22048         AC_PATH_PROG when checking for bison and check for
22049         version 2.7 or above.
22050         * configure: Regenerate.
22051
22052 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22053
22054         [BZ #17745]
22055         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22056         * sysdeps/tile/ffsll.c (ffsll): To here.
22057
22058         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22059
22060 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22061
22062         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22063         if not defined.
22064         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22065         definition.
22066         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22067         hidden ___tls_get_addr.
22068         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22069         hidden __tls_get_addr.
22070         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22071         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22072         Likewise.
22073
22074 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22075
22076         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22077         _dl_init call.
22078
22079 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22080
22081         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22082         from "call _dl_init@PLT".
22083         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22084
22085 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22086
22087         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22088         guarantees.
22089
22090 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22091
22092         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22093
22094 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22095
22096         [BZ #17744]
22097         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22098         strnlen.
22099
22100 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22101
22102         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22103         of multu on MIPSr6.
22104         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22105         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22106         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22107         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22108         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22109
22110 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22111
22112         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22113         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22114         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22115         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22116         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22117         mips32r6/mips64r6.
22118         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22119
22120 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22121
22122         * string/strncat.c (STRNCAT): Simplify implementation.
22123
22124 2014-12-19  David S. Miller  <davem@davemloft.net>
22125
22126         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22127         access the quad as both a long double and as a series of 4 words.
22128
22129         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22130         link_map->l_info array access.
22131
22132 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22133
22134         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22135
22136         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22137         * math/atest-exp2.c (TIMEOUT): Likewise.
22138         * math/atest-sincos.c (TIMEOUT): Likewise.
22139
22140 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22141
22142         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22143         -Wno-error with -fno-builtin-lround.
22144
22145 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22146
22147         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22148         Contains futex constants and functions moved over from ...
22149         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22150         <lowlevellock-futex.h>.
22151         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22152         (lll_timedwait_tid): Add comments and parentheses around macro
22153         arguments.
22154
22155 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22156
22157         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22158         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22159         (__lll_private_flag): Remove.
22160         (lll_futex_wait): Likewise.
22161         (lll_futex_timed_wait): Likewise.
22162         (lll_futex_wake): Likewise.
22163         (lll_futex_requeue): Likewise.
22164         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22165         (__lll_timedwait_tid): Spell out argument names.
22166         (lll_timedwait_tid): Add comments and parentheses around macro
22167         arguments.
22168         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22169         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22170
22171 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22172
22173         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22174         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22175         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22176         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22177         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22178         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22179         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22180         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22181         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22182         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22183         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22184         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22185         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22186         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22187         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22188         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22189         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22190         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22191         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22192
22193 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22194
22195         * sysdeps/x86_64/x32/Makefile: New file.
22196
22197 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22198
22199         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22200         1L with (mp_limb_t) 1.
22201
22202 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22203
22204         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22205         * nptl/libc_pthread_init.c: ... here.
22206         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22207         * nptl/register-atfork.c: ... here.
22208
22209         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22210         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22211         Use assert_perror to check its return value.
22212         (__gai_create_helper_thread): Likewise.
22213
22214         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22215
22216         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22217
22218 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22219
22220         [BZ #17725]
22221         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22222         __profil_counter.
22223         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22224         Likewise.
22225         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22226         Likewise.
22227         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22228         Likewise.
22229         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22230         (profil_counter): Likewise.
22231         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22232         (profil_counter): Likewise.
22233         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22234         Likewise.
22235         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22236         Likewise.
22237         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22238         (profil_counter): Likewise.
22239         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22240         Likewise.
22241         [!__profil_counter] (profil_counter): Define as weak alias of
22242         __profil_counter.
22243         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22244         (profil_counter): Rename to __profil_counter.
22245         [!__profil_counter] (profil_counter): Define as weak alias of
22246         __profil_counter.
22247         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22248         (profil_counter): Rename to __profil_counter.
22249         [!__profil_counter] (profil_counter): Define as weak alias of
22250         __profil_counter.
22251         * sysdeps/posix/profil.c: Update comment referring to
22252         profil_counter.
22253         (__profil): Use __profil_counter instead of profil_counter.
22254         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22255         __profil_counter.  Use __profil_counter_ushort and
22256         __profil_counter_uint in definitions.
22257         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22258         instead of profil_counter_uint and profil_counter_ushort.
22259
22260         [BZ #17722]
22261         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22262         define as weak alias of __inet_makeaddr.
22263         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22264         as weak alias of __inet_addr.
22265         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22266         as weak alias of __inet_pton.  Use libc_hidden_weak.
22267         * include/arpa/inet.h (__inet_pton): Declare.  Use
22268         libc_hidden_proto.
22269         (inet_makeaddr): Don't use libc_hidden_proto.
22270         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22271         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22272         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22273         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22274         Remove variable.
22275         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22276         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22277
22278 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22279
22280         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22281
22282 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22283
22284         * stdio-common/bug-vfprintf-nargs.c (do_test):
22285         Cast value to intptr_t to avoid format warning
22286         for usage with PRIdPTR printing macro.
22287
22288 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22289
22290         * libio/tst-widetext.c (do_test):
22291         Use format type %td instead of %Zd for ptrdiff_t
22292         in order to avoid format warning.
22293
22294 2014-12-17  Andreas Schwab  <schwab@suse.de>
22295
22296         * nscd/mem.c (gc): Add size_t cast to match printf format.
22297
22298 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22299
22300         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22301         (init): Apply PTR_MANGLE to pointers before storing them.
22302         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22303         before using them.
22304
22305 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22306
22307         [BZ #17719]
22308         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22309         define as weak alias of __memrchr.
22310         (__memrchr): Do not define as strong alias of memrchr.
22311         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22312         Remove variable.
22313         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22314         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22315         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22316
22317         [BZ #17717]
22318         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22319         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22320         (if_indextoname): Rename to __if_indextoname and define as weak
22321         alias of __if_indextoname.  Use libc_hidden_weak.
22322         (if_freenameindex): Rename to __if_freenameindex and define as
22323         weak alias of __if_freenameindex.
22324         (if_nameindex): Rename to __if_nameindex and define as weak alias
22325         of __if_nameindex.
22326         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22327         __if_nametoindex and define as weak alias of __if_nametoindex.
22328         Use libc_hidden_weak.
22329         (if_freenameindex): Rename to __if_freenameindex and define as
22330         weak alias of __if_freenameindex.
22331         (if_nameindex): Rename to __if_nameindex and define as weak alias
22332         of __if_nameindex.
22333         (if_indextoname): Rename to __if_indextoname and define as weak
22334         alias of __if_indextoname.  Use libc_hidden_weak.
22335         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22336         __if_nametoindex and define as weak alias of __if_nametoindex.
22337         Use libc_hidden_weak.
22338         (if_freenameindex): Rename to __if_freenameindex and define as
22339         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22340         (if_nameindex_netlink): Use __if_freenameindex instead of
22341         if_freenameindex.
22342         (if_nameindex): Rename to __if_nameindex and define as weak alias
22343         of __if_nameindex.  Use libc_hidden_weak.
22344         (if_indextoname): Rename to __if_indextoname and define as weak
22345         alias of __if_indextoname.  Use libc_hidden_weak.
22346         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22347         libc_hidden_proto.
22348         [!_ISOMAC] (__if_freenameindex): Likewise.
22349         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22350         if_nametoindex.
22351         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22352         variable.
22353         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22354         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22355         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22356         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22357         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22358         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22359         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22360
22361         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22362         Remove variable.
22363         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22364         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22365
22366 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22367
22368         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22369         subscript above bounds'
22370
22371         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22372         bounds.
22373
22374 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22375
22376         * libio/tst-fopenloc.c: Use test-skeleton.c.
22377
22378         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22379         (entry): Rename to ITEM.
22380         (do_test, comp): Adjust.
22381
22382         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22383
22384 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22385
22386         * string/tester.c: Include <libc-internal.h>.
22387         (test_memset): Ignore -Wmemset-transposed-args.
22388
22389 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22390
22391         * misc/tst-mntent2.c (do_test): Fix warning.
22392
22393 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22394
22395         * elf/tst-unique4lib.cc(a): Mark as used.
22396
22397 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22398
22399         [BZ #17630]
22400         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22401         names.
22402
22403 2014-12-16  Allan McRae  <allan@archlinux.org>
22404
22405         * stdio-common/Makefile (tests): Re-add bug26.
22406
22407 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22408
22409         [BZ #17657]
22410         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22411         static array.
22412
22413 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22414
22415         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22416         (__lll_lock_wait): Likewise.
22417         (__lll_timedlock_wait): Likewise.
22418         (__lll_timedwait_tid): Likewise.
22419         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22420         (__lll_robust_timedlock_wait): Likewise.
22421         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22422         (lll_cond_trylock): Likewise.
22423         (__lll_lock): Likewise.
22424         (__lll_robust_lock): Likewise.
22425         (__lll_cond_lock): Likewise.
22426         (lll_robust_cond_lock): Likewise.
22427         (__lll_timedlock): Likewise.
22428         (__lll_robust_timedlock): Likewise.
22429         (__lll_unlock): Likewise.
22430         (__lll_robust_unlock): Likewise.
22431         (lll_wait_tid): Likewise.
22432         (lll_timedwait_tid): Likewise.
22433
22434 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22435
22436         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22437
22438 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22439
22440         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22441
22442 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22443
22444         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22445         * stdio-common/tst-sprintf.c: Likewise.
22446
22447 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22448
22449         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22450
22451 2014-12-15  Jeff Law  <law@redhat.com>
22452
22453         [BZ #16617]
22454         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22455         on the heap.  (CVE-2012-3406)
22456         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22457         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22458         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22459
22460 2014-12-15  Will Newton  <will.newton@linaro.org>
22461
22462         * manual/install.texi: Bump required version of texinfo
22463         to 4.7 from 4.5.
22464         * INSTALL: Regenerated.
22465         * configure.ac: Check for makeinfo version 4.7 and above.
22466         * configure: Regenerated.
22467
22468 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22469
22470         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22471         PREFIX, string constant to insert between directory and name.
22472         * sysdeps/posix/shm_open.c: Update caller.
22473         * sysdeps/posix/shm_unlink.c: Likewise.
22474         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22475         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22476         (SEM_SHM_PREFIX): New macro.
22477         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22478         [$(have-thread-library) = no].
22479         * nptl/Makefile (libpthread-routines): Add shm-directory.
22480         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22481         * sysdeps/nptl/shm-directory.h: New file.
22482         * sysdeps/posix/shm-directory.c
22483         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22484         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22485         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22486         INTERNAL_SYSCALL.
22487         (__where_is_shmfs): Function removed.
22488         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22489         Variables removed.
22490         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22491         Use SHM_GET_NAME.
22492         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22493
22494         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22495         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22496         unconditional for use inside libpthread.
22497         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22498
22499 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22500
22501         * nptl/pthread_getaffinity.c: New file.
22502         * nptl/pthread_setaffinity.c: New file.
22503         * nptl/pthread_getname.c: New file.
22504         * nptl/pthread_setname.c: New file.
22505
22506         * nptl/pthread_create.c (START_THREAD_DEFN)
22507         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22508
22509 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22510             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22511
22512         * resolv/res_send.c (send_vc): Disable warning resplen may
22513         be used uninitialized.
22514
22515 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22516
22517         * nptl/tst-mutex6.c
22518         (ATTR_NULL): New define checks ATTR against NULL.
22519         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22520         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22521
22522 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22523
22524         [BZ #17581]
22525         * malloc/hooks.c
22526         (mem2mem_check): Revert my previous change.
22527         (malloc_check_get_size): Revert my previous change.
22528         (mem2chunk_check): Revert my previous change.
22529
22530 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22531
22532         * sysdeps/posix/shm-directory.c: New file.
22533         * sysdeps/posix/shm-directory.h: New file.
22534         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22535         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22536         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22537         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22538         Transmute EPERM to EACCES.
22539         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22540         from ...
22541         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22542         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22543
22544 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22545
22546         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22547         pointer and cast to uintptr_t.
22548         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22549         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22550         Add cast to avoid warning.
22551         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
22552
22553 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22554
22555         * nptl/semaphore.h: Move to ...
22556         * sysdeps/pthread/semaphore.h: ... here.
22557         * Makefile (installed-headers): Change nptl/semaphore.h to
22558         sysdeps/pthread/semaphore.h.
22559
22560 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22561
22562         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
22563         generated error format strings.
22564
22565         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
22566         -Wformat-extra-args warnings for scanf formats.
22567         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
22568         test of zero-length format (duh).
22569         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
22570         corner-case scanf format test.
22571         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
22572         generated fprintf format string.
22573         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
22574         corner-case sprintf format tests.
22575         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
22576         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
22577         -Wformat-extra-args warnings throughout.
22578         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
22579         (CFLAGS-scanf4.c): Likewise.
22580         (CFLAGS-scanf7.c): Likewise.
22581         (CFLAGS-tst-sprintf.c): Likewise.
22582         (CFLAGS-tst-printf.c): Likewise.
22583         (CFLAGS-tst-printfsz.c): Likewise.
22584
22585 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22586
22587         * include/cpio.h: New file.
22588         * include/fmtmsg.h: Likewise.
22589
22590         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
22591         corresponding format argument to size_t.
22592         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
22593         arguments.
22594         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
22595         corresponding format argument to size_t.
22596         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
22597         arguments.
22598         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
22599         corresponding format argument to size_t.
22600         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
22601         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
22602         (CFLAGS-tst-mbswcs2.c): Likewise.
22603         (CFLAGS-tst-mbswcs3.c): Likewise.
22604         (CFLAGS-tst-mbswcs4.c): Likewise.
22605         (CFLAGS-tst-mbswcs5.c): Likewise.
22606         (CFLAGS-tst-trans.c): Likewise.
22607
22608 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22609
22610         * posix/regexbug1.c (main): Use "%s" format with regerror results,
22611         rather than assuming they won't contain any '%'s.
22612
22613 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
22614
22615         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
22616         inhibit_loop_to_libcall to avoid recursive calls.
22617         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
22618         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
22619
22620 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22621
22622         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
22623         prototype.
22624
22625 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22626
22627         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
22628         integer value instead of boolean.
22629
22630 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22631
22632         * malloc/malloc.c: Fix powerof2 check.
22633
22634 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22635
22636         * locale/programs/locfile.h (maybe_swap_uint32):
22637         Remove inline and add unused attribute.
22638
22639 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22640
22641         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
22642         Truncating assembler expression to a .long expression.
22643
22644 2014-12-11  Andreas Schwab  <schwab@suse.de>
22645
22646         * elf/rtld.c (struct map_args): Constify str member.
22647         (do_preload): Constify fname argument.
22648
22649 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22650
22651         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
22652         constants definition.
22653
22654 2014-12-11  Andreas Schwab  <schwab@suse.de>
22655
22656         [BZ #16657]
22657         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
22658         FORCE_ELISION instead of DO_ELISION.
22659         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
22660         Remove.
22661         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
22662         Likewise.
22663
22664         * iconvdata/gconv-modules: Remove duplicate entry.
22665
22666 2014-12-11  Will Newton  <will.newton@linaro.org>
22667
22668         Merge gettext 0.19.3 into intl/.
22669
22670         This involves a number of cosmetic changes to comments
22671         and ANSI function definitions and prototypes throughout
22672         all the files. The gettext copyright header is used but
22673         with the date ranges taken from the glibc copy.
22674
22675         * NEWS: Add gettext merge to 2.21.
22676         * intl/bindtextdom.c: Switch to gettext copyright.
22677         Use ANSI definitions and prototypes.
22678         Use gl_* locking primitives rather than __libc_* ones.
22679         Use __builtin_expect rather than __glibc_likely/unlikely.
22680         * intl/dcgettext.c: Switch to gettext copyright.
22681         Use ANSI definitions and prototypes.
22682         * intl/dcigettext.c: Switch to gettext copyright.
22683         Use ANSI definitions and prototypes.
22684         (INTDIV0_RAISES_SIGFPE): New define.
22685         Use gl_* locking primitives rather than __libc_* ones.
22686         Include eval-plural.h instead of plural-eval.c.
22687         Use __builtin_expect rather than __glibc_likely/unlikely.
22688         * intl/dcngettext.c: Switch to gettext copyright.
22689         Use ANSI definitions and prototypes.
22690         * intl/dgettext.c: Likewise.
22691         * intl/dngettext.c: Likewise.
22692         * intl/plural-eval.c: Renamed to...
22693         * intl/eval-plural.h: ...this.
22694         * intl/explodename.c: Switch to gettext copyright.
22695         Use ANSI definitions and prototypes.
22696         (_nl_explode_name): Use strchr instead of __rawmemchr.
22697         * intl/finddomain.c: Switch to gettext copyright.
22698         Use ANSI definitions and prototypes.
22699         Use gl_* locking primitives rather than __libc_* ones.
22700         (_nl_find_domain): Use malloc rather than alloca for
22701         allocation of temporary locale name.
22702         * intl/gettext.c: Switch to gettext copyright.
22703         Use ANSI definitions and prototypes.
22704         * intl/gettextP.h: Switch to gettext copyright.
22705         Use ANSI definitions and prototypes.
22706         Use gl_* locking primitives rather than __libc_* ones.
22707         * intl/gmo.h: Switch to gettext copyright.
22708         (struct sysdep_string): Move struct segment_pair outside of
22709         struct definition.
22710         * intl/hash-string.c: Use ANSI definitions and prototypes.
22711         * intl/hash-string.h: Switch to gettext copyright.
22712         Use ANSI definitions and prototypes.
22713         * intl/l10nflist.c: Switch to gettext copyright.
22714         Use ANSI definitions and prototypes.
22715         (_nl_normalize_codeset): Avoid integer overflow.
22716         * intl/loadinfo.h: Switch to gettext copyright.
22717         Use ANSI definitions and prototypes.
22718         (LIBINTL_DLL_EXPORTED): New define.
22719         (PATH_SEPARATOR): New define.
22720         * intl/loadmsgcat.c: Switch to gettext copyright.
22721         * intl/localealias.c: Switch to gettext copyright.
22722         Use ANSI definitions and prototypes.
22723         (_nl_expand_alias): Use PATH_SEPARATOR.
22724         * intl/ngettext.c: Switch to gettext copyright.
22725         Use ANSI definitions and prototypes.
22726         * intl/plural-exp.c: Likewise.
22727         * intl/plural-exp.h: Switch to gettext copyright.
22728         Use ANSI definitions and prototypes.
22729         (struct expression): Move definition of enum operator outside
22730         of struct definition.
22731         * intl/plural.c: Regenerate.
22732         * intl/plural.y: Switch to gettext copyright.
22733         Use ANSI definitions and prototypes.
22734         Port to bison 3.0.
22735         * intl/textdomain.c: Switch to gettext copyright.
22736         Use ANSI definitions and prototypes.
22737         Use gl_* locking primitives rather than __libc_* ones.
22738
22739 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
22740
22741         * debug/warning-nop.c: Add used atrribute.
22742
22743 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22744
22745         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
22746
22747         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
22748         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
22749         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
22750
22751 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22752             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22753
22754         [BZ #17634]
22755         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
22756         Undefine after defining function.  Define as weak alias of
22757         __wcschr.  Use libc_hidden_weak.
22758         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
22759         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
22760         (libc_hidden_def): Also define __GI___wcschr alias.
22761         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
22762         __wcschr and define as weak alias of __wcschr.
22763         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
22764         __wcschr.
22765         [!WCSCHR] (DEFAULT_WCSCHR): Define.
22766         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
22767         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
22768         libc_hidden_weak.  Do not use libc_hidden_def.
22769         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
22770         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
22771         __GI___wcschr alias.
22772         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
22773         [IS_IN (libc)] (wcschr): Define as macro expanding to
22774         __redirect_wcschr.
22775         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
22776         [IS_IN (libc)] (__wcschr_power6): Likewise.
22777         [IS_IN (libc)] (__wcschr_power7): Likewise.
22778         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
22779         instead of wcschr.
22780         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
22781         __libc_wcschr.
22782         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
22783         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
22784         __wcschr and define as weak alias of __wcschr.  Use
22785         libc_hidden_builtin_def.
22786         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
22787         as weak alias of __wcschr.  Use libc_hidden_weak.
22788         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
22789         wcschr.
22790         * time/era.c (_nl_init_era_entries): Likewise.
22791         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
22792         variable.
22793         (test-xfail-XPG3/time.h/linknamespace): Likewise.
22794         (test-xfail-XPG4/time.h/linknamespace): Likewise.
22795
22796 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22797
22798         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
22799         format for long int variable.
22800
22801 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
22802
22803         [BZ #10672]
22804         * manual/search.texi: (Array Sort Function): Remove claim how to make
22805         qsort stable.
22806
22807 2014-12-10  Andreas Schwab  <schwab@suse.de>
22808
22809         [BZ #12847]
22810         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
22811         user-controlled locks.
22812
22813 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
22814
22815         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
22816         register.
22817
22818 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22819
22820         * configure.ac (--disable-werror): New configure option.
22821         (enable_werror): New AC_SUBST.
22822         * configure: Regenerated.
22823         * config.make.in (enable-werror): New variable.
22824         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
22825         -Wno-error=undef.
22826         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
22827         * manual/install.texi (Configuring and compiling): Document
22828         --disable-werror.
22829         * INSTALL: Regenerated.
22830         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
22831         (CFLAGS-tst-chk2.c): Likewise.
22832         (CFLAGS-tst-chk3.c): Likewise.
22833         (CFLAGS-tst-chk4.cc): Likewise.
22834         (CFLAGS-tst-chk5.cc): Likewise.
22835         (CFLAGS-tst-chk6.cc): Likewise.
22836         (CFLAGS-tst-lfschk1.c): Likewise.
22837         (CFLAGS-tst-lfschk2.c): Likewise.
22838         (CFLAGS-tst-lfschk3.c): Likewise.
22839         (CFLAGS-tst-lfschk4.cc): Likewise.
22840         (CFLAGS-tst-lfschk5.cc): Likewise.
22841         (CFLAGS-tst-lfschk6.cc): Likewise.
22842
22843         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
22844         (main): Disable -Wdeprecated-declarations around calls to
22845         register_printf_function.
22846
22847         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
22848         (do_test): Disable -Wdiv-by-zero around some calls to
22849         fwrite_unlocked and fread_unlocked.
22850
22851         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
22852         (DIAG_POP_NEEDS_COMMENT): Likewise.
22853         (_DIAG_STR1): Likewise.
22854         (_DIAG_STR): Likewise.
22855         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
22856         * stdio-common/bug21.c: Include <libc-internal.h>.
22857         (do_test): Disable -Wformat around call to sscanf.
22858         * stdio-common/scanf14.c: Include <libc-internal.h>.
22859         (main): Disable -Wformat around some calls to scanf functions.
22860
22861 2014-12-09  Torvald Riegel  <triegel@redhat.com>
22862
22863         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
22864
22865 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22866
22867         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
22868         stack variable alignment.
22869
22870 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
22871
22872         [BZ #17682]
22873         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
22874         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
22875         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
22876         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
22877         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
22878         __getrlimit instead of getrlimit.
22879         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
22880         __gettimeofday instead of gettimeofday.
22881         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22882         Likewise.
22883         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22884         Likewise.
22885         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
22886         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
22887         Remove variable.
22888         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
22889         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
22890
22891 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22892
22893         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
22894         for wide-character tests.
22895
22896 2014-12-04  Roland McGrath  <roland@hack.frob.com>
22897
22898         * io/openat64.c: #include <libc-internal.h>
22899         (__openat64): Prototypify.  Use ignore_value on MODE.
22900         * io/openat.c: Likewise.
22901         * misc/reboot.c: #include <libc-internal.h>
22902         (reboot): Prototypify.  Use ignore_value on HOWTO.
22903         * misc/ptrace.c: #include <libc-internal.h>
22904         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
22905
22906 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
22907
22908         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
22909         XPG4, UNIX98 and XOPEN2K.
22910         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
22911         Remove variable.
22912         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
22913
22914 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22915
22916         * libio/fileops.c: Use ISO C style for function definitions.
22917         * libio/iofopen.c: Likewise.
22918         * libio/wfileops.c: Likewise.
22919
22920         [BZ #17653]
22921         * libio/fileops.c (_IO_new_file_underflow): Unset cached
22922         offset on EOF.
22923         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
22924         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
22925         (fgets_func): Function pointer to fgets and fgetws.
22926         (do_ftell_test): Add test to verify ftell value after read
22927         EOF.
22928         (do_test): Set fgets_func.
22929
22930         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
22931         O_TRUNC flag for w and w+ modes.
22932         (do_rewind_test): Likewise.
22933         (do_ftell_test): Likewise.
22934         (do_write_test): Likewise.
22935
22936         [BZ #17647]
22937         * libio/fileops.c (do_ftell): Seek only when there are
22938         unflushed writes.
22939         * libio/wfileops.c (do_ftell_wide): Likewise.
22940         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
22941         test case.
22942         (do_one_test): Call it.
22943
22944 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
22945
22946         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
22947         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
22948         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
22949         Remove variable.
22950         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
22951         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
22952         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
22953
22954 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
22955
22956         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
22957         Remove variable.
22958         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
22959
22960         [BZ #17668]
22961         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
22962         as weak alias of __getifaddrs.  Use libc_hidden_weak.
22963         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
22964         __freeifaddrs.  Use libc_hidden_weak.
22965         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
22966         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
22967         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
22968         __freeifaddrs.  Use libc_hidden_weak.
22969         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
22970         __getifaddrs and define as weak alias of __getifaddrs.  Use
22971         libc_hidden_weak.
22972         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
22973         __freeifaddrs.  Use libc_hidden_weak.
22974         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
22975         Remove variable.
22976         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
22977         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
22978
22979 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
22980
22981         [BZ #17601]
22982         * sysdeps/mips/start.S (__start): Use indirect jump to call
22983         __libc_start_main.
22984
22985 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
22986
22987         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
22988
22989         * nptl/tst-mutex1.c: Include <stdbool.h>.
22990         [!ATTR] (ATTR_NULL): New macro.
22991         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
22992         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
22993         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
22994
22995         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
22996         to char *.
22997
22998         [BZ #17665]
22999         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23000         Change conditional to [__USE_MISC].
23001
23002         [BZ #17664]
23003         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23004         fgets_unlocked.
23005         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23006         __fgets_unlocked.
23007         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23008         fgets_unlocked.
23009         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23010         Remove variable.
23011         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23012         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23013         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23014         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23015         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23016         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23017         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23018         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23019         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23020
23021         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23022
23023 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23024
23025         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23026         Remove strpbrk objects.
23027         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23028         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23029         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23030         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23031         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23032         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23033
23034         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23035         Remove strcspn objects.
23036         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23037         (__libc_ifunc_impl_list): Remove strcspn implementation.
23038         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23039         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23040         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23041         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23042
23043         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23044         Remove strspn objetcs.
23045         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23046         (__libc_ifunc_impl_list): Remove strspn implementation.
23047         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23048         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23049         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23050         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23051
23052 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23053
23054         [BZ #17581]
23055         * malloc/hooks.c
23056         (mem2mem_check): Add a terminator to the chain of checking blocks.
23057         (malloc_check_get_size): Use it here.
23058         (mem2chunk_check): Ditto.
23059
23060 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23061
23062         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23063         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23064
23065 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23066
23067         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23068
23069         * nptl/nptl-init.c: Include libc-internal.h.
23070         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23071
23072         * elf/ldconfig.c (search_dir): Expand comment.
23073
23074 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23075
23076         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23077         variable.
23078         (linknamespace-symlist-stdlibs-tests): Likewise.
23079         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23080         instead of $(objpfx)symlist-stdlibs.
23081         (linknamespace-libs-isoc): New variable.
23082         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23083         (linknamespace-libs-ISO): New variable.
23084         (linknamespace-libs-ISO99): Likewise.
23085         (linknamespace-libs-ISO11): Likewise.
23086         (linknamespace-libs-XPG3): Likewise.
23087         (linknamespace-libs-XPG4): Likewise.
23088         (linknamespace-libs-POSIX): Likewise.
23089         (linknamespace-libs-UNIX98): Likewise.
23090         (linknamespace-libs-XOPEN2K): Likewise.
23091         (linknamespace-libs-POSIX2008): Likewise.
23092         (linknamespace-libs-XOPEN2K8): Likewise.
23093         ($(objpfx)symlist-stdlibs): Replace by
23094         $(linknamespace-symlist-stdlibs-tests).  Use
23095         $(linknamespace-libs-$*) as set of libraries.
23096         ($(linknamespace-header-tests)): Update dependencies.  Use
23097         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23098         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23099         * conform/linknamespace.pl: Remove comment about considering
23100         definitions of symbols from irrelevant libraries.
23101
23102 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23103
23104         [BZ #13862]
23105         * elf/dl-tls.c: Include <atomic.h>.
23106         (oom): Remove #ifdef SHARED/#endif.
23107         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23108         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23109         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23110         big enough.
23111         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23112         * nptl/Makefile (tests): Add tst-stack4.
23113         (modules-names): Add tst-stack4mod.
23114         ($(objpfx)tst-stack4): New.
23115         (tst-stack4mod.sos): Likewise.
23116         ($(objpfx)tst-stack4.out): Likewise.
23117         ($(tst-stack4mod.sos)): Likewise.
23118         (clean): Likewise.
23119         * nptl/tst-stack4.c: New file.
23120         * nptl/tst-stack4mod.c: Likewise.
23121
23122 2014-11-27  J. Brown  <jb999@gmx.de>
23123
23124         * sysdeps/x86/bits/string.h: Add recent CPUs.
23125
23126 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23127
23128         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23129         sigblock.
23130
23131         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23132         feof.
23133
23134         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23135         variable.
23136
23137 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23138
23139         * nscd/connections.c: Include libc-internal.h because of macro
23140         usage ignore_value.
23141
23142 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23143
23144         * string/bits/string3.h (__warn_memset_zero_len): Don't
23145         declare for gcc newer than 5.0.
23146         (memset): Don't test for zero-length __LEN for gcc newer than
23147         5.0.
23148
23149 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23150
23151         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23152         size_t for %zu format.
23153
23154         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23155         difference, not %ju.
23156
23157 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23158
23159         * include/libc-internal.h (ignore_value): New macro.
23160         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23161         with ignore_value.
23162
23163         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23164         definition.
23165
23166         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23167         pthread_cleanup_push to void *.
23168
23169         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23170         Undefine.
23171
23172         [BZ #16619]
23173         [BZ #16740]
23174         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23175         instead of 1L << 52.
23176
23177         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23178         * libio/bug-rewind2.c (do_test): Likewise.
23179
23180         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23181         * debug/test-strcpy_chk-ifunc.c: Likewise.
23182         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23183         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23184         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23185         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23186         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23187         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23188         * Rules [$(multi-arch) = no] (tests): Do not filter out
23189         $(tests-ifunc).
23190         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23191         * debug/Makefile (tests-ifunc): Remove variable.
23192         (tests): Do not add $(tests-ifunc).
23193         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23194         (tests): Do not add $(tests-ifunc).
23195         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23196         [TEST_IFUNC]: Remove conditionals.
23197         * string/test-string.h (TEST_IFUNC): Remove macro.
23198         [TEST_IFUNC]: Remove conditionals.
23199
23200         * string/test-strchr.c [!WIDE] (L): New macro.
23201         [WIDE] (L): Likewise.
23202         (check1): Use CHAR instead of char.  Use L on string and character
23203         constants.
23204
23205 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23206
23207         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23208         tests.
23209         * sysdeps/powerpc/bits/atomic.h
23210         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23211         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23212         (atomic_exchange_and_add_acq): Likewise.
23213         (atomic_exchange_and_add_rel): Likewise.
23214         * sysdeps/powerpc/powerpc32/bits/atomic.h
23215         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23216         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23217         * sysdeps/powerpc/powerpc64/bits/atomic.h
23218         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23219         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23220
23221 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23222
23223         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23224         Change synchronization of __sched_fifo_min_prio and
23225         __sched_fifo_max_prio.
23226         * nptl/pthread_mutexattr_getprioceiling.c
23227         (pthread_mutexattr_getprioceiling): Likewise.
23228         * nptl/pthread_mutexattr_setprioceiling.c
23229         (pthread_mutexattr_setprioceiling): Likewise.
23230         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23231         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23232         Likewise.
23233
23234 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23235
23236         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23237         void.
23238
23239 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23240
23241         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23242         third argument const.
23243
23244 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23245
23246         fnmatch: work around GCC compiler warning bug with uninit var
23247         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23248         This works around a bug with x86-64 GCC 4.9.2 and earlier
23249         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23250         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23251         used uninitialized in this function [-Wmaybe-uninitialized]".
23252
23253 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23254
23255         * posix/bug-regex31.c (main): Return RES not 0.
23256
23257 2014-11-25  Anton Blanchard <anton@samba.org>
23258
23259         * sysdeps/powerpc/bits/atomic.h
23260         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23261
23262 2014-11-24  Sterling Augustine  <saugustine@google.com>
23263
23264         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23265
23266 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23267
23268         [BZ #17608]
23269         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23270
23271 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23272
23273         [BZ #17633]
23274         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23275         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23276         variable.
23277         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23278         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23279
23280 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23281
23282         * string/strncpy.c (strncpy): Improve performance by using memset.
23283
23284 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23285
23286         * string/strcpy.c (strcpy):
23287         Improve performance by using strlen and memcpy.
23288
23289 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23290
23291         * string/strcoll_l.c (get_next_seq): __always_inline.
23292         * string/strcoll_l.c (do_compare): __always_inline.
23293
23294 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23295
23296         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23297         defined.
23298         * include/mqueue.h: Likewise.
23299         * include/stdlib.h: Likewise.
23300
23301         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23302         (get_null_defines): Adjust.
23303         * sunrpc/Makefile: Adjust comment.
23304         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23305         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23306         (CFLAGS-interp.c): Likewise.
23307         (CFLAGS-ldconfig.c): Likewise.
23308         (CPPFLAGS-.os): Likewise.
23309         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23310         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23311         * extra-modules.mk (extra-modules.mk): Likewise.
23312         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23313         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23314         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23315         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23316         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23317         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23318         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23319         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23320         * iconvdata/Makefile (CPPFLAGS): Likewise.
23321         (cpp-srcs-left): Add libof for all iconvdata routines.
23322         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23323         * include/assert.h: Likewise.
23324         * include/ctype.h: Likewise.
23325         * include/errno.h: Likewise.
23326         * include/libc-symbols.h: Likewise.
23327         * include/math.h: Likewise.
23328         * include/netdb.h: Likewise.
23329         * include/resolv.h: Likewise.
23330         * include/stdio.h: Likewise.
23331         * include/stdlib.h: Likewise.
23332         * include/string.h: Likewise.
23333         * include/sys/stat.h: Likewise.
23334         * include/wctype.h: Likewise.
23335         * intl/l10nflist.c: Likewise.
23336         * libidn/idn-stub.c: Likewise.
23337         * libio/libioP.h: Likewise.
23338         * nptl/libc_multiple_threads.c: Likewise.
23339         * nptl/pthreadP.h: Likewise.
23340         * posix/regex_internal.h: Likewise.
23341         * resolv/res_hconf.c: Likewise.
23342         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23343         * sysdeps/arm/memmove.S: Likewise.
23344         * sysdeps/arm/sysdep.h: Likewise.
23345         * sysdeps/generic/_itoa.h: Likewise.
23346         * sysdeps/generic/symbol-hacks.h: Likewise.
23347         * sysdeps/gnu/errlist.awk: Likewise.
23348         * sysdeps/gnu/errlist.c: Likewise.
23349         * sysdeps/i386/i586/memcpy.S: Likewise.
23350         * sysdeps/i386/i586/memset.S: Likewise.
23351         * sysdeps/i386/i686/memcpy.S: Likewise.
23352         * sysdeps/i386/i686/memmove.S: Likewise.
23353         * sysdeps/i386/i686/mempcpy.S: Likewise.
23354         * sysdeps/i386/i686/memset.S: Likewise.
23355         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23356         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23357         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23358         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23359         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23360         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23361         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23362         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23363         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23364         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23365         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23366         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23367         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23368         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23369         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23370         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23371         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23372         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23373         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23374         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23375         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23376         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23377         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23378         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23379         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23380         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23381         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23382         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23383         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23384         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23385         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23386         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23387         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23388         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23389         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23390         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23391         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23392         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23393         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23394         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23395         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23396         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23397         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23398         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23399         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23400         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23401         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23402         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23403         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23404         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23405         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23406         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23407         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23408         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23409         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23410         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23411         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23412         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23413         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23414         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23415         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23416         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23417         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23418         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23419         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23420         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23421         * sysdeps/posix/closedir.c: Likewise.
23422         * sysdeps/posix/opendir.c: Likewise.
23423         * sysdeps/posix/readdir.c: Likewise.
23424         * sysdeps/posix/rewinddir.c: Likewise.
23425         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23426         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23427         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23428         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23429         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23430         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23431         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23432         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23433         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23434         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23435         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23436         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23437         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23438         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23439         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23440         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23441         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23442         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23443         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23444         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23445         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23446         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23447         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23448         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23449         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23450         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23451         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23452         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23453         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23454         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23455         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23456         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23457         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23458         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23459         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23460         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23461         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23462         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23463         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23464         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23465         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23466         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23467         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23468         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23469         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23470         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23471         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23472         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23473         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23474         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23475         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23476         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23477         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23478         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23479         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23480         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23481         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23482         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23483         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23484         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23485         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23486         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23487         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23488         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23489         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23490         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23491         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23492         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23493         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23494         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23495         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23496         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23497         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23498         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23499         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23500         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23501         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23502         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23503         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23504         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23505         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23506         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23507         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23508         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23509         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23510         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23511         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23512         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23513         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23514         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23515         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23516         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23517         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23518         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23519         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23520         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23521         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23522         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23523         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23524         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23525         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23526         * sysdeps/unix/alpha/sysdep.S: Likewise.
23527         * sysdeps/unix/alpha/sysdep.h: Likewise.
23528         * sysdeps/unix/make-syscalls.sh: Likewise.
23529         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23530         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23531         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23532         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23533         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23534         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23535         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23536         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23537         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23538         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23539         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23540         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23541         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23542         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23543         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23544         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23545         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23546         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23547         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23548         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23549         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23550         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23551         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23552         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23553         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23554         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23555         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23558         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
23559         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23560         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23561         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23562         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23563         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
23564         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23565         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23566         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23567         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
23568         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23569         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23570         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23571         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23572         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23573         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23574         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23575         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23576         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23577         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23578         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23579         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23580         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23581         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23582         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23583         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
23584         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23585         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23586         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23587         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
23588         * sysdeps/x86_64/memcpy.S: Likewise.
23589         * sysdeps/x86_64/memmove.c: Likewise.
23590         * sysdeps/x86_64/memset.S: Likewise.
23591         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
23592         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23593         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
23594         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
23595         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
23596         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23597         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23598         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
23599         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
23600         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
23601         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
23602         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
23603         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
23604         * sysdeps/x86_64/multiarch/memset.S: Likewise.
23605         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
23606         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
23607         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
23608         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
23609         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
23610         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
23611         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
23612         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
23613         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
23614         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
23615         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
23616         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
23617         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
23618         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
23619         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23620         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
23621         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
23622         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
23623         * sysdeps/x86_64/strcmp.S: Likewise.
23624
23625         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
23626
23627         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
23628         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
23629         * elf/rtld-Rules: Likewise.
23630         * elf/setup-vdso.h: Likewise.
23631         * include/assert.h: Likewise.
23632         * include/bits/stdlib-float.h: Likewise.
23633         * include/errno.h: Likewise.
23634         * include/sys/stat.h: Likewise.
23635         * include/unistd.h: Likewise.
23636         * sysdeps/aarch64/setjmp.S: Likewise.
23637         * sysdeps/alpha/setjmp.S: Likewise.
23638         * sysdeps/arm/__longjmp.S: Likewise.
23639         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
23640         * sysdeps/arm/setjmp.S: Likewise.
23641         * sysdeps/arm/sysdep.h: Likewise.
23642         * sysdeps/generic/_itoa.h: Likewise.
23643         * sysdeps/generic/dl-sysdep.h: Likewise.
23644         * sysdeps/generic/ldsodefs.h: Likewise.
23645         * sysdeps/i386/dl-tls.h: Likewise.
23646         * sysdeps/i386/setjmp.S: Likewise.
23647         * sysdeps/m68k/setjmp.c: Likewise.
23648         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
23649         * sysdeps/mach/hurd/opendir.c: Likewise.
23650         * sysdeps/posix/getcwd.c: Likewise.
23651         * sysdeps/posix/opendir.c: Likewise.
23652         * sysdeps/posix/profil.c: Likewise.
23653         * sysdeps/powerpc/dl-procinfo.h: Likewise.
23654         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23655         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23656         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
23657         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
23658         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
23659         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
23660         * sysdeps/s390/dl-tls.h: Likewise.
23661         * sysdeps/s390/s390-32/setjmp.S: Likewise.
23662         * sysdeps/s390/s390-64/setjmp.S: Likewise.
23663         * sysdeps/sh/sh3/setjmp.S: Likewise.
23664         * sysdeps/sh/sh4/setjmp.S: Likewise.
23665         * sysdeps/unix/alpha/sysdep.h: Likewise.
23666         * sysdeps/unix/arm/sysdep.S: Likewise.
23667         * sysdeps/unix/i386/sysdep.S: Likewise.
23668         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23669         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
23670         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23671         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23672         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23673         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23674         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
23675         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23676         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23677         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23678         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
23679         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23680         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23683         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23684         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23685         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23686         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23687         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23688         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23689         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23690         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23691         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23692         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23693         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23694         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23695         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23696         * sysdeps/x86_64/setjmp.S: Likewise.
23697
23698         * include/math.h: Use IS_IN instead of IS_IN_libm.
23699         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
23700         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23701         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
23702         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
23703         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23704         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
23705         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
23706         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23707         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23708         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
23709         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
23710         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
23711         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
23712         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
23713         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
23714         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
23715         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
23716         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
23717         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
23718         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
23719         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
23720         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
23721         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
23722         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
23723         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
23724         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
23725         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
23726         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
23727         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
23728         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
23729         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
23730         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
23731         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
23732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23733         Likewise.
23734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
23735         Likewise.
23736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
23737         Likewise.
23738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
23739         Likewise.
23740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
23741         Likewise.
23742         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
23743         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
23744         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
23745         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23746         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23747         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23748         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
23749         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
23750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
23751         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
23752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
23753         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
23754         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
23755         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
23756         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
23757         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23758         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
23759         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
23760         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23761         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
23762         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
23763         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
23764         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
23765         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
23766         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
23767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
23768         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
23769
23770         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
23771         * nptl/pthreadP.h: Likewise.
23772         * nptl_db/structs.def: Likewise.
23773         * sysdeps/arm/sysdep.h: Likewise.
23774         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23775         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23776         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
23777         * sysdeps/unix/alpha/sysdep.h: Likewise.
23778         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23779         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23780         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23781         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23782         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23783         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23784         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23785         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23786         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23787         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23788         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23789         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23790         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23791         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23794         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23795         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23796         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23797         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23798         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23799         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23800         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23801         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23802         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
23803         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23804
23805         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
23806         * nptl/pthreadP.h: Likewise.
23807         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23808         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23809         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23810         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23811         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23812         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23813         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23814         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23815         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23816         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23817         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23818         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
23820         Likewise.
23821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
23822         Likewise.
23823         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23824         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23825         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23826         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23827         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23828         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23829         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23830         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23831
23832         * dlfcn/dladdr.c: Use IS_IN.
23833         * dlfcn/dladdr1.c: Likewise.
23834         * dlfcn/dlclose.c: Likewise.
23835         * dlfcn/dlerror.c: Likewise.
23836         * dlfcn/dlinfo.c: Likewise.
23837         * dlfcn/dlmopen.c: Likewise.
23838         * dlfcn/dlopen.c: Likewise.
23839         * dlfcn/dlsym.c: Likewise.
23840         * dlfcn/dlvsym.c: Likewise.
23841
23842         * include/ifaddrs.h: Use IS_IN.
23843         * inet/check_pf.c: Likewise.
23844         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
23845         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
23846
23847         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
23848         IS_IN_ldconfig.
23849         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
23850         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
23851
23852         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
23853         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
23854         IS_IN (libc).
23855
23856         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
23857
23858         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
23859         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23860         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23861         * include/libc-symbols.h (IS_IN_LIB): New macro.
23862         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
23863         * include/netdb.h: Likewise.
23864         * include/stap-probe.h: Remove all uses of IN_LIB.
23865
23866         * Makeconfig (module-cppflags-real): Define MODULE_NAME
23867         instead of IN_MODULE.
23868         * include/libc-symbols.h (IN_MODULE): Define using
23869         MODULE_NAME.
23870         (PASTE_NAME, PASTE_NAME1): New macros.
23871         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
23872         of IN_LIB.
23873         (STAP_PROBE_ASM): Likewise.
23874
23875 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23876
23877         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
23878         __mach_init in dlopened libc.
23879
23880 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
23881
23882         * sysdeps/arm/preconfigure.ac: Delete EABI check.
23883         * sysdeps/arm/preconfigure: Regenerate.
23884
23885 2014-11-21  Roland McGrath  <roland@hack.frob.com>
23886
23887         * nptl/pthread_create.c (__pthread_create_2_1): Set
23888         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
23889         when copying values from IATTR into PD.
23890
23891 2014-11-21  Will Newton  <will.newton@linaro.org>
23892             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
23893
23894         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
23895         Refactor inline-asm.  Also add comment.
23896
23897         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
23898         ElfW macro instead of hardcoded Elf64 types.
23899         (la_aarch64_gnu_pltenter): Likewise.
23900         * sysdeps/aarch64/dl-machine.h
23901         (elf_machine_runtime_setup): Use ElfW(Addr).
23902
23903         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
23904         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
23905         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
23906         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
23907         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
23908         (R_AARCH64_TLS_DTPMOD64): Rename to ..
23909         (R_AARCH64_TLS_DTPMOD): This.
23910         (R_AARCH64_TLS_DTPREL64): Rename to ...
23911         (R_AARCH64_TLS_DTPREL): This.
23912         (R_AARCH64_TLS_TPREL64): Rename to ...
23913         (R_AARCH64_TLS_TPREL): This.
23914         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
23915         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
23916         R_AARCH64_TLS_TPREL64.
23917         (elf_machine_rela): Likewise.
23918
23919 2014-11-21  Torvald Riegel  <triegel@redhat.com>
23920
23921         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
23922         by setting it to 0.  64b atomics are not supported currently.
23923
23924 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23925
23926         [BZ #16469]
23927         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
23928         search domain names.
23929
23930 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23931
23932         [BZ #16469]
23933         * NEWS: Update.
23934         * resolv/res_query.c (__libc_res_nquerydomain): Retain
23935         trailing dot.
23936         * posix/tst-getaddrinfo5.c: New.
23937         * posix/Makefile (tests): Add it.
23938
23939 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23940
23941         [BZ #14498]
23942         * NEWS: Fixed.
23943         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
23944         after parsing line but before break_if_match.
23945         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
23946         if there is a protocol mismatch.
23947
23948 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
23949
23950         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
23951         because the potential race is on the user-supplied stream.
23952
23953 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23954
23955         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
23956         string literal if not passed a buffer.
23957         * manual/job.texi (ctermid): Update reasoning, note deviation
23958         from posix, suggest mtasurace when not passed a buffer, for
23959         future non-preliminary safety notes.
23960
23961 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23962
23963         * manual/users.texi (cuserid): Fix MT-Safety note for the case
23964         of not passing it a buffer.
23965         Reported by Peng Haitao.
23966
23967 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23968
23969         * manual/Makefile ($(objpfx)stamp-summary): Require
23970         check-safety.sh to pass.
23971         * manual/check-safety.sh: Wish for verification that every
23972         @deftypefn and @deftypefun is followed by a @safety remark.
23973
23974 2014-11-20  Roland McGrath  <roland@hack.frob.com>
23975
23976         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
23977
23978         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
23979         PTHREAD_CANCEL_ASYNCHRONOUS.
23980         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
23981         send SIGCANCEL.
23982
23983         * nptl/default-sched.h: New file.
23984         * sysdeps/unix/sysv/linux/default-sched.h: New file.
23985         * nptl/pthread_create.c: Include it.
23986         (__pthread_create_2_1): Use collect_default_sched instead of making
23987         Linux syscalls here directly.
23988
23989 2014-11-20  Torvald Riegel  <triegel@redhat.com>
23990
23991         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
23992         __pthread_once): Use C11 atomics.
23993
23994 2014-11-20  Torvald Riegel  <triegel@redhat.com>
23995
23996         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
23997
23998 2014-11-20  Torvald Riegel  <triegel@redhat.com>
23999
24000         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24001         atomic_thread_fence_acquire, atomic_thread_fence_release,
24002         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24003         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24004         atomic_compare_exchange_weak_relaxed,
24005         atomic_compare_exchange_weak_acquire,
24006         atomic_compare_exchange_weak_release,
24007         atomic_exchange_acquire, atomic_exchange_release,
24008         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24009         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24010         atomic_fetch_and_acquire,
24011         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24012
24013 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24014
24015         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24016         USE_ATOMIC_COMPILER_BUILTINS): Define.
24017         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24018         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24019         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24020         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24021         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24022         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24023         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24024         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24025         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24026         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24027         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24028         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24029         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24030         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24031         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24032         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24033         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24034         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24035         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24036         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24037         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24038         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24039         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24040         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24041         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24042         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24043         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24044         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24045         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24046         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24047         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24048         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24049         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24050         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24051         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24052         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24053         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24054         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24055         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24056         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24057
24058 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24059
24060         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24061         the sched_priority value here.  It was already checked when the user
24062         called pthread_attr_setschedparam.
24063
24064         * nptl/tst-bad-schedattr.c: New file.
24065         * nptl/Makefile (tests): Add it.
24066
24067 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24068             Florian Weimer  <fweimer@redhat.com>
24069             Joseph Myers  <joseph@codesourcery.com>
24070             Adam Conrad  <adconrad@0c3.net>
24071             Andreas Schwab  <schwab@suse.de>
24072             Brooks  <bmoses@google.com>
24073
24074         [BZ #17625]
24075         * wordexp-test.c (__dso_handle): Add prototype.
24076         (__register_atfork): Likewise.
24077         (__app_register_atfork): New function.
24078         (registered_forks): New global.
24079         (register_fork): New function.
24080         (test_case): Add 3 new tests for WRDE_CMDSUB.
24081         (main): Call __app_register_atfork.
24082         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24083         fork count is non-zero fail the test.
24084         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24085         is set.
24086         (parse_dollars): Remove check for WRDE_NOCMD.
24087         (parse_dquote): Likewise.
24088
24089 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24090
24091         * Makeconfig (built-modules): List non-library modules to be
24092         built.
24093         (module-cppflags): Include libc-modules.h for
24094         everything except shlib-versions.v.i.
24095         (CPPFLAGS): Use it.
24096         (before-compile): Add libc-modules.h.
24097         ($(common-objpfx)libc-modules.h,
24098         $(common-objpfx)libc-modules.stmp): New targets.
24099         (common-generated): Add libc-modules.h and libc-modules.stmp.
24100         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24101         * include/libc-symbols.h: Don't include libc-modules.h.
24102         * include/libc-modules.h: Remove file.
24103         * scripts/gen-libc-modules.awk: New script to generate
24104         libc-modules.h.
24105         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24106         Depend on libc-modules.stmp.
24107
24108         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24109
24110         * Makeconfig (in-module): Get value of libof set for the
24111         translation unit.
24112         (CPPFLAGS): Use $(in-module).
24113         * Makerules: Don't suffix routine names for nonlib.
24114         * include/libc-modules.h: New file.
24115         * include/libc-symbols.h: Include libc-modules.h
24116         (IS_IN): New macro to replace IS_IN_* macros.
24117         * elf/Makefile: Set libof-* for each routine.
24118         * elf/rtld-Rules: Likewise.
24119         * extra-modules.mk: Likewise.
24120         * iconv/Makefile: Likewise.
24121         * iconvdata/Makefile: Likewise.
24122         * locale/Makefile: Likewise.
24123         * malloc/Makefile: Likewise.
24124         * nss/Makefile: Likewise.
24125         * sysdeps/gnu/Makefile: Likewise.
24126         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24127         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24128         * sysdeps/s390/s390-64/Makefile: Likewise.
24129         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24130         CPPFLAGS for nscd instead of nonlib.
24131
24132 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24133
24134         * nptl/createthread.c: New file.
24135
24136         * nptl/createthread.c: Moved ...
24137         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24138
24139         * nptl/createthread.c: Add proper top-line comment.
24140         (do_clone): Folded into ...
24141         (create_thread): ... here.  Take new arguments STOPPED_START and
24142         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24143         increment __nptl_threads, do event-reporting logic, do
24144         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24145         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24146         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24147         just send SIGCANCEL.
24148         * nptl/pthread_create.c: Forward-declare create_thread before
24149         including createthread.c.
24150         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24151         declaration, and new macro START_THREAD_SELF to replace argument.
24152         Remove return statement.
24153         (report_thread_creation): New function.
24154         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24155         synchronization logic, and __nptl_nthreads increment here, around
24156         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24157         PD->parent_cancelhandling here, before create_thread.  When
24158         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24159         __deallocate_stack, and ENOMEM translation here.
24160
24161 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24162
24163         [BZ #17616]
24164         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24165         (mptwo): Rename to __mptwo.
24166         (__inv): Use __mptwo instead of mptwo.
24167         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24168         (mptwo): Rename to __mptwo.
24169         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24170         of mpone and __mptwo instead of mptwo.
24171         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24172         instead of mpone.
24173         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24174         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24175         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24176         of mpone and __mptwo instead of mptwo.
24177         (__mpranred): Use __mpone instead of mpone.
24178         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24179         variable.
24180         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24181         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24182         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24183         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24184         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24185         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24186         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24187         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24188         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24189         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24190         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24191         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24192         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24193         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24194         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24195         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24196         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24197         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24198         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24199
24200 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24201
24202         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24203         replace BSD Handler xref with BSD Signal Handling.
24204
24205 2014-11-17  Richard Henderson  <rth@redhat.com>
24206
24207         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24208         (_FP_PACK_RAW_2): Remove.
24209         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24210         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24211         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24212         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24213         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24214         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24215         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24216         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24217         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24218         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24219         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24220         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24221         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24222         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24223         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24224         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24225
24226 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24227
24228         * signal/signal.h [__USE_MISC]
24229         (struct sigvec): Remove type.
24230         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24231         (sigvec): Remove declaration.
24232         * sysdeps/posix/sigvec.c: Moved ...
24233         * signal/sigvec.c: ... here, replacing old file.
24234         (struct sigvec): New type, copied from old signal.h definition.
24235         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24236         (__sigvec): Convert definition to prototype.
24237         (sigvec): Replace weak_alias with compat_symbol.
24238         * signal/Versions (libc: GLIBC_2.21): New version set.
24239         * include/signal.h: Remove __sigvec declaration.
24240         * sysdeps/unix/bsd/sigvec.c: Remove file.
24241         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24242         * manual/signal.texi (BSD Handler): Remove subsection.
24243         Move siginterrupt up to ...
24244         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24245         (Blocking in BSD): Fold subsection into its parent.
24246         * NEWS: Mention sigvec removal.
24247
24248 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24249
24250         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24251         (DLA_FMS): Make definition conditional only on [__FMA4__].
24252         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24253         definition.
24254
24255         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24256         Make definition conditional only on [PROF].
24257         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24258         definition.
24259         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24260         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24261
24262         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24263         !__GNUC__].
24264         * include/signal.h (__sigpause): Move declaration above call to
24265         libc_hidden_proto.
24266         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24267         variable.
24268         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24269         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24270
24271 2014-11-14  David S. Miller  <davem@davemloft.net>
24272
24273         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24274         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24275
24276 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24277
24278         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24279         * configure: Regenerated.
24280         * manual/install.texi (Tools for Compilation): Document a
24281         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24282         compiler verified to work.
24283         * INSTALL: Regenerated.
24284
24285         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24286         redeclare with asm name.
24287         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24288         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24289         including <string.h>.
24290         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24291         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24292         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24293         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24294         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24295         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24296         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24297
24298 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24299
24300         * stdlib/strtol.c (__strtol): Use prototype definition.
24301
24302         [BZ #17594]
24303         * stdlib/strtol.c (SYM__): New macro.
24304         (SYM__1): Likewise.
24305         (__strtol): Likewise.
24306         (strtol): Rename to __strtol and define as weak alias of
24307         __strtol.  Use libc_hidden_weak.
24308
24309 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24310
24311         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24312         Use numbered labels in inline assembly.
24313
24314 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24315
24316         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24317         Add setjmp LIBC_PROBE.
24318         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24319         Likewise.
24320         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24321         Add longjmp, longjmp_target LIBC_PROBE.
24322         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24323         Likewise.
24324
24325 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24326
24327         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24328         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24329         to get rid of unused variable warning.
24330
24331 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24332
24333         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24334         Check for unwind_backtrace ==  NULL only in SHARED case.
24335         (__backchain_backtrace): Compile only in SHARED case.
24336         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24337         Likewise.
24338         (__backchain_backtrace): Declare as static.
24339
24340 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24341
24342         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24343         (__libc_multiple_threads_ptr): Variable moved ...
24344         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24345
24346 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24347
24348         * conform/GlibcConform.pm: New file.
24349         * conform/conformtest.pl: Use GlibcConform module.
24350         * conform/linknamespace.pl: New file.
24351         * conform/list-header-symbols.pl: Likewise.
24352         * conform/Makefile (linknamespace-symlists-base): New variable.
24353         (linknamespace-symlists-tests): Likewise.
24354         (linknamespace-header-base): Likewise.
24355         (linknamespace-header-tests): Likewise.
24356         (tests-special): Add new tests.
24357         ($(linknamespace-symlists-tests)): New rule.
24358         (linknamespace-libs): New variable.
24359         ($(objpfx)symlist-stdlibs): New rule.
24360         ($(linknamespace-header-tests)): Likewise.
24361         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24362         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24363         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24364         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24365         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24366         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24367         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24368         (test-xfail-ISO/math.h/linknamespace): Likewise.
24369         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24370         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24371         (test-xfail-ISO/time.h/linknamespace): Likewise.
24372         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24373         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24374         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24375         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24376         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24377         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24378         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24379         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24380         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24381         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24382         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24383         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24384         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24385         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24386         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24387         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24388         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24389         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24390         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24391         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24392         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24393         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24394         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24395         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24396         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24397         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24398         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24399         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24400         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24401         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24402         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24403         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24404         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24405         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24406         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24407         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24408         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24409         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24410         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24411         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24412         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24413         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24414         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24415         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24416         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24417         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24418         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24419         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24420         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24421         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24422         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24423         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24424         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24425         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24426         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24427         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24428         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24429         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24430         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24431         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24432         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24433         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24434         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24435         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24436         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24437         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24438         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24439         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24440         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24441         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24442         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24443         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24444         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24445         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24446         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24447         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24448         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24449         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24450         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24451         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24452         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24453         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24454         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24455         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24456         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24457         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24458         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24459         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24460         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24461         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24462         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24463         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24464         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24465         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24466         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24467         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24468         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24469         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24470         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24471         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24472         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24473         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24474         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24475         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24476         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24477         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24478         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24479         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24480         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24481         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24482         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24483         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24484         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24485         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24486         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24487         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24488         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24489         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24490         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24491         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24492         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24493         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24494         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24495         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24496         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24497         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24498         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24499         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24500         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24501         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24502         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24503         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24504         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24505         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24506         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24507         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24508         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24509         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24510         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24511         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24512         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24513         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24514         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24515         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24516         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24517         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24518         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24519         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24520         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24521         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24522
24523         [BZ #17589]
24524         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24525         of fgets_unlocked.
24526
24527         [BZ #17585]
24528         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24529         (memmem): Rename to __memmem and define as weak alias of
24530         __memmem.  Use libc_hidden_weak.
24531         (__memmem): Use libc_hidden_def.
24532         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24533         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24534         memmem.
24535
24536         [BZ #17582]
24537         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24538         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24539         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24540         and define as weak alias of __fgets_unlocked.  Use
24541         libc_hidden_weak.
24542         (__fgets_unlocked): Use libc_hidden_def.
24543         * include/stdio.h (__fgets_unlocked): Declare.  Use
24544         libc_hidden_proto.
24545         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24546         __fgets_unlocked instead of fgets_unlocked.
24547         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24548         (GET_NPROCS_CONF_PARSER): Likewise.
24549         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24550         (GET_NPROCS_CONF_PARSER): Likewise.
24551
24552         [BZ #17574]
24553         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
24554         weak alias of __wmemset.  Use libc_hidden_weak.
24555         (__wmemset): Use libc_hidden_def.
24556         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
24557         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
24558         of wmemset.
24559
24560         [BZ #17573]
24561         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
24562         with asm name __mempcpy.
24563         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
24564
24565         [BZ #17572]
24566         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
24567         and define as weak alias of __rawmemchr.
24568         (__rawmemchr): Do not define as strong alias of rawmemchr.
24569
24570         [BZ #17571]
24571         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
24572         alias of __qsort_r.
24573         (qsort): Call __qsort_r instead of qsort_r.
24574         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
24575         (__qsort_r): Declare.  Call libc_hidden_proto.
24576         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
24577         instead of qsort_r.
24578         * nscd/gai.c (__qsort_r): Define to qsort_r.
24579         * posix/tst-rfc3484.c (__qsort_r): Likewise.
24580         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
24581         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
24582
24583         [BZ #17570]
24584         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
24585         define as weak alias of __malloc_info.
24586
24587         [BZ #17584]
24588         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
24589         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24590         (__rewinddir): Use libc_hidden_def.
24591         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
24592         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24593         (__rewinddir): Use libc_hidden_def.
24594         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
24595         weak alias of __rewinddir.  Don't use libc_hidden_def.
24596         (__rewinddir): Use libc_hidden_def.
24597         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
24598         (__rewinddir): Use libc_hidden_proto.
24599         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
24600         rewinddir.
24601         (__getcwd): Use __rewinddir instead of rewinddir.
24602
24603         [BZ #17583]
24604         * libio/fileno.c (fileno): Rename to __fileno and define as weak
24605         alias of __fileno.  Use libc_hidden_weak.
24606         (__fileno): Use libc_hidden_def.
24607         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
24608         * libio/ftello.c (ftello): Rename to __ftello and define as weak
24609         alias of __ftello.
24610         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
24611         __ftello.
24612         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
24613         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
24614         libc_hidden_def.
24615         (fread_unlocked): Don't use libc_hidden_ver.
24616         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
24617         and define as weak alias of __fread_unlocked.  Don't use
24618         libc_hidden_def.
24619         (__fread_unlocked): Use libc_hidden_def.
24620         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
24621         (ftello): Don't use libc_hidden_proto.
24622         (__ftello): Declare.  Use libc_hidden_proto.
24623         (fread_unlocked): Don't use libc_hidden_proto.
24624         (__fread_unlocked): Declare.  Use libc_hidden_proto.
24625         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
24626         and __ftello instead of fileno, fread_unlocked and ftello.
24627
24628 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
24629
24630         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
24631         GOT12.
24632         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
24633         Likewise.
24634         (_dl_start_user): Likewise.
24635         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
24636
24637 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
24638             Siddhesh Poyarekar  <siddhesh@redhat.com>
24639
24640         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
24641         Move argv and envp down instead of moving argc up.
24642         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
24643
24644 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
24645
24646         [BZ #17506]
24647         * test-skeleton.c (main): Return successful if one of
24648         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
24649         * string/tst-strcoll-overflow.c: Define expected status.
24650
24651 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
24652
24653         [BZ #17475]
24654         * locale/iso-639.def: Define Bhili and Tulu language codes.
24655
24656 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
24657
24658         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
24659
24660 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
24661
24662         [BZ #17555]
24663         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
24664
24665 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
24666
24667         * configure.ac: Updated check of minimal required version to
24668         2.22.
24669         * manual/install.texi (Tools for Compilation): Updated version
24670         number.
24671         * configure: Regenerated.
24672         * INSTALL: Likewise.
24673
24674 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
24675
24676         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
24677         __tls_get_addr.
24678
24679 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
24680
24681         * include/sys/wait.h (__libc_waitpid): Remove declaration.
24682         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
24683         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24684         libc_hidden_weak.
24685         (waitpid): Define as alias of __waitpid.
24686         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
24687         __waitpid.
24688         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24689         libc_hidden_weak.
24690         (waitpid): Define as alias of __waitpid.
24691         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
24692         __libc_waitpid alias.
24693         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
24694         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
24695         Likewise.
24696         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
24697         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
24698         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
24699         alias.
24700         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
24701         __waitpid.
24702         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24703         libc_hidden_weak.
24704         (waitpid): Define as alias of __waitpid.
24705
24706 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
24707
24708         * manual/llio.texi: Add comment that write safety has been
24709         fixed in Linux.
24710
24711         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
24712         (localplt-build-dso): Add elf/ld.so.
24713         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
24714         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
24715         and free for ld.so.
24716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
24717         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
24718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
24719         Likewise.
24720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
24721         Likewise.
24722         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
24723         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
24724         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
24725         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
24726         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
24727         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
24728         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
24729         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
24730         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
24731         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
24732         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
24733
24734 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
24735
24736         [BZ #14132]
24737         * include/libc-symbols.h (INTUSE): Remove macro.
24738         (INTDEF): Likewise.
24739         (INTVARDEF): Likewise.
24740         (_INTVARDEF): Likewise.
24741         (INTDEF2): Likewise.
24742         (INTVARDEF2): Likewise.
24743         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
24744         rtld_hidden_def instead of INTVARDEF.
24745         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
24746         (_dl_starting_up_internal): Remove declaration.
24747         (_dl_starting_up): Use rtld_hidden_proto.
24748         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
24749         declaration.
24750         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
24751         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
24752         _dl_starting_up.
24753         * elf/dl-writev.h (_dl_writev): Likewise.
24754         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
24755         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
24756         _dl_starting_up_internal.
24757
24758 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24759
24760         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
24761         test-skeleton.c.
24762
24763 2014-11-05  Will Newton  <will.newton@linaro.org>
24764
24765         * benchtests/Makefile: (bench-malloc): Add malloc thread
24766         scalability benchmark.
24767         * benchtests/bench-malloc-threads.c: New file.
24768
24769 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
24770
24771         * sysdeps/aarch64/strchrnul.S: New file.
24772
24773 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24774
24775         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
24776         definition.
24777         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
24778         Likwise.
24779         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
24780         Likewise.
24781         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
24782         Likewise.
24783         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
24784         Likewise.
24785         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
24786         Likewise.
24787
24788 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
24789
24790         * catgets/test-gencat.c: Use test-skeleton.c.
24791         * catgets/tst-catgets.c: Likewise.
24792         * csu/tst-empty.c: Likewise.
24793         * elf/tst-audit2.c: Likewise.
24794         * elf/tst-global1.c: Likewise.
24795         * elf/tst-pathopt.c: Likewise.
24796         * elf/tst-piemod1.c: Likewise.
24797         * elf/tst-tls10.c: Likewise.
24798         * elf/tst-tls11.c: Likewise.
24799         * elf/tst-tls12.c: Likewise.
24800         * gnulib/tst-gcc.c: Likewise.
24801         * iconvdata/tst-e2big.c: Likewise.
24802         * iconvdata/tst-loading.c: Likewise.
24803         * iconv/tst-iconv1.c: Likewise.
24804         * iconv/tst-iconv2.c: Likewise.
24805         * inet/test-inet6_opt.c: Likewise.
24806         * inet/tst-gethnm.c: Likewise.
24807         * inet/tst-network.c: Likewise.
24808         * inet/tst-ntoa.c: Likewise.
24809         * intl/tst-codeset.c: Likewise.
24810         * intl/tst-gettext2.c: Likewise.
24811         * intl/tst-gettext3.c: Likewise.
24812         * intl/tst-ngettext.c: Likewise.
24813         * intl/tst-translit.c: Likewise.
24814         * io/test-stat.c: Likewise.
24815         * libio/test-fmemopen.c: Likewise.
24816         * libio/tst-freopen.c: Likewise.
24817         * libio/tst-sscanf.c: Likewise.
24818         * libio/tst-ungetwc1.c: Likewise.
24819         * libio/tst-ungetwc2.c: Likewise.
24820         * libio/tst-widetext.c: Likewise.
24821         * localedata/tst-ctype.c: Likewise.
24822         * localedata/tst-digits.c: Likewise.
24823         * localedata/tst-leaks.c: Likewise.
24824         * localedata/tst-mbswcs1.c: Likewise.
24825         * localedata/tst-mbswcs2.c: Likewise.
24826         * localedata/tst-mbswcs3.c: Likewise.
24827         * localedata/tst-mbswcs4.c: Likewise.
24828         * localedata/tst-mbswcs5.c: Likewise.
24829         * localedata/tst-setlocale.c: Likewise.
24830         * localedata/tst-trans.c: Likewise.
24831         * localedata/tst-wctype.c: Likewise.
24832         * localedata/tst-xlocale1.c: Likewise.
24833         * login/tst-grantpt.c: Likewise.
24834         * malloc/tst-calloc.c: Likewise.
24835         * malloc/tst-malloc.c: Likewise.
24836         * malloc/tst-mallocstate.c: Likewise.
24837         * malloc/tst-mcheck.c: Likewise.
24838         * malloc/tst-mtrace.c: Likewise.
24839         * malloc/tst-obstack.c: Likewise.
24840         * math/atest-exp2.c: Likewise.
24841         * math/atest-exp.c: Likewise.
24842         * math/atest-sincos.c: Likewise.
24843         * math/test-matherr.c: Likewise.
24844         * math/test-misc.c: Likewise.
24845         * math/test-powl.c: Likewise.
24846         * math/tst-definitions.c: Likewise.
24847         * misc/tst-dirname.c: Likewise.
24848         * misc/tst-efgcvt.c: Likewise.
24849         * misc/tst-fdset.c: Likewise.
24850         * misc/tst-hsearch.c: Likewise.
24851         * misc/tst-mntent2.c: Likewise.
24852         * nptl/tst-sem7.c: Likewise.
24853         * nptl/tst-sem8.c: Likewise.
24854         * nptl/tst-sem9.c: Likewise.
24855         * nss/test-netdb.c: Likewise.
24856         * posix/tst-fnmatch.c: Likewise.
24857         * posix/tst-getlogin.c: Likewise.
24858         * posix/tst-gnuglob.c: Likewise.
24859         * posix/tst-mmap.c: Likewise.
24860         * pwd/tst-getpw.c: Likewise.
24861         * resolv/tst-inet_ntop.c: Likewise.
24862         * rt/tst-timer.c: Likewise.
24863         * stdio-common/test-fseek.c: Likewise.
24864         * stdio-common/test-popen.c: Likewise.
24865         * stdio-common/test-vfprintf.c: Likewise.
24866         * stdio-common/tst-cookie.c: Likewise.
24867         * stdio-common/tst-fileno.c: Likewise.
24868         * stdio-common/tst-gets.c: Likewise.
24869         * stdio-common/tst-obprintf.c: Likewise.
24870         * stdio-common/tst-perror.c: Likewise.
24871         * stdio-common/tst-sprintf2.c: Likewise.
24872         * stdio-common/tst-sprintf3.c: Likewise.
24873         * stdio-common/tst-sprintf.c: Likewise.
24874         * stdio-common/tst-swprintf.c: Likewise.
24875         * stdio-common/tst-tmpnam.c: Likewise.
24876         * stdio-common/tst-unbputc.c: Likewise.
24877         * stdio-common/tst-wc-printf.c: Likewise.
24878         * stdlib/tst-environ.c: Likewise.
24879         * stdlib/tst-fmtmsg.c: Likewise.
24880         * stdlib/tst-limits.c: Likewise.
24881         * stdlib/tst-rand48-2.c: Likewise.
24882         * stdlib/tst-rand48.c: Likewise.
24883         * stdlib/tst-random2.c: Likewise.
24884         * stdlib/tst-random.c: Likewise.
24885         * stdlib/tst-strtol.c: Likewise.
24886         * stdlib/tst-strtoll.c: Likewise.
24887         * stdlib/tst-tls-atexit.c: Likewise.
24888         * stdlib/tst-xpg-basename.c: Likewise.
24889         * string/test-ffs.c: Likewise.
24890         * string/tst-bswap.c: Likewise.
24891         * string/tst-inlcall.c: Likewise.
24892         * string/tst-strtok.c: Likewise.
24893         * string/tst-strxfrm.c: Likewise.
24894         * sysdeps/x86_64/tst-audit10.c: Likewise.
24895         * sysdeps/x86_64/tst-audit3.c: Likewise.
24896         * sysdeps/x86_64/tst-audit4.c: Likewise.
24897         * sysdeps/x86_64/tst-audit5.c: Likewise.
24898         * time/tst-ftime_l.c: Likewise.
24899         * time/tst-getdate.c: Likewise.
24900         * time/tst-mktime3.c: Likewise.
24901         * time/tst-mktime.c: Likewise.
24902         * time/tst-posixtz.c: Likewise.
24903         * time/tst-strptime2.c: Likewise.
24904         * time/tst-strptime3.c: Likewise.
24905         * wcsmbs/tst-btowc.c: Likewise.
24906         * wcsmbs/tst-mbrtowc.c: Likewise.
24907         * wcsmbs/tst-mbsrtowcs.c: Likewise.
24908         * wcsmbs/tst-wchar-h.c: Likewise.
24909         * wcsmbs/tst-wcpncpy.c: Likewise.
24910         * wcsmbs/tst-wcrtomb.c: Likewise.
24911         * wcsmbs/tst-wcsnlen.c: Likewise.
24912         * wcsmbs/tst-wcstof.c: Likewise.
24913
24914 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
24915
24916         [BZ #14132]
24917         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
24918         INTDEF.
24919         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
24920         declaration.
24921         (_dl_mcount): Use rtld_hidden_proto.
24922         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
24923         _dl_mcount.
24924         * elf/rtld.c (_rtld_global_ro): Likewise.
24925
24926         [BZ #14132]
24927         * elf/dl-init.c (_dl_init): Don't use INTDEF.
24928         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
24929         of _dl_init_internal.
24930         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
24931         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
24932         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
24933         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
24934         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
24935         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
24936         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
24937         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
24938         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
24939         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
24940         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
24941         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
24942         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
24943         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
24944         * sysdeps/tile/dl-start.S (_start): Likewise.
24945         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
24946         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
24947
24948         [BZ #14132]
24949         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
24950         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
24951         (rtld_progname): Make macro definition unconditional.
24952         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
24953         INTDEF.
24954         (dlmopen_doit): Do not use INTUSE with _dl_argv.
24955         (dl_main): Likewise.
24956         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
24957         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
24958         instead of _dl_argv_internal.
24959         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
24960         __GI__dl_argv instead of INTUSE(_dl_argv).
24961         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
24962         __GI__dl_argv instead of _dl_argv_internal.
24963
24964         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
24965         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
24966         macro.
24967         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
24968         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
24969         New macro.
24970         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
24971         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
24972         macro.
24973         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
24974         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
24975
24976 2014-11-04  Andreas Schwab  <schwab@suse.de>
24977
24978         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
24979
24980 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24981
24982         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
24983         mtvsrd instruction in binary form.
24984
24985 2014-11-03  Andreas Schwab  <schwab@suse.de>
24986
24987         [BZ #17522]
24988         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
24989         for less than MB_LEN_MAX use a local buffer of that size.
24990         * libio/tst-fputws.c: New file.
24991         * libio/Makefile (tests): Add tst-fputws.
24992
24993 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
24994
24995         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
24996         the size of the fpu_fr.fpu_dregs[] array.
24997
24998 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
24999
25000         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25001         (__nanosleep): Do not define as alias.
25002         (nanosleep): Define as alias of __nanosleep.
25003         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25004         __libc_nanosleep name.
25005
25006 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25007
25008         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25009         install.texi in comment.
25010
25011 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25012
25013         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25014         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25015         ... add here and use lwsync or sync ...
25016         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25017         ... and add here using lwsync.
25018
25019 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25020
25021         * elf/dl-machine-reject-phdr.h: New file.
25022         * elf/dl-load.c: #include that.
25023         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25024         if that returned true.
25025
25026 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25027
25028         [BZ #17496]
25029         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25030         gen-as-const-headers chunk.  Add a big scare comment after the last
25031         safe place to touch before-compile.
25032
25033 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25034
25035         * manual/install.texi (Tools for Compilation): Update autoconf
25036         version requirements.
25037         * INSTALL: Regenerated.
25038
25039         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25040         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25041         (__libc_pselect): Likewise.
25042
25043         [BZ #14138]
25044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25048
25049 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25050
25051         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25052         correct barrier instruction.
25053         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25054         Likewise.
25055         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25056         Likewise.
25057
25058 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25059
25060         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25061         after defining inlines.  Instead, just use parens to defeat macro
25062         expansion of __isctype in its declaration.
25063
25064 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25065
25066         * include/sys/uio.h (__libc_readv): Remove declaration.
25067         (__libc_writev): Likewise.
25068         * misc/readv.c (__libc_readv): Rename to __readv.
25069         (__readv): Do not define as alias.
25070         (readv): Define as alias of __readv.
25071         * misc/writev.c (__libc_writev): Rename to __writev.
25072         (__writev): Do not define as alias.
25073         (writev): Define as alias of __writev.
25074         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25075         (__readv): Do not define as alias.
25076         (readv): Define unconditionally as alias of __readv.
25077         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25078         (__writev): Do not define as alias.
25079         (writev): Define unconditionally as alias of __writev.
25080         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25081         name.
25082         (writev): Do not define __libc_writev name.
25083
25084 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25085
25086         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25087         (convert_charseq): New function, broken out of ...
25088         (use_from_charmap): ... here.  Call it.
25089         (use_to_charmap): Use convert_charseq and free instead of duplicating
25090         its code with a variable-length stack struct.
25091
25092 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25093
25094         * include/fcntl.h (__libc_creat): Remove declaration.
25095         * io/creat.c (__libc_creat): Rename to creat.
25096         (creat): Do not define as alias.
25097         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25098         of creat instead of __libc_creat.
25099         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25100         to creat.
25101         (creat): Do not define as alias.
25102         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25103         __libc_creat.
25104         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25105         __libc_creat name.
25106         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25107         Likewise.
25108
25109 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25110
25111         * manual/llio.texi: Add comments discussing why write() may be
25112         considered MT-unsafe on Linux.
25113
25114 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25115
25116         * dl-load.c (local_strdup): Remove.
25117         (expand_dynamic_string_token): Use __strdup.
25118         (decompose_rpath): Likewise.
25119         (_dl_map_object): Likewise.
25120
25121 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25122
25123         [BZ #14132]
25124         * sysdeps/generic/unwind-dw2-fde.c
25125         (__register_frame_info_bases_internal): Do not declare.
25126         (__register_frame_info_table_bases_internal): Likewise.
25127         (__deregister_frame_info_bases_internal): Likewise.
25128         (__register_frame_info_bases): Declare and use hidden_proto before
25129         definition.  Use hidden_def instead of INTDEF.
25130         (__register_frame_info_table_bases): Likewise.
25131         (__deregister_frame_info_bases): Likewise.
25132         (__register_frame_info): Do not use INTUSE.
25133         (__register_frame): Likewise.
25134         (__register_frame_info_table): Likewise.
25135         (__register_frame_table): Likewise.
25136         (__deregister_frame_info): Likewise.
25137         (__deregister_frame): Likewise.
25138
25139 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25140
25141         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25142         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25143         not undefine.
25144         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25145         Likewise.
25146         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25147         Likewise.
25148
25149 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25150
25151         [BZ #14138]
25152         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25153         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25154         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25155         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25156         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25157         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25158         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25159         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25160         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25161         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25162         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25163         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25164         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25165         syscall.
25166         (setfsuid): Likewise.
25167         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25168         (setfsuid): Likewise.
25169         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25170         (setfsuid): Likewise.
25171         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25172         Likewise.
25173         (setfsuid): Likewise.
25174         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25175         (setfsuid): Likewise.
25176         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25177         Likewise.
25178         (setfsuid): Likewise.
25179
25180 2014-10-27  Andreas Schwab  <schwab@suse.de>
25181
25182         [BZ #17501]
25183         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25184         check for Slow_SSE4_2 feature bit.
25185         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25186         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25187         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25188         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25189
25190 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25191
25192         * configure.ac: Validate compiler version with a empirical test of
25193         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25194         $CC -v output.
25195         * configure: Regenerated.
25196
25197         * inet/htons.c (htons): Prototypify.
25198         * inet/htonl.c (htonl): Likewise.
25199
25200 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25201
25202         * string/strncat.c (strncat): Improve performance by using strlen.
25203
25204 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25205
25206         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25207
25208 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25209
25210         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25211         Call libc_fetestexcept_aarch64.
25212
25213 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25214
25215         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25216         Call libc_feholdexcept_aarch64.
25217
25218 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25219
25220         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25221         Call get_rounding_mode.
25222
25223 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25224
25225         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25226         Simplify logic.
25227
25228 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25229
25230         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25231         Simplify logic.
25232
25233 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25234
25235         [BZ #14138]
25236         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25237         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25238         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25239         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25240         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25241         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25242         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25243         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25244         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25245         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25246         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25247         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25248         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25249         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25250         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25251         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25252         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25253         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25254         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25255         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25256         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25257         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25258         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25259         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25260         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25261         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25262         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25263         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25264         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25265         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25266         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25267         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25268         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25269         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25270         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25271         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25272         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25273         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25274         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25275         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25276         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25277         syscall.
25278         (geteuid): Likewise.
25279         (getgid): Likewise.
25280         (getuid): Likewise.
25281         (getresgid): Likewise.
25282         (getresuid): Likewise.
25283         (getgroups): Likewise.
25284         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25285         (geteuid): Likewise.
25286         (getgid): Likewise.
25287         (getuid): Likewise.
25288         (getresgid): Likewise.
25289         (getresuid): Likewise.
25290         (getgroups): Likewise.
25291         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25292         (geteuid): Likewise.
25293         (getgid): Likewise.
25294         (getuid): Likewise.
25295         (getresgid): Likewise.
25296         (getresuid): Likewise.
25297         (getgroups): Likewise.
25298         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25299         Likewise.
25300         (geteuid): Likewise.
25301         (getgid): Likewise.
25302         (getuid): Likewise.
25303         (getresgid): Likewise.
25304         (getresuid): Likewise.
25305         (getgroups): Likewise.
25306         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25307         (geteuid): Likewise.
25308         (getgid): Likewise.
25309         (getuid): Likewise.
25310         (getresgid): Likewise.
25311         (getresuid): Likewise.
25312         (getgroups): Likewise.
25313         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25314         Likewise.
25315         (geteuid): Likewise.
25316         (getgid): Likewise.
25317         (getuid): Likewise.
25318         (getgroups): Likewise.
25319
25320         [BZ #14138]
25321         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25322         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25323         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25324         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25325         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25326         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25327         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25328         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25329         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25330         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25331         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25332         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25333         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25334         __chown.
25335         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25336         (lchown): Likewise.
25337         (fchown): Likewise.
25338         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25339         Likewise.
25340         (lchown): Likewise.
25341         (fchown): Likewise.
25342         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25343         (lchown): Likewise.
25344         (fchown): Likewise.
25345         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25346         Likewise.
25347         (lchown): Likewise.
25348         (fchown): Likewise.
25349
25350 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25351
25352         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25353         Simplify logic.
25354
25355 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25356
25357         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25358         Cleanup logic.
25359
25360 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25361
25362         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25363         Remove unused include.
25364
25365 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25366
25367         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25368         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25369         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25370         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25371
25372 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25373             Helge Deller <deller@gmx.de>
25374
25375         [BZ #17508]
25376         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25377         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25378         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25379
25380 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25381
25382         [BZ #14132]
25383         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25384         Remove macro definition.
25385         (__ashrdi3_v_glibc20): Likewise.
25386         (__lshrdi3_v_glibc20): Likewise.
25387         (__cmpdi2_v_glibc20): Likewise.
25388         (__ucmpdi2_v_glibc20): Likewise.
25389         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25390         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25391         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25392         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25393         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25394         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25395
25396 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25397
25398         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25399         old GNU extension [0] syntax.
25400         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25401         alloca rather than an array member with variable length.
25402         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25403         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25404         (parse_opt): ... here.  Likewise use alloca there.
25405         Validate the -i argument before checking for rootness.
25406         (send_shutdown): New function, broken out of ...
25407         (parse_opt): ... here.
25408
25409 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25410
25411         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25412         macro to get at the _rt_local_ro field.
25413         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25414         ([PIC] case) or _dl_hwcap ([!PIC] case).
25415         * sysdeps/arm/setjmp.S: Likewise.
25416
25417         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25418         * sysdeps/arm/configure.ac: New check to define it.
25419         * sysdeps/arm/configure: Regenerated.
25420         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25421         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25422         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25423         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25424         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25425         Use move/movt pair instead of a load.
25426         (LDST_GLOBAL): Macro removed.
25427         (LDR_GLOBAL): New macro replaces it.
25428         (LDR_HIDDEN): New macro.
25429         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25430         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25431
25432         * setjmp/tst-setjmp-static.c: New file.
25433         * setjmp/Makefile (tests): Add it.
25434         (tests-static): New variable.
25435
25436 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25437
25438         [BZ #17485]
25439         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25440
25441 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25442
25443         [BZ #14132]
25444         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25445
25446 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25447
25448         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25449
25450 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25451
25452         * io/fts.c (dirent_not_directory): New function.
25453         (fts_build): Call it.
25454
25455 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25456
25457         * nptl/version.c (__nptl_main): Use normal __write rather than
25458         INTERNAL_SYSCALL.
25459         (banner): Update copyright years.
25460
25461         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25462         gettimeofday.
25463         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25464         * nptl/pthread_cond_timedwait.c: Likewise.
25465         * nptl/pthread_mutex_timedlock.c: Likewise.
25466         * nptl/sem_timedwait.c: Likewise.
25467
25468         * sysdeps/nptl/bits/libc-lock.h
25469         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25470         (__libc_lock_init_recursive): Return void, not 0.
25471         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25472         (__libc_rwlock_init): Likewise.
25473         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25474
25475 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25476
25477         [BZ #15215]
25478         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25479         (__pthread_once_slow): ... here.
25480         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25481         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25482
25483 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25484
25485         [BZ #15215]
25486         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25487         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25488         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25489         * nptl/pthread_once.c (__pthread_once): Likewise.
25490         Update comments.
25491
25492 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25493
25494         [BZ #14138]
25495         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25496         name.
25497         (writev): Use __libc_writev as strong name.
25498         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25499         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25500
25501 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25502
25503         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25504
25505         * sysdeps/i386/nptl/tls.h
25506         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25507         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25508         New macros.
25509         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25510         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25511         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25512         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25513         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25514         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25515
25516         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25517         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25518         on [__NR_futex].
25519         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25520         broken out of ...
25521         (__pthread_mutex_init): ... here.  Call it.
25522         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25523         Conditionalize PI cases on [__NR_futex].
25524         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25525         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25526         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25527
25528         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25529         conditional on [SIGSETXID].
25530         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25531         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25532         is defined.  Likewise for SIGSETXID.
25533         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25534         Conditionalize definitions on [SIGSETXID].
25535         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25536         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25537         unblocking on [SIGCANCEL].
25538
25539         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25540         [__NR_set_robust_list].
25541
25542 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25543
25544         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25545         (do_compare): Likewise.
25546
25547 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25548
25549         [BZ #15884]
25550         * string/strcoll_l.c: Don't include stdio.h.
25551         (coll_seq): Remove members idxarr and rulearr.
25552         (get_next_seq_cached): Remove function.
25553         (get_next_seq): Likewise.
25554         (get_next_seq_nocache): Rename to get_next_seq.
25555         (do_compare): Remove function.
25556         (do_compare_nocache): Rename to do_compare.
25557         (STRCOLL): Remove weight and rules cache.
25558
25559 2014-10-16  Roland McGrath  <roland@hack.frob.com>
25560
25561         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
25562         * sysdeps/arm/sfp-machine.h: ... to here.
25563         * sysdeps/arm/Implies: Remove arm/soft-fp.
25564
25565 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
25566
25567         * conform/data/sys/utsname.h-data (*_t): Allow.
25568         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
25569         [POSIX] (WEXITED): Do not expect constant.
25570         [POSIX] (WSTOPPED): Likewise.
25571         [POSIX] (WNOHANG): Likewise.
25572         [POSIX] (WNOWAIT): Likewise.
25573         [POSIX] (siginfo_t): Do not expect type or elements.
25574         [POSIX] (pid_t): Do not expect type.
25575         [POSIX] (signal.h): Do not allow header.
25576         [POSIX] (sys/resource.h): Likewise.
25577         [POSIX] (si_*): Do not allow pattern.
25578         [POSIX] (W*): Likewise.
25579         [POSIX] (P_*): Likewise.
25580         [POSIX] (BUS_*): Likewise.
25581         [POSIX] (CLD_*): Likewise.
25582         [POSIX] (FPE_*): Likewise.
25583         [POSIX] (ILL_*): Likewise.
25584         [POSIX] (POLL_*): Likewise.
25585         [POSIX] (SEGV_*): Likewise.
25586         [POSIX] (SI_*): Likewise.
25587         [POSIX] (TRAP_*): Likewise.
25588         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
25589         variable.
25590
25591 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
25592
25593         [BZ #12926]
25594         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
25595         infinite loop when __recvmsg returns 0.
25596
25597 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
25598
25599         * CANCEL-FCT-WAIVE: Remove file.
25600         * CANCEL-FILE-WAIVE: Likewise.
25601
25602         [BZ #14132]
25603         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
25604         instead of INTVARDEF.
25605         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25606         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
25607         rtld_hidden_data_def instead of INTVARDEF.
25608         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25609         * elf/dl-deps.c (expand_dst): Likewise.
25610         * elf/dl-load.c (_dl_dst_count): Likewise.
25611         (_dl_dst_substitute): Likewise.
25612         (decompose_rpath): Likewise.
25613         (_dl_init_paths): Likewise.
25614         (open_path): Likewise.
25615         (_dl_map_object): Likewise.
25616         * elf/rtld.c (dl_main): Likewise.
25617         (process_dl_audit): Likewise.
25618         (process_envvars): Likewise.
25619         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
25620         Remove declaration.
25621         (__libc_enable_secure): Use rtld_hidden_proto.
25622
25623 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
25624
25625         * elf/dl-load.c
25626         (add_path): New function broken out of _dl_rtld_di_serinfo.
25627         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
25628
25629 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25630
25631         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
25632         parentheses around macro arguments.
25633         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
25634         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
25635         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
25636         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
25637         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
25638         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25639         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25640         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
25641         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
25642         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
25643         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
25644         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
25645         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
25646         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
25647         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
25648         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
25649         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
25650         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
25651         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
25652         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
25653         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
25654         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
25655         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
25656         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25657         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25658         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
25659         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
25660         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
25661         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
25662         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
25663         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
25664         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
25665         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
25666         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
25667         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
25668         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
25669         Likewise.
25670         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
25671         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25672         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25673         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
25674         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
25675         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
25676         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
25677         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
25678         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
25679         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
25680         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
25681         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
25682         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
25683         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
25684         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
25685         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25686         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25687         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
25688         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
25689         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
25690         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
25691         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
25692         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
25693         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
25694         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
25695         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
25696         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
25697         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
25698         (_FP_FRAC_SRS_1): Likewise.
25699         (_FP_FRAC_CLZ_1): Likewise.
25700         (_FP_MUL_MEAT_1_imm): Likewise.
25701         (_FP_MUL_MEAT_1_wide): Likewise.
25702         (_FP_MUL_MEAT_1_hard): Likewise.
25703         (_FP_SQRT_MEAT_1): Likewise.
25704         (_FP_FRAC_ASSEMBLE_1): Likewise.
25705         (_FP_FRAC_DISASSEMBLE_1): Likewise.
25706         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
25707         (__FP_CLZ_2): Likewise.
25708         (_FP_MUL_MEAT_2_wide): Likewise.
25709         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
25710         (_FP_MUL_MEAT_2_gmp): Likewise.
25711         (_FP_MUL_MEAT_2_120_240_double): Likewise.
25712         (_FP_SQRT_MEAT_2): Likewise.
25713         (_FP_FRAC_ASSEMBLE_2): Likewise.
25714         (_FP_FRAC_DISASSEMBLE_2): Likewise.
25715         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
25716         (_FP_FRAC_CLZ_4): Likewise.
25717         (_FP_MUL_MEAT_4_wide): Likewise.
25718         (_FP_MUL_MEAT_4_gmp): Likewise.
25719         (_FP_SQRT_MEAT_4): Likewise.
25720         (_FP_FRAC_ASSEMBLE_4): Likewise.
25721         (_FP_FRAC_DISASSEMBLE_4): Likewise.
25722         * soft-fp/op-common.h (_FP_CMP): Likewise.
25723         (_FP_CMP_EQ): Likewise.
25724         (_FP_CMP_UNORD): Likewise.
25725         (_FP_TO_INT): Likewise.
25726         (_FP_FROM_INT): Likewise.
25727         [!__FP_CLZ] (__FP_CLZ): Likewise.
25728         (_FP_DIV_HELP_imm): Likewise.
25729         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
25730         Likewise.
25731         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
25732         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
25733         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
25734         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
25735         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
25736         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25737         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25738         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
25739         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
25740         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
25741         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
25742         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
25743         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
25744         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
25745         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
25746         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
25747         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
25748         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
25749         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
25750         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
25751         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
25752         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
25753         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
25754         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25755         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25756         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
25757         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
25758         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
25759         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
25760         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
25761         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
25762         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
25763         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
25764         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
25765         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
25766         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
25767         (FP_UNPACK_RAW_SP): Likewise.
25768         (FP_PACK_RAW_S): Likewise.
25769         (FP_PACK_RAW_SP): Likewise.
25770         (FP_UNPACK_S): Likewise.
25771         (FP_UNPACK_SP): Likewise.
25772         (FP_UNPACK_SEMIRAW_S): Likewise.
25773         (FP_UNPACK_SEMIRAW_SP): Likewise.
25774         (FP_PACK_S): Likewise.
25775         (FP_PACK_SP): Likewise.
25776         (FP_PACK_SEMIRAW_S): Likewise.
25777         (FP_PACK_SEMIRAW_SP): Likewise.
25778         (_FP_SQRT_MEAT_S): Likewise.
25779         (FP_CMP_S): Likewise.
25780         (FP_CMP_EQ_S): Likewise.
25781         (FP_CMP_UNORD_S): Likewise.
25782         (FP_TO_INT_S): Likewise.
25783         (FP_FROM_INT_S): Likewise.
25784
25785         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
25786
25787         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
25788         (FP_EX_INVALID_IMZ): Likewise.
25789         (FP_EX_INVALID_IMZ_FMA): Likewise.
25790         (FP_EX_INVALID_ISI): Likewise.
25791         (FP_EX_INVALID_ZDZ): Likewise.
25792         (FP_EX_INVALID_IDI): Likewise.
25793         (FP_EX_INVALID_SQRT): Likewise.
25794         (FP_EX_INVALID_CVI): Likewise.
25795         (FP_EX_INVALID_VC): Likewise.
25796         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
25797         "invalid" exceptions.
25798         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
25799         (_FP_ADD_INTERNAL): Likewise.
25800         (_FP_MUL): Likewise.
25801         (_FP_FMA): Likewise.
25802         (_FP_DIV): Likewise.
25803         (_FP_CMP_CHECK_NAN): Likewise.
25804         (_FP_SQRT): Likewise.
25805         (_FP_TO_INT): Likewise.
25806         (FP_EXTEND): Likewise.
25807
25808 2014-10-09  Allan McRae  <allan@archlinux.org>
25809
25810         * po/fr.po: Update French translation from translation project.
25811
25812 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25813
25814         [BZ #14132]
25815         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
25816         of INTDEF.
25817         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
25818         (__cxa_atexit): Use libc_hidden_proto.
25819         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
25820
25821         [BZ #14132]
25822         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
25823         declaration.
25824         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
25825         [!_ISOMAC] (__iswspace_l_internal): Likewise.
25826         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
25827         [!_ISOMAC] (__iswctype_internal): Likewise.
25828         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
25829         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
25830         alias.
25831         (fcntl): Remove __fcntl_internal alias.
25832         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
25833         __connect_internal alias.
25834         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
25835         Likewise.
25836
25837         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
25838         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
25839         FP_DENORM_ZERO.
25840         (_FP_CHECK_FLUSH_ZERO): New macro.
25841         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
25842         (_FP_CMP): Likewise.
25843         (_FP_CMP_EQ): Likewise.
25844         (_FP_TO_INT): Do not set inexact for subnormal arguments if
25845         FP_DENORM_ZERO.
25846         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
25847         (FP_TRUNC): Likewise.
25848
25849         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
25850         treated as invalid conversion, not as normal exponent.
25851
25852         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
25853         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
25854         (_FP_CMP_EQ): Likewise.
25855         (_FP_CMP_UNORD): Likewise.
25856         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
25857         (FP_CMP_EQ_D): Likewise.
25858         (FP_CMP_UNORD_D): Likewise.
25859         * soft-fp/extended.h (FP_CMP_E): Likewise.
25860         (FP_CMP_EQ_E): Likewise.
25861         (FP_CMP_UNORD_E): Likewise.
25862         * soft-fp/quad.h (FP_CMP_Q): Likewise.
25863         (FP_CMP_EQ_Q): Likewise.
25864         (FP_CMP_UNORD_Q): Likewise.
25865         * soft-fp/single.h (FP_CMP_S): Likewise.
25866         (FP_CMP_EQ_S): Likewise.
25867         (FP_CMP_UNORD_S): Likewise.
25868         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
25869         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
25870         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
25871         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
25872         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
25873         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
25874         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
25875         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
25876         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
25877         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
25878         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
25879         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
25880         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
25881         to FP_CMP_Q.
25882         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
25883         FP_CMP_Q.
25884         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
25885         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
25886         FP_CMP_EQ_Q.
25887         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
25888         FP_CMP_Q.
25889         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
25890         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
25891         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
25892         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
25893         FP_CMP_EQ_Q.
25894         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
25895         FP_CMP_Q.
25896         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
25897         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
25898         FP_CMP_EQ_Q.
25899         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
25900         FP_CMP_Q.
25901         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
25902         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
25903         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
25904         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
25905         FP_CMP_EQ_Q.
25906
25907         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
25908         a subnormal result, set the underflow exception if trapping on
25909         underflow is enabled.
25910         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
25911         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
25912         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
25913         redefine to 0.
25914         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
25915         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
25916         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
25917         * soft-fp/extendxftf2.c (__extendxftf2): Use
25918         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
25919
25920         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
25921         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
25922         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25923         FP_HANDLE_EXCEPTIONS.
25924         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
25925         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25926         FP_HANDLE_EXCEPTIONS.
25927         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
25928         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25929         FP_HANDLE_EXCEPTIONS.
25930         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
25931         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25932         FP_HANDLE_EXCEPTIONS.
25933
25934 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
25935
25936         [BZ #14132]
25937         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
25938         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
25939         use INTUSE.
25940         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
25941         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
25942         Remove alias.
25943         (__adjtimex): Define using libc_hidden_ver.
25944         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
25945         Remove declaration.
25946         (ntp_gettime): Call __adjtimex directly.
25947         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
25948         Remove declaration.
25949         (ntp_gettimex): Call __adjtimex directly.
25950         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
25951         __adjtimex_internal alias.
25952
25953 2014-10-08  Roland McGrath  <roland@hack.frob.com>
25954
25955         [BZ #17460]
25956         * nscd/nscd.c (more_help): Rewrite list of tables collection
25957         using xstrdup and asprintf.
25958
25959         * nscd/nscd_conf.c: Remove local xstrdup declaration.
25960
25961 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
25962             Roland McGrath  <roland@hack.frob.com>
25963
25964         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
25965         (do_lookup_unique): ... local function 'enter' here; update callers.
25966
25967 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
25968
25969         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
25970         compat_symbol calls on [SHARED].
25971         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
25972         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
25973         Remove.
25974         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
25975         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
25976         (oldsetrlimit): Remove.
25977         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
25978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
25979         (lchown): New syscall entry.
25980         (oldsetrlimit): Remove.
25981         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
25982         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
25983         (oldsetrlimit): Remove.
25984         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
25985
25986         [BZ #14138]
25987         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
25988         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
25989         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
25990         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
25991         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
25992         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
25993         (fchown): Likewise.
25994         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
25995         (fchown): Likewise.
25996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
25997         Likewise.
25998
25999 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26000
26001         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26002         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26003         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26004         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26005         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26006         Likewise.
26007         (__old_sem_post): Likewise.
26008
26009 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26010
26011         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26012         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26013         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26014         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26015         Use INLINE_VSYSCALL macro.
26016         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26017         __vdso_clock_gettime.
26018         * sysdeps/unix/sysv/linux/tile/init-first.c
26019         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26020         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26021         __vdso_clock_gettime.
26022
26023         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26024         to set up frame more cleanly.
26025
26026         * sysdeps/tile/memcmp.c: New file.
26027
26028         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26029
26030         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26031         * sysdeps/tile/tilegx/strcasestr.c: New file.
26032         * sysdeps/tile/tilegx/strnlen.c: New file.
26033         * sysdeps/tile/tilegx/strstr.c: New file.
26034
26035         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26036
26037 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26038
26039         * nptl/tst-setuid3.c: Write errors to stdout.
26040
26041 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26042
26043         * elf/dl-deps.c
26044         (preload): New functions broken out of _dl_map_object_deps.
26045         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26046
26047 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26048
26049         [BZ #14138]
26050         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26051         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26052
26053 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26054
26055         * sysdeps/mips/strcmp.S: New.
26056
26057 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26058
26059         [BZ #14138]
26060         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26061         (linkat): Likewise.
26062         (mkdirat): Likewise.
26063         (readlinkat): Likewise.
26064         (renameat): Likewise.
26065         (symlinkat): Likewise.
26066         (unlinkat): Likewise.
26067         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26068         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26069         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26070         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26071         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26072         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26073         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26074
26075 2014-09-30  Will Newton  <will.newton@linaro.org>
26076
26077         * math/math.h: Define long double math functions if
26078         _LIBC_TEST is defined.
26079         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26080
26081         * localedata/Makefile: Move assignment to tests-special
26082         into an ifdef testing run-built-tests.
26083         * timezone/Makefile: Likewise.
26084
26085 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26086
26087         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26088         with $(BASH) not $(SHELL).
26089
26090 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26091             Matthew LeGendre  <legendre1@llnl.gov>
26092
26093         [BZ #17411]
26094         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26095         l_reloc_result.
26096
26097 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26098
26099         * stdio-common/printf_fp.c
26100         (hack_digit): New function, broken out of ...
26101         (__printf_fp): ... local function here.  Update call sites.
26102         hack_digit now takes an additional parameter that is a pointer
26103         to a struct of the referenced locals.  Those locals moved inside
26104         the struct and references updated.
26105
26106 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26107
26108         * aclocal.m4: Require autoconf 2.69.
26109         * configure: Regenerated.
26110         * sysdeps/aarch64/configure: Likewise.
26111         * sysdeps/alpha/configure: Likewise.
26112         * sysdeps/arm/armv7/configure: Likewise.
26113         * sysdeps/arm/configure: Likewise.
26114         * sysdeps/ia64/configure: Likewise.
26115         * sysdeps/mach/configure: Likewise.
26116         * sysdeps/mips/configure: Likewise.
26117         * sysdeps/s390/configure: Likewise.
26118         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26120
26121         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26122         file.
26123         * sysdeps/ia64/configure.ac: Likewise.
26124
26125 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26126
26127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26128         specify symbol version for ld.so.  Do not include entry for
26129         libpthread.
26130         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26131         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26132         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26133
26134         [BZ #14171]
26135         * Makeconfig [$(build-shared) = yes]
26136         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26137         makefiles.
26138         [$(build-shared) = yes && $(soversions.mk-done) = t]
26139         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26140         [$(build-shared) = yes && $(soversions.mk-done) = t]
26141         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26142         to Makerules.
26143         [$(build-shared) = yes && $(soversions.mk-done) = t]
26144         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26145         here.
26146         [$(build-shared) = yes && $(soversions.mk-done) = t]
26147         (common-generated): Don't append gnu/lib-names.h and
26148         gnu/lib-names.stmp here.
26149         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26150         (lib-names-h-abi): New variable.
26151         [$(build-shared) = yes && $(soversions.mk-done) = t]
26152         (lib-names-stmp-abi): Likewise.
26153         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26154         abi-variants] (before-compile): Append
26155         $(common-objpfx)$(lib-names-h-abi).
26156         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26157         abi-variants] (common-generated): Append gnu/lib-names.h.
26158         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26159         abi-variants] (install-others-nosubdir): Depend on
26160         $(inst_includedir)/$(lib-names-h-abi).
26161         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26162         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26163         [$(build-shared) = yes && $(soversions.mk-done) = t]
26164         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26165         [$(build-shared) = yes && $(soversions.mk-done) = t]
26166         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26167         [$(build-shared) = yes && $(soversions.mk-done) = t]
26168         (common-generated): Append $(lib-names-h-abi) and
26169         $(lib-names-stmp-abi).
26170         * scripts/lib-names.awk: Do not handle multi being set.
26171         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26172         Remove variable.
26173         (abi-lp64_be-ld-soname): Likewise.
26174         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26175         Likewise.
26176         (abi-hard-ld-soname): Likewise.
26177         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26178         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26179         Remove variable.
26180         (abi-o32_hard-ld-soname): Likewise.
26181         (abi-o32_soft_2008-ld-soname): Likewise.
26182         (abi-o32_hard_2008-ld-soname): Likewise.
26183         (abi-n32_soft-ld-soname): Likewise.
26184         (abi-n32_hard-ld-soname): Likewise.
26185         (abi-n32_soft_2008-ld-soname): Likewise.
26186         (abi-n32_hard_2008-ld-soname): Likewise.
26187         (abi-n64_soft-ld-soname): Likewise.
26188         (abi-n64_hard-ld-soname): Likewise.
26189         (abi-n64_soft_2008-ld-soname): Likewise.
26190         (abi-n64_hard_2008-ld-soname): Likewise.
26191         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26192         Likewise.
26193         (abi-64-v2-ld-soname): Likewise.
26194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26195         ld.so entries.
26196         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26197         variable.
26198         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26199         entry.
26200         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26201         variable.
26202         (abi-64-ld-soname): Likewise.
26203         (abi-x32-ld-soname): Likewise.
26204         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26205         entry.
26206         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26207
26208 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26209
26210         [BZ #14138]
26211         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26212         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26213         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26214         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26215         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26216         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26217         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26218         syscall entry for GLIBC_2.2 symbol version.
26219         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26220         Likewise.
26221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26222         (setrlimit): Likewise.
26223         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26224         Likewise.
26225
26226 2014-09-23  Will Newton  <will.newton@linaro.org>
26227
26228         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26229         _LINUX_ARM_SYSDEP_H include guard too.
26230         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26231         define.
26232
26233 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26234
26235         * sysdeps/unix/sysv/linux/eventfd.c:
26236         Make first argument unsigned.
26237         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26238         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26239
26240 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26241
26242         [BZ #16852]
26243         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26244         * socket/sys/socket.h: Likewise.
26245         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26246
26247 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26248
26249         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26250
26251 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26252
26253         * time/tst-ftime.c: New test.
26254         * time/Makefile (tests): Add tst-ftime.
26255
26256 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26257
26258         * soft-fp/extended.h: Fix comment formatting.
26259         * soft-fp/op-1.h: Likewise.
26260         * soft-fp/op-2.h: Likewise.
26261         * soft-fp/op-4.h: Likewise.
26262         * soft-fp/op-8.h: Likewise.
26263         * soft-fp/op-common.h: Likewise.
26264         * soft-fp/soft-fp.h: Likewise.
26265
26266         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26267
26268 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26269
26270         [BZ #6652]
26271         * Makeconfig (soversions-default-setname): Remove variable.
26272         ($(common-objpfx)soversions.i): Don't pass default_setname to
26273         soversions.awk.
26274         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26275         oldest_abi to abi-versions.awk.
26276         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26277         * config.make.in (oldest-abi): Remove variable.
26278         * configure.ac (--enable-oldest-abi): Remove configure option.
26279         * configure: Regenerated.
26280         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26281         text.
26282         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26283         * scripts/soversions.awk: Do not handle default_setname variable.
26284         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26285         variable.
26286         * sysdeps/mach/hurd/configure: Regenerated.
26287         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26288         variable.
26289         * sysdeps/unix/sysv/linux/configure: Regenerated.
26290
26291 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26292
26293         * elf/Makefile (CFLAGS-interp.c): Remove.
26294         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26295         path string.
26296         * elf/interp.c: Include generated runtime-linker.h
26297
26298         * Makerules (lib%.so): Don't include $(+interp) in
26299         prerequisites.
26300         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26301         * dlfcn/eval.c: Remove file.
26302
26303         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26304         macros.
26305
26306         [BZ #17266]
26307         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26308         4.2 and newer.
26309
26310         [BZ #17370]
26311         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26312
26313 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26314             Jakub Jelinek  <jakub@redhat.com>
26315
26316         [BZ #17266]
26317         * libio/stdio.h: Check definition of __fortify_function
26318         instead of __extern_always_inline to include bits/stdio2.h.
26319         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26320         check if __extern_always_inline is defined.
26321         [__USE_MISC || __USE_XOPEN]: Likewise.
26322         [__USE_ISOC99] Likewise.
26323         * misc/sys/cdefs.h (__fortify_function): Define only if
26324         __extern_always_inline is defined.
26325         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26326         __extern_always_inline and __extern_inline only for g++-4.3
26327         and newer or a compatible gcc.
26328
26329 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26330
26331         [BZ #17371]
26332         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26333         last change to handle zero prefix length.
26334
26335 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26336
26337         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26338         _SC_REGEX_VERSION.
26339
26340         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26341         _POSIX_RAW_SOCKETS.
26342
26343 2014-09-13  Allan McRae  <allan@archlinux.org>
26344
26345         * po/ru.po: Update Russian translation from translation project.
26346
26347 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26348
26349         * locale/programs/locale.c (show_locale_vars): Inline local function
26350         into its sole call site.  Clean up some style nits.
26351         (print_item): New function, broken out of ...
26352         (show_info): ... local function here.  Clean up style nits.
26353
26354         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26355         out of ...
26356         (set_class_defaults): ... local function set_default here.
26357         Define set_default as a macro locally to pass constant parameters.
26358         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26359         rather than a shared local.
26360
26361         * stdlib/rpmatch.c (try): New function, broken out of ...
26362         (rpmatch): ... local function here.  Also, prototypify definition.
26363
26364 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26365
26366         * scripts/soversions.awk: Do not handle configuration names.
26367         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26368         vendor and os variables to soversions.awk.
26369         * configure.ac: Do not modify gnu-* host_os.
26370         * configure: Regenerated
26371         * shlib-versions: Remove first column with configuration names.
26372         * nptl/shlib-versions: Likewise.
26373         * nptl_db/shlib-versions: Likewise.
26374         * sysdeps/hppa/shlib-versions: Likewise.
26375         * sysdeps/m68k/shlib-versions: Likewise.
26376         * sysdeps/mach/hurd/shlib-versions: Likewise.
26377         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26378         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26379         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26380         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26381         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26382         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26383         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26384         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26386         Likewise.
26387         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26388         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26389         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26390         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26391         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26392         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26393         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26394         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26395
26396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26397         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26399         Regenerated.
26400         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26402         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26403
26404         * shlib-versions: Remove OS-specific entries.  Moved to files in
26405         sysdeps.
26406         * sysdeps/mach/hurd/shlib-versions: New file.
26407         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26408
26409         * nptl/shlib-versions: Remove architecture-specific entries.
26410         Moved to files in sysdeps.
26411         * shlib-versions: Likewise.
26412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26413         file.
26414         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26415         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26416         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26417         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26418
26419         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26420         (UDP_NO_CHECK6_RX): Likewise.
26421
26422 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26423
26424         * sysdeps/posix/sysconf.c (__sysconf): Spell
26425         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26426
26427 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26428
26429         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26430         loading.
26431         * iconv/Versions (__gconv_transliterate): Export for use from
26432         gconv modules.
26433         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26434         (struct __gconv_trans_data, __gconv_trans_fct,
26435         __gconv_trans_context_fct, __gconv_trans_query_fct,
26436         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26437         definitions.
26438         (struct __gconv_step_data): Remove __trans member.
26439         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26440         longer hidden.  Remove unused trans_data argument.
26441         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26442         (__gconv_translit_find): Remove declaration.
26443         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26444         prototype.
26445         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26446         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26447         trans_data argument.  Add hidden definition.
26448         (__gconv_translit_find): Remove.
26449         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26450         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26451         * iconv/skeleton.c: Remove transliteration initialization.
26452         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26453         __gconv_step_data initialization.
26454         * libio/iofwide.c (__libio_translit_): Remove.
26455         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26456         * wcsmbs/btowc.c (__btowc): Likewise.
26457         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26458         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26459         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26460         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26461         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26462         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26463         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26464         * wcsmbs/wctob.c (wctob): Likewise.
26465
26466 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26467
26468         [BZ #16194]
26469         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26470         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26471         register usage.
26472         * sysdeps/x86/Makefile: Adjust.
26473
26474 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26475             Roland McGrath  <roland@hack.frob.com>
26476
26477         * locale/weight.h: Add include guard.
26478         (findidx): Make static rather than auto; take new parameters
26479         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26480         * locale/weightwc.h: Likewise.
26481         * posix/fnmatch_loop.c
26482         (FCT): Change type of EXTRA from int32_t to wint_t.
26483         Don't include either header inside the function.
26484         Call FINDIDX rather than findidx, and pass new arguments.
26485         #undef FINDIDX at the end of the file.
26486         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26487         FINDIDX before including fnmatch_loop.c for the non-wide version.
26488         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26489         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26490         for the wide version.
26491         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26492         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26493         Pass new arguments to findidx.
26494         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26495         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26496         Don't #include it inside the function.  Pass new arguments to findidx.
26497         * posix/regex_internal.h
26498         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26499         (re_string_elem_size_at): Don't #include it inside the function.
26500         Pass new arguments to findidx.
26501         * string/strcoll_l.c: #include WEIGHT_H at top level.
26502         (get_next_seq): Don't #include it inside the function.
26503         Pass new arguments to findidx.
26504         (get_next_seq_nocache): Likewise.
26505         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26506         (STRXFRM): Don't #include it inside the function.
26507         Pass new arguments to findidx.
26508
26509 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26510
26511         [BZ #17344]
26512         * malloc/malloc.c (unlink): Turn asserts into a call to
26513         malloc_printerr.
26514
26515 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26516
26517         [BZ #17370]
26518         * libio/wfileops (do_ftell_wide): Free OUT.
26519
26520 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26521
26522         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26523
26524 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26525
26526         [BZ #17363]
26527         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26528         group if the current group is empty.
26529
26530 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26531
26532         * benchtests/bench-memset.c (test_main): Add more test from size
26533         from 32 to 512 bytes.
26534         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26535         Add POWER8 memset object.
26536         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26537         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26538         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26539         implementation.
26540         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26541         Likewise.
26542         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26543         multiarch POWER8 memset optimization.
26544         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26545         POWER8 memset optimization.
26546
26547         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26548         Remove bzero multiarch objects.
26549         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26550         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26551         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
26552         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
26553         Remove define.
26554         [__bzero]: Redefine to specific name.
26555         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26556         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26557         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
26558         define.
26559         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
26560         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
26561
26562 2014-09-10  Florian Weimer  <fweimer@redhat.com>
26563
26564         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
26565         warnings into errors.
26566
26567         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
26568         __cxa_thread_atexit_impl prototype.
26569
26570 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26571
26572         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
26573         Fix capitalization of error message.
26574
26575 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26576
26577         * sysdeps/mips/preconfigure: Modify ABI tests.
26578
26579 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
26580
26581         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
26582
26583 2014-09-07  Roland McGrath  <roland@hack.frob.com>
26584             Carlos O'Donell  <carlos@systemhalted.org>
26585
26586         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
26587         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
26588         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
26589         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
26590         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
26591         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
26592         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
26593         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
26594         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
26595         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
26596         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
26597         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
26598         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
26599         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
26600         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
26601         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
26602         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
26603         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
26604         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
26605         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
26606         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
26607         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
26608         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
26609         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
26610         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
26611         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
26612         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
26613         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
26614         Deconditionalize the code that was previously under [RESET_PID].
26615         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
26616         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
26617         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
26618         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
26619         include sysdep.h.
26620
26621 2014-09-08  Allan McRae  <allan@archlinux.org>
26622
26623         * version.h (RELEASE): Set to "development".
26624         (VERSION): Set to "2.20.90"
26625
26626 2014-09-07  Allan McRae  <allan@archlinux.org
26627
26628         * version.h (RELEASE): Set to "stable".
26629         (VERSION): Set to "2.20"
26630         * include/features.h (__GLIBC_MINOR__): Set to 20.
26631
26632         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
26633         Liebler.
26634
26635         * po/ko.po: Update Korean translation from translation project.
26636
26637 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
26638
26639         [BZ #17354]
26640         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
26641         macro for handling signed relocations.
26642
26643 2014-09-03  Florian Weimer  <fweimer@redhat.com>
26644
26645         [BZ #17325]
26646         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
26647         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
26648         assert.
26649         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
26650         * iconvdata/ibm935.c (BODY): Likewise.
26651         * iconvdata/ibm937.c (BODY): Likewise.
26652         * iconvdata/ibm939.c (BODY): Likewise.
26653         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
26654         assert.
26655         * iconvdata/Makefile (iconv-test.out): Pass module list to test
26656         script.
26657         * iconvdata/run-iconv-test.sh: New test loop for checking for
26658         decoder crashers.
26659
26660 2014-09-02  Khem Raj  <raj.khem@gmail.com>
26661
26662         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
26663         libm_hidden_ver.
26664
26665 2014-09-01  Allan McRae  <allan@archlinux.org>
26666
26667         * po/eo.po: Update Esperanto translation from translation project.
26668
26669         * po/ca.po: Update Catalan translation from translation project.
26670
26671 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26672
26673         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
26674         __proc_dostop call.
26675
26676 2014-08-27  Mark Wielaard  <mjw@redhat.com>
26677
26678         [BZ #17319]
26679         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
26680         to call set_thread_area instead of hand written asm.
26681         (__NR_set_thread_area): Removed define.
26682         (TLS_FLAG_WRITABLE): Likewise.
26683         (__ASSUME_SET_THREAD_AREA): Remove check.
26684         (TLS_EBX_ARG): Remove define.
26685         (TLS_LOAD_EBX): Likewise.
26686
26687 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26688
26689         Simplify atomicity of socket creation in bind.
26690
26691         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
26692         looking up the name after linking the file.
26693
26694 2014-08-27  Allan McRae  <allan@archlinux.org>
26695
26696         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
26697
26698 2014-08-26  Florian Weimer  <fweimer@redhat.com>
26699
26700         [BZ #17187]
26701         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
26702         trans_compare, open_translit, __gconv_translit_find):
26703         Remove module loading code.
26704
26705 2014-08-26  Allan McRae  <allan@archlinux.org>
26706
26707         * po/vi.po: Update Vietnamese translation from translation project.
26708
26709         * po/uk.po: Update Ukrainian translation from translation project.
26710
26711         * po/fr.po: Update French translation from translation project.
26712
26713         * po/ru.po: Update Russian translation from translation project.
26714
26715         * po/pl.po: Update Polish translation from translation project.
26716
26717         * po/cs.po: Update Czech translation from translation project.
26718
26719         * po/de.po: Update German translation from translation project.
26720
26721         * po/bg.po: Update Bulgarian translation from translation project.
26722
26723         * po/sv.po: Update Sweedish translation from translation project.
26724
26725         * po/nl.po: Update Dutch translation from translation project.
26726
26727         * po/es.po: Update Spanish translation from translation project.
26728
26729 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
26730
26731         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
26732
26733         * catgets/Makefile (CPPFLAGS-gencat): Remove.
26734         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
26735         (CPPFLAGS-iconvconfig): Likewise.
26736         * timezone/Makefile (CPPFLAGS-zic): Likewise.
26737
26738         * include/libc-symbols.h: Remove unnecessary check for
26739         NOT_IN_libc.
26740         * nptl/pthreadP.h: Likewise.
26741         * sysdeps/aarch64/setjmp.S: Likewise.
26742         * sysdeps/alpha/setjmp.S: Likewise.
26743         * sysdeps/arm/sysdep.h: Likewise.
26744         * sysdeps/i386/setjmp.S: Likewise.
26745         * sysdeps/m68k/setjmp.c: Likewise.
26746         * sysdeps/posix/getcwd.c: Likewise.
26747         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
26748         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
26749         * sysdeps/s390/s390-32/setjmp.S: Likewise.
26750         * sysdeps/s390/s390-64/setjmp.S: Likewise.
26751         * sysdeps/sh/sh3/setjmp.S: Likewise.
26752         * sysdeps/sh/sh4/setjmp.S: Likewise.
26753         * sysdeps/unix/alpha/sysdep.h: Likewise.
26754         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
26755         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
26756         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
26757         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
26758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26760         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26761         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
26762         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
26763         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
26764         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26765         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
26766         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
26767         * sysdeps/x86_64/setjmp.S: Likewise.
26768
26769 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
26770
26771         [BZ #17263]
26772         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
26773         <stdint.h>.
26774         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
26775         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
26776
26777 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
26778
26779         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
26780
26781         [BZ #17262]
26782         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
26783         and __x86_64__ when disabling x87 inline functions.
26784
26785 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
26786
26787         [BZ #17259]
26788         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
26789         asm statement with __cpuid_count.
26790
26791 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
26792
26793         * configure.ac: Change __ehdr_start code to dereference the struct.
26794         Run readelf on the output to look for relocations.
26795         * configure: Regenerated.
26796
26797 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
26798
26799         [BZ #17261]
26800         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
26801         value to 0.
26802         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
26803
26804 2014-08-12  Roland McGrath  <roland@hack.frob.com>
26805
26806         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
26807
26808 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
26809
26810         [BZ #16892]
26811         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
26812         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
26813
26814 2014-08-12  Sean Anderson  <seanga2@gmail.com>
26815
26816         * malloc/malloc.c: Fix typo in comment.
26817
26818 2014-08-09  Allan McRae  <allan@archlinux.org>
26819
26820         * Regenerate libc.po.
26821
26822 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
26823
26824         * intl/tst-gettext2.sh: Check every lang file for creation.
26825
26826 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
26827
26828         * sysdeps/aarch64/fpu/math_private.h
26829         (libc_feholdsetround_noex_aarch64_ctx): New function.
26830
26831 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
26832
26833         * sysdeps/arm/armv6/strcpy.S (strcpy):
26834         Fix performance issue in misaligned cases.
26835
26836 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26837
26838         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
26839         Move definition from termios.h.
26840         (struct termio): Likewise.
26841         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
26842         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
26843         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
26844         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
26845         Likewise.
26846         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
26847         Move definition to ioctl-types.h
26848         (struct termio): Likewise.
26849         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
26850         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
26851         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
26852         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
26853         Likewise.
26854
26855 2014-08-05  Richard Henderson  <rth@redhat.com>
26856
26857         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
26858         exceptions.
26859         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
26860         Add fraiseexcpt.
26861         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
26862         Use __feraiseexcept.
26863         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
26864         Protect libm symbols with IS_IN_libm.
26865
26866         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
26867
26868 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
26869
26870         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
26871
26872 2014-08-04  Will Newton  <will.newton@linaro.org>
26873
26874         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
26875         file.
26876
26877 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
26878
26879         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
26880         variants for each function.
26881
26882 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26883
26884         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
26885         appended ...
26886         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
26887         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
26888         appended ...
26889         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
26890         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
26891         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
26892         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
26893         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
26894         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
26895         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
26896         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
26897         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
26898         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
26899         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
26900         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
26901         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
26902         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
26903         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
26904         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
26905         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
26906         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
26907         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
26908         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
26909         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
26910         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
26911         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
26912         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
26913         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
26914         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
26915         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
26916         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
26917         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
26918         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
26919         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
26920         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
26921         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
26922         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
26923         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
26924         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
26925         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
26926         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
26927         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
26928         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
26929         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
26930         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
26931         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
26932         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
26933         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
26934         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
26935         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
26936         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
26937         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
26938         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
26939         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
26940         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
26941         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
26942         Update #include.
26943         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
26944         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
26945
26946 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26947
26948         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
26949         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
26950         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
26951         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
26952         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
26953         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
26954
26955 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26956
26957         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
26958         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
26959         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
26960         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
26961
26962 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26963
26964         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
26965         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
26966         (__libc_vfork): Define function under this name.
26967         (__vfork): Define as an alias.
26968         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
26969         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
26970
26971 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26972
26973         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
26974         that was previously under [RESET_PID].
26975         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
26976
26977 2014-08-04  Andreas Schwab  <schwab@suse.de>
26978
26979         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
26980
26981 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
26982
26983         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
26984         (main): Likewise.
26985
26986 2014-08-01  Roland McGrath  <roland@hack.frob.com>
26987
26988         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
26989
26990 2014-08-01  Richard Henderon  <rth@redhat.com>
26991
26992         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
26993         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
26994         typo in exact zero test.
26995         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26996         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26997         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26998
26999 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27000
27001         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27002         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27003         * sysdeps/arm/sysdep.h: ... here.
27004         [!__ASSEMBLER__]: Include <stdint.h>.
27005
27006 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27007
27008         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27009         (HAVE_WCTYPE_H): Likewise.
27010         (HAVE_ISWCTYPE): Likewise.
27011         (ENABLE_NLS): Likewise.
27012         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27013         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27014
27015         * posix/regex_internal.c: Check if DEBUG is defined and is
27016         set.
27017
27018         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27019         (HAVE_MBSRTOWCS): Likewise.
27020         * posix/fnmatch.c: Include string.h unconditionally.
27021
27022 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27023
27024         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27025         reversal.
27026
27027 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27028
27029         * sysdeps/generic/safe-fatal.h: New file.
27030         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27031         * nptl/forward.c: Include it.
27032         (__pthread_unwind): Use __safe_fatal as default action, rather
27033         than a bogus use of INTERNAL_SYSCALL that could never work.
27034
27035         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27036         * configure.ac (libc_cv_builtin_trap): New test.
27037         * configure: Regenerated.
27038         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27039         (ABORT_INSTRUCTION): Define using __builtin_trap.
27040
27041         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27042         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27043         * sysdeps/nptl/nptl-signals.h: New file.
27044         * nptl/pthreadP.h: Include <nptl-signals.h>.
27045
27046 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27047
27048         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27049         (ONE_DIRECTION): Define.
27050         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27051         (ONE_DIRECTION): Define.
27052         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27053         (ONE_DIRECTION): Define.
27054
27055 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27056
27057         * sysdeps/s390/Makefile: Delete file.
27058         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27059         * sysdeps/s390/__longjmp.c: Delete file.
27060         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27061         Remove fields __flags and __reserved.
27062         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27063         and add versioning.
27064         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27065         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27066         * sysdeps/s390/rtld-setjmp.S: Likewise.
27067         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27068         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27069         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27070         * sysdeps/s390/s390-32/setjmp.S: ... here.
27071         Add versioning.
27072         (__sigsetjmp): Remove setting __flags field.
27073         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27074         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27075         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27076         * sysdeps/s390/s390-64/setjmp.S: ... here.
27077         Add versioning.
27078         (__sigsetjmp): Remove setting __flags field.
27079         * sysdeps/s390/setjmp.S: Delete file.
27080         * sysdeps/s390/sigjmp.c: Likewise.
27081         * sysdeps/s390/v1-longjmp.c: Likewise.
27082         * sysdeps/s390/v1-setjmp.h: Likewise.
27083         * sysdeps/s390/v1-sigjmp.c: Likewise.
27084         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27085         Remove v1-longjmp_chk.
27086         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27087         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27088         Include debug/longjmp_chk.c and add versioning.
27089         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27090         Include nptl/pt-longjmp.c and add versioning.
27091         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27092         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27093         Include __longjmp.c.
27094         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27095         Move to ...
27096         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27097         (__getcontext): Remove setting __flags field.
27098         Add versioning.
27099         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27100         Don't restore upper high grps.
27101         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27102         Likewise.
27103         (__swapcontext): Remove setting uc_flags field.
27104         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27105         Delete file.
27106         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27107         Include __longjmp.c.
27108         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27109         Move to ...
27110         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27111         (__getcontext): Remove setting __flags field.
27112         Add versioning.
27113         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27114         (__swapcontext): Remove setting uc_flags field.
27115         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27116         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27117         Remove fields uc_high_gprs and __reserved.
27118         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27119         New file with reverted content.
27120         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27121         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27122         Regenerated.
27123         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27124         Regenerated.
27125
27126 2014-07-31  Andreas Schwab  <schwab@suse.de>
27127
27128         * config.h.in (HAVE_IFUNC): Define to 0.
27129         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27130         definedness.
27131
27132 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27133
27134         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27135         memmove-avx-unaligned, memcpy-avx-unaligned and
27136         mempcpy-avx-unaligned.
27137         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27138         Add tests for AVX memcpy functions.
27139         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27140         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27141         memcpy_chk.
27142         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27143         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27144         memmove_chk.
27145         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27146         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27147         mempcpy_chk.
27148         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27149         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27150         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27151
27152 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27153
27154         [BZ #17213]
27155         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27156         powerpc64le.
27157
27158 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27159
27160         [BZ #16839]
27161         * manual/llio.texi: Add section about open file description locks.
27162         * manual/examples/ofdlocks.c: Example of open file description
27163         lock usage.
27164         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27165         F_OFD_SETLK, and F_OFD_SETLKW.
27166
27167 2014-07-23  Allan McRae  <allan@archlinux.org>
27168
27169         * po/es.po: Update Spanish translation from translation project.
27170
27171 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27172
27173         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27174
27175 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27176
27177         [BZ #17078]
27178         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27179         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27180         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27181
27182 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27183
27184         [BZ #17088]
27185         * math/fesetenv.c (__fesetenv)
27186         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27187         * math/feupdateenv.c (__feupdateenv)
27188         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27189
27190         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27191         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27192         (__ASSUME_SOCKETCALL): Do not define.
27193
27194         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27195         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27196         (__ASSUME_SOCKETCALL): Do not define.
27197         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27198         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27199         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27200         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27201         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27202         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27203         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27204         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27205
27206         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27207         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27208         (__ASSUME_SOCKETCALL): Do not define.
27209         (__ASSUME_IPC64): Define unconditionally.
27210         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27211         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27212         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27213         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27214         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27215         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27216         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27217         Likewise.
27218
27219         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27220         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27221         (__ASSUME_SOCKETCALL): Do not define.
27222         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27223         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27224         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27225         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27226         (__ASSUME_REQUEUE_PI): Define unconditionally.
27227         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27228         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27229         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27230         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27231         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27232         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27233
27234         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27235         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27236         (__ASSUME_SOCKETCALL): Do not define.
27237         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27238         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27239         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27240         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27241         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27242         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27243
27244         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27245         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27246         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27247         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27248         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27249         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27250         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27251         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27252         (__ASSUME_GETCPU_SYSCALL): Likewise.
27253
27254         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27255         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27256         cases for individual architectures.
27257         * sysdeps/gnu/configure: Regenerated.
27258         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27259         LIBC_SLIBDIR_RTLDDIR.
27260         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27261         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27262         LIBC_SLIBDIR_RTLDDIR.
27263         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27265         LIBC_SLIBDIR_RTLDDIR.
27266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27267         Regenerated.
27268         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27269         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27270         file.
27271         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27272         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27273         file.
27274         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27275         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27276         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27277         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27278
27279         * sysdeps/aarch64/shlib-versions: Move to ...
27280         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27281         * sysdeps/alpha/shlib-versions: Move to ...
27282         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27283         * sysdeps/arm/shlib-versions: Move to ...
27284         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27285         * sysdeps/hppa/shlib-versions: Move all contents except for
27286         libgcc_s entry to ...
27287         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27288         entry from ...
27289         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27290         * sysdeps/ia64/shlib-versions: Move to ...
27291         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27292         entry from ...
27293         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27294         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27295         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27296         * sysdeps/microblaze/shlib-versions: Move to ...
27297         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27298         * sysdeps/mips/shlib-versions: Move to ...
27299         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27300         entry from ...
27301         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27302         * sysdeps/tile/shlib-versions: Move to ...
27303         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27304         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27305         from ...
27306         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27307         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27308         entry from ...
27309         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27310
27311 2014-07-17  Will Newton  <will.newton@linaro.org>
27312
27313         * sysdeps/arm/bits/atomic.h
27314         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27315         (__arch_compare_and_exchange_bool_16_int): Likewise.
27316         (__arch_compare_and_exchange_bool_64_int): Likewise.
27317
27318         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27319         into an #else block.
27320
27321 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27322
27323         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27324         just Linux configurations.  Test empirically that the compiler sets
27325         __ARM_EABI__, rather than using the tuple to decide.
27326         * sysdeps/arm/preconfigure: Regenerated.
27327         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27328         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27329         contents appended ...
27330         * sysdeps/arm/configure.ac: ... here.
27331         * sysdeps/arm/configure: Regenerated.
27332
27333 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27334
27335         * nptl/pthread_kill.c: New file.
27336         * nptl/pthread_sigmask.c: New file.
27337         * nptl/pthread_sigqueue.c: New file.
27338
27339         * sysdeps/nptl/lowlevellock.h: New file.
27340         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27341         * sysdeps/nptl/lowlevellock-futex.h: New file.
27342
27343         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27344         Remove dead declarations.
27345
27346 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27347
27348         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27349         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27350         config-cflags-avx2.
27351         * sysdeps/x86_64/configure.ac: Likewise.
27352         * sysdeps/i386/configure: Regenerated.
27353         * sysdeps/x86_64/configure: Likewise.
27354         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27355         memset-avx2 only if config-cflags-avx2 is yes.
27356         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27357         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27358         defined.
27359         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27360         only if HAVE_AVX2_SUPPORT is defined.
27361         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27362
27363 2014-07-14  Alan Modra  <amodra@gmail.com>
27364
27365         [BZ #17153]
27366         * elf/elf.h (DT_PPC64_NUM): Correct value.
27367         * NEWS: Add to fixed bug list.
27368
27369 2014-07-13  Jim Meyering  <meyering@fb.com>
27370
27371         [BZ 17150]
27372         regex: don't deref NULL upon heap allocation failure
27373         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27374         failure in one more place.
27375         To trigger the segfault, configure grep -with-included-regex,
27376         build it, and run these commands:
27377         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27378
27379 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27380
27381         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27382
27383 2014-07-11  Richard Henderson  <rth@redhat.com>
27384
27385         * sysdeps/aarch64/libm-test-ulps: Update.
27386
27387 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27388
27389         [BZ #17135]
27390         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27391         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27392         (__nptl_setxid): Initialize error member.  Call
27393         __nptl_setxid_error.
27394         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27395         * nptl/descr.h (struct xid_command): Add error member.
27396         * nptl/tst-setuid3.c: New file.
27397         * nptl/Makefile (tests): Add it.
27398
27399 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27400
27401         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27402         New define.
27403         (__lll_trylock): Use __lll_base_trylock.
27404         (__lll_cond_trylock): Likewise.
27405
27406 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27407
27408         * nptl/pthread_create.c (start_thread): Use atomic_or and
27409         lll_futex_wake directly rather than lll_robust_dead.
27410         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27411         (lll_robust_dead): Macro removed.
27412         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27413         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27414         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27415         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27416         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27417         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27418         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27419         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27420         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27421         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27422         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27423         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27424         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27425         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27426         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27427
27428         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27429         Use atomic_compare_and_exchange_val_acq directly rather than
27430         lll_robust_trylock.
27431         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27432         (__lll_robust_trylock, lll_robust_trylock): Removed.
27433         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27434         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27435         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27436         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27437         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27438         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27439         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27440         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27441         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27442         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27443         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27444         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27445         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27446         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27447
27448 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27449
27450         * manual/locale.texi (Locale Names): New section documenting
27451         locale name syntax.  Adjust menu and node chaining accordingly.
27452         (Choosing Locale): Reference Locale Names, Locale Categories.
27453         Mention setting LC_ALL=C.  Reflect that name syntax is now
27454         documented.
27455         (Locale Categories): New section title.  Reference Locale Names.
27456         LC_ALL is an environment variable, but not a category.
27457         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27458         description, now in Locale Name.  Reference that section.  Locale
27459         name syntax is now documented.
27460
27461 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27462
27463         [BZ #17137]
27464         * locale/findlocale.c (name_present, valid_locale_name): New
27465         functions.
27466         (_nl_find_locale): Use the loc_name variable to store name
27467         candidates.  Call name_present and valid_locale_name to check and
27468         validate locale names.  Return an error if the locale is invalid.
27469
27470 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27471
27472         * locale/setlocale.c (setlocale): Use strdup for allocating
27473         composite name copy.
27474
27475 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27476
27477         Sync up with gnulib.
27478         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27479         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27480         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27481         and _GL_ARG_NONNULL.
27482         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27483         [!_LIBC]: Include code for Windows and Cygwin.
27484         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27485         Include prototype for int strerror_r.
27486         [!_LIBC] (is_open): New function.
27487         (flush_stdout): New function.
27488         (print_errno_message): Use it.
27489         (error): Likewise.
27490         (error_at_line): Likewise.
27491         (error_tail) Add function attribute macros.  Use
27492         __builtin_expect.
27493
27494         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27495
27496         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27497
27498         * io/ftw.c: Include sys/param.h unconditionally.
27499
27500         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27501
27502         [BZ #17125]
27503         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27504         libc_freeres_ptr.
27505         (freecache): New function to free CACHE on exit.
27506
27507         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27508         initialization.
27509
27510 2014-07-09  David S. Miller  <davem@davemloft.net>
27511
27512         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27513
27514         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27515         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27516         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27517         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27518         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27519         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27520         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27521         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27522         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27523         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27524         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27525         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27526         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27527
27528 2014-07-09  Andreas Schwab  <schwab@suse.de>
27529
27530         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27531         output.
27532         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27533         (do_test): Likewise.
27534
27535         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27536
27537 2014-07-09  Will Newton  <will.newton@linaro.org>
27538
27539         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27540         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27541         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27542         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27543         * sysdeps/hppa/start.S (_start): Likewise.
27544
27545 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27546
27547         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27548
27549         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27550         defined.
27551
27552 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27553
27554         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
27555         after checking that it is non-NULL.
27556
27557         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
27558
27559 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27560
27561         * sysdeps/powerpc/memmove.c: Remove file.
27562         * sysdeps/powerpc/powerpc32/power4/memcopy.h
27563         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
27564         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27565         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
27566         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
27567         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
27568         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
27569         string memmove instead of removed powerpc one.
27570
27571         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
27572         [weak_alias]: Fix compiler warning due trailing data.
27573         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
27574         [weak_alias]: Likewise.
27575         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
27576         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
27577
27578         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
27579         (__libc_ifunc_impl_list): Add memmove functions.
27580
27581 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27582
27583         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
27584         Remove code.
27585         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
27586         Likewise.
27587         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
27588         Likewise.
27589         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
27590         Likewise.
27591         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
27592         Likewise.
27593         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
27594         Likewise.
27595         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
27596         Likewise.
27597         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
27598         Likewise.
27599         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
27600         Likewise.
27601         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
27602         Likewise.
27603         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
27604         Likewise.
27605         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
27606         Likewise.
27607         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
27608         Likewise.
27609         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
27610         Likewise.
27611         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
27612         Likewise.
27613         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
27614         Likewise.
27615         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
27616         Likewise.
27617
27618 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27619
27620         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
27621         to avoid alignment traps in non-cacheable memory.
27622         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
27623
27624         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
27625         multiarch objects.
27626         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
27627         file: multiarch power7 memmove.
27628         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
27629         multiarch default memmove.
27630         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
27631         multiarch memove for powerpc32/power4.
27632
27633         * string/bcopy.c: Use full path to include memmove.c.
27634         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
27635         multiarch objects.
27636         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
27637         bcopy for powerpc64.
27638         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
27639         bcopy for powerpc64.
27640         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
27641         and memmove implementations.
27642         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
27643         optimized multiarch memmove for POWER7/powerpc64.
27644         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
27645         default multiarch memmove for powerpc64.
27646         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
27647         multiarch for powerpc64.
27648         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
27649         for POWER7/powerpc64.
27650         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
27651         memmove for POWER7/powerpc64.
27652
27653         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
27654         glibc default one.
27655
27656         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
27657         __ELF_NATIVE_CLASS equal to 64.
27658
27659 2014-07-07  Roland McGrath  <roland@hack.frob.com>
27660
27661         * sysdeps/nptl/lowlevellock.h: File removed.
27662
27663         * NEWS: NPTL is no longer an add-on!
27664         * nptl/internaltypes.h: Moved ...
27665         * sysdeps/nptl/internaltypes.h: ... here.
27666         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
27667         * sysdeps/nptl/fork.c: Likewise.
27668         * sysdeps/nptl/gai_misc.h: Likewise.
27669         * sysdeps/nptl/librt-cancellation.c: Likewise.
27670         * sysdeps/nptl/jmp-unwind.c: Likewise.
27671         * sysdeps/nptl/setxid.h: Likewise.
27672         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
27673         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
27674         * sysdeps/unix/sysv/linux/arm/Implies: New file.
27675         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
27676         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
27677         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
27678         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
27679         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
27680         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
27681         * sysdeps/unix/sysv/linux/mips/Implies: New file.
27682         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
27683         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
27684         * sysdeps/unix/sysv/linux/sh/Implies: New file.
27685         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
27686         * sysdeps/unix/sysv/linux/tile/Implies: New file.
27687         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
27688         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
27689         * nptl/Makeconfig: Moved ...
27690         * sysdeps/nptl/Makeconfig: ... here.
27691         * nptl/configure: File removed.
27692         * nptl/ANNOUNCE: File removed.
27693         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
27694         * sysdeps/unix/sysv/linux/configure: Regenerated.
27695
27696         * nptl/Makefile (routines): Add libc_pthread_init,
27697         libc_multiple_threads, register-atfork and unregister-atfork.
27698         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
27699         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
27700         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
27701         pthread-pi-defines.sym, structsem.sym.
27702         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
27703         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
27704         [$(subdir) = nptl] (tests): Add tst-setgetname.
27705         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
27706         * sysdeps/unix/sysv/linux/sigaction.c: Just include
27707         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
27708         [!LIBC_SIGACTION]: Remove aliases.
27709         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
27710         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
27711         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
27712         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
27713         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
27714         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
27715         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27716         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27717         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
27718         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
27719         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
27720         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
27721         __libc_allocate_rtsig_private.
27722         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
27723         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
27724         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
27725         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
27726         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
27727         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
27728         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
27729         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
27730         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
27731         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
27732         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
27733         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
27734         * nptl/internaltypes.h: ... here.
27735         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
27736         * sysdeps/nptl/jmp-unwind.c: ... here.
27737         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
27738         * nptl/libc-lowlevellock.c: ... here.
27739         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
27740         * nptl/libc_multiple_threads.c: ... here.
27741         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
27742         * nptl/libc_pthread_init.c: ... here.
27743         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
27744         * nptl/lowlevelbarrier.sym: ... here.
27745         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
27746         * nptl/lowlevelcond.sym: ... here.
27747         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
27748         * nptl/lowlevellock.c: ... here.
27749         * nptl/lowlevellock.h: Moved ...
27750         * sysdeps/nptl/lowlevellock.h: ... here.
27751         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
27752         * nptl/lowlevelrobustlock.c: ... here.
27753         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
27754         * nptl/lowlevelrobustlock.sym: ... here.
27755         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
27756         * nptl/lowlevelrwlock.sym: ... here.
27757         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
27758         * nptl/pt-fork.c: ... here.
27759         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
27760         * nptl/pthread-pi-defines.sym: ... here.
27761         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
27762         * nptl/pthread_attr_getaffinity.c: ... here.
27763         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
27764         * nptl/pthread_attr_setaffinity.c: ... here.
27765         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
27766         * nptl/pthread_mutex_cond_lock.c: ... here.
27767         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
27768         Update #include.
27769         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
27770         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
27771         * nptl/pthread_once.c: ... here, replacing old file.
27772         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
27773         * nptl/pthread_yield.c: ... here.
27774         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
27775         * nptl/register-atfork.c: ... here.
27776         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
27777         * nptl/sem_post.c: ... here.
27778         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
27779         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
27780         * nptl/sem_timedwait.c: ... here.
27781         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
27782         * nptl/sem_trywait.c: ... here.
27783         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
27784         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
27785         * nptl/sem_wait.c: ... here.
27786         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
27787         * nptl/structsem.sym: ... here.
27788         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
27789         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
27790         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
27791         * nptl/unregister-atfork.c: ... here.
27792         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
27793         * nptl/unwindbuf.sym: ... here.
27794         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
27795         * sysdeps/nptl/fork.c: ... here.
27796         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
27797         * sysdeps/nptl/fork.h: ... here.
27798         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
27799         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
27800         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
27801         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
27802         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
27803         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
27804         * sysdeps/unix/sysv/linux/getpid.c: ... here.
27805         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
27806         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
27807         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
27808         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
27809         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
27810         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
27811         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
27812         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
27813         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
27814         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
27815         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
27816         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
27817         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
27818         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
27819         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
27820         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
27821         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
27822         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
27823         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
27824         * sysdeps/unix/sysv/linux/raise.c: ... here.
27825         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
27826         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
27827         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
27828         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
27829         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
27830         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
27831         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
27832         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
27833         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
27834         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
27835         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
27836         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
27837         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
27838         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
27839         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
27840
27841 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
27842
27843         * sysdeps/generic/memcopy.h: Add comment for
27844         MEMCPY_OK_FOR_FWD_MEMMOVE.
27845
27846 2014-07-04  Will Newton  <will.newton@linaro.org>
27847
27848         * string/memchr.c: Merge from gnulib.
27849         [_LIBC]: Remove conditionals.
27850         (__ptr_t): Remove define.
27851         (LONG_MAX_32_BITS): Likewise.
27852         (LONG_MAX): Likewise.
27853         (MEMCHR): Use ANSI prototype and optimize algorithm.
27854
27855         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
27856
27857 2014-07-03  Roland McGrath  <roland@hack.frob.com>
27858
27859         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
27860         (lll_futex_timed_wait_bitset): Fix syscall argument count.
27861
27862         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
27863         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
27864         in a bare environment with no <stdlib.h> installed.
27865         * sysdeps/nptl/configure: Regenerated.
27866
27867         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
27868
27869         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
27870         AC_EGREP_CPP for kernel header checks, so they only succeed if
27871         including <linux/version.h> actually works right.
27872         * sysdeps/unix/sysv/linux/configure: Regenerated.
27873
27874         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
27875         value so it's not diagnosed as unused.
27876
27877         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
27878         thing) with "ifeq ($(subdir),rt)".
27879
27880 2014-07-03  Richard Henderson  <rth@redhat.com>
27881
27882         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
27883         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
27884         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
27885
27886         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
27887         (math_force_eval): New.
27888
27889         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
27890         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
27891
27892         * sysdeps/alpha/fpu/s_round.c: Remove file.
27893         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
27894
27895         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
27896         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
27897         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
27898         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
27899         (_dl_start, print_statistics): Likewise.
27900         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
27901         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
27902
27903         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27904         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27905         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27906         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27907         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
27908         (HP_SMALL_TIMING_AVAIL): Define.
27909         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27910         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
27911         (HP_SMALL_TIMING_AVAIL): Define.
27912         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27913         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27914
27915         * sysdeps/aarch64/hp-timing.h: New file.
27916
27917         * sysdeps/generic/hp-timing.h: Remove dead comment.
27918         * sysdeps/generic/hp-timing-common.h: New file.
27919         * sysdeps/alpha/hp-timing.h: Include it.
27920         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
27921         * sysdeps/i386/i686/hp-timing.h: Likewise.
27922         * sysdeps/ia64/hp-timing.h: Likewise.
27923         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
27924         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
27925         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
27926         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
27927         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
27928         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
27929         (hp_timing_t): New.
27930
27931         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
27932         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
27933         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
27934         * elf/rtld.c (_dl_start_final): Likewise.
27935         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
27936         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27937         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27938         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27939         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27940         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
27941         (HP_TIMING_DIFF_INIT): Remove.
27942         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27943         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
27944         (HP_TIMING_DIFF_INIT): Remove.
27945         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27946         * sysdeps/i386/i686/hp-timing.c: Remove file.
27947         * sysdeps/x86_64/hp-timing.c: Remove file.
27948         * sysdeps/ia64/hp-timing.c: Remove file.
27949         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
27950         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
27951         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
27952         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
27953
27954         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
27955         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
27956         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
27957         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
27958         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
27959         (HP_TIMING_ACCUM): Remove.
27960         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
27961         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
27962         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
27963
27964         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
27965         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
27966         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
27967         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
27968         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
27969         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
27970         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
27971         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
27972
27973         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
27974
27975 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
27976
27977         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
27978
27979 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
27980
27981         Sync up with gettext.
27982         * intl/loadmsgcat.c: Define O_BINARY if not defined.
27983         [_MSC_VER]: Include malloc.h
27984         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
27985         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
27986         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
27987         TEMP_FAILURE_RETRY.  Cast return of alloca.
27988         [!_LIBC] Call gl_rwlock_init.
27989         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
27990
27991 2014-07-02  Roland McGrath  <roland@hack.frob.com>
27992
27993         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
27994         before checking its value.
27995
27996 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
27997
27998         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
27999
28000         * debug/memcpy_chk.c: Don't include pagecopy.h.
28001         * debug/mempcpy_chk.c: Likewise.
28002         * string/memcpy.c: Likewise.
28003         * string/memmove.c: Likewise.
28004         * sysdeps/powerpc/memmove.c: Likewise.
28005         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28006         definition of PAGE_COPY_FWD_MAYBE here...
28007         * sysdeps/generic/pagecopy.h: ... from here.
28008         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28009
28010 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28011             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28012
28013         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28014         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28015         optimizations.
28016         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28017         (__libc_ifunc_impl_list): Likewise.
28018         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28019         multiarch strcat for PPC64.
28020         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28021         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28022
28023 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28024
28025         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28026
28027 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28028
28029         * intl/loadmsgcat.c: Remove declaration of
28030         get_sysdep_segment_value.
28031         (get_sysdep_segment_value): Use ISO C style.
28032         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28033         semicolon.  Fix typo and formatting in comment.
28034         (_nl_unload_domain): Use ISO C style.
28035
28036         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28037
28038 2014-07-02  Will Newton  <will.newton@linaro.org>
28039
28040         * malloc/obstack.c: Merge from gnulib master.
28041         [HAVE_CONFIG_H]: Remove conditional code.
28042         [!_LIBC]: Include config.h.
28043         [!ELIDE_CODE]: Don't include inttypes.h, include
28044         stdint.h unconditionally.
28045         (print_and_abort): Mark as _Noreturn.
28046         (_obstack_allocated_p): Mark as __attribute_pure__.
28047         (obstack_free): Rename to __obstack_free.
28048         [!__attribute__]: Remove conditional code.
28049         * malloc/obstack.h: Merge from gnulib master.
28050         [__cplusplus]: Move conditional down.
28051         [!__attribute_pure__]: Define __attribute_pure__ here
28052         if it is not already defined.
28053         (_obstack_memory_used): Mark as __attribute_pure__.
28054         [!__obstack_free]: Define as obstack_free.
28055         [__GNUC__]: Remove check for ancient NeXT gcc.
28056
28057 2014-07-02  Will Newton  <will.newton@linaro.org>
28058             Paul Eggert  <eggert@cs.ucla.edu>
28059
28060         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28061
28062 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28063
28064         * resolv/gethnamaddr.c: Add comment warning that the file is
28065         not maintained.
28066
28067 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28068
28069         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28070         entries.
28071
28072         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28073         entry for aio_cancel and aio_cancel64.
28074         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28075         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28076         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28077         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28078         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28079         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28080         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28081         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28082         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28083         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28084         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28085         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28086         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28087
28088 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28089
28090         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28091         * nptl/pthread_mutex_lock.c: Likewise.
28092         * nptl/pthread_mutex_timedlock.c: Likewise.
28093         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28094
28095 2014-07-01  Richard henderson  <rth@redhat.com>
28096
28097         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28098         (__isnan, __isnanl): Remove.
28099         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28100
28101         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28102
28103 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28104
28105         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28106
28107 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28108
28109         * resolv/nss_dns/dns-host.c (getanswer_r)
28110         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28111
28112 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28113
28114         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28115         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28116         undefine.
28117         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28118         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28119
28120 2014-07-01  Roland McGrath <roland@hack.frob.com>
28121
28122         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28123         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28124
28125         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28126         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28127
28128         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28129         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28130         ... here.
28131         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28132         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28133
28134         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28135         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28136         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28137         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28138
28139         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28140         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28141         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28142         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28143         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28144         Moved ...
28145         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28146         ... here.
28147         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28148         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28149         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28150         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28151         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28152         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28153         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28154         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28155         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28156         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28157         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28158         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28159         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28160         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28161         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28162         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28163         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28164         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28165         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28166         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28167         ... here.
28168         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28169         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28170         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28171         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28172         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28173         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28174         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28175         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28176
28177 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28178
28179         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28180         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28181         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28182         Add sysdep.
28183
28184 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28185
28186         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28187
28188 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28189
28190         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28191         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28192
28193         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28194
28195         * sysdeps/arm/libm-test-ulps: Regenerated.
28196
28197 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28198             Roland McGrath <roland@hack.frob.com>
28199
28200         * test-skeleton.c (signal_handler): Kill the whole process group
28201         before killing the child individually.
28202         (main): Report any failure on `setpgid'.
28203
28204 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28205
28206         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28207         from _TLS_H to _ARM_NPTL_TLS_H.
28208         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28209         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28210
28211 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28212
28213         [BZ #16539]
28214         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28215         (__expm1l): Return argument unchanged when small but not
28216         subnormal.
28217
28218         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28219         include macro name.
28220         (_FP_UNPACK_RAW_1_P): Likewise.
28221         (_FP_PACK_RAW_1): Likewise.
28222         (_FP_PACK_RAW_1_P): Likewise.
28223         (_FP_MUL_MEAT_1_wide): Likewise.
28224         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28225         (_FP_MUL_MEAT_1_hard): Likewise.
28226         (_FP_DIV_MEAT_1_imm): Likewise.
28227         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28228         (_FP_DIV_MEAT_1_udiv): Likewise.
28229         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28230         (_FP_UNPACK_RAW_2): Likewise.
28231         (_FP_UNPACK_RAW_2_P): Likewise.
28232         (_FP_PACK_RAW_2): Likewise.
28233         (_FP_PACK_RAW_2_P): Likewise.
28234         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28235         (_FP_MUL_MEAT_2_wide): Likewise.
28236         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28237         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28238         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28239         (_FP_MUL_MEAT_2_gmp): Likewise.
28240         (_FP_DIV_MEAT_2_udiv): Likewise.
28241         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28242         (_FP_FRAC_SRL_4): Likewise.
28243         (_FP_FRAC_SRST_4): Likewise.
28244         (_FP_FRAC_SRS_4): Likewise.
28245         (_FP_UNPACK_RAW_4): Likewise.
28246         (_FP_UNPACK_RAW_4_P): Likewise.
28247         (_FP_PACK_RAW_4): Likewise.
28248         (_FP_PACK_RAW_4_P): Likewise.
28249         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28250         (_FP_MUL_MEAT_4_wide): Likewise.
28251         (_FP_MUL_MEAT_4_gmp): Likewise.
28252         (umul_ppppmnnn): Likewise.
28253         (_FP_DIV_MEAT_4_udiv): Likewise.
28254         (__FP_FRAC_ADD_4): Likewise.
28255         (__FP_FRAC_SUB_3): Likewise.
28256         (__FP_FRAC_SUB_4): Likewise.
28257         (__FP_FRAC_DEC_3): Likewise.
28258         (__FP_FRAC_DEC_4): Likewise.
28259         (__FP_FRAC_ADDI_4): Likewise.
28260         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28261         (_FP_FRAC_SRL_8): Likewise.
28262         (_FP_FRAC_SRS_8): Likewise.
28263
28264         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28265         include macro name.
28266         (FP_UNPACK_RAW_EP): Likewise.
28267         (FP_PACK_RAW_E): Likewise.
28268         (FP_PACK_RAW_EP): Likewise.
28269         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28270         (_FP_ISSIGNAN): Likewise.
28271         (_FP_ADD_INTERNAL): Likewise.
28272         (_FP_FMA): Likewise.
28273         (_FP_CMP): Likewise.
28274         (_FP_SQRT): Likewise.
28275         (_FP_TO_INT): Likewise.
28276         (_FP_FROM_INT): Likewise.
28277         (FP_EXTEND): Likewise.
28278         (_FP_DIV_MEAT_N_loop): Likewise.
28279
28280 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28281
28282         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28283         throughout.
28284
28285 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28286
28287         [BZ #17097]
28288         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28289         result with correct sign in case of exponents that produce
28290         overflow except for X very close to 1.
28291
28292 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28293
28294         mktime: merge #if/#ifdef usage from glibc
28295         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28296         as that works with both Glibc's and Gnulib's style.
28297         See thread starting at Siddhesh Poyarekar's bug report at:
28298         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28299
28300 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28301
28302         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28303         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28304         * sysdeps/tile/tilegx/memmove.c: Remove file.
28305
28306 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28307
28308         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28309         abi-name definition.
28310         * scripts/soversions.awk: Do not handle or generate ABI lines.
28311         * shlib-versions: Remove ABI entries.
28312         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28313         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28314
28315 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28316
28317         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28318         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28319         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28320         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28321         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28322         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28323         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28324         Moved ...
28325         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28326         ... here.
28327         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28328         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28329         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28330         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28331         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28332         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28333         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28334         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28335         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28336         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28337         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28338         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28339         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28340         Moved ...
28341         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28342         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28343         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28344         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28345         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28346         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28347         Moved ...
28348         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28349         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28350         Moved ...
28351         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28352         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28353         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28354         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28355         Moved ...
28356         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28357         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28358         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28359         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28360         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28361         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28362         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28363         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28364         Moved ...
28365         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28366         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28367         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28368         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28369         Moved ...
28370         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28371         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28372         Moved ...
28373         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28374         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28375         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28376         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28377         Moved ...
28378         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28379         ... here.
28380         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28381         Identical file removed.
28382         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28383         Moved ...
28384         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28385         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28386         Identical file removed.
28387         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28388         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28389         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28390         Moved ...
28391         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28392         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28393         Identical file removed.
28394         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28395         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28396         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28397         Identical file removed.
28398         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28399         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28400         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28401         Identical file removed.
28402         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28403         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28404         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28405         Identical file removed.
28406         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28407         Moved ...
28408         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28409         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28410         Identical file removed.
28411         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28412         Moved ...
28413         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28414         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28415         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28416         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28417         Identical file removed.
28418         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28419         Moved ...
28420         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28421         ... here.
28422         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28423         Identical file removed.
28424         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28425         Moved ...
28426         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28427         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28428         Identical file removed.
28429         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28430         Moved ...
28431         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28432         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28433         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28434         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28435         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28436         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28437         Moved ...
28438         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28439         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28440         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28441
28442         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28443         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28444         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28445         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28446         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28447
28448 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28449
28450         [BZ #17092]
28451         * nscd/nscd.c (monitor_child): Return exit status of child
28452         instead of return value from wait syscall.
28453
28454 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28455
28456         * configure.ac (libc_commonpagesize): Remove variable.
28457         (libc_relro_required): Likewise.
28458         (libc_cv_z_relro): Remove configure test.
28459         * configure: Regenerated.
28460         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28461         variable.
28462         (libc_relro_required): Likewise.
28463         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28464         (libc_relro_required): Likewise.
28465         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28466         (libc_relro_required): Likewise.
28467         * sysdeps/arm/preconfigure: Regenerated.
28468         * sysdeps/ia64/preconfigure: Remove file.
28469         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28470         variable.
28471         (libc_relro_required): Likewise.
28472
28473         [BZ #16561]
28474         [BZ #16562]
28475         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28476         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28477         recompute overflowing results in original rounding mode.
28478         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28479         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28480         recompute overflowing results in original rounding mode.
28481         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28482         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28483         recompute overflowing results in original rounding mode.
28484         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28485         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28486         recompute overflowing results in original rounding mode.
28487         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28488         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28489         recompute overflowing results in original rounding mode.
28490         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28491         (libc_feholdsetround_ctx): New macro.
28492         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28493         * sysdeps/i386/fpu/libm-test-ulps: Update.
28494         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28495
28496 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28497
28498         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28499         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28500         corresponding .cpsetup call.
28501
28502 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28503
28504         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28505         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28506         * sysdeps/arm/Makefile [$(subdir) = csu]
28507         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28508         (static-only-routines): Add aeabi_read_tp here.
28509         (shared-only-routines): Add libc-aeabi_read_tp here.
28510         (CFLAGS-libc-start.c): Add -fexceptions here.
28511         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28512         (sysdep_routines, static-only-routines, shared-only-routines):
28513         Don't add to these here.
28514         (CFLAGS-libc-start.c): Likewise.
28515
28516         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28517         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28518         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28519         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28520         * sysdeps/arm/Makefile [$(subdir) = rt]
28521         (librt-sysdep_routines, librt-shared-only-routines):
28522         Append rt-aeabi_unwind_cpp_pr1 here.
28523         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28524         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28525         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28526         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28527         Append nptl-aeabi_unwind_cpp_pr1 here.
28528         (tests): Filter out tst-cleanupx4 here.
28529         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28530         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28531         Don't do those here.
28532
28533 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28534
28535         * scripts/list-sources.sh: Do not handle ports specially.
28536
28537 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28538
28539         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28540         * sysdeps/arm/feupdateenv.c: Likewise.
28541
28542         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28543
28544 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28545
28546         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28547         trailing whitespace removed.
28548         * scripts/config.guess: Update to version 2014-03-23.
28549         * scripts/config.sub: Update to version 2014-05-01
28550         * scripts/install-sh: Update to version 2013-12-25.23.
28551         * scripts/move-if-change: Update from gnulib.
28552
28553 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28554
28555         * debug/memmove_chk.c: Remove pagecopy.h include.
28556
28557 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28558
28559         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
28560         identical to gnulib mktime.
28561
28562 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28563
28564         * configure.ac: Do not test for machine being rs6000.  Do not test
28565         for powerpc*-*soft.
28566         * configure: Regenerated.
28567
28568         [BZ #11505]
28569         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
28570         test.
28571         * configure: Regenerated.
28572         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
28573         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
28574         Remove configure test.
28575         * sysdeps/arm/configure: Regenerated.
28576         * sysdeps/nptl/configure.ac: Do not check
28577         libc_cv_asm_cfi_directives.
28578         * sysdeps/nptl/configure: Regenerated.
28579         * sysdeps/x86_64/nptl/configure.ac: Remove file.
28580         * sysdeps/x86_64/nptl/configure: Remove generated file.
28581         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
28582         unconditional.
28583         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
28584
28585 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28586
28587         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
28588         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
28589         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
28590         it is defined.
28591
28592         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
28593         instead of whether it is defined.
28594         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
28595         * sysdeps/hppa/dl-machine.h: Likewise.
28596         * sysdeps/ia64/dl-machine.h: Likewise.
28597         * sysdeps/m68k/dl-machine.h: Likewise.
28598         * sysdeps/microblaze/dl-machine.h: Likewise.
28599         * sysdeps/mips/dl-machine.: Likewise.
28600         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
28601         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
28602         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
28603         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
28604         * sysdeps/sh/dl-machine.h: Likewise.
28605         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28606         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28607         * sysdeps/tile/dl-machine.h: Likewise.
28608         * sysdeps/x86_64/dl-machine.h: Likewise.
28609
28610         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
28611         code.
28612         (verify_persistent_db): Likewise.
28613
28614 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28615
28616         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
28617         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
28618         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
28619         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
28620         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
28621         Moved ...
28622         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
28623         ... here.
28624         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
28625         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
28626         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
28627         Identical file removed.
28628         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
28629         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
28630         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
28631         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
28632         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
28633         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
28634         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
28635         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
28636         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
28637         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
28638         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
28639         Moved ...
28640         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
28641         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
28642         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
28643         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
28644         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
28645         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
28646         Moved ...
28647         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
28648         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
28649         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
28650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
28651         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
28652         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
28653         Identical file removed.
28654         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
28655         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
28656         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
28657         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
28658         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
28659         Moved ...
28660         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
28661         ... here.
28662         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
28663         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
28664         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
28665         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
28666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
28667         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
28668         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
28669         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
28670         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
28671         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
28672         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
28673         Moved ...
28674         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
28675         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
28676         Moved ...
28677         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
28678         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
28679         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
28680         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
28681         Moved ...
28682         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
28683         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
28684         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
28685
28686         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
28687         folded into ...
28688         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
28689         * sysdeps/unix/sysv/linux/s390/Versions
28690         (libpthread: GLIBC_2.19): New version set.
28691         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
28692         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
28693         (librt: GLIBC_2.3.3): New version set.
28694         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
28695         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
28696         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
28697         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
28698         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
28699         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
28700         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
28701         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
28702         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
28703         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
28704         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
28705         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
28706         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
28707         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
28708         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
28709         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
28710         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
28711         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
28712         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
28713         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
28714         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
28715         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
28716         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
28717         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
28718         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
28719         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
28720         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
28721         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
28722         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
28723         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
28724         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
28725         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
28726         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
28727         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
28728         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
28729         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
28730         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
28731         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
28732         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
28733         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
28734         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
28735         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
28736         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
28737         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
28738         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
28739
28740         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
28741         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
28742         (__libc_vfork): Define the function under this name.
28743         [!NOT_IN_libc] (__vfork): Make this an alias.
28744         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28745         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
28746         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
28747         (__libc_vfork): Define the function under this name.
28748         [!NOT_IN_libc] (__vfork): Make this an alias.
28749         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28750         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
28751         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
28752         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
28753         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
28754         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
28755
28756         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
28757         code that was previously under [RESET_PID].
28758         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
28759         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
28760         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
28761
28762         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
28763         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
28764         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
28765         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
28766         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
28767         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
28768         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
28769         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
28770         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
28771         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
28772         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
28773         Moved ...
28774         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
28775         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
28776         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
28777         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
28778         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
28779         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
28780         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
28781         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
28782         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
28783         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
28784         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
28785         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
28786         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
28787         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
28788         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
28789         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
28790         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
28791         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
28792         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
28793         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
28794         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
28795         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
28796         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
28797         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
28798         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
28799         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
28800         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
28801         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
28802         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
28803
28804 2014-06-25  Roland McGrath  <roland@hack.frob.com>
28805
28806         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
28807         that was previously under [RESET_PID].
28808         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
28809
28810 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
28811
28812         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
28813         not undefine and redefine.
28814         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
28815         [O_CLOEXEC]: Make code unconditional.
28816         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
28817         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
28818         <kernel-features.h>.
28819         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
28820         conditional variable definition.
28821         (shm_open) [O_CLOEXEC]: Make code unconditional.
28822         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
28823         code.
28824
28825         * configure.ac (USE_REGPARMS): Don't define here.
28826         * configure: Regenerated.
28827         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
28828         * sysdeps/i386/configure: Regenerated.
28829
28830         * nptl/createthread.c: Don't include kernel-features.h.
28831         * nptl/pthread_cancel.c: Likewise.
28832         * nptl/pthread_condattr_setclock.c: Likewise.
28833         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
28834         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
28835         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
28836         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
28837         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
28838         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
28839         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
28840         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
28841         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
28842         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
28843         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
28844         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
28845         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
28846         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
28847         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
28848         * nscd/gai.c: Likewise.
28849         * nss/nss_db/db-open.c: Likewise.
28850         * sysdeps/generic/ldsodefs.h: Likewise.
28851         * sysdeps/sh/nptl/tls.h: Likewise.
28852         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28853         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
28854         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
28855         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
28856         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
28857         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28858         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
28859         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
28860         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
28861         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
28862         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
28863         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
28864         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
28865         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
28866         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
28867         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
28868         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
28869         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
28870         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
28871         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
28872         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
28873         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
28874         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
28875         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
28876         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
28877         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
28878         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
28879         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
28880         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
28881         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
28882         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
28883         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
28884         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
28885         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
28886         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
28887         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28888         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
28889         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
28890         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
28891         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
28892         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
28893         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
28894         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
28895         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
28896         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
28897         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
28898         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
28899         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
28900         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
28901         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
28902         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
28903         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
28904         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
28905         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28906         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
28907         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
28908         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
28909         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
28910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
28911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
28912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
28913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
28914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
28915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
28916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
28917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
28918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
28919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
28920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
28921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
28922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
28923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
28924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
28925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
28926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
28927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
28928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
28929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
28930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
28931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
28932         * sysdeps/unix/sysv/linux/pread.c: Likewise.
28933         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
28934         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
28935         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
28936         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
28937         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
28938         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
28939         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
28940         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
28941         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
28942         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
28943         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
28944         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
28945         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
28946         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
28947         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
28948         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
28949         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
28950         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
28951         * sysdeps/unix/sysv/linux/system.c: Likewise.
28952         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
28953         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
28954         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28955         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28956         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
28957         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28958         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
28959
28960         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
28961         * configure: Regenerated.
28962         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
28963
28964         * configure.ac (base_machine): Do not set specially for particular
28965         machines here.
28966         * configure: Regenerated.
28967         * sysdeps/powerpc/preconfigure: Move machine and base_machine
28968         settings from configure.ac.
28969         * sysdeps/i386/preconfigure: New file.
28970         * sysdeps/s390/preconfigure: Likewise.
28971         * sysdeps/sh/preconfigure: Likewise.
28972         * sysdeps/sparc/preconfigure: Likewise.
28973
28974 2014-06-25  Roland McGrath  <roland@hack.frob.com>
28975
28976         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
28977         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
28978         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
28979         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
28980         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
28981         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
28982         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
28983         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
28984         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
28985         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
28986         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
28987         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
28988         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
28989         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
28990         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
28991         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
28992         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
28993         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
28994         * sysdeps/sparc/sparc64/Makefile: ... appended here.
28995
28996         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
28997         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
28998         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
28999         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29000         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29001         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29002         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29003         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29004         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29005         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29006         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29007         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29008         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29009         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29010         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29011         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29012         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29013         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29014         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29015         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29016         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29017         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29018         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29019         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29020         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29021         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29022         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29023         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29024         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29025         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29026         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29027         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29028         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29029         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29030         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29031         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29032         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29033         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29034
29035         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29036         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29037         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29038         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29039         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29040         Moved ...
29041         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29042         ... here.
29043         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29044         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29045         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29046         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29047         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29048         Moved ...
29049         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29050         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29051         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29052         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29053         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29054         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29055         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29056         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29057         Moved ...
29058         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29059         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29060         Moved ...
29061         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29062         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29063         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29064         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29065         Moved ...
29066         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29068         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29069         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29070         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29071         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29072         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29073         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29074         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29075         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29076         Moved ...
29077         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29078         ... here.
29079         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29080         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29081         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29082         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29083         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29084         Moved ...
29085         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29086         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29087         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29088         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29089         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29090         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29091         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29092         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29093         Moved ...
29094         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29095         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29096         Moved ...
29097         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29098         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29099         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29100         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29101         Moved ...
29102         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29103         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29104         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29105         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29106         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29107
29108 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29109
29110         * timezone/checktab.awk: Update from tzcode 2014e.
29111         * timezone/private.h: Likewise.
29112         * timezone/tzfile.h: Likewise.
29113         * timezone/zdump.c: Likewise.
29114         * timezone/zic.c: Likewise.
29115
29116         * sysdeps/unix/sysv/linux/kernel-features.h
29117         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29118         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29119         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29120         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29121         Remove conditional code.
29122
29123 2014-06-25  Will Newton  <will.newton@linaro.org>
29124
29125         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29126         (_dl_arm_cap_flags): Add HWCAP2 values.
29127         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29128         (_DL_HWCAP_COUNT): Increase to 37.
29129         (_DL_HWCAP_LAST): New define.
29130         (_DL_HWCAP2_LAST): New define.
29131         (_dl_procinfo): Add support for printing
29132         AT_HWCAP2 entries.
29133         (_dl_string_hwcap): Use _dl_hwcap_string.
29134
29135 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29136
29137         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29138
29139 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29140
29141         * README: Do not mention ports directory.
29142
29143         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29144         Remove macro.
29145         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29146         <kernel-features.h>.
29147         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29148         conditional variable definition.
29149         (__futimes): Update comment.
29150         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29151         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29152
29153         [BZ #16560]
29154         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29155         arguments close to 0.
29156         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29157         Likewise.
29158         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29159         Likewise.
29160         * math/auto-libm-test-in: Add more tests of exp10.
29161         * math/auto-libm-test-out: Regenerated.
29162         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29163
29164         * sysdeps/unix/sysv/linux/kernel-features.h
29165         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29166         * sysdeps/unix/sysv/linux/readv.c: Do not include
29167         <kernel-features.h>.
29168         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29169         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29170         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29171         unconditional.
29172         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29173         conditional code.
29174         * sysdeps/unix/sysv/linux/writev.c: Do not include
29175         <kernel-features.h>.
29176         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29177         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29178         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29179         unconditional.
29180         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29181         conditional code.
29182
29183 2014-06-25  Will Newton  <will.newton@linaro.org>
29184
29185         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29186         comment changes throughout the file.  Remove checks
29187         for HAVE_*_H definitions that are not required.
29188         (__gen_tempname): Call abort if an unknown kind value is
29189         passed.
29190
29191 2014-06-25  Andreas Schwab  <schwab@suse.de>
29192
29193         [BZ #17086]
29194         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29195         scalbln, scalblnf, scalblnl in libc.
29196
29197 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29198
29199         [BZ #17086]
29200         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29201         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29202         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29203
29204 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29205
29206         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29207         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29208         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29209         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29210         Update #include.
29211         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29212         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29213         Update #include.
29214         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29215         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29216         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29217         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29218         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29219         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29220         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29221         * sysdeps/x86/bits/semaphore.h: ... here.
29222         * sysdeps/x86/nptl/elide.h: Moved ...
29223         * sysdeps/x86/elide.h: ... here.
29224         * sysdeps/x86_64/nptl/Implies: File removed.
29225         * sysdeps/i386/nptl/Implies: File removed.
29226
29227 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29228
29229         [BZ #16539]
29230         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29231         return the argument for normal arguments with exponent below -64.
29232         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29233         Likewise.
29234         * math/auto-libm-test-in: Add another test of expm1.
29235         * math/auto-libm-test-out: Regenerated.
29236
29237         [BZ #16287]
29238         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29239         calling __erfcl for arguments at least 16.
29240         * math/auto-libm-test-in: Add more tests of erf.
29241         * math/auto-libm-test-out: Regenerated.
29242
29243         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29244         individual architectures.
29245         * sysdeps/unix/sysv/linux/configure: Regenerated.
29246         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29247         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29248         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29249         (ldd_rewrite_script): Define variable.
29250         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29252         file.
29253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29254         generated file.
29255         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29256         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29257         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29258         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29259         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29260         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29261         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29262         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29263
29264 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29265
29266         [BZ #17084]
29267         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29268         Rename member __data.d to __data.__elision_data.
29269
29270 2014-06-24  Wilco  <wdijkstr@arm.com>
29271
29272         * NEWS: Add 16918 to fixed bug list.
29273
29274 2014-06-24  Wilco  <wdijkstr@arm.com>
29275
29276         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29277
29278 2014-06-24  Wilco  <wdijkstr@arm.com>
29279
29280         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29281         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29282         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29283         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29284         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29285         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29286         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29287         Use _FPU_MASK_RM.
29288
29289 2014-06-24  Wilco  <wdijkstr@arm.com>
29290
29291         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29292
29293 2014-06-24  Wilco  <wdijkstr@arm.com>
29294
29295         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29296         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29297         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29298         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29299
29300 2014-06-24  Wilco  <wdijkstr@arm.com>
29301
29302         [BZ #16918]
29303         * sysdeps/arm/feupdateenv.c (feupdateenv):
29304         Rewrite to reduce FPSCR accesses and fix return value.
29305
29306 2014-06-24  Wilco  <wdijkstr@arm.com>
29307
29308         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29309         Optimize to avoid unnecessary FPSCR writes.
29310         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29311         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29312         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29313         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29314
29315 2014-06-24  Wilco  <wdijkstr@arm.com>
29316
29317         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29318         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29319         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29320         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29321         Call libc_fetestexcept_vfp.
29322         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29323         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29324         __SOFTFP__ ifdef so that they can be built for softfp.
29325
29326 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29327
29328         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29329         argument type signed char.
29330
29331         * Makerules (check-abi): Dump diff of symlist if the test
29332         fails.
29333
29334 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29335
29336         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29337         using abort.
29338
29339         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29340         Remove unused variable ST.
29341
29342 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29343
29344         [BZ #16354]
29345         [BZ #17061]
29346         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29347         small arguments before calling __expm1.
29348         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29349         small arguments before calling __expm1f.
29350         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29351         small arguments before calling __expm1l.
29352         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29353         Likewise.
29354         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29355         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29356         spurious underflow for some cosh tests.
29357         * math/auto-libm-test-out: Regenerated.
29358         * sysdeps/i386/fpu/libm-test-ulps: Update.
29359
29360         [BZ #17050]
29361         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29362         (__ieee754_y1): Set errno if return value overflows.
29363         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29364         (__ieee754_y1f): Set errno if return value overflows.
29365         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29366         (__ieee754_y1l): Set errno if return value overflows.
29367         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29368         (__ieee754_y1l): Set errno if return value overflows.
29369         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29370         * math/auto-libm-test-out: Regenerated.
29371
29372         * math/gen-auto-libm-tests.c: Document use of
29373         ignore-zero-inf-sign.
29374         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29375         (input_flags): Add ignore-zero-inf-sign.
29376         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29377         * math/gen-libm-test.pl (generate_testfile): Handle
29378         ignore-zero-inf-sign.
29379         * math/auto-libm-test-in: Mark some cpow tests with
29380         ignore-zero-inf-sign and some with xfail-rounding.
29381         * math/auto-libm-test-out: Regenerated.
29382         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29383         * sysdeps/i386/fpu/libm-test-ulps: Update.
29384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29385
29386         [BZ #16315]
29387         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29388         overflowing or underflowing operations take place with sign of
29389         result.
29390         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29391         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29392         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29393         (__ieee754_pow): Recompute overflowing and underflowing results in
29394         original rounding mode.
29395         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29396         (__powl_helper): Allow negative argument X and scale negated value
29397         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29398         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29399         overflowing or underflowing operations take place with sign of
29400         result.
29401         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29402         Include <math.h>.
29403         * math/auto-libm-test-in: Add more tests of pow.
29404         * math/auto-libm-test-out: Regenerated.
29405         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29406         (pow_tonearest_test_data): Remove.
29407         (pow_test_tonearest): Likewise.
29408         (pow_towardzero_test_data): Likewise.
29409         (pow_test_towardzero): Likewise.
29410         (pow_downward_test_data): Likewise.
29411         (pow_test_downward): Likewise.
29412         (pow_upward_test_data): Likewise.
29413         (pow_test_upward): Likewise.
29414         (main): Don't call removed functions.
29415         * sysdeps/i386/fpu/libm-test-ulps: Update.
29416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29417
29418 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29419
29420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29421         Moved ...
29422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29424         Moved ...
29425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29427         Moved ...
29428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29430         Moved ...
29431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29433         File removed.
29434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29435         File removed.
29436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29437         File removed.
29438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29439         File removed.
29440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29441         File removed.
29442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29443         File removed.
29444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29445         File removed.
29446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29447         File removed.
29448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29449         File removed.
29450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29451         File removed.
29452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29453         File removed.
29454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29455         File removed.
29456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29457         Moved ...
29458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29460         Moved ...
29461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29462         ... here.
29463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29464         Moved ...
29465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29467         Moved ...
29468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29470         Moved ...
29471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29473         Moved ...
29474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29476         Moved ...
29477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29479         Moved ...
29480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29482         Moved ...
29483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29486         ... here.
29487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29488         Moved ...
29489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29491         Moved ...
29492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29493         ... here.
29494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29495         Moved ...
29496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29497         ... here.
29498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29499         Moved ...
29500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29501         ... here.
29502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29503         Moved ...
29504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29506         Moved ...
29507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29511         Moved ...
29512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29513         ... here.
29514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29515         Moved ...
29516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29517         ... here.
29518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29519         Moved ...
29520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29522         Moved ...
29523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29525         Moved ...
29526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29528         Moved ...
29529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29531         Moved ...
29532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29533         ... here.
29534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29535         Moved ...
29536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29538         Moved ...
29539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29541         Moved ...
29542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29544         Moved ...
29545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29549         Moved ...
29550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
29552         Moved ...
29553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
29554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
29555         Moved ...
29556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
29557         ... here.
29558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
29559         Moved ...
29560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
29561         ... here.
29562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
29563         Moved ...
29564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
29565         ... here.
29566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
29567         Moved ...
29568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
29569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
29570         Moved ...
29571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
29572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
29573         Moved ...
29574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
29575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
29576         Moved ...
29577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
29578         ... here.
29579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
29580         Moved ...
29581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
29582         ... here.
29583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
29584         Moved ...
29585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
29586         ... here.
29587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
29588         Moved ...
29589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
29590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29591         Moved ...
29592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
29593
29594 2014-06-23  Will Newton  <will.newton@linaro.org>
29595             Wilco  <wdijkstr@arm.com>
29596
29597         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
29598         implementation.  Include get-rounding-mode.h.
29599         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
29600         [!libc_feholdsetround_noex_ctx]: Define
29601         libc_feholdsetround_noex_ctx.
29602         [!libc_feholdsetround_noexf_ctx]: Define
29603         libc_feholdsetround_noexf_ctx.
29604         [!libc_feholdsetround_noexl_ctx]: Define
29605         libc_feholdsetround_noexl_ctx.
29606         (libc_feholdsetround_ctx): New function.
29607         (libc_feresetround_ctx): New function.
29608         (libc_feholdsetround_noex_ctx): New function.
29609         (libc_feresetround_noex_ctx): New function.
29610
29611 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29612
29613         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
29614         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
29615         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
29616         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
29617         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
29618         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
29619
29620         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
29621         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
29622         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
29623         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
29624         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
29625         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
29626         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
29627         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
29628         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
29629         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
29630         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
29631         Moved ...
29632         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
29633         ... here.
29634         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
29635         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
29636         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
29637         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
29638         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
29639         Moved ...
29640         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
29641         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
29642         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
29643         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
29644         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
29645         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
29646         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
29647         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
29648         Moved ...
29649         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
29650         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
29651         Moved ...
29652         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
29653         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
29654         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
29655         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
29656         Moved ...
29657         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
29658         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
29659         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
29660         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
29661         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
29662         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
29663         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
29664         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
29665         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
29666         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
29667         Moved ...
29668         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
29669         ... here.
29670         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
29671         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
29672         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
29673         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
29674         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
29675         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
29676         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
29677         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
29678         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
29679         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
29680         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
29681         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
29682         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
29683         Moved ...
29684         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
29685         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
29686         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
29687         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
29688         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
29689         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
29690         Moved ...
29691         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
29692         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
29693         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
29694         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
29695         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
29696
29697         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
29698         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
29699         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
29700         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
29701         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
29702         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
29703         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
29704         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
29705         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
29706         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
29707         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
29708         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
29709         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
29710         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
29711         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
29712         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
29713         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
29714         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
29715         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
29716         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
29717         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
29718         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
29719         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
29720         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
29721         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
29722         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
29723         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
29724         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
29725
29726 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29727
29728         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29729         (FALLOC_FL_COLLAPSE_RANGE): New macro.
29730         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
29731         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
29732         (IPV6_PMTUDISC_INTERFACE): Likewise.
29733         (IPV6_PMTUDISC_OMIT): Likewise.
29734
29735 2014-06-23  Andreas Schwab  <schwab@suse.de>
29736
29737         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
29738         Remove unused errout label.
29739
29740 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29741
29742         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
29743         macro: hardware supports Vector Crypto instructions.
29744
29745 2014-06-23  Will Newton  <will.newton@linaro.org>
29746
29747         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
29748         rather than __builtin_expect.
29749
29750         * elf/dl-lookup.c (undefined_msg): Remove variable.
29751         (_dl_lookup_symbol_x): Replace undefined_msg with string
29752         literal.
29753
29754         * elf/dl-lookup.c (do_lookup_unique): New function.
29755         (do_lookup_x): Move STB_GNU_UNIQUE handling code
29756         to a separate function.
29757
29758 2014-06-23  Andreas Schwab  <schwab@suse.de>
29759
29760         [BZ #17079]
29761         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
29762         before reading the next line.
29763
29764 2014-06-23  Will Newton  <will.newton@linaro.org>
29765
29766         * test-skeleton.c (signal_handler): Use printf and %m
29767         rather than perror.  Use printf rather than fprintf to
29768         stderr.  Use puts rather than fputs to stderr.
29769         (main): Likewise.
29770
29771 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
29772
29773         * nscd/nscd.c (thread_info_t): Remove typedef.
29774         (thread_info): Remove variable.
29775
29776 2014-06-21  Allan McRae  <allan@archlinux.org>
29777
29778         * NEWS: Mention CVE-2014-4043.
29779
29780 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29781
29782         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
29783         * nptl/smp.h: ... here.
29784
29785         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
29786
29787         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
29788         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
29789         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
29790         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
29791
29792         * nptl/allocatestack.c: Include <stack-aliasing.h>.
29793         * nptl/stack-aliasing.h: New file.
29794         * sysdeps/i386/i686/stack-aliasing.h: New file.
29795         * sysdeps/i386/i686/nptl/Makefile: File removed.
29796         * sysdeps/x86_64/stack-aliasing.h: New file.
29797         * sysdeps/x86_64/nptl/Makefile
29798         (CFLAGS-pthread_create.c): Variable removed.
29799
29800         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
29801         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
29802         old file.
29803         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
29804         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
29805         old file.
29806
29807 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
29808
29809         * sysdeps/unix/sysv/linux/arm/kernel-features.h
29810         (__ASSUME_SIGFRAME_V2): Remove macro.
29811         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
29812         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
29813         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
29814         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
29815         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
29816         Declare as function.  Remove conditional macro definitions.
29817         (__default_rt_sa_restorer): Likewise.
29818         (__default_sa_restorer_v1): Remove declaration.
29819         (__default_sa_restorer_v2): Likewise.
29820         (__default_rt_sa_restorer_v1): Likewise.
29821         (__default_rt_sa_restorer_v2): Likewise.
29822         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
29823         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
29824         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
29825
29826 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29827
29828         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
29829         (libpthread-routines): Add sysdep.
29830         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
29831         * sysdeps/unix/sysv/linux/sparc/Versions
29832         (libpthread: GLIBC_2.3.3): New version set.
29833         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
29834         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
29835         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
29836         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
29837         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
29838         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
29839         Moved ...
29840         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
29841         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
29842         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
29843         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
29844         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
29845         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
29846         * sysdeps/sparc/nptl/sem_init.c: ... here.
29847         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
29848         * sysdeps/sparc/nptl/sem_post.c: ... here.
29849         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
29850         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
29851         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
29852         * sysdeps/sparc/nptl/sem_wait.c: ... here.
29853         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
29854         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
29855         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
29856         (libpthread-routines): Add cpu_relax.
29857         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
29858         File removed.
29859         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
29860         (librt: GLIBC_2.3.3): New version set.
29861         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
29862         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
29863         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
29864         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
29865         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
29866         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
29867         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
29868         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
29869         Moved ...
29870         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
29871         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
29872         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
29873         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
29874         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
29875         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
29876         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
29877         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
29878         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
29879         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
29880         Moved ...
29881         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
29882         Update #include.
29883         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
29884         Moved ...
29885         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
29886         Update #include.
29887         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
29888         Moved ...
29889         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
29890         Update #include.
29891         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
29892         Moved ...
29893         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
29894         Update #include.
29895         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
29896         Moved ...
29897         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
29898         Update #include.
29899         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
29900         Moved ...
29901         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
29902         Update #include.
29903         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
29904         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
29905         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
29906         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
29907         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
29908         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
29909         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
29910         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
29911         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
29912         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
29913         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
29914         Moved ...
29915         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
29916         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
29917         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
29918         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
29919         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
29920
29921 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
29922
29923         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
29924         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
29925         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
29926         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
29927         * nscd/nscd.c: Likewise.
29928         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
29929         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
29930         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
29931         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
29932
29933         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
29934         <kernel-features.h>.
29935         (init_mq_netlink): Remove conditional have_sock_cloexec
29936         definitions.  Remove code conditional on have_sock_cloexec < 0.
29937         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
29938         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
29939         * sysdeps/unix/sysv/linux/opensock.c: Do not include
29940         <kernel-features.h>.
29941         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
29942         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
29943
29944 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
29945
29946         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
29947         Add tests for memset_chk and memset.
29948
29949         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
29950         with AVX2_Usable.
29951
29952 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
29953
29954         [BZ #16046]
29955         * elf/tst-dl-iter-static.c: New file.
29956         * elf/Makefile (tests-static): Add tst-dl-iter-static.
29957
29958         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
29959         error.
29960
29961 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
29962
29963         * sysdeps/unix/sysv/linux/kernel-features.h
29964         (__ASSUME_F_GETOWN_EX): Remove macro.
29965         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
29966         <kernel-features.h>.
29967         (miss_F_GETOWN_EX): Remove variable or macro.
29968         (do_fcntl): Do not check miss_F_GETOWN_EX.
29969         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
29970
29971         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
29972         Remove macro.
29973         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
29974         [!__ASSUME_AT_RANDOM]: Remove conditional code.
29975         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
29976
29977         * sysdeps/unix/sysv/linux/kernel-features.h
29978         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
29979         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
29980         [ADJ_OFFSET_SS_READ]: Make code unconditional.
29981         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
29982
29983 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
29984
29985         [BZ #17075]
29986         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
29987         Fix calculation of the symbol's value.
29988         * sysdeps/arm/tst-armtlsdescloc.c: New file.
29989         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
29990         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
29991         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
29992         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
29993         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
29994         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
29995         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
29996         (modules-names): Add `tst-armtlsdescmod',
29997         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
29998         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
29999         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30000         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30001         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30002         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30003         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30004         ($(objpfx)tst-armtlsdescloc): New dependency.
30005         ($(objpfx)tst-armtlsdescextnow): Likewise.
30006         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30007         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30008         TLS scheme support.
30009         * sysdeps/arm/configure: Regenerate.
30010
30011 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30012
30013         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30014         (__atfct_seterrno_2): Likewise.
30015         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30016         <kernel-features.h>.
30017         (__ASSUME_ATFCTS): Do not undefine and redefine.
30018         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30019         (__have_atfcts): Remove conditional definition.
30020         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30021         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30022         unreachable if [__ASSUME_ATFCTS].
30023         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30024         not undefine and redefine.
30025         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30026         <kernel-features.h>.
30027         (faccessat) [__NR_faccessat]: Make code unconditional.
30028         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30029         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30030         <kernel-features.h>.
30031         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30032         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30033         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30034         <kernel-features.h>.
30035         (fchownat) [__NR_fchownat]: Make code unconditional.
30036         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30037         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30038         <kernel-features.h>.
30039         (futimesat) [__NR_futimesat]: Make code unconditional.
30040         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30041         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30042         <kernel-features.h>.
30043         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30044         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30045         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30046         <kernel-features.h>.
30047         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30048         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30049         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30050         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30051         <kernel-features.h>.
30052         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30053         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30054         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30055         <kernel-features.h>.
30056         (linkat) [__NR_linkat]: Make code unconditional.
30057         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30058         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30059         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30060         <kernel-features.h>.
30061         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30062         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30063         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30064         <kernel-features.h>.
30065         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30066         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30067         * sysdeps/unix/sysv/linux/openat.c: Do not include
30068         <kernel-features.h>.
30069         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30070         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30071         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30072         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30073         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30074         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30075         <kernel-features.h>.
30076         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30077         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30078         result of INLINE_SYSCALL directly, not via int variable.
30079         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30080         <kernel-features.h>.
30081         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30082         (renameat) [__NR_renameat]: Make code unconditional.
30083         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30084         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30085         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30086         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30087         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30088         (__ASSUME_ATFCTS): Do not undefine and redefine.
30089         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30090         <kernel-features.h>.
30091         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30092         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30093         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30094         <kernel-features.h>.
30095         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30096         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30097         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30098         (__ASSUME_ATFCTS): Do not undefine and redefine.
30099         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30100         <kernel-features.h>.
30101         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30102         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30103         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30104         <kernel-features.h>.
30105         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30106         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30107
30108 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30109
30110         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30111
30112 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30113
30114         [BZ #17069]
30115         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30116         constructed tree before returning error.
30117         * posix/bug-regexp36.c: Expand test case.
30118
30119 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30120
30121         [BZ #6803]
30122         * math/libm-test.inc (scalbln_test_date):
30123         Add errno expectations.
30124         * math/w_scalblnf.c: New File.
30125         Add wrapper which checks for setting errno to ERANGE.
30126         Add weak_alias for corresponding scalbln function.
30127         * math/w_scalbln.c: Likewise.
30128         * math/w_scalblnl.c: Likewise.
30129         * math/Makefile (libm-calls): Add w_scalbln.
30130         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30131         Remove weak_alias for corresponding scalbln function.
30132         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30133         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30134         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30135         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30136         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30137         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30138         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30139         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30140         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30141         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30142         Remove long_double_symbol for scalblnl function in libm, libc.
30143         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30144         Add wrapper which checks for setting errno to ERANGE.
30145         Add long_double_symbol for scalblnl function in libm, libc.
30146         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30147         Remove long_double_symbol for scalblnl in libm.
30148         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30149         Add wrapper which checks for setting errno to ERANGE.
30150         Add long_double_symbol for scalblnl function in libm.
30151         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30152         Do not use wrapper because of own implementation.
30153
30154 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30155
30156         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30157         3 bytes for __pad1 for x32.
30158         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30159
30160 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30161             H.J. Lu  <hongjiu.lu@intel.com>
30162
30163         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30164         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30165         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30166         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30167         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30168
30169 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30170
30171         [BZ #17069]
30172         * posix/regcomp.c (parse_expression): Deallocate partially
30173         constructed tree before returning error.
30174         * posix/Makefile.c (tests): Add bug-regex36.
30175         (generated): Add bug-regex36.mtrace.
30176         (tests-special): Add $(objpfx)bug-regex36-mem.out
30177         (bug-regex36-ENV): New variable.
30178         ($(objpfx)bug-regex36-mem.out): New rule.
30179         * posix/bug-regex36.c: New file.
30180
30181 2014-06-19  Will Newton  <will.newton@linaro.org>
30182
30183         * malloc/malloc.c (systrim): If extra is zero then return
30184         early.
30185
30186 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30187
30188         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30189
30190 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30191
30192         * sysdeps/aarch64/strchr.S: New file.
30193
30194 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30195
30196         [BZ #17022]
30197         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30198         from arguments -2 or below.
30199         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30200         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30201
30202 2014-06-18  Andreas Schwab  <schwab@suse.de>
30203
30204         [BZ #17062]
30205         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30206         of a bracket expr not to run off the end of the string.
30207         * posix/Makefile (tests): Add tst-fnmatch3.
30208         * posix/tst-fnmatch3.c: New file.
30209
30210 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30211
30212         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30213         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30214         [$(cross-compiling) = no]: Likewise.
30215         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30216         [$(cross-compiling) = no]: Likewise.
30217
30218 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30219
30220         [BZ #17031]
30221         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30222         double, adjusted for any remainder from the high double.
30223         * math/libm-test.inc (nearbyint): Add tests.
30224         (rint): Likewise.
30225
30226 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30227
30228         * nptl/sysdeps/powerpc/Makefile: Moved ...
30229         * sysdeps/powerpc/nptl/Makefile: ... here.
30230         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30231         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30232         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30233         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30234         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30235         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30236         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30237         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30238         * nptl/sysdeps/powerpc/tls.h: Moved ...
30239         * sysdeps/powerpc/nptl/tls.h: ... here.
30240
30241 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30242
30243         [BZ #16681]
30244         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30245         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30246         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30247         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30248         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30249         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30250         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30251         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30252         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30253
30254 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30255
30256         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30257
30258 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30259
30260         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30261         defined operator.
30262
30263         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30264         $TIMEOUTFACTOR.
30265
30266 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30267
30268         [BZ #17058]
30269         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30270         non-executed part of the test.
30271
30272 2014-06-16  Andreas Schwab  <schwab@suse.de>
30273
30274         * string/bits/string2.h (strdup, strndup): Update feature guard.
30275
30276 2014-06-14  David S. Miller  <davem@davemloft.net>
30277
30278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30279
30280 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30281
30282         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30283         that was previously under [RESET_PID].
30284         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30285
30286         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30287         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30288         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30289         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30290         (__libc_vfork): New strong alias.
30291         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30292
30293 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30294
30295         * sysdeps/generic/elide.h: New file.
30296
30297 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30298
30299         * Makefile (installed-headers): Adjust path of pthread.h header.
30300
30301 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30302
30303         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30304         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30305         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30306         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30307
30308         * nptl/sysdeps/s390/Makefile: Moved ...
30309         * sysdeps/s390/nptl/Makefile: ... here.
30310         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30311         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30312         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30313         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30314         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30315         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30316         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30317         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30318         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30319         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30320         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30321         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30322         * nptl/sysdeps/s390/tls.h: Moved ...
30323         * sysdeps/s390/nptl/tls.h: ... here.
30324
30325         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30326         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30327
30328 2014-06-13  David S. Miller  <davem@davemloft.net>
30329
30330         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30331         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30332         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30333         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30334         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30335         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30336         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30337         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30338         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30339         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30340         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30341         Remove RESET_PID cpp guards.
30342         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30343         Remove RESET_PID cpp guards.
30344         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30345
30346 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30347
30348         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30349         __sp to uintptr_t.
30350
30351 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30352
30353         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30354         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30355         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30356         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30357         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30358         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30359         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30360         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30361         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30362         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30363         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30364         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30365         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30366         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30367         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30368         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30369         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30370         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30371         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30372         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30373
30374         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30375         (pthread_rwlock_rdlock): Add elision.
30376         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30377         (pthread_rwlock_wrlock): Add elision.
30378         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30379         (pthread_rwlock_trywrlock): Add elision.
30380         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30381         (pthread_rwlock_tryrdlock): Add elision.
30382         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30383         (pthread_rwlock_tryrdlock): Add elision unlock.
30384         * nptl/sysdeps/pthread/pthread.h:
30385         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30386         (PTHREAD_RWLOCK_INITIALIZER,
30387         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30388         Handle new elision field.
30389         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30390         * sysdeps/arm/nptl/bits/pthreadtypes.h
30391         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30392         * sysdeps/sh/nptl/bits/pthreadtypes.h
30393         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30394         * sysdeps/tile/nptl/bits/pthreadtypes.h
30395         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30396         * sysdeps/a/nptl/bits/pthreadtypes.h
30397         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30398         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30399         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30400         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30401         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30402         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30403         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30404         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30405         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30406         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30407         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30408         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30409         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30410         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30411         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30412         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30413         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30414         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30415         (elision_init): Set try_xbegin to zero when no RTM.
30416         * sysdeps/x86/nptl/bits/pthreadtypes.h
30417         (pthread_rwlock_t): Change __pad1 to __rwelision.
30418         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30419
30420 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30421
30422         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30423         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30424         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30425         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30426
30427 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30428
30429         [BZ #16996]
30430         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30431         that the cached result has been set before returning it.
30432
30433 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30434
30435         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30436         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30437         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30438         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30439         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30440         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30441
30442         * nptl/sysdeps/sparc/Makefile: Moved ...
30443         * sysdeps/sparc/nptl/Makefile: ... here.
30444         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30445         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30446         * nptl/sysdeps/sparc/tls.h: Moved ...
30447         * sysdeps/sparc/nptl/tls.h: ... here.
30448         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30449         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30450         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30451         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30452         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30453         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30454         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30455         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30456         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30457         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30458         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30459         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30460         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30461         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30462         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30463         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30464         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30465         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30466         Update #include.
30467         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30468         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30469         Update #include.
30470         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30471         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30472         Update #include.
30473         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30474         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30475         Update #include.
30476
30477         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30478
30479         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30480         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30481
30482         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30483         (struct list_links): Type removed.
30484         (struct thread_node, struct timer_node): Replace struct list_links
30485         with struct list_head.
30486         (list_unlink_ip): Likewise.
30487         * sysdeps/pthread/timer_routines.c
30488         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30489         (list_append, list_insbefore): Likewise.
30490         (list_init): Function removed.
30491         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30492         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30493         * sysdeps/pthread/Makefile: ... here, new file.
30494
30495         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30496         * sysdeps/nptl/Implies: ... here.
30497         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30498         * nptl/sysdeps/pthread/list.h: Moved ...
30499         * include/list.h: ... here.
30500         * nptl/sysdeps/pthread/createthread.c: Moved ...
30501         * nptl/createthread.c: ... here.
30502         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30503         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30504         * nptl/pt-longjmp.c: ... here.
30505         * nptl/sysdeps/pthread/Makefile: Moved ...
30506         * sysdeps/nptl/Makefile: ... here.
30507         * nptl/sysdeps/pthread/Subdirs: Moved ...
30508         * sysdeps/nptl/Subdirs: ... here.
30509         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30510         * sysdeps/nptl/aio_misc.h: ... here.
30511         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30512         * sysdeps/nptl/bits/libc-lock.h: ... here.
30513         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30514         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30515         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30516         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30517         * nptl/sysdeps/pthread/configure: Moved ...
30518         * sysdeps/nptl/configure: ... here.
30519         * nptl/sysdeps/pthread/configure.ac: Moved ...
30520         * sysdeps/nptl/configure.ac: ... here.
30521         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30522         * sysdeps/nptl/gai_misc.h: ... here.
30523         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30524         * sysdeps/nptl/librt-cancellation.c: ... here.
30525         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30526         * sysdeps/nptl/malloc-machine.h: ... here.
30527         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30528         * sysdeps/nptl/pthread-functions.h: ... here.
30529         * nptl/sysdeps/pthread/pthread.h: Moved ...
30530         * sysdeps/nptl/pthread.h: ... here.
30531         * nptl/sysdeps/pthread/setxid.h: Moved ...
30532         * sysdeps/nptl/setxid.h: ... here.
30533         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30534         * sysdeps/nptl/sigfillset.c: ... here.
30535         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30536         * sysdeps/nptl/tcb-offsets.h: ... here.
30537         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30538         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30539         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30540         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30541         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30542         * sysdeps/pthread/allocalim.h: ... here.
30543         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30544         * sysdeps/pthread/bits/sigthread.h: ... here.
30545         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30546         * sysdeps/pthread/flockfile.c: ... here.
30547         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30548         * sysdeps/pthread/ftrylockfile.c: ... here.
30549         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30550         * sysdeps/pthread/funlockfile.c: ... here.
30551         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
30552         * sysdeps/pthread/posix-timer.h: ... here.
30553         * nptl/sysdeps/pthread/timer_create.c: Moved ...
30554         * sysdeps/pthread/timer_create.c: ... here.
30555         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
30556         * sysdeps/pthread/timer_delete.c: ... here.
30557         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
30558         * sysdeps/pthread/timer_getoverr.c: ... here.
30559         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
30560         * sysdeps/pthread/timer_gettime.c: ... here.
30561         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
30562         * sysdeps/pthread/timer_routines.c: ... here.
30563         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
30564         * sysdeps/pthread/timer_settime.c: ... here.
30565         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
30566         * sysdeps/pthread/tst-timer.c: ... here.
30567         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
30568         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
30569
30570         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
30571         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
30572
30573         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
30574         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
30575         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
30576         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
30577         Update #include target.
30578         * nptl/sysdeps/i386/i686/Makefile: Moved ...
30579         * sysdeps/i386/i686/nptl/Makefile: ... here.
30580         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
30581         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
30582         Update #include target.
30583         * nptl/sysdeps/i386/i686/tls.h: Moved ...
30584         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
30585         * nptl/sysdeps/i386/Makefile: Moved ...
30586         * sysdeps/i386/nptl/Makefile: ... here.
30587         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
30588         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
30589         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
30590         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
30591         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
30592         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
30593         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
30594         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
30595         * sysdeps/i386/nptl/pthreaddef.h: ... here.
30596         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
30597         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
30598         * nptl/sysdeps/i386/tls.h: Moved ...
30599         * sysdeps/i386/nptl/tls.h: ... here.
30600
30601         * sysdeps/sh/Makefile [$(subdir) = csu]
30602         (gen-as-const-headers): Add tcb-offsets.sym.
30603         * nptl/sysdeps/sh/Makefile: File removed.
30604         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
30605         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
30606         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
30607         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
30608         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
30609         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
30610         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
30611         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
30612         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
30613         * sysdeps/sh/nptl/pthreaddef.h: ... here.
30614         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
30615         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
30616         * nptl/sysdeps/sh/tls.h: Moved ...
30617         * sysdeps/sh/nptl/tls.h: ... here.
30618         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
30619         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
30620         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
30621         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
30622         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
30623         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
30624         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
30625         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
30626         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
30627         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
30628         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
30629         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
30630         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
30631         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
30632         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
30633         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
30634         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
30635         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
30636         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
30637         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
30638         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
30639         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
30640         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
30641         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
30642         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
30643         Moved ...
30644         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
30645         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
30646         Moved ...
30647         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
30648         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
30649         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
30650         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
30651         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
30652         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
30653         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
30654         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
30655         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
30656         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
30657         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
30658         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
30659         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
30660         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
30661         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
30662         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
30663         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
30664         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
30665         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
30666
30667 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
30668
30669         * posix/spawn_faction_addopen.c: Include string.h.
30670
30671 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30672
30673         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
30674         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
30675         * nptl/sysdeps/x86_64/Makefile: Moved ...
30676         * sysdeps/x86_64/nptl/Makefile: ... here.
30677         * nptl/sysdeps/x86_64/configure: Moved ...
30678         * sysdeps/x86_64/nptl/configure: ... here.
30679         * nptl/sysdeps/x86_64/configure.ac: Moved ...
30680         * sysdeps/x86_64/nptl/configure.ac: ... here.
30681         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
30682         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
30683         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
30684         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
30685         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
30686         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
30687         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
30688         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
30689         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
30690         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
30691         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
30692         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
30693         * nptl/sysdeps/x86_64/tls.h: Moved ...
30694         * sysdeps/x86_64/nptl/tls.h: ... here.
30695         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
30696         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
30697         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
30698         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
30699
30700         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
30701
30702 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30703
30704         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30705
30706 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
30707
30708         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
30709         type.
30710         [POSIX] (off_t): Likewise.
30711         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
30712         [POSIX] (S_ISBLK): Require macro.
30713         [POSIX] (S_ISCHR): Likewise.
30714         [POSIX] (S_ISDIR): Likewise.
30715         [POSIX] (S_ISFIFO): Likewise.
30716         [POSIX] (S_ISREG): Likewise.
30717         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
30718         optional-macro.
30719         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
30720         type.
30721         [POSIX] (time_t): Likewise.
30722         [POSIX] (timer_t): Likewise.
30723
30724 2014-06-11  Florian Weimer  <fweimer@redhat.com>
30725
30726         [BZ #17048]
30727         * posix/spawn_int.h (struct __spawn_action): Make the path string
30728         non-const to support deallocation.
30729         * posix/spawn_faction_addopen.c
30730         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
30731         * posix/spawn_faction_destroy.c
30732         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
30733         path in all spawn_do_open actions.
30734         * posix/tst-spawn.c (do_test): Exercise the copy operation in
30735         posix_spawn_file_actions_addopen.
30736
30737 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
30738
30739         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
30740         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
30741         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
30742         conditional code always true.
30743         (__libc_vfork): New alias.
30744
30745 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30746
30747         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30748         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
30749
30750         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
30751
30752         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30753         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
30754
30755         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30756         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
30757
30758         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30759         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
30760
30761 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
30762
30763         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
30764         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
30765         multiarch strcmp for PPC64.
30766         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
30767         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
30768         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
30769         multiarch optimizations.
30770         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
30771         (__libc_ifunc_impl_list): Likewise.
30772
30773 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
30774
30775         * benchtests/scripts/validate_benchout.py: New script.
30776         * benchtests/Makefile (bench-func): Call it.
30777         * benchtests/scripts/benchout.schema.json: New file.
30778
30779 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
30780
30781         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
30782         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
30783         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
30784         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
30785         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
30786         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
30787         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
30788         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
30789         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
30790         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
30791         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
30792         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
30793         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
30794         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
30795         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
30796         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
30797         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
30798         Moved ...
30799         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
30800         ... here.
30801         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
30802         Moved ...
30803         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
30804         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
30805         Moved ...
30806         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
30807         ... here.
30808         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
30809         Moved ...
30810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
30811         ... here.
30812         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
30813         Moved ...
30814         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
30815         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
30816         Moved ...
30817         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
30818         ... here.
30819         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
30820         Moved ...
30821         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
30822         ... here.
30823         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
30824         Moved ...
30825         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
30826         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
30827         Moved ...
30828         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
30829         ... here.
30830         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
30831         Moved ...
30832         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
30833         ... here.
30834         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
30835         Moved ...
30836         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
30837         ... here.
30838         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
30839         Moved ...
30840         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
30841         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
30842         Moved ...
30843         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
30844         ... here.
30845         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
30846         Moved ...
30847         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
30848         ... here.
30849         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
30850         Moved ...
30851         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
30852         ... here.
30853         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
30854         Moved ...
30855         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
30856         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
30857         Moved ...
30858         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
30859         ... here.
30860         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
30861         Moved ...
30862         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
30863         ... here.
30864         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
30865         Moved ...
30866         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
30867         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
30868         Moved ...
30869         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
30870         ... here.
30871         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
30872         Moved ...
30873         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
30874         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
30875         Moved ...
30876         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
30877         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
30878         Moved ...
30879         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
30880         ... here.
30881         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
30882         Moved ...
30883         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
30884         ... here.
30885         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
30886         Moved ...
30887         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
30888         ... here.
30889         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
30890         Moved ...
30891         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
30892         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
30893         Moved ...
30894         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
30895         ... here.
30896         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
30897         Moved ...
30898         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
30899         ... here.
30900         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
30901         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
30902         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
30903         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
30904         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
30905         Moved ...
30906         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
30907         ... here.
30908         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
30909         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
30910         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
30911         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
30912         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
30913         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
30914         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
30915         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
30916         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
30917         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
30918         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
30919         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
30920         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
30921         Moved ...
30922         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
30923         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
30924         Moved ...
30925         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
30926         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
30927         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
30928         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
30929         Moved ...
30930         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
30931         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
30932         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
30933         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
30934         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
30935         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
30936         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
30937
30938 2014-06-10  Wilco  <wdijkstr@arm.com>
30939
30940         * math/test-fenv-return.c: New file.
30941         * math/Makefile: Add new test test-fenv-return.
30942
30943 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
30944
30945         [BZ #17042]
30946         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
30947         when x - 1 is zero.
30948         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
30949         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
30950         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
30951         0.0L for an argument of 1.0L.
30952         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
30953         Likewise.
30954         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
30955         value when x - 1 is zero.
30956         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
30957         * sysdeps/i386/fpu/libm-test-ulps: Update.
30958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30959
30960 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
30961
30962         [BZ #15119]
30963         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
30964
30965 2014-06-09  Roland McGrath  <roland@hack.frob.com>
30966
30967         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
30968         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
30969
30970 2014-06-09  Roland McGrath  <roland@hack.frob.com>
30971
30972         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30973         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
30974
30975         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30976         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
30977
30978         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30979         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
30980
30981         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30982         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
30983
30984         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
30985         if not already defined.
30986         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
30987         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
30988         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
30989         (TLS_INIT_TP): Use it.
30990         (TLS_DEFINE_INIT_TP): New macro.
30991         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
30992
30993 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
30994
30995         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
30996         constant.
30997         [POSIX] (IXANY): Likewise.
30998         [POSIX] (OLCUC): Likewise.
30999         [POSIX || POSIX2008] (CBAUD): Do not allow.
31000         [POSIX || POSIX2008] (DEFECHO): Likewise.
31001         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31002         [POSIX || POSIX2008] (ECHOKE): Likewise.
31003         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31004         [POSIX || POSIX2008] (EXTA): Likewise.
31005         [POSIX || POSIX2008] (EXTB): Likewise.
31006         [POSIX || POSIX2008] (FLUSHO): Likewise.
31007         [POSIX || POSIX2008] (LOBLK): Likewise.
31008         [POSIX || POSIX2008] (PENDIN): Likewise.
31009         [POSIX || POSIX2008] (SWTCH): Likewise.
31010         [POSIX || POSIX2008] (VDISCARD): Likewise.
31011         [POSIX || POSIX2008] (VDSUSP): Likewise.
31012         [POSIX || POSIX2008] (VLNEXT): Likewise.
31013         [POSIX || POSIX2008] (VREPRINT): Likewise.
31014         [POSIX || POSIX2008] (VSTATUS): Likewise.
31015         [POSIX || POSIX2008] (VWERASE): Likewise.
31016         (B*): Change to B[0123456789]*.
31017         * conform/data/time.h-data [POSIX || UNIX98]
31018         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31019         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31020         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31021         [POSIX] (tm_*): Do not allow.
31022
31023 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31024
31025         * Makefile (install): Don't set LANGUAGE.
31026         * Makefile.in (install): Likewise.
31027         * assert/Makefile (test-assert-ENV): Remove variable.
31028         (test-assert-perr-ENV): Likewise.
31029         * elf/Makefile (neededtest4-ENV): Likewise.
31030         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31031         [$(cross-compiling) = no]: Don't set LANGUAGE.
31032         * io/ftwtest-sh (LANG): Remove variable.
31033         * libio/Makefile (tst-widetext-ENV): Likewise.
31034         * manual/install.texi (Running make install): Don't refer to
31035         environment settings for make install.
31036         * INSTALL: Regenerated.
31037         * nptl/tst-tls6.sh: Don't set LANG.
31038         * posix/globtest.sh (LANG): Remove variable.
31039         * string/Makefile (tester-ENV): Likewise.
31040         (inl-tester-ENV): Likewise.
31041         (noinl-tester-ENV): Likewise.
31042         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31043         [$(cross-compiling) = no]: Don't set LANGUAGE.
31044         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31045         without explicit environment settings.
31046
31047 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31048
31049         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31050         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31051         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31052         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31053
31054 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31055
31056         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31057         other files in the crypt directory.
31058         * crypt/crypt.c: Remove duplicate includes.
31059         * crypt/crypt-entry.c: Likewise.
31060         * crypt/crypt_util.c: Likewise.
31061
31062 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31063
31064         * Makeconfig (run-program-env): New variable.
31065         (run-program-prefix-before-env): Likewise.
31066         (run-program-prefix-after-env): Likewise.
31067         (run-program-prefix): Define in terms of new variables.
31068         (built-program-cmd-before-env): New variable.
31069         (built-program-cmd-after-env): Likewise.
31070         (built-program-cmd): Define in terms of new variables.
31071         (test-program-prefix-before-env): New variable.
31072         (test-program-prefix-after-env): Likewise.
31073         (test-program-prefix): Define in terms of new variables.
31074         (test-program-cmd-before-env): New variable.
31075         (test-program-cmd-after-env): Likewise.
31076         (test-program-cmd): Define in terms of new variables.
31077         * Rules (make-test-out): Use $(run-program-env).
31078         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31079         (help): Do not mention environment variables.  Mention
31080         --timeoutfactor option.
31081         (timeoutfactor): New variable.
31082         (blacklist_exports): Remove function.
31083         (exports): Remove variable.
31084         (command): Do not include ${exports}.
31085         * manual/install.texi (Configuring and compiling): Do not mention
31086         test wrappers preserving environment variables.  Mention that last
31087         assignment to a variable must take precedence.
31088         * INSTALL: Regenerated.
31089         * benchtests/Makefile (run-bench): Use $(run-program-env).
31090         * catgets/Makefile ($(objpfx)test1.cat): Use
31091         $(built-program-cmd-before-env), $(run-program-env) and
31092         $(built-program-cmd-after-env).
31093         ($(objpfx)test2.cat): Do not specify environment variables
31094         explicitly.
31095         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31096         $(run-program-env) and $(built-program-cmd-after-env).
31097         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31098         $(run-program-env) and $(test-program-cmd-after-env).
31099         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31100         explicitly.
31101         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31102         run_program_env and test_program_cmd_after_env arguments.
31103         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31104         * elf/tst-pathopt.sh: Use run_program_env argument.
31105         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31106         $(test-wrapper-env) and $(run-program-env).
31107         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31108         run_program_env arguments.
31109         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31110         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31111         $(test-program-prefix-before-env), $(run-program-env) and
31112         $(test-program-prefix-after-env).
31113         ($(objpfx)tst-gettext2.out): Likewise.
31114         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31115         run_program_env and test_program_prefix_after_env arguments.
31116         * intl/tst-gettext2.sh: Likewise.
31117         * intl/tst-gettext4.sh: Do not set environment variables
31118         explicitly.
31119         * intl/tst-gettext6.sh: Likewise.
31120         * intl/tst-translit.sh: Likewise.
31121         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31122         $(test-program-prefix-before-env), $(run-program-env) and
31123         $(test-program-prefix-after-env).
31124         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31125         run_program_env and test_program_prefix_after_env arguments.
31126         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31127         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31128         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31129         explicitly with each use of ${test_wrapper_env}.
31130         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31131         $(test-program-prefix-before-env), $(run-program-env) and
31132         $(test-program-prefix-after-env).
31133         * posix/tst-getconf.sh: Do not set environment variables
31134         explicitly.
31135         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31136         run_program_env and test_program_prefix_after_env arguments.
31137         * stdio-common/tst-printf.sh: Do not set environment variables
31138         explicitly.
31139         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31140         $(test-program-prefix-before-env), $(run-program-env) and
31141         $(test-program-prefix-after-env).
31142         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31143         run_program_env and test_program_prefix_after_env arguments.
31144         Split $test calls into $test_pre and $test.
31145         * timezone/Makefile (build-testdata): Use
31146         $(built-program-cmd-before-env), $(run-program-env) and
31147         $(built-program-cmd-after-env).
31148
31149 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31150
31151         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31152         strlen for non SHARED builds.
31153
31154 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31155
31156         * nptl/allocatestack.c (check_list): Inlined function...
31157         (__reclaim_stacks): ... here.
31158
31159 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31160
31161         [BZ #15698]
31162         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31163         memory overrun.
31164
31165 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31166
31167         * Rules (make-test-out): Include
31168         LOCPATH=$(common-objpfx)localedata in default environment.
31169         * debug/Makefile (tst-chk1-ENV): Remove variable.
31170         (tst-chk2-ENV): Likewise.
31171         (tst-chk3-ENV): Likewise.
31172         (tst-chk4-ENV): Likewise.
31173         (tst-chk5-ENV): Likewise.
31174         (tst-chk6-ENV): Likewise.
31175         (tst-lfschk1-ENV): Likewise.
31176         (tst-lfschk2-ENV): Likewise.
31177         (tst-lfschk3-ENV): Likewise.
31178         (tst-lfschk4-ENV): Likewise.
31179         (tst-lfschk5-ENV): Likewise.
31180         (tst-lfschk6-ENV): Likewise.
31181         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31182         (tst-iconv7-ENV): Likewise.
31183         * intl/Makefile (LOCPATH-ENV): Likewise.
31184         (tst-codeset-ENV): Likewise.
31185         (tst-gettext3-ENV): Likewise.
31186         (tst-gettext5-ENV): Likewise.
31187         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31188         (tst-fopenloc-ENV): Likewise.
31189         (tst-fgetws-ENV): Remove variable.
31190         (tst-ungetwc1-ENV): Likewise.
31191         (tst-ungetwc2-ENV): Likewise.
31192         (bug-ungetwc2-ENV): Likewise.
31193         (tst-swscanf-ENV): Likewise.
31194         (bug-ftell-ENV): Likewise.
31195         (tst-fgetwc-ENV): Likewise.
31196         (tst-fseek-ENV): Likewise.
31197         (tst-ftell-partial-wide-ENV): Likewise.
31198         (tst-ftell-active-handler-ENV): Likewise.
31199         (tst-ftell-append-ENV): Likewise.
31200         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31201         (tst-regexloc-ENV): Likewise.
31202         (bug-regex1-ENV): Likewise.
31203         (tst-regex-ENV): Likewise.
31204         (tst-regex2-ENV): Likewise.
31205         (bug-regex5-ENV): Likewise.
31206         (bug-regex6-ENV): Likewise.
31207         (bug-regex17-ENV): Likewise.
31208         (bug-regex18-ENV): Likewise.
31209         (bug-regex19-ENV): Likewise.
31210         (bug-regex20-ENV): Likewise.
31211         (bug-regex22-ENV): Likewise.
31212         (bug-regex23-ENV): Likewise.
31213         (bug-regex25-ENV): Likewise.
31214         (bug-regex26-ENV): Likewise.
31215         (bug-regex30-ENV): Likewise.
31216         (bug-regex32-ENV): Likewise.
31217         (bug-regex33-ENV): Likewise.
31218         (bug-regex34-ENV): Likewise.
31219         (bug-regex35-ENV): Likewise.
31220         (tst-rxspencer-ENV): Likewise.
31221         (tst-rxspencer-no-utf8-ENV): Likewise.
31222         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31223         (tst-sscanf-ENV): Likewise.
31224         (tst-swprintf-ENV): Likewise.
31225         (tst-swscanf-ENV): Likewise.
31226         (test-vfprintf-ENV): Likewise.
31227         (scanf13-ENV): Likewise.
31228         (bug14-ENV): Likewise.
31229         (tst-grouping-ENV): Likewise.
31230         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31231         (tst-strtod3-ENV): Likewise.
31232         (tst-strtod4-ENV): Likewise.
31233         (tst-strtod5-ENV): Likewise.
31234         (testmb2-ENV): Likewise./
31235         * string/Makefile (tst-strxfrm-ENV): Likewise.
31236         (tst-strxfrm2-ENV): Likewise.
31237         (bug-strcoll1-ENV): Likewise.
31238         (test-strcasecmp-ENV): Likewise.
31239         (test-strncasecmp-ENV): Likewise.
31240         * time/Makefile (tst-strptime-ENV): Likewise.
31241         (tst-ftime_l-ENV): Likewise.
31242         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31243         (tst-mbrtowc-ENV): Likewise.
31244         (tst-wcrtomb-ENV): Likewise.
31245         (tst-mbrtowc2-ENV): Likewise.
31246         (tst-c16c32-1-ENV): Likewise.
31247         (tst-mbsnrtowcs-ENV): Likewise.
31248
31249 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31250
31251         * manual/resource.texi (How to get information about the memory
31252         subsystem?): Fix typo.
31253         Reported by Peon de la Parra Ivan <peon@keba.com>
31254
31255 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31256
31257         [BZ #16882]
31258         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31259         (pthread_spin_lock): Branch out of spin loop to proper location.
31260         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31261         (pthread_spin_lock): Likewise.
31262
31263         * nptl/tst-spin4.c: New test.
31264         * nptl/Makefile (tests): Add tst-spin4.
31265
31266 2014-06-03  Andreas Schwab  <schwab@suse.de>
31267
31268         [BZ #15946]
31269         * resolv/res_send.c (send_dg): Reload file descriptor after
31270         calling reopen.
31271
31272 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31273
31274         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31275
31276 2014-06-03  Richard Henderson  <rth@redhat.com>
31277
31278         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31279         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31280         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31281         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31282         in the SAVE_PID block.
31283         (__libc_vfork): New alias.
31284         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31285
31286         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31287         child in registers, not on the stack.  Remove RESET_PID conditionals.
31288         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31289
31290 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31291
31292         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31293
31294 2014-06-03  Wilco  <wdijkstr@arm.com>
31295
31296         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31297         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31298         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31299         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31300         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31301         Likewise.
31302
31303 2014-06-03  Wilco  <wdijkstr@arm.com>
31304
31305         * sysdeps/aarch64/fpu/math_private.h
31306         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31307         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31308         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31309         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31310         Fix declarations.
31311
31312 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31313
31314         * crypt/crypt-private.h: Include ufc-crypt.h.
31315         (__b64_from_24bit): Declare extern.
31316         * crypt/crypt_util.c(__b64_from_24bit): New function.
31317         (b64t): New static const variable.
31318         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31319         (b64t): Remove variable.
31320         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31321         * crypt/sha256-crypt.c: Include crypt-private.h.
31322         (b64t): Remove variable.
31323         (__sha256_crypt_r): Remove b64_from_24bit and replace
31324         with __b64_from_24bit.
31325         * crypt/sha512-crypt.c: Likewise.
31326
31327 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31328
31329         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31330         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31331         Label the code __libc_vfork rather than __vfork.
31332         [!NOT_IN_libc] (vfork): Define as weak alias.
31333         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31334         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31335         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31336
31337 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31338
31339         * malloc/malloc.c (malloc_info): Fix format specifier for
31340         n_mmaps.
31341
31342 2014-06-02  Wilco  <wdijkstr@arm.com>
31343
31344         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31345         FPCR write.
31346
31347 2014-06-02  Wilco  <wdijkstr@arm.com>
31348
31349         [BZ #17009]
31350         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31351         Rewrite to reduce FPCR/FPSR accesses.
31352
31353 2014-06-01  David S. Miller  <davem@davemloft.net>
31354
31355         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31356
31357 2014-05-31  David S. Miller  <davem@davemloft.net>
31358
31359         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31360         to occur in round to nearest mode when |x| >= 2.0
31361
31362 2014-05-30  Richard Henderson  <rth@twiddle.net>
31363
31364         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31365         (PSEUDO_RET_NOERRNO): Remove.
31366         (ret): Don't redefine.
31367         (ret_NOERRNO): Define in terms of ret.
31368         (ret_ERRVAL): Likewise.
31369
31370         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31371         use of PSEUDO_RET; perform the error check directly.
31372
31373 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31374
31375         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31376         with __int128_t.
31377
31378 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31379
31380         * malloc/malloc (malloc_info): Fix formatting.
31381
31382 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31383             Roland McGrath  <roland@hack.frob.com>
31384
31385         * malloc/malloc (malloc_info): Also print mmapped statistics.
31386
31387 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31388
31389         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31390         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31391
31392 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31393
31394         * malloc/malloc.c (malloc_info): Inline mi_arena.
31395
31396 2014-05-29  Richard Henderson  <rth@twiddle.net>
31397
31398         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31399         Remove comma before expanding ASM_ARGS_##nr.
31400         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31401         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31402         of ASM_ARGS_##nr.
31403         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31404         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31405         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31406         (ASM_ARGS_1): Add leading comma.
31407
31408         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31409         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31410         to __errno_location.
31411         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31412         Remove the expected plt for __errno_location.
31413
31414         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31415         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31416         call to __read_tp.
31417
31418         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31419         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31420         it and break it down.
31421         (DOCARGS_0, DOCARGS_1): Do nothing.
31422         (DOCARGS_2): Update to store into the new stack frame.
31423         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31424         (UNDOCARGS_1): Update to restore from the new stack frame.
31425         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31426         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31427
31428         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31429         (SINGLE_THREAD_P): New parameter for result regno.
31430         (PSEUDO): Update to match; use cbz instead of beq.
31431
31432         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31433         Use ENTRY to define the _nocancel entry point.  Share the syscall
31434         and syscall error check paths with the cancel path.
31435         (PSEUDO_END): New.
31436
31437         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31438         whitespace; tabs before and after asm mnemonics.
31439
31440 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31441
31442         [BZ #15132]
31443         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31444         Call fstat64 or stat64 internally, depending on arguments passed.
31445         Replace stat buffer argument with file descriptor argument.
31446         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31447         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31448         Pass fd to __internal_statvfs instead of calling fstat64.
31449         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31450         Pass fd to __internal_statvfs64 instead of calling fstat64.
31451         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31452         Pass -1 to __internal_statvfs instead of calling stat64.
31453         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31454         Pass -1 to __internal_statvfs64 instead of calling stat64.
31455
31456 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31457
31458         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31459         that was previously under [RESET_PID].
31460         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31461
31462         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31463         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31464
31465 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31466
31467         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31468
31469         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31470         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31471
31472 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31473
31474         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31475
31476 2014-05-27  Andreas Schwab  <schwab@suse.de>
31477
31478         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31479         TLS_INIT_TP macro.
31480         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31481         * elf/rtld.c (init_tls, dl_main): Likewise.
31482         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31483         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31484         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31485         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31486         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31487         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31488         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31489         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31490         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31491         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31492         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31493         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31494         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31495         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31496         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31497         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31498         * sysdeps/generic/tls.h: Update description.
31499
31500 2014-05-27  Will Newton  <will.newton@linaro.org>
31501
31502         [BZ #16990]
31503         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31504         and restore r2 rather than just restoring.
31505
31506 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31507
31508         [BZ #16724]
31509         * libio/tst-ftell-append.c: New test case.
31510         * libio/Makefile (tests): Add test case.
31511         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31512         append mode.
31513         * libio/wfileops.c (do_ftell_wide): Likewise.
31514
31515 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31516
31517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31518
31519         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31520         ...
31521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31523         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31524         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31525         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31526         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31527         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31528         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31529         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31530         Moved ...
31531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31532         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31533         Moved ...
31534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31535         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31536         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31537         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31538         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31539         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31540         ...
31541         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31542         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31543         Moved ...
31544         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31545         here.
31546         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31547         ...
31548         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31549         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31550         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31551
31552         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
31553         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
31554         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
31555         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
31556
31557         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
31558         merge into ...
31559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
31560         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
31561         ...
31562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
31563         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
31564         ...
31565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
31566         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
31567         Moved ...
31568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
31569         here.
31570         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
31571         Moved ...
31572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
31573         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
31574         Moved ...
31575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
31576
31577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
31578         conditional [RESET_PID].
31579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
31580         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
31581         removed.
31582         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
31583         removed.
31584
31585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
31586         <tcb-offsets.h>.
31587         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31588         (__libc_vfork): New strong alias.
31589         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
31590         removed.
31591         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
31592         Removed.
31593
31594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
31595         <tcb-offsets.h>.
31596         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
31597         (__libc_vfork): New strong alias.
31598         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
31599         removed.
31600         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
31601         removed.
31602
31603 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
31604
31605         * malloc/malloc.c (mi_arena): New function.
31606         (malloc_info): Remove nested function mi_arena. Call non-nosted
31607         function mi_arena.
31608
31609 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31610
31611         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
31612         by insrwi.
31613         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31614         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31615         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
31616         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
31617         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
31618         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
31619         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
31620
31621 2014-05-26  Andreas Schwab  <schwab@suse.de>
31622
31623         [BZ #16984]
31624         * locale/programs/repertoire.c (repertoire_read): Add slash
31625         between I18NPATH element and file name.
31626         * locale/programs/locfile.c (locfile_read): Likewise.
31627
31628 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31629
31630         * nptl/pthread_mutexattr_settype.c
31631         (__pthread_mutexattr_settype):
31632         Disable lock elision for PTHREAD_MUTEX_NORMAL.
31633
31634 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31635
31636         * nptl/tst-mutex5 (do_test):
31637         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
31638
31639 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31640
31641         * benchtests/README: Document 'init' directive.
31642         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
31643         BENCH_INIT.
31644         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
31645         (parse_file): Recognize 'init' directive.
31646
31647 2014-05-26  Kyle McMartin  <kyle@redhat.com>
31648
31649         [BZ #16796]
31650         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
31651         alignment of struct pthread.
31652
31653 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31654
31655         [BZ #16878]
31656         * nscd/netgroupcache.c (addgetnetgrentX): Look for
31657         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31658         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
31659         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31660
31661 2014-05-25  Richard Henderson  <rth@twiddle.net>
31662
31663         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31664         (SINGLE_THREAD_P_PIC): Remove.
31665         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
31666         (SINGLE_THREAD_P_PIC): Remove.
31667
31668         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
31669         branch to syscall error ...
31670         (PSEUDO): ... here.
31671         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
31672         from __local_syscall_error to .Lsyscall_error.
31673         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
31674         (SYSCALL_ERROR): Update label name.
31675
31676         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31677         Do not use DOARGS/UNDOARGS.
31678         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
31679         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
31680         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
31681         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
31682         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
31683
31684         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
31685         block comment.
31686
31687         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
31688         define if !NOT_IN_libc.
31689         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
31690         define with non-default symbol versions.
31691
31692 2014-05-23  Richard Henderson  <rth@twiddle.net>
31693
31694         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
31695         (vfork, __vfork): Define via compat_symbol.
31696
31697         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
31698         [!HAVE_IFUNC] (vfork_compat): Remove.
31699         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
31700
31701 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31702
31703         [BZ #16978]
31704         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
31705         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
31706         variable.
31707
31708 2014-05-23  Richard Henderson  <rth@twiddle.net>
31709
31710         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
31711         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
31712         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
31713         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
31714
31715         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
31716         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
31717         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
31718         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
31719         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
31720         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
31721         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
31722         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
31723         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
31724         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
31725         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
31726         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
31727         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
31728         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
31729         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
31730         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
31731         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
31732         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
31733         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
31734         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
31735         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
31736         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
31737         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
31738         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
31739         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
31740         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
31741         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
31742         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
31743         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
31744         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
31745         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
31746         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
31747         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
31748         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
31749         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
31750         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
31751         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
31752         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
31753         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
31754         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
31755         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
31756         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
31757         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
31758         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
31759         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
31760         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
31761         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
31762         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
31763         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
31764         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
31765         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
31766         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
31767         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
31768         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
31769         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
31770         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
31771
31772         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
31773         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
31774         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
31775         before exiting on error.
31776         (__libc_vfork): New strong alias.
31777         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
31778         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
31779
31780         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
31781         that was previously under [RESET_PID].
31782         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
31783
31784         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
31785
31786 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31787
31788         [BZ #16977]
31789         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
31790         value when x - 1 is zero.
31791         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
31792         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
31793         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
31794         0.0L for an argument of 1.0L.
31795         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
31796         Likewise.
31797         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
31798         value when x - 1 is zero.
31799         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
31800         * sysdeps/i386/fpu/libm-test-ulps: Update.
31801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31802
31803 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31804
31805         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
31806         alphasort and versionsort.
31807
31808 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31809
31810         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
31811         macro.
31812         [copysignf]: Likewise.
31813
31814 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
31815
31816         * crypt/md5-crypt.c: Fix formatting.
31817
31818 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31819
31820         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
31821         (b64_from_24bit): New function.
31822
31823 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31824
31825         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
31826         libc_hidden_builtin_def to ifunc.
31827         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
31828         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
31829
31830 2014-05-21  Roland McGrath  <roland@hack.frob.com>
31831
31832         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
31833         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
31834
31835 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
31836
31837         * nscd/Depend (linuxthreads): Remove.
31838         (nptl): Add.
31839         * resolv/Depend (linuxthreads): Remove.
31840         * rt/Depend (linuxthreads): Remove.
31841
31842         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
31843         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
31844         $(common-objpfx)elf/.
31845         (link-libc-before-gnulib): Likewise.
31846         (elfobjdir): Remove variable.
31847         * Makefile (install): Use $(elf-objpfx) instead of
31848         $(common-objpfx)elf/.
31849         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
31850         $(elfobjdir)/.
31851         (link-libc-deps): Likewise.
31852         ($(common-objpfx)libc.so): Likewise.
31853         ($(common-objpfx)linkobj/libc.so): Likewise.
31854         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
31855         instead of $(common-objpfx)elf/.
31856         (symbolic-link-list): Likewise.
31857         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31858         [$(cross-compiling) = no]: Likewise.
31859         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
31860         $(elfobjdir)/.
31861         (static-gnulib-arch): Likewise.
31862         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31863         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
31864         $(common-objpfx)elf/.
31865
31866 2014-05-21  Richard Henderson  <rth@redhat.com>
31867
31868         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31869         (SINGLE_THREAD_P): Use the correct width load.  Fold
31870         into the ldr offset.
31871
31872         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
31873         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
31874
31875 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
31876
31877         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
31878         (libgcc_s_resume): Use __attribute_used__.
31879         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
31880         Likewise.
31881
31882 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31883
31884         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
31885         optimization when used with float constants.
31886
31887         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31888
31889 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
31890
31891         [BZ #16915]
31892         * locale/nl_langinfo_l.c: Make direct reference to every
31893         _nl_current_CATEGORY symbol.
31894         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
31895         (tests-static): Add tst-langinfo-static.
31896         (tests-special): Add tst-langinfo-static.out.
31897         ($(objpfx)tst-langinfo.out): Redirect output.
31898         ($(objpfx)tst-langinfo-static.out): New.
31899         * localedata/tst-langinfo.sh: Send output to stdout.
31900         * localedata/tst-langinfo-static.c: New file.
31901
31902         [BZ #16965]
31903         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
31904         when the shift amount is modulo the limb size.
31905
31906 2014-05-20  Richard Henderson  <rth@redhat.com>
31907
31908         [BZ #16967]
31909         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
31910         Change type of sa_flags from unsigned int to int.
31911
31912         [BZ #16966]
31913         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
31914
31915         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
31916
31917 2014-05-20  Will Newton  <will.newton@linaro.org>
31918
31919         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31920         Test the return value of the system call in the nocancel case.
31921
31922 2014-05-20  Will Newton  <will.newton@linaro.org>
31923             Yvan Roux  <yvan.roux@linaro.org>
31924
31925         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
31926         #include of asm/ptrace.h.
31927         (PTRACE_GET_THREAD_AREA): Remove #undef.
31928         (PTRACE_GETHBPREGS): Likewise.
31929         (PTRACE_SETHBPREGS): Likewise.
31930         (struct user_regs_struct): New structure.
31931         (struct user_fpsimd_struct): New structure.
31932         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
31933         #include of asm/ptrace.h and second #include of sys/user.h.
31934         (PTRACE_GET_THREAD_AREA): Remove #undef.
31935         (PTRACE_GETHBPREGS): Likewise.
31936         (PTRACE_SETHBPREGS): Likewise.
31937         (ELF_NGREG): Use new struct user_regs_struct.
31938         (elf_fpregset_t): Use new struct user_fpsimd_struct.
31939
31940 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31941
31942         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
31943         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
31944
31945 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
31946
31947         [BZ #16958]
31948         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
31949         membar to avoid block loads/stores to overlap previous stores.
31950
31951 2014-05-17  Richard Henderson  <rth@redhat.com>
31952
31953         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
31954         Create the __##syscall_name##_nocancel entry point.
31955         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
31956         Remove; let the sysdep-cancel.h code create it.
31957
31958 2014-05-17  David S. Miller  <davem@davemloft.net>
31959
31960         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
31961         Protect with __USE_GNU.
31962         (TIOCSET_TEMPT): Likewise.
31963         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
31964         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
31965         these are already provided in bits/ioctl-types.h
31966
31967 2014-05-16  Roland McGrath  <roland@hack.frob.com>
31968
31969         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
31970         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
31971
31972         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
31973         Use wait4 regardless of [__NR_waitpid].
31974
31975 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
31976
31977         PR libgcc/60166
31978         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
31979         (_FP_NANSIGN_Q): Set the quiet bit.
31980
31981 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
31982
31983         * benchtests/Makefile
31984         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
31985         not $(common-objpfx)math/libm.so.
31986         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
31987         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
31988         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
31989         $(common-objpfx)dlfcn/libdl.so.
31990         ($(objpfx)tst-audit8): Depend on $(libm), not
31991         $(common-objpfx)math/libm.so.
31992         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
31993         not $(common-objpfx)dlfcn/libdl.so.
31994         * math/Makefile
31995         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
31996         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
31997         [$(build-shared) = yes].
31998         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
31999         $(common-objpfx)nptl/libpthread.so.
32000         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32001         $(common-objpfx)math/libm.so$(libm.so-version) or
32002         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32003         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32004         $(common-objpfx)dlfcn/libdl.so.
32005         * setjmp/Makefile (link-libm): Remove variable.
32006         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32007         * stdio-common/Makefile (link-libm): Remove variable.
32008         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32009         * stdlib/Makefile (link-libm): Remove variable.
32010         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32011         ($(objpfx)tst-strtod-round): Likewise.
32012         ($(objpfx)tst-tininess): Likewise.
32013         ($(objpfx)tst-strtod-underflow): Likewise.
32014         ($(objpfx)tst-strtod6): Likewise.
32015         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32016         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32017         $(common-objpfx)dlfcn/libdl.so.
32018
32019 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32020
32021         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32022         BSD terminal modes definitions.
32023
32024 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32025
32026         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32027         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32028
32029         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32030         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32031         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32032         Don't do #include_next.
32033         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32034         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32035         Don't do #include_next.
32036         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32037         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32038         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32039         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32040
32041 2014-05-16  Allan McRae  <allan@archlinux.org>
32042
32043         * po/sv.po: Update Swedish translation from translation project.
32044
32045         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32046         in sed expression.
32047
32048 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32049
32050         [BZ #16917]
32051         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32052         errno if the TIOCGPTN ioctl fails with an error different than
32053         EINVAL.
32054         * login/tst-ptsname.c: New file.
32055         * login/Makefile (tests): Add tst-ptsname.
32056
32057         [BZ #16943]
32058         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32059         and prlimit64.
32060
32061 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32062
32063         [BZ #16849]
32064         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32065         herrno to return EAI_AGAIN.
32066
32067 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32068
32069         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32070         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32071         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32072         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32073         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32074         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32075         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32076         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32077         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32078         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32079         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32080         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32081         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32082         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32083         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32084         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32085         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32086         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32087         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32088         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32089         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32090         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32091         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32092         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32093         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32094         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32095         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32096         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32097         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32098         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32099         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32100         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32101         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32102         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32103         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32104         Moved ...
32105         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32106         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32107         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32108         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32109         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32110         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32111         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32112         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32113         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32114         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32115         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32116         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32117         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32118         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32119         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32120         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32121         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32122         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32123         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32124         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32125         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32126         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32127         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32128         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32129         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32130         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32131         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32132         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32133         Moved ...
32134         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32135         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32136         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32137         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32138         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32139         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32140         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32141         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32142         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32143         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32144         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32145         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32146         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32147         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32148         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32149         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32150         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32151         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32152         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32153         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32154         Moved ...
32155         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32156         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32157         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32158
32159         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32160         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32161         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32162         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32163         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32164         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32165         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32166         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32167         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32168         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32169         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32170         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32171         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32172         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32173         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32174         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32175         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32176         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32177         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32178         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32179         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32180         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32181         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32182         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32183         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32184         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32185         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32186         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32187         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32188         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32189         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32190
32191         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32192         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32193
32194         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32195         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32196         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32197         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32198         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32199         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32200         Moved ...
32201         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32202         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32203         Moved ...
32204         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32205         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32206         Moved ...
32207         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32208         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32209         Moved ...
32210         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32211         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32212         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32213         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32214         Moved ...
32215         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32216         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32217         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32218         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32219         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32220         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32221         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32222         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32223         Moved ...
32224         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32225         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32226         Moved ...
32227         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32228         ... here.
32229         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32230         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32231         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32232         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32233         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32234         Moved ...
32235         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32236         ... here.
32237         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32238         Moved ...
32239         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32240         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32241         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32242         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32243         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32244         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32245         Moved ...
32246         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32247         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32248         Moved ...
32249         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32250         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32251         Moved ...
32252         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32253         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32254         Moved ...
32255         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32256         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32257         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32258         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32259         Moved ...
32260         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32261         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32262         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32263         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32264         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32265         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32266         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32267         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32268         Moved ...
32269         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32270         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32271         Moved ...
32272         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32273         ... here.
32274         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32275         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32276         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32277         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32278         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32279         Moved ...
32280         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32281         ... here.
32282         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32283         Moved ...
32284         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32285         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32286         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32287         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32288         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32289         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32290         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32291         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32292         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32293         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32294         Moved ...
32295         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32296         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32297         Moved ...
32298         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32299         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32300         Moved ...
32301         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32302         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32303         Moved ...
32304         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32305         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32306         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32307         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32308         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32309         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32310         Moved ...
32311         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32312         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32313         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32314         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32315         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32316         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32317         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32318         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32319         Moved ...
32320         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32321         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32322         Moved ...
32323         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32324         ... here.
32325         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32326         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32327         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32328         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32329         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32330         Moved ...
32331         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32332         ... here.
32333         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32334         Moved ...
32335         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32336         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32337         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32338         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32339         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32340         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32341         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32342         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32343         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32344         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32345         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32346
32347         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32348         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32349
32350         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32351         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32352
32353         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32354         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32355         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32356         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32357         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32358         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32359         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32360         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32361         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32362         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32363         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32364         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32365         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32366         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32367         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32368         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32369         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32370         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32371         Moved ...
32372         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32373         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32374         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32375         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32376         Moved ...
32377         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32378         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32379         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32380         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32381         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32382         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32383         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32384         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32385         Moved ...
32386         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32387         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32388         Moved ...
32389         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32390         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32391         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32392         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32393         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32394         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32395         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32396         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32397         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32398         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32399         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32400         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32401         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32402         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32403         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32404         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32405         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32406
32407         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32408         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32409         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32410         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32411         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32412
32413         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32414         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32415         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32416         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32417         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32418         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32419         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32420         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32421         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32422         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32423
32424         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32425         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32426
32427         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32428         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32429         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32430         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32431         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32432         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32433         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32434         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32435         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32436         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32437         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32438         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32439         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32440         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32441         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32442         Update #include.
32443         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32444         Likewise.
32445         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32446         Likewise.
32447         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32448         Likewise.
32449         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32450         Likewise.
32451         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32452         Likewise.
32453         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32454         Likewise.
32455         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32456         Likewise.
32457         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32458         Likewise.
32459         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32460         Likewise.
32461         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32462         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32463         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32464         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32465         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32466         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32467         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32468         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32469         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32470         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32471         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32472         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32473         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32474         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32475         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32476
32477         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32478         that was previously under [RESET_PID].
32479         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32480         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32481         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32482
32483         * sysdeps/i386/nptl/Implies: New file.
32484         * sysdeps/x86_64/nptl/Implies: New file.
32485         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32486         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32487         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32488         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32489
32490         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32491         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32492         (__libc_vfork): New strong alias.
32493         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32494         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32495
32496         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32497         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32498         (__libc_vfork): New strong alias.
32499         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32500         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32501
32502         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
32503         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32504         (__libc_vfork): New strong alias.
32505         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32506         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32507         * nptl/pt-vfork.c: New file.
32508         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32509         (libpthread: GLIBC_2.20): New version set (empty).
32510
32511 2014-05-14  Will Newton  <will.newton@linaro.org>
32512
32513         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32514         rather than #if.
32515
32516 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32517
32518         [BZ #16564]
32519         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32520         arguments with exponent 65 or above.
32521         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32522         arguments 0x1p113L or above.
32523         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32524         to arguments 0x1p107L or above.
32525         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32526         positive arguments with exponent 65 or above.
32527         * math/auto-libm-test-in: Add more tests of log1p.
32528         * math/auto-libm-test-out: Regenerated.
32529
32530         [BZ #16928]
32531         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32532         non-finite arguments is +0.
32533         * math/s_cacosf.c (__cacosf): Likewise.
32534         * math/s_cacosl.c (__cacosl): Likewise.
32535         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32536         * sysdeps/i386/fpu/libm-test-ulps: Update.
32537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32538
32539         [BZ #16927]
32540         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32541         value.
32542         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32543         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32544         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32545         for explicit high bit of mantissa when testing for argument equal
32546         to 1.
32547         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
32548         * sysdeps/i386/fpu/libm-test-ulps: Update.
32549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32550
32551         [BZ #16516]
32552         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
32553         (__erf): Scale by 16 instead of 8 in potentially underflowing
32554         case.  Ensure exception if result actually underflows.
32555         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
32556         (__erff): Scale by 16 instead of 8 in potentially underflowing
32557         case.  Ensure exception if result actually underflows.
32558         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
32559         (efx8): Remove variable.
32560         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32561         case.  Ensure exception if result actually underflows.
32562         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
32563         (efx8): Remove variable.
32564         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32565         case.  Ensure exception if result actually underflows.
32566         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
32567         (efx8): Remove variable.
32568         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32569         case.  Ensure exception if result actually underflows.
32570         * math/auto-libm-test-in: Add more tests of erf.
32571         * math/auto-libm-test-out: Regenerated.
32572
32573 2014-05-14  Andreas Schwab  <schwab@suse.de>
32574
32575         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
32576         Remove code conditionalized on USE___THREAD.
32577
32578         * config.h.in (HAVE_PT_CHOWN): Define as 0.
32579         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
32580         not definedness.
32581
32582 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32583
32584         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
32585         Define unconditionally.
32586         (__ASSUME_O_CLOEXEC): Likewise.
32587         (__ASSUME_SOCK_CLOEXEC): Likewise.
32588         (__ASSUME_IN_NONBLOCK): Likewise.
32589         (__ASSUME_PIPE2): Likewise.
32590         (__ASSUME_EVENTFD2): Likewise.
32591         (__ASSUME_SIGNALFD4): Likewise.
32592         (__ASSUME_DUP3): Likewise.
32593         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
32594         (__ASSUME_DUP3): Do not define.
32595         (__ASSUME_EVENTFD2): Likewise.
32596         (__ASSUME_IN_NONBLOCK): Likewise.
32597         (__ASSUME_O_CLOEXEC): Likewise.
32598         (__ASSUME_PIPE2): Likewise.
32599         (__ASSUME_SIGNALFD4): Likewise.
32600         (__ASSUME_SOCK_CLOEXEC): Likewise.
32601         (__ASSUME_UTIMES): Undefine.
32602         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32603         (__ASSUME_UTIMES): Do not define.
32604         (__ASSUME_O_CLOEXEC): Likewise.
32605         (__ASSUME_SOCK_CLOEXEC): Likewise.
32606         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
32607         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
32608         0x020621].
32609         (__ASSUME_PIPE2): Likewise.
32610         (__ASSUME_EVENTFD2): Likewise.
32611         (__ASSUME_SIGNALFD4): Likewise.
32612         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
32613         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
32614         Do not define.
32615         (__ASSUME_EVENTFD2): Likewise.
32616         (__ASSUME_SIGNALFD4): Likewise.
32617         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32618         (__ASSUME_32BITUIDS): Likewise.
32619         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
32620         (__ASSUME_IPC64): Likewise.
32621         (__ASSUME_ST_INO_64_BIT): Likewise.
32622         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
32623         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
32624         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32625         (__ASSUME_UTIMES): Do not define.
32626         (__ASSUME_PSELECT): Likewise.
32627         (__ASSUME_PPOLL): Likewise.
32628         (__ASSUME_O_CLOEXEC): Likewise.
32629         (__ASSUME_SOCK_CLOEXEC): Likewise.
32630         (__ASSUME_IN_NONBLOCK): Likewise.
32631         (__ASSUME_PIPE2): Likewise.
32632         (__ASSUME_EVENTFD2): Likewise.
32633         (__ASSUME_SIGNALFD4): Likewise.
32634         (__ASSUME_DUP3): Likewise.
32635         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32636         (__ASSUME_UTIMES): Likewise.
32637         (__ASSUME_O_CLOEXEC): Likewise.
32638         (__ASSUME_SOCK_CLOEXEC): Likewise.
32639         (__ASSUME_IN_NONBLOCK): Likewise.
32640         (__ASSUME_PIPE2): Likewise.
32641         (__ASSUME_EVENTFD2): Likewise.
32642         (__ASSUME_SIGNALFD4): Likewise.
32643         (__ASSUME_DUP3): Likewise.
32644         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32645         (__ASSUME_UTIMES): Likewise.
32646         (__ASSUME_O_CLOEXEC): Likewise.
32647         (__ASSUME_SOCK_CLOEXEC): Likewise.
32648         (__ASSUME_IN_NONBLOCK): Likewise.
32649         (__ASSUME_PIPE2): Likewise.
32650         (__ASSUME_EVENTFD2): Likewise.
32651         (__ASSUME_SIGNALFD4): Likewise.
32652         (__ASSUME_DUP3): Likewise.
32653         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
32654         Likewise.
32655         (__ASSUME_UTIMES): Likewise.
32656         (__ASSUME_EVENTFD2): Likewise.
32657         (__ASSUME_SIGNALFD4): Likewise.
32658         * sysdeps/unix/sysv/linux/tile/kernel-features.h
32659         (__ASSUME_O_CLOEXEC): Likewise.
32660         (__ASSUME_SOCK_CLOEXEC): Likewise.
32661         (__ASSUME_IN_NONBLOCK): Likewise.
32662         (__ASSUME_PIPE2): Likewise.
32663         (__ASSUME_EVENTFD2): Likewise.
32664         (__ASSUME_SIGNALFD4): Likewise.
32665         (__ASSUME_DUP3): Likewise.
32666         (__ASSUME_UTIMES): Undefine.
32667
32668         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
32669         feclearexcept.  Remove symbol versioning code.
32670         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
32671         symbol versioning code.
32672         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
32673         symbol versioning code.
32674         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
32675         feupdateenv.  Remove symbol versioning code.
32676         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
32677         fegetexceptflag.  Remove symbol versioning code.
32678         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
32679         fesetexceptflag.  Remove symbol versioning code.
32680         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
32681         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
32682         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
32683         (__posix_fadvise64_l32): Remove prototype.
32684         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
32685         code.
32686
32687 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32688
32689         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
32690         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
32691         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
32692         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
32693
32694 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
32695
32696         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
32697         current working directory
32698
32699 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32700
32701         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
32702         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
32703         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
32704         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
32705         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
32706         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
32707         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
32708         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
32709         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
32710         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
32711         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
32712         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
32713         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
32714         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
32715         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
32716         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
32717         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
32718         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
32719         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
32720         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
32721         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
32722         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
32723         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
32724         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
32725         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
32726         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
32727         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
32728         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
32729         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
32730         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
32731         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
32732         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
32733         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
32734         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
32735         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
32736         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
32737         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
32738         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
32739         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
32740         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
32741         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
32742         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
32743
32744         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
32745         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
32746
32747         * sysdeps/unix/sysv/linux/arm/Makefile
32748         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
32749         Add rt-aeabi_unwind_cpp_pr1.
32750         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
32751         Add nptl-aeabi_unwind_cpp_pr1.
32752         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
32753         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
32754         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
32755         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
32756         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
32757         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
32758
32759         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
32760         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
32761         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
32762         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
32763
32764         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
32765         Deconditionalize the code that was previously under [RESET_PID].
32766         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
32767
32768         * sysdeps/generic/exit-thread.h: New file.
32769         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
32770         * include/unistd.h (__exit_thread): Remove declaration.
32771         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
32772         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
32773         * csu/libc-start.c: Include <exit-thread.h>.
32774         (LIBC_START_MAIN): Pass no argument to __exit_thread.
32775         * nptl/pthread_create.c: Include <exit-thread.h>.
32776         (start_thread): Call __exit_thread in place of __exit_thread_inline.
32777         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
32778         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
32779         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
32780         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
32781         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
32782         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
32783         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
32784         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
32785         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
32786         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
32787         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
32788         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
32789         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
32790         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
32791         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
32792         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
32793
32794 2014-05-13  Andreas Schwab  <schwab@suse.de>
32795
32796         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
32797
32798 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
32799
32800         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
32801         (__ASSUME_UTIMES): Do not condition on kernel version.
32802         (__ASSUME_PSELECT): Define unconditionally.
32803         (__ASSUME_PPOLL): Likewise.
32804         (__ASSUME_ATFCTS): Likewise.
32805         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
32806         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
32807         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
32808         (__ASSUME_UTIMENSAT): Define unconditionally.
32809         (__ASSUME_PRIVATE_FUTEX): Likewise.
32810         (__ASSUME_FALLOCATE): Likewise.
32811         (__ASSUME_O_CLOEXEC): Likewise.
32812         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
32813         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
32814         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
32815         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
32816         (__ASSUME_IN_NONBLOCK): Likewise.
32817         (__ASSUME_PIPE2): Likewise.
32818         (__ASSUME_EVENTFD2): Likewise.
32819         (__ASSUME_SIGNALFD4): Likewise.
32820         (__ASSUME_DUP3): Likewise.
32821         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
32822         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
32823         (__ASSUME_AT_RANDOM): Likewise.
32824         (__ASSUME_PREADV): Likewise.
32825         (__ASSUME_PWRITEV): Likewise.
32826         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
32827         (__ASSUME_F_GETOWN_EX): Define unconditionally.
32828         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
32829         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
32830         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
32831         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32832         (__ASSUME_O_CLOEXEC): Define unconditionally.
32833         (__ASSUME_PSELECT): Do not undefine conditionally.
32834         (__ASSUME_PPOLL): Likewise.
32835         (__ASSUME_ATFCTS): Likewise.
32836         (__ASSUME_SET_ROBUST_LIST): Likewise.
32837         (__ASSUME_UTIMENSAT): Likewise.
32838         (__ASSUME_FDATASYNC): Define unconditionally.
32839         * sysdeps/unix/sysv/linux/arm/kernel-features.h
32840         (__ASSUME_SIGFRAME_V2): Likewise.
32841         )__ASSUME_EVENTFD2): Likewise.
32842         (__ASSUME_SIGNALFD4): Likewise.
32843         (__ASSUME_PSELECT): Do not undefine conditionally.
32844         (__ASSUME_PPOLL): Likewise.
32845         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32846         (__ASSUME_PSELECT): Define unconditionally.
32847         (__ASSUME_PPOLL): Likewise.
32848         (__ASSUME_O_CLOEXEC): Likewise.
32849         (__ASSUME_SOCK_CLOEXEC): Likewise.
32850         (__ASSUME_IN_NONBLOCK): Likewise.
32851         (__ASSUME_PIPE2): Likewise.
32852         (__ASSUME_EVENTFD2): Likewise.
32853         (__ASSUME_SIGNALFD4): Likewise.
32854         (__ASSUME_DUP3): Likewise.
32855         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32856         (__ASSUME_O_CLOEXEC): Likewise.
32857         (__ASSUME_SOCK_CLOEXEC): Likewise.
32858         (__ASSUME_IN_NONBLOCK): Likewise.
32859         (__ASSUME_PIPE2): Likewise.
32860         (__ASSUME_EVENTFD2): Likewise.
32861         (__ASSUME_SIGNALFD4): Likewise.
32862         (__ASSUME_DUP3): Likewise.
32863         * sysdeps/unix/sysv/linux/mips/kernel-features.h
32864         (__ASSUME_EVENTFD2): Likewise.
32865         (__ASSUME_SIGNALFD4): Likewise.
32866         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
32867
32868 2014-05-12  Andreas Schwab  <schwab@suse.de>
32869
32870         [BZ #16932]
32871         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
32872         (_nss_nis_gethostbyname4_r): Return error if item length is larger
32873         than maximum RPC packet size.
32874         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
32875         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
32876         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
32877         (_nss_nis_getservbyport_r): Likewise.
32878
32879 2014-05-12  Will Newton  <will.newton@linaro.org>
32880
32881         * malloc/Makefile (tests): Add tst-mallopt.
32882         * malloc/tst-mallopt.c: New file.
32883
32884 2014-05-09  Roland McGrath  <roland@hack.frob.com>
32885
32886         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
32887         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
32888
32889 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32890
32891         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
32892         (tst-tlsmod6.so): Likewise.
32893
32894 2014-05-09  Roland McGrath  <roland@hack.frob.com>
32895
32896         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
32897
32898 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
32899
32900         [BZ #16064]
32901         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
32902         and <dl-procinfo.h>.
32903         (__fegetenv): Save SSE state in envp->__eip if supported.
32904         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
32905         envp->__eip if supported.
32906         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
32907         and <dl-procinfo.h>.
32908         (__fesetenv): Always set __eip, __cs_selector, __opcode,
32909         __data_offset and __data_selector in environment to 0.  Set SSE
32910         state if supported.
32911         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
32912         test-fenv-sse.
32913         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
32914         -mfpmath=sse.
32915         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
32916
32917 2014-05-09  Will Newton  <will.newton@linaro.org>
32918
32919         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
32920         and libc_relro_required for ARM.
32921         * sysdeps/arm/preconfigure: Regenerate.
32922
32923 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32924             Stefan Liebler  <stli@linux.vnet.ibm.com>
32925
32926         * config.make.in (enable-lock-elision): New Makefile variable.
32927         * configure.ac: Likewise.
32928         * configure: Regenerate.
32929         * sysdeps/s390/configure.ac:
32930         Add check for gcc transactions support.
32931         * sysdeps/s390/configure: Regenerate.
32932         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
32933         Build elision files if enabled.
32934         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
32935         Add lock elision support for s390.
32936         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
32937         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
32938         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
32939         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
32940         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
32941         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
32942         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
32943         Likewise.
32944         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
32945         Likewise.
32946         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
32947         Likewise.
32948         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
32949         Likewise.
32950         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
32951         (__lll_timedlock_elision, __lll_lock_elision)
32952         (__lll_unlock_elision, __lll_trylock_elision)
32953         (lll_timedlock_elision, lll_lock_elision)
32954         (lll_unlock_elision, lll_trylock_elision): Add.
32955         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
32956         (pthread_mutex_t): Add lock elision support for s390.
32957
32958 2014-05-14  Wilco  <wdijkstr@arm.com>
32959
32960         * sysdeps/arm/fclrexcpt.c: Cleanup.
32961         * sysdeps/arm/fedisblxcpt.c: Cleanup.
32962         * sysdeps/arm/feenablxcpt.c: Cleanup.
32963         * sysdeps/arm/fegetenv.c: Cleanup.
32964         * sysdeps/arm/fegetexcept.c: Cleanup.
32965         * sysdeps/arm/fegetround.c: Cleanup.
32966         * sysdeps/arm/feholdexcpt.c: Cleanup.
32967         * sysdeps/arm/fesetenv.c: Cleanup.
32968         * sysdeps/arm/fesetround.c: Cleanup.
32969         * sysdeps/arm/feupdateenv.c: Cleanup.
32970         * sysdeps/arm/fgetexcptflg.c: Cleanup.
32971         * sysdeps/arm/fraiseexcpt.c: Cleanup.
32972         * sysdeps/arm/fsetexcptflg.c: Cleanup.
32973         * sysdeps/arm/ftestexcept.c: Cleanup.
32974         * sysdeps/arm/get-rounding-mode.h: Cleanup.
32975         * sysdeps/arm/setfpucw.c: Cleanup.
32976
32977 2014-05-09  Will Newton  <will.newton@linaro.org>
32978
32979         * sysdeps/arm/armv7/strcmp.S: New file.
32980         * NEWS: Mention addition of ARMv7 optimized strcmp.
32981
32982 2014-05-08  Roland McGrath  <roland@hack.frob.com>
32983
32984         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
32985         look for %.ac rather than %.in.
32986
32987         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
32988         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
32989         * sysdeps/mach/hurd/configure: Regenerated.
32990         * sysdeps/unix/sysv/linux/configure: Regenerated.
32991
32992         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
32993
32994 2014-05-07  Steve Ellcey  <sellcey@mips.com>
32995
32996         [BZ# 16922]
32997         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
32998         (LONG_SUB): Ditto.
32999         (PTR_SUB): Ditto.
33000
33001 2014-05-07  Andreas Schwab  <schwab@suse.de>
33002
33003         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33004         when skipping over non-matching result from nscd.
33005
33006 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33007
33008         [BZ #16876]
33009         * nptl/sockperf.c (client): Check socket return value.
33010
33011         [BZ #16877]
33012         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33013         nscd security class.
33014
33015 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33016
33017         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33018         * sysdeps/arm/unwind.h: ... here.
33019
33020 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33021
33022         [BZ# 16916]
33023         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33024         Define.
33025
33026 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33027
33028         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33029         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33030         multiarch strncpy for PPC64.
33031         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33032         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33033         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33034         multiarch optimizations.
33035         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33036         (__libc_ifunc_impl_list): Likewise.
33037         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33038         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33039         multiarch stpncpy for PPC64.
33040         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33041         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33042
33043 2014-05-06  Andreas Schwab  <schwab@suse.de>
33044
33045         [BZ #16912]
33046         * gmon/mcount.c (_MCOUNT_DECL): Use
33047         atomic_compare_and_exchange_bool_acq instead of
33048         catomic_compare_and_exchange_bool_acq.
33049
33050 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33051
33052         * elf/Makefile (others, install-bin): Remove pldd.
33053         (pldd-modules): Variable removed.
33054         ($(objpfx)pldd): Target removed.
33055         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33056         (others, install-bin): Append pldd here.
33057         ($(objpfx)pldd): New target.
33058
33059         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33060         to 0, so the first #if test emitted later doesn't see it undefined.
33061         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33062         * sysdeps/gnu/errlist.c: Regenerated.
33063
33064 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33065
33066         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33067         [libc_hidden_builtin_def]: Define to empty value.
33068         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33069         [libc_hidden_builtin_def]: Likewise.
33070         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33071         [libc_hidden_builtin_def]: Likewise.
33072         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33073         [libc_hidden_builtin_def]: Likewise.
33074         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33075         __redirect_memcpy and define ifunc as default hidden symbol.
33076         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33077         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33078
33079 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33080
33081         * locale/iso-4217.def: Reintroduce XDR currency.
33082
33083 2014-05-04  Allan McRae  <allan@archlinux.org>
33084
33085         * po/eo.po: Update Esperanto translation from translation project.
33086
33087 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33088
33089         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33090         and FEATURE_INDEX_MAX to 1.
33091         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33092
33093 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33094
33095         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33096         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33097         * iconvdata/big5.c (ONE_DIRECTION): Define.
33098         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33099         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33100         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33101         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33102         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33103         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33104         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33105         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33106         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33107         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33108         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33109         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33110         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33111         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33112         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33113         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33114         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33115         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33116         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33117         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33118         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33119         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33120         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33121         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33122         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33123         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33124         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33125         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33126         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33127         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33128         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33129         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33130         * iconvdata/johab.c (ONE_DIRECTION): Define.
33131         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33132         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33133         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33134         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33135         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33136         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33137         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33138         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33139         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33140         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33141
33142 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33143
33144         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33145         (_IO_JUMPS_OFFSET): Define to 0.
33146
33147         * nptl/sysdeps/pthread/bits/libc-lock.h
33148         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33149         (__libc_lock_define_initialized_recursive): Always define using
33150         initializer.  Modern compilers treat uninitialized (implicit zero) and
33151         explicit zero initializers the same (i.e. put the datum in bss).
33152
33153 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33154
33155         * nscd/nscd-client.h: Include <string.h>.
33156
33157 2014-05-01  David S. Miller  <davem@davemloft.net>
33158
33159         [BZ #16885]
33160         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33161         multiple zero bytes exist at the end of a string.
33162         Reported by Aurelien Jarno <aurelien@aurel32.net>
33163
33164         * string/test-strcmp.c (check): Add explicit test for situations where
33165         there are multiple zero bytes after the first.
33166
33167 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33168
33169         [BZ #16890]
33170         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33171         when compiling wprintf.
33172         * stdio-common/tstdiomisc.c (t3): New function.
33173         (main): Call it.
33174
33175 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33176
33177         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33178         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33179         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33180         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33181
33182 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33183
33184         * stdlib/longlong.h: Updated from GCC.
33185
33186 2014-05-01  Will Newton  <will.newton@linaro.org>
33187             Bernard Ogden  <bernie.ogden@linaro.org>
33188
33189         * NEWS: Update fixed bug list.
33190
33191         [BZ #15119]
33192         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33193
33194 2014-04-30  David S. Miller  <davem@davemloft.net>
33195
33196         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33197         (libc_feholdexcept_setround_sparc_ctx): New function.
33198         (libc_fesetenv_sparc_ctx): Likewise.
33199         (libc_feupdateenv_sparc_ctx): Likewise.
33200         (libc_feholdsetround_sparc_ctx): Likewise.
33201         (libc_feholdexcept_setround_ctx): Define.
33202         (libc_feholdexcept_setroundf_ctx): Likewise.
33203         (libc_feholdexcept_setroundl_ctx): Likewise.
33204         (libc_fesetenv_ctx): Likewise.
33205         (libc_fesetenvf_ctx): Likewise.
33206         (libc_fesetenvl_ctx): Likewise.
33207         (libc_feupdateenv_ctx): Likewise.
33208         (libc_feupdateenvf_ctx): Likewise.
33209         (libc_feupdateenvl_ctx): Likewise.
33210         (libc_feresetround_ctx): Likewise.
33211         (libc_feresetroundf_ctx): Likewise.
33212         (libc_feresetroundl_ctx): Likewise.
33213         (libc_feholdsetround_ctx): Likewise.
33214         (libc_feholdsetroundf_ctx): Likewise.
33215         (libc_feholdsetroundl_ctx): Likewise.
33216
33217         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33218         with __USE_GNU instead of XOPEN cpp guards.
33219
33220         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33221         0.
33222
33223         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33224         with XOPEN cpp guards.
33225
33226 2014-04-30  Julian Brown  <julian@codesourcery.com>
33227
33228         [BZ #16888]
33229         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33230         handling.
33231
33232 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33233
33234         [BZ #9894]
33235         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33236         Change to 2.6.32.
33237         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33238         * sysdeps/unix/sysv/linux/configure: Regenerated.
33239         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33240         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33241         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33242         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33243         * README: Update reference to required Linux kernel version.
33244         * manual/install.texi (Linux): Update reference to required Linux
33245         kernel headers version.
33246         * INSTALL: Regenerated.
33247
33248         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33249         header inclusion.
33250         [POSIX] (limits.h): Likewise.
33251         [POSIX] (math.h): Likewise.
33252         [POSIX] (sys/wait.h): Likewise.
33253         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33254         function.
33255         [POSIX] (stddef.h): Do not allow header inclusion.
33256
33257 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33258
33259         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33260
33261 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33262
33263         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33264         Return immediately after lll_futex_wake.
33265
33266 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33267
33268         [BZ #16791]
33269         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33270         structure.
33271         (datahead_init_pos): Call datahead_init_common early.
33272         (datahead_init_neg): Likewise.
33273
33274         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33275         datahead_init_neg): New functions.
33276         * nscd/aicache.c (addhstaiX): Use them.
33277         * nscd/grpcache.c (cache_addgr): Likewise.
33278         * nscd/hstcache.c (cache_addhst): Likewise.
33279         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33280         * nscd/netgroupcache.c (do_notfound): Likewise.
33281         (addgetnetgrentX): Likewise.
33282         (addinnetgrX): Likewise.
33283         * nscd/pwdcache.c (cache_addpw): Likewise.
33284         * nscd/servicescache.c (cache_addserv): Likewise.
33285
33286 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33287             Atsushi Onoe  <atsushi@onoe.org>
33288
33289         [BZ #14308]
33290         [BZ #12994]
33291         [BZ #13651]
33292         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33293         one response is valid.
33294         * resolv/res_send.c (send_dg): Check for validity of other
33295         response if the current response is a referral.
33296
33297 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33298
33299         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33300
33301 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33302
33303         [BZ #16823]
33304         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33305         Always divide by positive zero when computing -Inf result.
33306         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33307         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33308
33309 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33310
33311         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33312         FPSCR if value do not change.
33313         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33314         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33315         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33316         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33317         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33318         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33319         function.
33320
33321 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33322
33323         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33324         * sysdeps/unix/sysv/linux/hppa: Move directory from
33325         ports/systeps/unix/sysv/linux/hppa.
33326         * README: Update listing for hppa-*-linux-gnu.
33327
33328 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33329
33330         [BZ #16754]
33331         * manual/stdio.texi (Hook functions): Fix types of stream hook
33332         functions.
33333         [BZ #16854]
33334         * socket/sys/socket.h: Fix typo in comment.
33335
33336 2014-04-28  Wilco  <wdijkstr@arm.com>
33337
33338         * sysdeps/arm/fenv_private.h: New file.
33339         * sysdeps/arm/math_private.h: New file.
33340         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33341
33342 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33343
33344         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33345         with __int128_t.
33346         (La_x86_64_retval): Likewise.
33347
33348 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33349
33350         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33351         fpsr if value didn't change.
33352         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33353         to fpcr if value didn't change.
33354         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33355         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33356         fpsr or fpcr if value didn't change.
33357         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33358         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33359         fpcr if value didn't change.
33360         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33361         to fpsr if value didn't change.
33362
33363 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33364
33365         * nptl/tst-sem3.c: Use test-skeleton.c
33366         (main): Rename to do_test.  Use return instead of
33367         exit.
33368         * nptl/tst-sem4.c: Use test-skeleton.c
33369         (main): Rename to do_test.
33370
33371 2014-04-22  David S. Miller  <davem@davemloft.net>
33372
33373         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33374         (struct sigaction): New struct member __glibc_reserved0, change
33375         type of sa_flags to int.
33376
33377 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33378
33379         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33380         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33381
33382 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33383
33384         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33385         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33386
33387 2014-04-22  Will Newton  <will.newton@linaro.org>
33388             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33389
33390         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33391         (__longjmp): Add longjmp and longjmp_target SystemTap
33392         probes.
33393         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33394         (__sigsetjmp): Add setjmp SystemTap probe.
33395
33396 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33397
33398         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33399         match manual order.
33400
33401 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33402
33403         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33404
33405         * sysdeps/powerpc/fpu/fenv_private.h
33406         (libc_feholdexcept_setroundl_ctx): Define to
33407         libc_feholdexcept_setround_ppc_ctx.
33408         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33409         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33410         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33411         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33412
33413 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33414
33415         * sysdeps/aarch64/math-tests.h: New file.
33416
33417 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33418
33419         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33420         New.
33421         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33422         Check and set bit_AVX2_Usable.
33423         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33424         macro.
33425         (bit_AVX2): Likewise.
33426         (index_AVX2_Usable): Likewise.
33427         (CPUID_AVX2): Likewise.
33428         (HAS_AVX2): Likewise.
33429
33430 2014-04-17  Will Newton  <will.newton@linaro.org>
33431
33432         * manual/setjmp.texi (System V contexts): Add note that
33433         calling setcontext on a context created by a call to a
33434         signal handler is undefined.  Update text to note that
33435         setcontext from a signal handler is possible but not
33436         recommended.
33437
33438         [BZ #16629]
33439         * stdlib/tst-setcontext.c: Include signal.h.
33440         (main): Check that the signal stack before and
33441         after swapcontext is the same.
33442
33443         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33444         Re-implement to restore registers in user code and avoid
33445         rt_sigreturn system call.
33446
33447 2014-04-17  Wilco  <wdijkstr@arm.com>
33448
33449         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33450         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33451         * math/test-fenv.c: Skip exception trap tests on targets which only
33452         support non-stop mode.
33453
33454 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33455             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33456
33457         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33458         (libc_feholdsetround_aarch64_ctx)
33459         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33460         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33461         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33462         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33463         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33464         (libc_feresetround_noexl_ctx): Define.
33465
33466 2014-04-16  Richard Henderson  <rth@redhat.com>
33467
33468         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33469
33470         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33471         unwind tables.
33472
33473         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33474         const from the non-libc, non-ldso copy.
33475
33476         * sysdeps/alpha/libm-test-ulps: Regenerate.
33477
33478 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33479             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33480
33481         * sysdeps/aarch64/fpu/math_private.h: New file.
33482
33483 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33484
33485         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33486
33487 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33488
33489         [BZ #16275]
33490         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33491         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33492         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33493         Intel MPX bound registers before _dl_profile_fixup.
33494         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33495         registers after _dl_profile_fixup.  Save and restore bound
33496         registers bnd0/bnd1 when calling _dl_call_pltexit.
33497         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33498         (LR_BND_OFFSET): Likewise.
33499         (LRV_BND0_OFFSET): Likewise.
33500         (LRV_BND1_OFFSET): Likewise.
33501
33502 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33503
33504         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33505         to...
33506         * sysdeps/mach/hurd/i386/tls.h: ... here.
33507         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33508         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33509         fields.
33510
33511 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33512
33513         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33514
33515 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33516
33517         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33518
33519 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33520
33521         [BZ #14770]
33522         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33523         * sysdeps/s390/configure: Regenerate.
33524
33525         [BZ #16824]
33526         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33527         Set round-to-nearest internally to reduce error accumulation.
33528
33529 2014-04-16  Alan Modra  <amodra@gmail.com>
33530
33531         [BZ #16740]
33532         [BZ #16619]
33533         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33534         * math/libm-test.inc (frexp_test_data): Add tests.
33535         * NEWS: Update fixed bug list.
33536
33537 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33538
33539         * benchtests/Makefile: Depend on libraries in build directory.
33540         (bench-math): Separate out math tests.
33541         (bench-pthread): Separate out pthread tests.
33542         (bench): Include math and pthread tests.
33543
33544 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33545
33546         [BZ #16831]
33547         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33548         _dl_debug_initialize.
33549
33550         * configure.ac: Remove SELinux header check.
33551         * configure: Regenerate.
33552         * nscd/selinux.c (perms): Array of const char* to permission names.
33553         (nscd_request_avc_has_perm): Call security_deny_unknown to find
33554         default policy. Call string_to_security_class and string_to_av_perm to
33555         translate strings. Enforce default policy and call avs_has_perm with
33556         results of translated strings.
33557
33558 2014-04-13  David S. Miller  <davem@davemloft.net>
33559
33560         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33561
33562 2014-04-12  Allan McRae  <allan@archlinux.org>
33563
33564         [BZ #16838]
33565         * manual/string.texi (Collation Functions): Fix qsort argument
33566         order in example.
33567         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33568
33569 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
33570
33571         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
33572         Make the test a no-op if there are no exceptions defined.
33573
33574 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33575
33576         * elf/Makefile (tests): make tst-dlopen-aout conditional on
33577         enable-hardcoded-path-in-tests
33578
33579 2014-04-11  Will Newton  <will.newton@linaro.org>
33580
33581         * benchtests/Makefile (extra-objs): Add json-lib.o.
33582         (bench-func): Tidy up JSON output.
33583         * benchtests/bench-skeleton.c: Include json-lib.h.
33584         (main): Use JSON library functions to do output of
33585         benchmark results.
33586         * benchtests/bench-timing-type.c (main): Output the
33587         timing type simply, leaving formatting to the user.
33588         * benchtests/json-lib.c: New file.
33589         * benchtests/json-lib.h: Likewise.
33590
33591 2014-04-11  Torvald Riegel  <triegel@redhat.com>
33592
33593         [BZ #15215]
33594         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
33595         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
33596         memory barriers.  Add comments.
33597         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
33598         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
33599         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
33600         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
33601         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
33602         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
33603
33604 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
33605
33606         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
33607         * sysdeps/s390/s390-64/configure.ac: ... this ...
33608         * sysdeps/s390/configure.ac: ... to here.
33609         * sysdeps/s390/s390-32/configure: Delete file.
33610         * sysdeps/s390/s390-64/configure: Delete file.
33611         * sysdeps/s390/configure: Regenerate.
33612
33613 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
33614
33615         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
33616
33617 2014-04-11  Will Newton  <will.newton@linaro.org>
33618
33619         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
33620         to zero if it is not defined elsewhere.  (mtrim): Test
33621         the value of MALLOC_DEBUG with #if rather than #ifdef.
33622
33623 2014-04-10 Torvald Riegel  <triegel@redhat.com>
33624
33625         * benchtests/pthread_once-inputs: New file.
33626         * benchtests/pthread_once-source.c: New file.
33627         * benchtests/README: Update documentation.
33628
33629 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
33630             H.J. Lu  <hongjiu.lu@intel.com>
33631
33632         [BZ #16275]
33633         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
33634         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
33635         * sysdeps/x86_64/configure: Regenerated.
33636         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
33637         macro.
33638         (REGISTER_SAVE_RAX): Likewise.
33639         (REGISTER_SAVE_RCX): Likewise.
33640         (REGISTER_SAVE_RDX): Likewise.
33641         (REGISTER_SAVE_RSI): Likewise.
33642         (REGISTER_SAVE_RDI): Likewise.
33643         (REGISTER_SAVE_R8): Likewise.
33644         (REGISTER_SAVE_R9): Likewise.
33645         (REGISTER_SAVE_BND0): Likewise.
33646         (REGISTER_SAVE_BND1): Likewise.
33647         (REGISTER_SAVE_BND2): Likewise.
33648         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
33649         bound registers when calling _dl_fixup.
33650
33651 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33652
33653         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
33654         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
33655         of its definition.
33656         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
33657         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
33658         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
33659         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
33660         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
33661         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
33662         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
33663
33664 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
33665
33666         [BZ #15514]
33667         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
33668         pathconf(_PC_NAME_MAX).
33669
33670 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33671
33672         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
33673         Remove macro usage.
33674         (__PTHREAD_SPINS): Move definition to ...
33675         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
33676         (__PTHREAD_SPINS): ... here.
33677         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33678         (__PTHREAD_SPIN): Likewise.
33679         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
33680         (__PTHREAD_SPIN): Likewise.
33681         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
33682         (__PTHREAD_SPIN): Likewise.
33683         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
33684         (__PTHREAD_SPIN): Likewise.
33685         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
33686         (__PTHREAD_SPIN): Likewise.
33687         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
33688         (__PTHREAD_SPIN): Likewise.
33689         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
33690         (__PTHREAD_SPIN): Likewise.
33691         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
33692         (__PTHREAD_SPIN): Likewise.
33693         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
33694         (__PTHREAD_SPIN): Likewise.
33695         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
33696         (__PTHREAD_SPIN): Likewise.
33697         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
33698         (__PTHREAD_SPIN): Likewise.
33699         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
33700         (__PTHREAD_SPIN): Likewise.
33701
33702         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
33703         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
33704         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
33705         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
33706         imply folder.
33707         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
33708         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
33709         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
33710         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
33711         correct imply path.
33712         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
33713         strlen symbol for non multi-arch builds.
33714         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
33715         missing hidden_def and weak_alias.
33716
33717 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
33718
33719         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
33720
33721 2014-04-07  Will Newton  <will.newton@linaro.org>
33722
33723         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
33724         and contents.  [!_LIBC] Remove #ifndef and contents.
33725         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
33726         * string/memccpy.c (__memccpy): Use ANSI prototype.
33727         * string/memfrob.c (memfrob): Likewise.
33728         * string/strcoll.c (STRCOLL): Likewise.
33729         * string/strlen.c (strlen): Likewise.
33730         * string/strtok.c (STRTOK): Likewise.
33731         * string/strcat.c: Remove unused #include of memcopy.h.
33732         (strcat): Use ANSI prototype.
33733         * string/strchr.c: Remove unused #include of memcopy.h.
33734         (strchr): Use ANSI prototype.
33735         * string/strcmp.c: Remove unused #include of memcopy.h.
33736         (strcmp): Use ANSI prototype.
33737         * string/strcpy.c: Remove unused #include of memcopy.h.
33738         (strcpy): Use ANSI prototype.
33739
33740 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33741
33742         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
33743         * config.make.in (config-extra-cppflags): Set it from
33744         libc_extra_cppflags.
33745         * configure.ac (libc_extra_cflags): Make it accumulate over
33746         configure fragments.
33747         (libc_extra_cppflags): New flag.
33748         * configure. Regenerate.
33749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33750         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
33751         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
33752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
33753
33754         [BZ #16815]
33755         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
33756         result for FE_DOWNWARD rounding mode.
33757         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
33758         Likewise.
33759         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33760
33761 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
33762
33763         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
33764         in function argument name.
33765
33766 2014-04-03  David Svoboda  <svoboda@cert.org>
33767
33768         [BZ #5666]
33769         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
33770         explicitly.
33771
33772 2014-04-03  Roland McGrath  <roland@hack.frob.com>
33773
33774         * elf/dl-unmap-segments.h: New file.
33775         * sysdeps/generic/ldsodefs.h
33776         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
33777         * elf/dl-close.c: Include <dl-unmap-segments.h>.
33778         * elf/dl-fptr.c: Likewise.
33779         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
33780         * sysdeps/aarch64/tlsdesc.c: Likewise.
33781         * sysdeps/arm/tlsdesc.c: Likewise.
33782         * sysdeps/i386/tlsdesc.c: Likewise.
33783         * sysdeps/tile/dl-runtime.c: Likewise.
33784         * sysdeps/x86_64/tlsdesc.c: Likewise.
33785         * elf/dl-load.h: New file.
33786         * elf/dl-load.c: Include it.
33787         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
33788         Macros moved to dl-load.h.
33789         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
33790         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
33791         Use _dl_unmap_segments in place of __munmap.
33792         Break out segment-mapping loop into ...
33793         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
33794
33795 2014-04-03  Will Newton  <will.newton@linaro.org>
33796
33797         * elf/dl-lookup.c (do_lookup_x): Remove comment
33798         referring to nested function and move variable
33799         declarations down to before first use.
33800
33801 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
33802
33803         [BZ #16799]
33804         [BZ #16800]
33805         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
33806         with 0 numerator.
33807         * math/s_catanf.c (__catanf): Likewise.
33808         * math/s_catanh.c (__catanh): Likewise.
33809         * math/s_catanhf.c (__catanhf): Likewise.
33810         * math/s_catanhl.c (__catanhl): Likewise.
33811         * math/s_catanl.c (__catanl): Likewise.
33812         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
33813         by positive zero when computing -Inf result.
33814         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
33815         (catanh_test): Likewise.
33816         * sysdeps/i386/fpu/libm-test-ulps: Update.
33817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33818
33819         [BZ #16789]
33820         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
33821         instead of using underflowing value in computing result.
33822         * math/s_clog10.c (__clog10): Likewise.
33823         * math/s_clog10f.c (__clog10f): Likewise.
33824         * math/s_clog10l.c (__clog10l): Likewise.
33825         * math/s_clogf.c (__clogf): Likewise.
33826         * math/s_clogl.c (__clogl): Likewise.
33827         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
33828         (clog10_test): Likewise.
33829         * sysdeps/i386/fpu/libm-test-ulps: Update.
33830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33831
33832 2014-04-02  Alan Modra  <amodra@gmail.com>
33833
33834         [BZ #16739]
33835         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
33836         output when value is near a power of two.  Use int64_t for lx and
33837         remove casts.  Use decimal rather than hex exponent constants.
33838         Don't use long double multiplication when double will suffice.
33839         * math/libm-test.inc (nextafter_test_data): Add tests.
33840         * NEWS: Add 16739 and 16786 to bug list.
33841
33842         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
33843
33844         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
33845
33846 2014-04-01  Will Newton  <will.newton@linaro.org>
33847
33848         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
33849         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
33850
33851 2014-04-01  Florian Weimer  <fweimer@redhat.com>
33852
33853         [BZ #13347]
33854         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
33855         * nptl/tst-setuid2.c: New file.
33856         * nptl/Makefile (xtests): Add tst-setuid2.
33857
33858 2014-04-01  Alan Modra  <amodra@gmail.com>
33859
33860         [BZ #16786]
33861         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
33862
33863 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
33864
33865         [BZ #6803]
33866         [BZ #6804]
33867         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
33868         set errno as appropriate.
33869         * math/w_scalbf.c (__scalbf): Likewise.
33870         * math/w_scalbl.c (__scalbl): Likewise.
33871         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
33872         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
33873         * math/libm-test.inc (scalb_test_data): Add errno expectations.
33874         Add more NaN tests.
33875
33876         [BZ #16349]
33877         * math/w_atan2.c: Include <errno.h>.
33878         (__atan2): Set errno for result underflowing to zero.
33879         * math/w_atan2f.c: Include <errno.h>.
33880         (__atan2f): Set errno for result underflowing to zero.
33881         * math/w_atan2l.c: Include <errno.h>.
33882         (__atan2l): Set errno for result underflowing to zero.
33883         * math/auto-libm-test-in: Don't allow missing errno for some atan2
33884         tests.
33885         * math/auto-libm-test-out: Regenerated.
33886
33887 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33888
33889         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
33890         Encode instruction correctly in little endian.
33891         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
33892         Likewise.
33893         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
33894         Likewise.
33895         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
33896         Likewise.
33897         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
33898         Likewise.
33899
33900 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
33901
33902         [BZ #9894]
33903         * sysdeps/unix/sysv/linux/kernel-features.h
33904         [__sparc__ && !__arch64__ && !__sparc_v9__]
33905         (__ASSUME_SET_ROBUST_LIST): Do not define.
33906         [__sparc__ && !__arch64__ && !__sparc_v9__]
33907         (__ASSUME_FUTEX_LOCK_PI): Likewise.
33908         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
33909         Likewise.
33910         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33911         (__ASSUME_FUTEX_LOCK_PI): Undefine.
33912         (__ASSUME_REQUEUE_PI): Likewise.
33913         (__ASSUME_SET_ROBUST_LIST): Likewise.
33914         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33915         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
33916         Undefine.
33917         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33918         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
33919         Likewise.
33920         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
33921         Likewise.
33922         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
33923         Likewise.
33924         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33925         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
33926         Undefine.
33927         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
33928         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
33929         Likewise.
33930
33931         [BZ #16648]
33932         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33933         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
33934         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
33935
33936 2014-03-31  Will Newton  <will.newton@linaro.org>
33937
33938         * benchtests/Makefile (bench): Add ffs and ffsll to list
33939         of tests.
33940         * benchtests/ffs-inputs: New file.
33941         * benchtests/ffsll-inputs: Likewise.
33942
33943 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
33944
33945         [BZ #16770]
33946         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
33947         too large before casting to int.
33948         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
33949         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
33950         * math/libm-test.inc (scalb_test_data): Add more tests.
33951
33952 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
33953
33954         * benchtests/Makefile (DETAILED_OPT): New make option.
33955         (bench-func): Run benchmark program with -d if DETAILED_OPT is
33956         set.
33957         * benchtests/bench-skeleton.c: Include stdbool.h.
33958         (main): Store and print timings per input.
33959         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
33960         member to each argument value.
33961         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
33962         (_print_arg_data): Initialize per-input timing to 0.
33963
33964         * benchtests/Makefile (timing-type): New binary.
33965         (bench-clean): Also remove bench-timing-type.
33966         (bench): New target for timing-type.
33967         (bench-func): Print output in JSON format.
33968         * benchtests/bench-skeleton.c (main): Print output in JSON
33969         format.
33970         * benchtests/bench-timing-type.c: New file.
33971         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
33972         (TIMING_PRINT_STATS): Remove.
33973         * benchtests/scripts/bench.py (_print_arg_data): Store variant
33974         name separately.
33975
33976         * benchtests/bench-modf.c: Remove.
33977         * benchtests/modf-inputs: New inputs file.
33978
33979 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
33980
33981         [BZ #16362]
33982         * math/s_clog10.c (M_PI_LOG10E): New macro.
33983         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
33984         imaginary parts are 0.
33985         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
33986         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
33987         imaginary parts are 0.
33988         * math/s_clog10l.c (M_PI_LOG10El): New macro.
33989         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
33990         imaginary parts are 0.
33991         * math/libm-test.inc (clog10_test_data): Update expected results
33992         for when real and imaginary parts are 0.
33993
33994 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
33995
33996         * elf/dl-load.c: Finish conversion of __builtin_expect into
33997         __glibc_{un}likely.
33998
33999 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34000
34001         [BZ #16348]
34002         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34003         1+x for argument with exponent below -67.
34004         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34005         Likewise.
34006         * math/auto-libm-test-in: Add more tests of exp.
34007         * math/auto-libm-test-out: Regenerated.
34008
34009 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34010
34011         [BZ #16759]
34012         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34013         (nscd_getnetgrent): Use it.
34014
34015         [BZ #16760]
34016         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34017         of stpcpy.
34018
34019 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34020
34021         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34022         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34023         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34024         (lll_robust_unlock): Remove out of line section. Use cfi
34025         intrinsics.
34026         (LLL_STUB_UNWIND_INFO*): Remove.
34027         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34028         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34029         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34030         (lll_robust_unlock): Remove out of line section. Use cfi
34031         intrinsics.
34032         (LLL_STUB_UNWIND_INFO*): Remove.
34033
34034 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34035
34036         [BZ #16758]
34037         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34038         blank values.
34039
34040 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34041
34042         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34043
34044 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34045
34046         [BZ #16198]
34047         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34048         fnstenv.
34049         * math/test-fenv-preserve.c: New file.
34050         * math/Makefile (tests): Add test-fenv-preserve.
34051
34052 2014-03-26  Will Newton <will.newton@linaro.org>
34053
34054         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34055
34056 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34057
34058         * scripts/versionlist.awk: Partition the version sets and emit all
34059         GLIBC_* (sorted) before all others (sorted).
34060
34061 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34062
34063         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34064         GLIBC_2.2.5 version.
34065
34066 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34067
34068         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34069         calls.
34070
34071         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34072         previous change.
34073
34074         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34075
34076 2014-03-25  Andreas Schwab  <schwab@suse.de>
34077
34078         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34079         label to be used after in6ailist is initialized.
34080
34081 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34082
34083         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34084         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34085
34086 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34087
34088         [BZ #16357]
34089         [BZ #16599]
34090         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34091         min_plus_half.
34092         (fp_formats): Update initializers.
34093         (init_fp_formats): Initialize new field.
34094         (output_for_one_input_case): Allow underflow for results up to
34095         min_plus_half.
34096         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34097         * math/auto-libm-test-in: Don't mark some underflows from asin and
34098         atanh as spurious.
34099         * math/auto-libm-test-out: Regenerated.
34100         * sysdeps/i386/fpu/libm-test-ulps: Update.
34101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34102
34103 2014-03-25  Andreas Schwab  <schwab@suse.de>
34104
34105         * libio/Makefile (tst-ftell-partial-wide-ENV)
34106         (tst-ftell-active-handler-ENV): Define.
34107
34108 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34109
34110         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34111
34112 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34113
34114         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34115
34116 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34117
34118         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34119         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34120         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34121
34122 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34123
34124         [BZ #16634]
34125         * elf/dl-load.c (open_verify): Add mode parameter.
34126         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34127         (open_path): Change from boolean 'secure' to complete flag 'mode'
34128         (_dl_map_object): Adjust.
34129         * elf/Makefile (tests): Add tst-dlopen-aout.
34130         * elf/tst-dlopen-aout.c: New test.
34131
34132 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34133
34134         [BZ #16714]
34135         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34136         (struct stat): Rename member pad0 to __glibc_reserved0.
34137
34138         [BZ #16712]
34139         * sysdeps/s390/s390-32/bits/wordsize.h
34140         (__WORDSIZE32_SIZE_ULONG): New define.
34141         * sysdeps/s390/s390-64/bits/wordsize.h
34142         (__WORDSIZE32_SIZE_ULONG): Likewise.
34143         * sysdeps/generic/stdint.h (SIZE_MAX):
34144         Define as UL if __WORDSIZE32_SIZE_ULONG.
34145
34146         [BZ #16713]
34147         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34148         (__glibc_reserved0): New variable.
34149         (sa_flags): Change type to int.
34150
34151         * posix/Makefile (before-compile): Use += before-compile instead
34152         of a :=.
34153
34154         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34155         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34156
34157 2014-03-20  Andreas Schwab  <schwab@suse.de>
34158
34159         [BZ #16743]
34160         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34161         non-matching result from nscd.
34162
34163 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34164
34165         * scripts/bench.py: Moved to ...
34166         * benchtests/scripts/bench.py: ... here.
34167         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34168
34169 2014-03-24  Andreas Schwab  <schwab@suse.de>
34170
34171         [BZ #16002]
34172         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34173         alloca_account and account alloca use for struct in6ailist.
34174
34175 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34176
34177         [BZ #16284]
34178         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34179         rounding mode to recompute results that overflow to infinity or
34180         underflow to zero.
34181         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34182         bug 16284.
34183         * math/auto-libm-test-out: Regenerated.
34184         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34185         (ccosh_test): Likewise.
34186         (csin_test_data): Use plus_oflow.
34187         (csin_test): Use ALL_RM_TEST.
34188         (csinh_test_data): Use plus_oflow.
34189         (csinh_test): Use ALL_RM_TEST.
34190         * sysdeps/i386/fpu/libm-test-ulps: Update.
34191         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34192
34193 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34194
34195         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34196         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34197         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34198
34199         [BZ #16731]
34200         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34201         when x - 1 is zero.
34202         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34203         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34204         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34205         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34206         argument is 1.
34207         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34208         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34209         zero.
34210         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34211         * sysdeps/i386/fpu/libm-test-ulps: Update.
34212         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34213
34214 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34215
34216         * scripts/bench.pl: Remove file.
34217         * scripts/bench.py: New benchmark script.
34218         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34219         * benchtests/README: Mention python dependency.
34220         * scripts/pylintrc: New file.
34221         * scripts/pylint: New file.
34222
34223         * bits/mathdef.h: Use #ifdef instead of #if.
34224         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34225         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34226         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34227         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34228         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34229         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34230
34231 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34232             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34233
34234         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34235         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34236         and strpbrk-ppc64 objects.
34237         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34238         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34239         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34240         multiarch strpbrk for POWER7.
34241         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34242         multiarch strpbrk for PPC64.
34243         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34244         ifunc selector.
34245         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34246         strpbrk for POWER7.
34247
34248 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34249
34250         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34251         (atan_test): Likewise.
34252         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34253         (atanh_test): Use ALL_RM_TEST.
34254         (atan2_test_data): Likewise.
34255         (cabs_test): Likewise.
34256         (cacosh_test): Likewise.
34257         (carg_test): Likewise.
34258         (casin_test): Likewise.
34259         (casinh_test): Likewise.
34260         (cbrt_test): Likewise.
34261         (csqrt_test): Likewise.
34262         (erf_test): Likewise.
34263         (erfc_test): Likewise.
34264         (pow10_test): Likewise.
34265         (exp2_test): Likewise.
34266         (hypot_test): Likewise.
34267         (j0_test): Likewise.
34268         (j1_test): Likewise.
34269         (lgamma_test): Likewise.
34270         (gamma_test): Likewise.
34271         (sincos_test): Likewise.
34272         (tanh_test): Likewise.
34273         (y0_test): Likewise.
34274         (y1_test): Likewise.
34275         * sysdeps/i386/fpu/libm-test-ulps: Update.
34276         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34277
34278 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34279
34280         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34281         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34282         and strcspn-ppc64 objects.
34283         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34284         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34285         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34286         multiarch strcspn for POWER7.
34287         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34288         multiarch strcspn for PPC64.
34289         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34290         ifunc selector.
34291         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34292         strcspn for POWER7.
34293
34294 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34295
34296         * math/gen-libm-test.pl (generate_testfile): Expect only function
34297         name as argument to AUTO_TESTS_* and pass results for all rounding
34298         modes to parse_args.
34299         (parse_auto_input): Separate inputs of automatic tests from
34300         outputs before storing in %auto_tests.
34301         * math/libm-test.inc (acos_test_data): Update call to
34302         AUTO_TESTS_f_f.
34303         (acos_test): Use ALL_RM_TEST.
34304         (acos_tonearest_test_data): Remove.
34305         (acos_test_tonearest): Likewise.
34306         (acos_towardzero_test_data): Likewise.
34307         (acos_test_towardzero): Likewise.
34308         (acos_downward_test_data): Likewise.
34309         (acos_test_downward): Likewise.
34310         (acos_upward_test_data): Likewise.
34311         (acos_test_upward): Likewise.
34312         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34313         (asin_test_data): Likewise.
34314         (asin_test): Use ALL_RM_TEST.
34315         (asin_tonearest_test_data): Remove.
34316         (asin_test_tonearest): Likewise.
34317         (asin_towardzero_test_data): Likewise.
34318         (asin_test_towardzero): Likewise.
34319         (asin_downward_test_data): Likewise.
34320         (asin_test_downward): Likewise.
34321         (asin_upward_test_data): Likewise.
34322         (asin_test_upward): Likewise.
34323         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34324         (atan_test_data): Likewise.
34325         (atanh_test_data): Likewise.
34326         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34327         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34328         (carg_test_data): Likewise.
34329         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34330         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34331         (ccosh_test_data): Likewise.
34332         (cexp_test_data): Likewise.
34333         (clog_test_data): Likewise.
34334         (clog10_test_data): Likewise.
34335         (cos_test_data): Update call to AUTO_TESTS_f_f.
34336         (cos_test): Use ALL_RM_TEST.
34337         (cos_tonearest_test_data): Remove.
34338         (cos_test_tonearest): Likewise.
34339         (cos_towardzero_test_data): Likewise.
34340         (cos_test_towardzero): Likewise.
34341         (cos_downward_test_data): Likewise.
34342         (cos_test_downward): Likewise.
34343         (cos_upward_test_data): Likewise.
34344         (cos_test_upward): Likewise.
34345         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34346         (cosh_test): Use ALL_RM_TEST.
34347         (cosh_tonearest_test_data): Remove.
34348         (cosh_test_tonearest): Likewise.
34349         (cosh_towardzero_test_data): Likewise.
34350         (cosh_test_towardzero): Likewise.
34351         (cosh_downward_test_data): Likewise.
34352         (cosh_test_downward): Likewise.
34353         (cosh_upward_test_data): Likewise.
34354         (cosh_test_upward): Likewise.
34355         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34356         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34357         (ctan_test_data): Likewise.
34358         (ctan_test): Use ALL_RM_TEST.
34359         (ctan_tonearest_test_data): Remove.
34360         (ctan_test_tonearest): Likewise.
34361         (ctan_towardzero_test_data): Likewise.
34362         (ctan_test_towardzero): Likewise.
34363         (ctan_downward_test_data): Likewise.
34364         (ctan_test_downward): Likewise.
34365         (ctan_upward_test_data): Likewise.
34366         (ctan_test_upward): Likewise.
34367         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34368         (ctanh_test): Use ALL_RM_TEST.
34369         (ctanh_tonearest_test_data): Remove.
34370         (ctanh_test_tonearest): Likewise.
34371         (ctanh_towardzero_test_data): Likewise.
34372         (ctanh_test_towardzero): Likewise.
34373         (ctanh_downward_test_data): Likewise.
34374         (ctanh_test_downward): Likewise.
34375         (ctanh_upward_test_data): Likewise.
34376         (ctanh_test_upward): Likewise.
34377         (erf_test_data): Update call to AUTO_TESTS_f_f.
34378         (erfc_test_data): Likewise.
34379         (exp_test_data): Likewise.
34380         (exp_test): Use ALL_RM_TEST.
34381         (exp_tonearest_test_data): Remove.
34382         (exp_test_tonearest): Likewise.
34383         (exp_towardzero_test_data): Likewise.
34384         (exp_test_towardzero): Likewise.
34385         (exp_downward_test_data): Likewise.
34386         (exp_test_downward): Likewise.
34387         (exp_upward_test_data): Likewise.
34388         (exp_test_upward): Likewise.
34389         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34390         (exp10_test): Use ALL_RM_TEST.
34391         (exp10_tonearest_test_data): Remove.
34392         (exp10_test_tonearest): Likewise.
34393         (exp10_towardzero_test_data): Likewise.
34394         (exp10_test_towardzero): Likewise.
34395         (exp10_downward_test_data): Likewise.
34396         (exp10_test_downward): Likewise.
34397         (exp10_upward_test_data): Likewise.
34398         (exp10_test_upward): Likewise.
34399         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34400         (expm1_test_data): Likewise.
34401         (expm1_test): Use ALL_RM_TEST.
34402         (expm1_tonearest_test_data): Remove.
34403         (expm1_test_tonearest): Likewise.
34404         (expm1_towardzero_test_data): Likewise.
34405         (expm1_test_towardzero): Likewise.
34406         (expm1_downward_test_data): Likewise.
34407         (expm1_test_downward): Likewise.
34408         (expm1_upward_test_data): Likewise.
34409         (expm1_test_upward): Likewise.
34410         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34411         (fma_test): Use ALL_RM_TEST.
34412         (fma_towardzero_test_data): Remove.
34413         (fma_test_towardzero): Likewise.
34414         (fma_downward_test_data): Likewise.
34415         (fma_test_downward): Likewise.
34416         (fma_upward_test_data): Likewise.
34417         (fma_test_upward): Likewise.
34418         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34419         (j0_test_data): Update call to AUTO_TESTS_f_f.
34420         (j1_test_data): Likewise.
34421         (jn_test_data): Update call to AUTO_TESTS_if_f.
34422         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34423         (log_test_data): Update call to AUTO_TESTS_f_f.
34424         (log10_test_data): Likewise.
34425         (log1p_test_data): Likewise.
34426         (log2_test_data): Likewise.
34427         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34428         (pow_tonearest_test_data): Likewise.
34429         (sin_test_data): Update call to AUTO_TESTS_f_f.
34430         (sin_test): Use ALL_RM_TEST.
34431         (sin_tonearest_test_data): Remove.
34432         (sin_test_tonearest): Likewise.
34433         (sin_towardzero_test_data): Likewise.
34434         (sin_test_towardzero): Likewise.
34435         (sin_downward_test_data): Likewise.
34436         (sin_test_downward): Likewise.
34437         (sin_upward_test_data): Likewise.
34438         (sin_test_upward): Likewise.
34439         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34440         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34441         (sinh_test): Use ALL_RM_TEST.
34442         (sinh_tonearest_test_data): Remove.
34443         (sinh_test_tonearest): Likewise.
34444         (sinh_towardzero_test_data): Likewise.
34445         (sinh_test_towardzero): Likewise.
34446         (sinh_downward_test_data): Likewise.
34447         (sinh_test_downward): Likewise.
34448         (sinh_upward_test_data): Likewise.
34449         (sinh_test_upward): Likewise.
34450         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34451         (sqrt_test): Use ALL_RM_TEST.
34452         (sqrt_tonearest_test_data): Remove.
34453         (sqrt_test_tonearest): Likewise.
34454         (sqrt_towardzero_test_data): Likewise.
34455         (sqrt_test_towardzero): Likewise.
34456         (sqrt_downward_test_data): Likewise.
34457         (sqrt_test_downward): Likewise.
34458         (sqrt_upward_test_data): Likewise.
34459         (sqrt_test_upward): Likewise.
34460         (tan_test_data): Update call to AUTO_TESTS_f_f.
34461         (tan_test): Use ALL_RM_TEST.
34462         (tan_tonearest_test_data): Remove.
34463         (tan_test_tonearest): Likewise.
34464         (tan_towardzero_test_data): Likewise.
34465         (tan_test_towardzero): Likewise.
34466         (tan_downward_test_data): Likewise.
34467         (tan_test_downward): Likewise.
34468         (tan_upward_test_data): Likewise.
34469         (tan_test_upward): Likewise.
34470         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34471         (tgamma_test_data): Likewise.
34472         (y0_test_data): Likewise.
34473         (y1_test_data): Likewise.
34474         (yn_test_data): Update call to AUTO_TESTS_if_f.
34475         (main): Do not call removed functions.
34476
34477 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34478
34479         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34480         (ldexp_test_data): Remove.
34481         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34482         scalbn_test_data.
34483         (scalb_test): Use ALL_RM_TEST.
34484
34485 2014-03-19  Andreas Schwab  <schwab@suse.de>
34486
34487         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34488
34489 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34490
34491         [BZ #16649]
34492         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34493         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34494         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34495         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34496         (__ASSUME_PREADV): Undefine.
34497         (__ASSUME_PWRITEV): Likewise.
34498
34499 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34500
34501         * bits/mman-linux.h: Add comment about non-Linux use.
34502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34503         bits/mman-linux.h resting place.
34504
34505         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34506         * bits/mman-linux.h: ... here.
34507
34508 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34509
34510         * conform/conformtest.pl: Add standard definition when calling C
34511         preprocessor on data files.
34512         (checknamespace): Remove unused variable.
34513
34514 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34515
34516         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34517         minus_oflow, plus_uflow and minus_uflow in expected results.
34518         * math/libm-test.inc (scalbn_test_data): Add more tests of
34519         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34520         minus_uflow.
34521         (scalbn_test): Use ALL_RM_TEST.
34522         (scalbln_test_data): Add more tests of negative arguments.  Use
34523         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34524         (scalbln_test): Use ALL_RM_TEST.
34525
34526 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34527
34528         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34529
34530 2014-03-18  Will Newton  <will.newton@linaro.org>
34531
34532         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34533         inaccurate comment.
34534
34535 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34536
34537         * Makerules [!subdir] (check-abi): Exit with error status if a
34538         test failed.
34539
34540 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34541
34542         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34543         for rint.  Include results for all rounding modes.
34544         (nearbyint_test): Use ALL_RM_TEST.
34545         (rint_test_data): Include all tests used for nearbyint.
34546
34547 2014-03-17  Will Newton  <will.newton@linaro.org>
34548
34549         * nptl/sysdeps/pthread/pthread.h: Revert previous
34550         change.
34551
34552         * sysdeps/generic/ldsodefs.h: Revert previous
34553         change.
34554
34555         * libio/genops.c: Revert previous change.
34556         * libio/libioP.h: Likewise.
34557         * stdio-common/vfprintf.c: Likewise.
34558
34559         * sysdeps/generic/math_private.h: Revert previous
34560         change.
34561
34562         * sysdeps/generic/math_private.h: Check whether
34563         HAVE_RM_CTX is defined with #ifdef rather
34564         than #if.
34565
34566         * argp/argp-fmtstream.h: Check whether
34567         __STRICT_ANSI__ is defined with #ifdef rather
34568         than #if.
34569         * argp/argp.h: Likewise.
34570
34571         * libio/genops.c: Check whether
34572         _IO_JUMPS_OFFSET is defined with #ifdef rather
34573         than #if.
34574         * libio/libioP.h: Likewise.
34575         * stdio-common/vfprintf.c: Likewise.
34576
34577         * sysdeps/generic/ldsodefs.h: Check whether
34578         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
34579         than #if.
34580
34581         * nptl/sysdeps/pthread/pthread.h: Check
34582         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
34583         its value.
34584
34585 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
34586
34587         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
34588         setting O_APPEND.
34589         * libio/tst-ftell-active-handler.c (do_append_test): Add a
34590         test case.
34591
34592         [BZ #16680]
34593         * libio/fileops.c (_IO_file_open): Seek to end of file but
34594         don't cache the offset.
34595         (get_file_offset): Remove function.
34596         (do_ftell): Use cached offset when available.
34597         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
34598         don't cache the offset.
34599         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
34600         case.
34601         (do_one_test): Call it.
34602         (do_ftell_test): Fix up expected old offset for a+ mode.
34603         * libio/wfileops.c (do_ftell_wide): Used cached offset when
34604         available.
34605
34606         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
34607         up test status with function return status.
34608         (do_write_test): Likewise.
34609         (do_append_test): Likewise.
34610
34611         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
34612         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
34613         Remove.
34614
34615 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34616
34617         * math/gen-libm-test.pl (parse_args): Handle results specified for
34618         each rounding mode separately.
34619         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
34620         tests and results from lrint_tonearest_test_data,
34621         lrint_towardzero_test_data, lrint_downward_test_data and
34622         lrint_upward_test_data.
34623         (lrint_test): Use ALL_RM_TEST.
34624         (lrint_tonearest_test_data): Remove.
34625         (lrint_test_tonearest): Likewise.
34626         (lrint_towardzero_test_data): Likewise.
34627         (lrint_test_towardzero): Likewise.
34628         (lrint_downward_test_data): Likewise.
34629         (lrint_test_downward): Likewise.
34630         (lrint_upward_test_data): Likewise.
34631         (lrint_test_upward): Likewise.
34632         (llrint_test_data): Merge in per-rounding-mode tests and results
34633         from llrint_tonearest_test_data, llrint_towardzero_test_data,
34634         llrint_downward_test_data and llrint_upward_test_data.
34635         (llrint_test): Use ALL_RM_TEST.
34636         (llrint_tonearest_test_data): Remove.
34637         (llrint_test_tonearest): Likewise.
34638         (llrint_towardzero_test_data): Likewise.
34639         (llrint_test_towardzero): Likewise.
34640         (llrint_downward_test_data): Likewise.
34641         (llrint_test_downward): Likewise.
34642         (llrint_upward_test_data): Likewise.
34643         (llrint_test_upward): Likewise.
34644         (rint_test_data): Merge in per-rounding-mode tests and results
34645         from rint_tonearest_test_data, rint_towardzero_test_data,
34646         rint_downward_test_data and rint_upward_test_data.  Add
34647         per-rounding-mode results for tests not in those arrays.
34648         (rint_test): Use ALL_RM_TEST.
34649         (rint_tonearest_test_data): Remove.
34650         (rint_test_tonearest): Likewise.
34651         (rint_towardzero_test_data): Likewise.
34652         (rint_test_towardzero): Likewise.
34653         (rint_downward_test_data): Likewise.
34654         (rint_test_downward): Likewise.
34655         (rint_upward_test_data): Likewise.
34656         (rint_test_upward): Likewise.
34657         (main): Don't call removed functions.
34658
34659 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34660
34661         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
34662         "Compiled on ..." crapola.  It is anti-useful.
34663
34664 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
34665
34666         * scripts/evaluate-test.sh: Handle fourth argument to determine
34667         whether test run should stop on failure.
34668         * Makeconfig (stop-on-test-failure): New variable.
34669         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
34670         $(stop-on-test-failure).
34671         * Makefile (tests): Give a summary of results from testing and
34672         exit with failure status if they include an ERROR or FAIL.
34673         (xtests): Likewise.
34674         * manual/install.texi (Configuring and compiling): Mention
34675         stop-on-test-failure=y.
34676         * INSTALL: Regenerated.
34677
34678 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34679
34680         * scripts/versionlist.awk: New file.
34681         * Makerules [$(build-shared) = yes]
34682         (postclean-generated): Add Versions.def, not Versions.def.v and
34683         Versions.def.v.i.
34684         ($(common-objpfx)Versions.def.v.i): Target removed.
34685         ($(common-objpfx)Versions.def): New target.
34686         ($(common-objpfx)Versions.all): Depend on that rather that
34687         $(common-objpfx)Versions.def.v.
34688         * Versions.def: File removed.
34689
34690         * Makeconfig (+gccwarn): Add -Wundef.
34691         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
34692         a dl-sysdep.h breaking its contract.
34693         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
34694         * include/stackinfo.h: New file.
34695         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
34696         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
34697         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
34698         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
34699         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
34700         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
34701         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34702         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34703         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34704         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34705         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34706         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
34707         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34708         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34709         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34710
34711 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34712
34713         [BZ #16707]
34714         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
34715         implementation.
34716         * math/libm-test.inc (round_test_data): Add more tests.
34717
34718         [BZ #16706]
34719         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
34720         implementation.
34721         * math/libm-test.inc (nearbyint_test_data): Add more tests.
34722
34723         [BZ #16701]
34724         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
34725         implementation.
34726         * math/libm-test.inc (ceil_test_data): Add more tests.
34727
34728         * math/libm-test.inc (trunc_test_data): Add more tests related to
34729         BZ#16414.
34730
34731 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34732
34733         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
34734         with #if rather than #ifdef.
34735         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
34736
34737 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
34738
34739         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
34740         first.  Disable AVX-512 GCC support if assembler doesn't support
34741         it.
34742         * sysdeps/x86_64/configure: Regenerated.
34743
34744 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
34745
34746         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
34747         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
34748         (__old_pthread_attr_setstack): Likewise.
34749         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
34750         [!_STACK_GROWS_DOWN]: Likewise.
34751
34752 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
34753
34754         * config.make.in (have-bash2): Delete.
34755         * configure.ac (libc_cv_have_bash2): Delete.
34756         * configure: Regenerate.
34757         * elf/Makefile (common-ldd-rewrite): Rename to ...
34758         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
34759         (sh-ldd-rewrite): Delete.
34760         (bash-ldd-rewrite): Delete.
34761         (have-bash2): Delete checks.
34762         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
34763         ldd-rewrite.
34764
34765         * config.make.in (have-ksh): Delete.
34766         (KSH): Delete.
34767         * configure.ac (libc_cv_have_ksh): Delete.
34768         * configure: Regenerate.
34769
34770         * elf/Makefile: Delete $(have-ksh) check.
34771         ($(objpfx)sotruss): Change KSH to BASH.
34772         * elf/sotruss.ksh: Rename to ...
34773         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
34774         function style to match POSIX.  Drop ksh vim mode setting.
34775
34776         * manual/time.texi (Specifying the Time Zone with TZ): Change
34777         Tuesday to Thursday.
34778
34779         * debug/tst-longjmp_chk2.c: Update header comment.
34780         (stackoverflow_handler): Add comment.  Call assert on pass value.
34781
34782 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
34783
34784         [BZ #16194]
34785         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
34786         (HAVE_AVX512_ASM_SUPPORT): Likewise.
34787         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
34788         (La_x86_64_vector): Add zmm.
34789         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
34790         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
34791         ($(objpfx)tst-audit10): New target.
34792         ($(objpfx)tst-audit10.out): Likewise.
34793         (tst-audit10-ENV): New.
34794         (AVX512-CFLAGS): Likewise.
34795         (CFLAGS-tst-audit10.c): Likewise.
34796         (CFLAGS-tst-auditmod10a.c): Likewise.
34797         (CFLAGS-tst-auditmod10b.c): Likewise.
34798         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
34799         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
34800         * sysdeps/x86_64/configure: Regenerated.
34801         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
34802         AVX-512 zmm register support.
34803         (_dl_x86_64_save_sse): Likewise.
34804         (_dl_x86_64_restore_sse): Likewise.
34805         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
34806         size vector registers.
34807         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
34808         (ZMM_SIZE): Likewise.
34809         * sysdeps/x86_64/tst-audit10.c: New file.
34810         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
34811         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
34812
34813 2014-03-13  Roland McGrath  <roland@hack.frob.com>
34814
34815         * configure.ac (HAVE_EHDR_START): New check.
34816         * configure: Regenerated.
34817         * config.h.in (HAVE_EHDR_START): New #undef.
34818         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
34819         assuming the lowest-addressed segment maps the start of the file.
34820
34821 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
34822
34823         * INSTALL: Regenerated.
34824
34825 2014-03-13  Will Newton  <will.newton@linaro.org>
34826
34827         * manual/setjmp.texi (System V contexts): Improve
34828         clarity and grammar of documentation.
34829
34830 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
34831
34832         [BZ #16381]
34833         * elf/Makefile (tests): Add tst-pie2.
34834         (tests-pie): Add tst-pie2.
34835         * elf/tst-pie2.c: New file.
34836         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
34837         for ET_EXEC.
34838         * elf/rtld.c (map_doit): Load executable as lt_executable.
34839         (dl_main): Likewise.
34840
34841 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
34842
34843         [BZ #16642]
34844         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34845         (__ASSUME_PSELECT): Undefine.
34846
34847 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34848
34849         [BZ #16689]
34850         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
34851         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
34852         static build.
34853         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
34854         selector for static builds.
34855
34856 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
34857
34858         [BZ #16695]
34859         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
34860         key in the buffer.
34861
34862 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34863
34864         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
34865         IFUNC selector for static builds.
34866
34867 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
34868
34869         * sysdeps/mips/math_private.h [__mips_hard_float]
34870         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
34871         libc_feresetround_mips_ctx.
34872         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
34873         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
34874         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
34875
34876         [BZ #16677]
34877         * math/s_nextafter.c (__nextafter): Do not return value from
34878         overflowing computation.
34879         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34880         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
34881         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34882         Likewise.
34883         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
34884         Likewise.
34885         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34886         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
34887
34888 2014-03-11  Roland McGrath  <roland@hack.frob.com>
34889
34890         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
34891         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
34892         Move sfi_sp use from the load-multiple (that no longer sets sp) to
34893         the new mov targetting sp.
34894
34895 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34896
34897         [BZ #16683]
34898         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
34899         Define it for static builds as well.
34900         (NO_BZERO_IMPL): Likewise.
34901
34902 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34903
34904         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
34905         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
34906         multiarch strspn for PPC64.
34907         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
34908         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
34909         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34910         (__libc_ifunc_impl_list): Likewise.
34911         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
34912         multiarch optimizations
34913         * string/strspn.c (strspn): Using macro to redefine symbol name.
34914
34915 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34916             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34917
34918         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
34919         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
34920         multiarch strncat for PPC64.
34921         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
34922         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
34923         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34924         (__libc_ifunc_impl_list): Likewise.
34925         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
34926         multiarch optimizations
34927
34928 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34929
34930         [BZ #16639]
34931         * nscd/nscd.service: Make service type forking.
34932
34933 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34934
34935         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
34936         sign in non default rounding modes.
34937         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
34938
34939 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
34940
34941         * math/libm-test.inc (ALL_RM_TEST): New macro.
34942         (ceil_test): Use ALL_RM_TEST.
34943         (cimag_test): Likewise.
34944         (conj_test): Likewise.
34945         (copysign_test): Likewise.
34946         (cproj_test): Likewise.
34947         (creal_test): Likewise.
34948         (fabs_test): Likewise.
34949         (floor_test): Likewise.
34950         (fmax_test): Likewise.
34951         (fmin_test): Likewise.
34952         (fmod_test): Likewise.
34953         (fpclassify_test): Likewise.
34954         (frexp_test): Likewise.
34955         (ilogb_test): Likewise.
34956         (isfinite_test): Likewise.
34957         (finite_test): Likewise.
34958         (isgreater_test): Likewise.
34959         (isgreaterequal_test): Likewise.
34960         (isinf_test): Likewise.
34961         (isless_test): Likewise.
34962         (islessequal_test): Likewise.
34963         (islessgreater_test): Likewise.
34964         (isnan_test): Likewise.
34965         (isnormal_test): Likewise.
34966         (issignaling_test): Likewise.
34967         (isunordered_test): Likewise.
34968         (logb_test): Likewise.
34969         (logb_downward_test_data): Remove.
34970         (logb_test_downward): Likewise.
34971         (lround_test): Use ALL_RM_TEST.
34972         (llround_test): Likewise.
34973         (modf_test): Likewise.
34974         (nexttoward_test): Likewise.
34975         (remainder_test): Likewise.
34976         (drem_test): Likewise.
34977         (remainder_tonearest_test_data): Likewise.
34978         (remainder_test_tonearest): Likewise.
34979         (drem_test_tonearest): Likewise.
34980         (remainder_towardzero_test_data): Likewise.
34981         (remainder_test_towardzero): Likewise.
34982         (drem_test_towardzero): Likewise.
34983         (remainder_downward_test_data): Likewise.
34984         (remainder_test_downward): Likewise.
34985         (drem_test_downward): Likewise.
34986         (remainder_upward_test_data): Likewise.
34987         (remainder_test_upward): Likewise.
34988         (drem_test_upward): Likewise.
34989         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
34990         (round_test): Use ALL_RM_TEST.
34991         (signbit_test): Likewise.
34992         (trunc_test): Likewise.
34993         (significand_test): Likewise.
34994         (main): Don't call removed functions.
34995
34996 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
34997
34998         [BZ #16674]
34999         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35000         || __USE_XOPEN2K8].
35001         (ILL_ILLOPN): Likewise.
35002         (ILL_ILLADR): Likewise.
35003         (ILL_ILLTRP): Likewise.
35004         (ILL_PRVOPC): Likewise.
35005         (ILL_PRVREG): Likewise.
35006         (ILL_COPROC): Likewise.
35007         (ILL_BADSTK): Likewise.
35008         (FPE_INTDIV): Likewise.
35009         (FPE_INTOVF): Likewise.
35010         (FPE_FLTDIV): Likewise.
35011         (FPE_FLTOVF): Likewise.
35012         (FPE_FLTUND): Likewise.
35013         (FPE_FLTRES): Likewise.
35014         (FPE_FLTINV): Likewise.
35015         (FPE_FLTSUB): Likewise.
35016         (SEGV_MAPERR): Likewise.
35017         (SEGV_ACCERR): Likewise.
35018         (BUS_ADRALN): Likewise.
35019         (BUS_ADRERR): Likewise.
35020         (BUS_OBJERR): Likewise.
35021         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35022         (TRAP_TRACE): Likewise.
35023         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35024         __USE_XOPEN2K8].
35025         (CLD_KILLED): Likewise.
35026         (CLD_DUMPED): Likewise.
35027         (CLD_TRAPPED): Likewise.
35028         (CLD_STOPPED): Likewise.
35029         (CLD_CONTINUED): Likewise.
35030         (POLL_IN): Likewise.
35031         (POLL_OUT): Likewise.
35032         (POLL_MSG): Likewise.
35033         (POLL_ERR): Likewise.
35034         (POLL_PRI): Likewise.
35035         (POLL_HUP): Likewise.
35036         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35037         Likewise.
35038         (ILL_ILLOPN): Likewise.
35039         (ILL_ILLADR): Likewise.
35040         (ILL_ILLTRP): Likewise.
35041         (ILL_PRVOPC): Likewise.
35042         (ILL_PRVREG): Likewise.
35043         (ILL_COPROC): Likewise.
35044         (ILL_BADSTK): Likewise.
35045         (FPE_INTDIV): Likewise.
35046         (FPE_INTOVF): Likewise.
35047         (FPE_FLTDIV): Likewise.
35048         (FPE_FLTOVF): Likewise.
35049         (FPE_FLTUND): Likewise.
35050         (FPE_FLTRES): Likewise.
35051         (FPE_FLTINV): Likewise.
35052         (FPE_FLTSUB): Likewise.
35053         (SEGV_MAPERR): Likewise.
35054         (SEGV_ACCERR): Likewise.
35055         (BUS_ADRALN): Likewise.
35056         (BUS_ADRERR): Likewise.
35057         (BUS_OBJERR): Likewise.
35058         (BUS_MCEERR_AR): Likewise.
35059         (BUS_MCEERR_AO): Likewise.
35060         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35061         (TRAP_TRACE): Likewise.
35062         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35063         __USE_XOPEN2K8].
35064         (CLD_KILLED): Likewise.
35065         (CLD_DUMPED): Likewise.
35066         (CLD_TRAPPED): Likewise.
35067         (CLD_STOPPED): Likewise.
35068         (CLD_CONTINUED): Likewise.
35069         (POLL_IN): Likewise.
35070         (POLL_OUT): Likewise.
35071         (POLL_MSG): Likewise.
35072         (POLL_ERR): Likewise.
35073         (POLL_PRI): Likewise.
35074         (POLL_HUP): Likewise.
35075         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35076         (ILL_ILLOPN): Likewise.
35077         (ILL_ILLADR): Likewise.
35078         (ILL_ILLTRP): Likewise.
35079         (ILL_PRVOPC): Likewise.
35080         (ILL_PRVREG): Likewise.
35081         (ILL_COPROC): Likewise.
35082         (ILL_BADSTK): Likewise.
35083         (FPE_INTDIV): Likewise.
35084         (FPE_INTOVF): Likewise.
35085         (FPE_FLTDIV): Likewise.
35086         (FPE_FLTOVF): Likewise.
35087         (FPE_FLTUND): Likewise.
35088         (FPE_FLTRES): Likewise.
35089         (FPE_FLTINV): Likewise.
35090         (FPE_FLTSUB): Likewise.
35091         (SEGV_MAPERR): Likewise.
35092         (SEGV_ACCERR): Likewise.
35093         (BUS_ADRALN): Likewise.
35094         (BUS_ADRERR): Likewise.
35095         (BUS_OBJERR): Likewise.
35096         (BUS_MCEERR_AR): Likewise.
35097         (BUS_MCEERR_AO): Likewise.
35098         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35099         (TRAP_TRACE): Likewise.
35100         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35101         __USE_XOPEN2K8].
35102         (CLD_KILLED): Likewise.
35103         (CLD_DUMPED): Likewise.
35104         (CLD_TRAPPED): Likewise.
35105         (CLD_STOPPED): Likewise.
35106         (CLD_CONTINUED): Likewise.
35107         (POLL_IN): Likewise.
35108         (POLL_OUT): Likewise.
35109         (POLL_MSG): Likewise.
35110         (POLL_ERR): Likewise.
35111         (POLL_PRI): Likewise.
35112         (POLL_HUP): Likewise.
35113         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35114         Likewise.
35115         (ILL_ILLOPN): Likewise.
35116         (ILL_ILLADR): Likewise.
35117         (ILL_ILLTRP): Likewise.
35118         (ILL_PRVOPC): Likewise.
35119         (ILL_PRVREG): Likewise.
35120         (ILL_COPROC): Likewise.
35121         (ILL_BADSTK): Likewise.
35122         (ILL_BADIADDR): Likewise.
35123         (ILL_BREAK): Likewise.
35124         (FPE_INTDIV): Likewise.
35125         (FPE_INTOVF): Likewise.
35126         (FPE_FLTDIV): Likewise.
35127         (FPE_FLTOVF): Likewise.
35128         (FPE_FLTUND): Likewise.
35129         (FPE_FLTRES): Likewise.
35130         (FPE_FLTINV): Likewise.
35131         (FPE_FLTSUB): Likewise.
35132         (FPE_DECOVF): Likewise.
35133         (FPE_DECDIV): Likewise.
35134         (FPE_DECERR): Likewise.
35135         (FPE_INVASC): Likewise.
35136         (FPE_INVDEC): Likewise.
35137         (SEGV_MAPERR): Likewise.
35138         (SEGV_ACCERR): Likewise.
35139         (SEGV_PSTKOVF): Likewise.
35140         (BUS_ADRALN): Likewise.
35141         (BUS_ADRERR): Likewise.
35142         (BUS_OBJERR): Likewise.
35143         (BUS_MCEERR_AR): Likewise.
35144         (BUS_MCEERR_AO): Likewise.
35145         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35146         (TRAP_TRACE): Likewise.
35147         (TRAP_BRANCH): Likewise.
35148         (TRAP_HWBKPT): Likewise.
35149         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35150         __USE_XOPEN2K8].
35151         (CLD_KILLED): Likewise.
35152         (CLD_DUMPED): Likewise.
35153         (CLD_TRAPPED): Likewise.
35154         (CLD_STOPPED): Likewise.
35155         (CLD_CONTINUED): Likewise.
35156         (POLL_IN): Likewise.
35157         (POLL_OUT): Likewise.
35158         (POLL_MSG): Likewise.
35159         (POLL_ERR): Likewise.
35160         (POLL_PRI): Likewise.
35161         (POLL_HUP): Likewise.
35162         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35163         (ILL_ILLOPN): Likewise.
35164         (ILL_ILLADR): Likewise.
35165         (ILL_ILLTRP): Likewise.
35166         (ILL_PRVOPC): Likewise.
35167         (ILL_PRVREG): Likewise.
35168         (ILL_COPROC): Likewise.
35169         (ILL_BADSTK): Likewise.
35170         (FPE_INTDIV): Likewise.
35171         (FPE_INTOVF): Likewise.
35172         (FPE_FLTDIV): Likewise.
35173         (FPE_FLTOVF): Likewise.
35174         (FPE_FLTUND): Likewise.
35175         (FPE_FLTRES): Likewise.
35176         (FPE_FLTINV): Likewise.
35177         (FPE_FLTSUB): Likewise.
35178         (SEGV_MAPERR): Likewise.
35179         (SEGV_ACCERR): Likewise.
35180         (BUS_ADRALN): Likewise.
35181         (BUS_ADRERR): Likewise.
35182         (BUS_OBJERR): Likewise.
35183         (BUS_MCEERR_AR): Likewise.
35184         (BUS_MCEERR_AO): Likewise.
35185         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35186         (TRAP_TRACE): Likewise.
35187         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35188         __USE_XOPEN2K8].
35189         (CLD_KILLED): Likewise.
35190         (CLD_DUMPED): Likewise.
35191         (CLD_TRAPPED): Likewise.
35192         (CLD_STOPPED): Likewise.
35193         (CLD_CONTINUED): Likewise.
35194         (POLL_IN): Likewise.
35195         (POLL_OUT): Likewise.
35196         (POLL_MSG): Likewise.
35197         (POLL_ERR): Likewise.
35198         (POLL_PRI): Likewise.
35199         (POLL_HUP): Likewise.
35200         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35201         (ILL_ILLOPN): Likewise.
35202         (ILL_ILLADR): Likewise.
35203         (ILL_ILLTRP): Likewise.
35204         (ILL_PRVOPC): Likewise.
35205         (ILL_PRVREG): Likewise.
35206         (ILL_COPROC): Likewise.
35207         (ILL_BADSTK): Likewise.
35208         (FPE_INTDIV): Likewise.
35209         (FPE_INTOVF): Likewise.
35210         (FPE_FLTDIV): Likewise.
35211         (FPE_FLTOVF): Likewise.
35212         (FPE_FLTUND): Likewise.
35213         (FPE_FLTRES): Likewise.
35214         (FPE_FLTINV): Likewise.
35215         (FPE_FLTSUB): Likewise.
35216         (SEGV_MAPERR): Likewise.
35217         (SEGV_ACCERR): Likewise.
35218         (BUS_ADRALN): Likewise.
35219         (BUS_ADRERR): Likewise.
35220         (BUS_OBJERR): Likewise.
35221         (BUS_MCEERR_AR): Likewise.
35222         (BUS_MCEERR_AO): Likewise.
35223         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35224         (TRAP_TRACE): Likewise.
35225         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35226         __USE_XOPEN2K8].
35227         (CLD_KILLED): Likewise.
35228         (CLD_DUMPED): Likewise.
35229         (CLD_TRAPPED): Likewise.
35230         (CLD_STOPPED): Likewise.
35231         (CLD_CONTINUED): Likewise.
35232         (POLL_IN): Likewise.
35233         (POLL_OUT): Likewise.
35234         (POLL_MSG): Likewise.
35235         (POLL_ERR): Likewise.
35236         (POLL_PRI): Likewise.
35237         (POLL_HUP): Likewise.
35238         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35239         (ILL_ILLOPN): Likewise.
35240         (ILL_ILLADR): Likewise.
35241         (ILL_ILLTRP): Likewise.
35242         (ILL_PRVOPC): Likewise.
35243         (ILL_PRVREG): Likewise.
35244         (ILL_COPROC): Likewise.
35245         (ILL_BADSTK): Likewise.
35246         (FPE_INTDIV): Likewise.
35247         (FPE_INTOVF): Likewise.
35248         (FPE_FLTDIV): Likewise.
35249         (FPE_FLTOVF): Likewise.
35250         (FPE_FLTUND): Likewise.
35251         (FPE_FLTRES): Likewise.
35252         (FPE_FLTINV): Likewise.
35253         (FPE_FLTSUB): Likewise.
35254         (SEGV_MAPERR): Likewise.
35255         (SEGV_ACCERR): Likewise.
35256         (BUS_ADRALN): Likewise.
35257         (BUS_ADRERR): Likewise.
35258         (BUS_OBJERR): Likewise.
35259         (BUS_MCEERR_AR): Likewise.
35260         (BUS_MCEERR_AO): Likewise.
35261         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35262         (TRAP_TRACE): Likewise.
35263         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35264         __USE_XOPEN2K8].
35265         (CLD_KILLED): Likewise.
35266         (CLD_DUMPED): Likewise.
35267         (CLD_TRAPPED): Likewise.
35268         (CLD_STOPPED): Likewise.
35269         (CLD_CONTINUED): Likewise.
35270         (POLL_IN): Likewise.
35271         (POLL_OUT): Likewise.
35272         (POLL_MSG): Likewise.
35273         (POLL_ERR): Likewise.
35274         (POLL_PRI): Likewise.
35275         (POLL_HUP): Likewise.
35276         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35277         (ILL_ILLOPN): Likewise.
35278         (ILL_ILLADR): Likewise.
35279         (ILL_ILLTRP): Likewise.
35280         (ILL_PRVOPC): Likewise.
35281         (ILL_PRVREG): Likewise.
35282         (ILL_COPROC): Likewise.
35283         (ILL_BADSTK): Likewise.
35284         (ILL_DBLFLT): Likewise.
35285         (ILL_HARDWALL): Likewise.
35286         (FPE_INTDIV): Likewise.
35287         (FPE_INTOVF): Likewise.
35288         (FPE_FLTDIV): Likewise.
35289         (FPE_FLTOVF): Likewise.
35290         (FPE_FLTUND): Likewise.
35291         (FPE_FLTRES): Likewise.
35292         (FPE_FLTINV): Likewise.
35293         (FPE_FLTSUB): Likewise.
35294         (SEGV_MAPERR): Likewise.
35295         (SEGV_ACCERR): Likewise.
35296         (BUS_ADRALN): Likewise.
35297         (BUS_ADRERR): Likewise.
35298         (BUS_OBJERR): Likewise.
35299         (BUS_MCEERR_AR): Likewise.
35300         (BUS_MCEERR_AO): Likewise.
35301         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35302         (TRAP_TRACE): Likewise.
35303         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35304         __USE_XOPEN2K8].
35305         (CLD_KILLED): Likewise.
35306         (CLD_DUMPED): Likewise.
35307         (CLD_TRAPPED): Likewise.
35308         (CLD_STOPPED): Likewise.
35309         (CLD_CONTINUED): Likewise.
35310         (POLL_IN): Likewise.
35311         (POLL_OUT): Likewise.
35312         (POLL_MSG): Likewise.
35313         (POLL_ERR): Likewise.
35314         (POLL_PRI): Likewise.
35315         (POLL_HUP): Likewise.
35316         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35317         (ILL_ILLOPN): Likewise.
35318         (ILL_ILLADR): Likewise.
35319         (ILL_ILLTRP): Likewise.
35320         (ILL_PRVOPC): Likewise.
35321         (ILL_PRVREG): Likewise.
35322         (ILL_COPROC): Likewise.
35323         (ILL_BADSTK): Likewise.
35324         (FPE_INTDIV): Likewise.
35325         (FPE_INTOVF): Likewise.
35326         (FPE_FLTDIV): Likewise.
35327         (FPE_FLTOVF): Likewise.
35328         (FPE_FLTUND): Likewise.
35329         (FPE_FLTRES): Likewise.
35330         (FPE_FLTINV): Likewise.
35331         (FPE_FLTSUB): Likewise.
35332         (SEGV_MAPERR): Likewise.
35333         (SEGV_ACCERR): Likewise.
35334         (BUS_ADRALN): Likewise.
35335         (BUS_ADRERR): Likewise.
35336         (BUS_OBJERR): Likewise.
35337         (BUS_MCEERR_AR): Likewise.
35338         (BUS_MCEERR_AO): Likewise.
35339         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35340         (TRAP_TRACE): Likewise.
35341         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35342         __USE_XOPEN2K8].
35343         (CLD_KILLED): Likewise.
35344         (CLD_DUMPED): Likewise.
35345         (CLD_TRAPPED): Likewise.
35346         (CLD_STOPPED): Likewise.
35347         (CLD_CONTINUED): Likewise.
35348         (POLL_IN): Likewise.
35349         (POLL_OUT): Likewise.
35350         (POLL_MSG): Likewise.
35351         (POLL_ERR): Likewise.
35352         (POLL_PRI): Likewise.
35353         (POLL_HUP): Likewise.
35354         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35355         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35356
35357         [BZ #16670]
35358         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35359         before #include of <time.h>.
35360         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35361         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35362         (test-xfail-UNIX98/sched.h/conform): Likewise.
35363
35364 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35365
35366         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35367         error absence of trapping exception support.
35368         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35369
35370 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35371
35372         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35373         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35374         * timezone/Makefile (testdata): Move definition above include of
35375         Rules.
35376         (test-zones): New variable.
35377         (tests-special): Add zone files.
35378         (build-testdata): Use $(evaluate-test).
35379
35380         * elf/Makefile (tests-special): Rename tests to end with .out.
35381         ($(objpfx)noload-mem): Likewise.
35382         ($(objpfx)tst-leaks1-mem): Likewise.
35383         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35384         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35385         $(objpfx)test-iconvconfig.out.
35386         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35387         set -e inside subshell and redirect output to file.
35388         * iconvdata/Makefile (generated): Rename tests to end with .out.
35389         Correct type.
35390         (tests-special): Rename tests to end with .out.
35391         ($(objpfx)mtrace-tst-loading): Likewise.
35392         * intl/Makefile (generated): Likewise.
35393         (tests-special): Likewise.
35394         ($(objpfx)mtrace-tst-gettext): Likewise.
35395         * misc/Makefile (generated): Likewise.
35396         (tests-special): Likewise.
35397         ($(objpfx)tst-error1-mem): Likewise.
35398         * nptl/Makefile (tests-special): Likewise.
35399         ($(objpfx)tst-stack3-mem): Likewise.
35400         (generated): Likewise.
35401         * posix/Makefile (generated): Likewise.
35402         (tests-special): Likewise.
35403         (xtests-special): Likewise.
35404         ($(objpfx)tst-fnmatch-mem): Likewise.
35405         ($(objpfx)bug-regex2-mem): Likewise.
35406         ($(objpfx)bug-regex14-mem): Likewise.
35407         ($(objpfx)bug-regex21-mem): Likewise.
35408         ($(objpfx)bug-regex31-mem): Likewise.
35409         ($(objpfx)tst-vfork3-mem): Likewise.
35410         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35411         ($(objpfx)tst-pcre-mem): Likewise.
35412         ($(objpfx)tst-boost-mem): Likewise.
35413         ($(objpfx)bug-ga2-mem): Likewise.
35414         ($(objpfx)bug-glob2-mem): Likewise.
35415         * resolv/Makefile (generate): Likewise.
35416         (tests-special): Likewise.
35417         (xtests-special): Likewise.
35418         (generated): Likewise.
35419         ($(objpfx)mtrace-tst-leaks): Likewise.
35420         ($(objpfx)mtrace-tst-leaks2): Likewise.
35421
35422         * scripts/merge-test-results.sh: New file.
35423         * Makefile (tests-special-notdir): New variable.
35424         (tests): Run merge-test-results.sh.
35425         (xtests): Likewise.
35426         * Rules (tests-special-notdir): New variable.
35427         (xtests-special-notdir): Likewise.
35428         (tests): Run merge-test-results.sh
35429         (xtests): Likewise.
35430
35431         * Makeconfig (test-xfail-name): New variable.
35432         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35433         compute variable name for expected failures.
35434         * conform/Makefile (conformtest-headers-data): New variable.
35435         (conformtest-standards): Likewise.
35436         (conformtest-headers-ISO): Likewise.
35437         (conformtest-headers-ISO99): Likewise.
35438         (conformtest-headers-ISO11): Likewise.
35439         (conformtest-headers-POSIX): Likewise.
35440         (conformtest-headers-XPG3): Likewise.
35441         (conformtest-headers-XPG4): Likewise.
35442         (conformtest-headers-UNIX98): Likewise.
35443         (conformtest-headers-XOPEN2K): Likewise.
35444         (conformtest-headers-POSIX2008): Likewise.
35445         (conformtest-headers-XOPEN2K8): Likewise.
35446         (conformtest-header-list-base): Likewise.
35447         (conformtest-header-list-tests): Likewise.
35448         (conformtest-header-base): Likewise.
35449         (conformtest-header-tests): Likewise.
35450         (tests-special): Add $(conformtest-header-list-tests).  If
35451         [$(fast-check) && !$(cross-compiling)], add
35452         $(conformtest-header-tests) instead of
35453         $(objpfx)run-conformtest.out.
35454         (generated): Add $(conformtest-header-list-base).  If
35455         [$(fast-check) && !$(cross-compiling)], add
35456         $(conformtest-header-base).  Remove previous setting.
35457         ($(conformtest-header-list-tests)): New target.
35458         (test-xfail-run-conformtest): Remove variable.
35459         ($(objpfx)run-conformtest.out): Remove target.
35460         (test-xfail-ISO11/complex.h/conform): New variable.
35461         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35462         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35463         (test-xfail-XPG3/varargs.h/conform): Likewise.
35464         (test-xfail-XPG4/varargs.h/conform): Likewise.
35465         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35466         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35467         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35468         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35469         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35470         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35471         (test-xfail-XPG3/ftw.h/conform): Likewise.
35472         (test-xfail-XPG3/grp.h/conform): Likewise.
35473         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35474         (test-xfail-XPG3/limits.h/conform): Likewise.
35475         (test-xfail-XPG3/pwd.h/conform): Likewise.
35476         (test-xfail-XPG3/search.h/conform): Likewise.
35477         (test-xfail-XPG3/signal.h/conform): Likewise.
35478         (test-xfail-XPG3/stdio.h/conform): Likewise.
35479         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35480         (test-xfail-XPG3/string.h/conform): Likewise.
35481         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35482         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35483         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35484         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35485         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35486         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35487         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35488         (test-xfail-XPG3/termios.h/conform): Likewise.
35489         (test-xfail-XPG3/time.h/conform): Likewise.
35490         (test-xfail-XPG3/unistd.h/conform): Likewise.
35491         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35492         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35493         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35494         (test-xfail-XPG4/netdb.h/conform): Likewise.
35495         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35496         (test-xfail-XPG4/signal.h/conform): Likewise.
35497         (test-xfail-XPG4/stdio.h/conform): Likewise.
35498         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35499         (test-xfail-XPG4/stropts.h/conform): Likewise.
35500         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35501         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35502         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35503         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35504         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35505         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35506         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35507         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35508         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35509         (test-xfail-XPG4/termios.h/conform): Likewise.
35510         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35511         (test-xfail-XPG4/unistd.h/conform): Likewise.
35512         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35513         (test-xfail-POSIX/sched.h/conform): Likewise.
35514         (test-xfail-POSIX/signal.h/conform): Likewise.
35515         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35516         (test-xfail-POSIX/tar.h/conform): Likewise.
35517         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35518         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35519         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35520         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35521         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35522         (test-xfail-UNIX98/sched.h/conform): Likewise.
35523         (test-xfail-UNIX98/signal.h/conform): Likewise.
35524         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35525         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35526         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35527         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35528         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35529         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35530         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35531         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35532         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35533         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35534         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35535         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35536         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35537         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35538         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35539         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35540         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35541         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35542         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35543         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35544         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35545         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35546         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35547         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35548         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35549         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35550         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35551         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
35552         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
35553         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
35554         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
35555         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35556         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
35557         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
35558         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35559         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
35560         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
35561         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
35562         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
35563         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
35564         (test-xfail-POSIX2008/signal.h/conform): Likewise.
35565         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
35566         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
35567         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35568         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
35569         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
35570         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
35571         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
35572         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
35573         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
35574         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35575         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
35576         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
35577         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
35578         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
35579         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
35580         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
35581         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
35582         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
35583         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
35584         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35585         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
35586         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
35587         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
35588         (conformtest-cc-flags): Likewise.
35589         ($(conformtest-header-tests): New target.
35590         * conform/check-header-lists.sh: New file.
35591         * conform/run-conformtest.sh: Remove.
35592
35593         * conform/conformtest.pl: Allow ' and \ in values given for
35594         constants.
35595         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
35596         inclusion.
35597         [POSIX] (sys/types.h): Likewise.
35598         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
35599         inclusion.
35600         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
35601         inclusion.
35602         * conform/data/signal.h-data (SIGIO): Remove expectation.
35603         [XPG3] (SIGBUS): Do not expect.
35604         [POSIX || XPG3] (SIGPOLL): Likewise.
35605         [POSIX || XPG3] (SIGPROF): Likewise.
35606         [POSIX || XPG3] (SIGSYS): Likewise.
35607         [XPG3] (SIGTRAP): Likewise.
35608         [POSIX || XPG3] (SIGURG): Likewise.
35609         [POSIX || XPG3] (SIGVTALRM): Likewise.
35610         [POSIX || XPG3] (SIGXCPU): Likewise.
35611         [POSIX || XPG3] (SIGXFSZ): Likewise.
35612         [POSIX] (SA_SIGINFO): Expect.
35613         [XPG3] (siginfo_t): Do not expect type or contents.
35614         [POSIX] (si_pid): Do not expect element.
35615         [POSIX] (si_uid): Likewise.
35616         [POSIX] (si_addr): Likewise.
35617         [POSIX] (si_status): Likewise.
35618         [POSIX] (si_band): Likewise.
35619         [XPG4] (si_value): Likewise.
35620         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
35621         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
35622         [POSIX || XPG3] (ILL_ILLADR): Likewise.
35623         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
35624         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
35625         [POSIX || XPG3] (ILL_PRVREG): Likewise.
35626         [POSIX || XPG3] (ILL_COPROC): Likewise.
35627         [POSIX || XPG3] (ILL_BADSTK): Likewise.
35628         [POSIX || XPG3] (FPE_INTDIV): Likewise.
35629         [POSIX || XPG3] (FPE_INTOVF): Likewise.
35630         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
35631         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
35632         [POSIX || XPG3] (FPE_FLTUND): Likewise.
35633         [POSIX || XPG3] (FPE_FLTRES): Likewise.
35634         [POSIX || XPG3] (FPE_FLTINV): Likewise.
35635         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
35636         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
35637         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
35638         [POSIX || XPG3] (BUS_ADRALN): Likewise.
35639         [POSIX || XPG3] (BUS_ADRERR): Likewise.
35640         [POSIX || XPG3] (BUS_OBJERR): Likewise.
35641         [POSIX || XPG3] (CLD_EXITED): Likewise.
35642         [POSIX || XPG3] (CLD_KILLED): Likewise.
35643         [POSIX || XPG3] (CLD_DUMPED): Likewise.
35644         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
35645         [POSIX || XPG3] (CLD_STOPPED): Likewise.
35646         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
35647         [POSIX || XPG3] (POLL_IN): Likewise.
35648         [POSIX || XPG3] (POLL_OUT): Likewise.
35649         [POSIX || XPG3] (POLL_MSG): Likewise.
35650         [POSIX || XPG3] (POLL_ERR): Likewise.
35651         [POSIX || XPG3] (POLL_PRI): Likewise.
35652         [POSIX || XPG3] (POLL_HUP): Likewise.
35653         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
35654         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
35655         (SIG*): Do not allow.
35656         [XPG3] (si_*): Likewise.
35657         [XPG3] (SI_*): Likewise.
35658         [XPG3 || XPG4] (sigev_*): Likewise.
35659         [XPG3 || XPG4] (SIGEV_*): Likewise.
35660         [XPG3 || XPG4] (sival_*): Likewise.
35661         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
35662         [POSIX || XPG3] (BUS_*): Likewise.
35663         [POSIX || XPG3] (CLD_*): Likewise.
35664         [POSIX || XPG3] (FPE_*): Likewise.
35665         [POSIX || XPG3] (ILL_*): Likewise.
35666         [POSIX || XPG3] (POLL_*): Likewise.
35667         [POSIX || XPG3] (SEGV_*): Likewise.
35668         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
35669         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
35670         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
35671         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
35672         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
35673         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
35674         Specify type and value.
35675         (TVERSLEN): Likewise.
35676         (REGTYPE): Likewise.
35677         (AREGTYPE): Likewise.
35678         (LNKTYPE): Likewise.
35679         (SYMTYPE): Likewise.
35680         (CHRTYPE): Likewise.
35681         (BLKTYPE): Likewise.
35682         (DIRTYPE): Likewise.
35683         (FIFOTYPE): Likewise.
35684         (CONTTYPE): Likewise.
35685         (TSUID): Likewise.
35686         (TSGID): Likewise.
35687         (TSVTX): Likewise.
35688         (TUREAD): Likewise.
35689         (TUWRITE): Likewise.
35690         (TUEXEC): Likewise.
35691         (TGREAD): Likewise.
35692         (TGWRITE): Likewise.
35693         (TGEXEC): Likewise.
35694         (TOREAD): Likewise.
35695         (TOWRITE): Likewise.
35696         (TOEXEC): Likewise.
35697         [POSIX] (TSVTX): Expect constant.
35698
35699 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
35700
35701         * Makefile (tests): Change dependencies to ....
35702         (tests-special): ... additions to this variable.
35703         (tests): Depend on $(tests-special).
35704         * Makerules (check-abi-list): New variable.
35705         (check-abi): Depend on $(check-abi-list).
35706         [$(subdir) = elf] (tests-special): Add
35707         $(objpfx)check-abi-libc.out.
35708         [$(build-shared) = yes && subdir] (tests-special): Add
35709         $(check-abi-list).
35710         [$(build-shared) = yes && subdir] (tests): Do not depend on
35711         check-abi.
35712         * Rules (tests): Depend on $(tests-special).
35713         (xtests): Depend on $(xtests-special).
35714         * catgets/Makefile (tests): Change dependencies to ....
35715         (tests-special): ... additions to this variable.
35716         * conform/Makefile (tests): Change dependencies to ....
35717         (tests-special): ... additions to this variable.
35718         * elf/Makefile (tests): Change dependencies to ....
35719         (tests-special): ... additions to this variable.
35720         * grp/Makefile (tests): Change dependencies to ....
35721         (tests-special): ... additions to this variable.
35722         * iconv/Makefile (xtests): Change dependencies to ....
35723         (xtests-special): ... additions to this variable.
35724         * iconvdata/Makefile (tests): Change dependencies to ....
35725         (tests-special): ... additions to this variable.
35726         * intl/Makefile (tests): Change dependencies to ....
35727         (tests-special): ... additions to this variable.  Also add
35728         $(objpfx)tst-gettext.out.
35729         * io/Makefile (tests): Change dependencies to ....
35730         (tests-special): ... additions to this variable.
35731         * libio/Makefile (tests): Change dependencies to ....
35732         (tests-special): ... additions to this variable.
35733         * malloc/Makefile (tests): Change dependencies to ....
35734         (tests-special): ... additions to this variable.
35735         * misc/Makefile (tests): Change dependencies to ....
35736         (tests-special): ... additions to this variable.
35737         * nptl/Makefile (tests): Change dependencies to ....
35738         (tests-special): ... additions to this variable.
35739         * nptl_db/Makefile (tests): Change dependencies to ....
35740         (tests-special): ... additions to this variable.
35741         * posix/Makefile (tests): Change dependencies to ....
35742         (tests-special): ... additions to this variable.
35743         (xtests): Change dependencies to ....
35744         (xtests-special): ... additions to this variable.
35745         * resolv/Makefile (tests): Change dependencies to ....
35746         (tests-special): ... additions to this variable.
35747         (xtests): Change dependencies to ....
35748         (xtests-special): ... additions to this variable.
35749         * stdio-common/Makefile (tests): Change dependencies to ....
35750         (tests-special): ... additions to this variable.
35751         (do-tst-unbputc): Remove target.
35752         (do-tst-printf): Likewise.
35753         * stdlib/Makefile (tests): Change dependencies to ....
35754         (tests-special): ... additions to this variable.
35755         * string/Makefile (tests): Change dependencies to ....
35756         (tests-special): ... additions to this variable.
35757         * sysdeps/x86/Makefile (tests): Change dependencies to ....
35758         (tests-special): ... additions to this variable.
35759
35760         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
35761         whole file.
35762         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
35763         whole file.
35764         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
35765         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
35766
35767         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
35768         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
35769         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
35770         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
35771         * conform/data/libgen.h-data [XPG3]: Likewise.
35772         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
35773         * conform/data/ndbm.h-data [XPG3]: Likewise.
35774         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35775         * conform/data/netdb.h-data [XPG3]: Likewise.
35776         * conform/data/netinet/in.h-data [XPG3]: Likewise.
35777         * conform/data/poll.h-data [XPG3]: Likewise.
35778         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35779         * conform/data/strings.h-data [XPG3]: Likewise.
35780         * conform/data/stropts.h-data [XPG3]: Likewise.
35781         * conform/data/sys/mman.h-data [XPG3]: Likewise.
35782         * conform/data/sys/resource.h-data [XPG3]: Likewise.
35783         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
35784         Likewise.
35785         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
35786         * conform/data/sys/time.h-data [XPG3]: Likewise.
35787         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
35788         * conform/data/sys/uio.h-data [XPG3]: Likewise.
35789         * conform/data/sys/un.h-data [XPG3]: Likewise.
35790         * conform/data/syslog.h-data [XPG3]: Likewise.
35791         * conform/data/ucontext.h-data [XPG3]: Likewise.
35792         * conform/data/utmpx.h-data [XPG3]: Likewise.
35793         * conform/data/varargs.h-data [UNIX98]: Enable file.
35794
35795         * manual/Makefile (INSTALL_INFO): Remove variable setting.
35796
35797         * math/libm-test.inc (struct test_f_f_data): Move expected results
35798         into structure for each rounding mode.
35799         (struct test_ff_f_data): Likewise.
35800         (struct test_ff_f_data_nexttoward): Likewise.
35801         (struct test_fi_f_data): Likewise.
35802         (struct test_fl_f_data): Likewise.
35803         (struct test_if_f_data): Likewise.
35804         (struct test_fff_f_data): Likewise.
35805         (struct test_c_f_data): Likewise.
35806         (struct test_f_f1_data): Likewise.
35807         (struct test_fF_f1_data): Likewise.
35808         (struct test_ffI_f1_data): Likewise.
35809         (struct test_c_c_data): Likewise.
35810         (struct test_cc_c_data): Likewise.
35811         (struct test_f_i_data): Likewise.
35812         (struct test_ff_i_data): Likewise.
35813         (struct test_f_l_data): Likewise.
35814         (struct test_f_L_data): Likewise.
35815         (struct test_fFF_11_data): Likewise.
35816         (RM_): New macro.
35817         (RM_FE_DOWNWARD): Likewise.
35818         (RM_FE_TONEAREST): Likewise.
35819         (RM_FE_TOWARDZERO): Likewise.
35820         (RM_FE_UPWARD): Likewise.
35821         (RUN_TEST_LOOP_f_f): Update references to expected results.
35822         (RUN_TEST_LOOP_2_f): Likewise.
35823         (RUN_TEST_LOOP_fff_f): Likewise.
35824         (RUN_TEST_LOOP_c_f): Likewise.
35825         (RUN_TEST_LOOP_f_f1): Likewise.
35826         (RUN_TEST_LOOP_fF_f1): Likewise.
35827         (RUN_TEST_LOOP_fI_f1): Likewise.
35828         (RUN_TEST_LOOP_ffI_f1): Likewise.
35829         (RUN_TEST_LOOP_c_c): Likewise.
35830         (RUN_TEST_LOOP_cc_c): Likewise.
35831         (RUN_TEST_LOOP_f_i): Likewise.
35832         (RUN_TEST_LOOP_f_i_tg): Likewise.
35833         (RUN_TEST_LOOP_ff_i_tg): Likewise.
35834         (RUN_TEST_LOOP_f_b): Likewise.
35835         (RUN_TEST_LOOP_f_b_tg): Likewise.
35836         (RUN_TEST_LOOP_f_l): Likewise.
35837         (RUN_TEST_LOOP_f_L): Likewise.
35838         (RUN_TEST_LOOP_fFF_11): Likewise.
35839         * math/gen-libm-test.pl (parse_args): Output four copies of
35840         expected results for each test.
35841
35842         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
35843         (__ASSUME_UTIMES): Remove.
35844         * sysdeps/unix/sysv/linux/tile/kernel-features.h
35845         (__ASSUME_UTIMES): Likewise.
35846
35847         * math/gen-auto-libm-tests.c: Update comment on output format.
35848         (output_for_one_input_case): Generate before-rounding and
35849         after-rounding information as conditions on output flags not
35850         floating-point format.
35851         * math/auto-libm-test-out: Regenerated.
35852         * math/gen-libm-test.pl (cond_value): New function.
35853         (or_cond_value): Use cond_value.
35854         (generate_testfile): Handle conditional exceptions.
35855
35856 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
35857
35858         * math/libm-test.inc (max_valid_error): New variable.
35859         (init_max_error): Take new argument specifying whether function
35860         results are exactly determined.  Set max_valid_error and bound
35861         other variables for errors based on this argument.
35862         (set_max_error): Do not record results above max_valid_error.
35863         (check_float_internal): Only accept errors of up to 0.5ulps if
35864         also at most max_valid_error.
35865         (START): Take new argument EXACT and pass it to init_max_error.
35866         (acos_test): Update call to START.
35867         (acos_test_tonearest): Likewise.
35868         (acos_test_towardzero): Likewise.
35869         (acos_test_downward): Likewise.
35870         (acos_test_upward): Likewise.
35871         (acosh_test): Likewise.
35872         (asin_test): Likewise.
35873         (asin_test_tonearest): Likewise.
35874         (asin_test_towardzero): Likewise.
35875         (asin_test_downward): Likewise.
35876         (asin_test_upward): Likewise.
35877         (asinh_test): Likewise.
35878         (atan_test): Likewise.
35879         (atanh_test): Likewise.
35880         (atan2_test): Likewise.
35881         (cabs_test): Likewise.
35882         (cacos_test): Likewise.
35883         (cacosh_test): Likewise.
35884         (carg_test): Likewise.
35885         (casin_test): Likewise.
35886         (casinh_test): Likewise.
35887         (catan_test): Likewise.
35888         (catanh_test): Likewise.
35889         (cbrt_test): Likewise.
35890         (ccos_test): Likewise.
35891         (ccosh_test): Likewise.
35892         (ceil_test): Likewise.
35893         (cexp_test): Likewise.
35894         (cimag_test): Likewise.
35895         (clog_test): Likewise.
35896         (clog10_test): Likewise.
35897         (conj_test): Likewise.
35898         (copysign_test): Likewise.
35899         (cos_test): Likewise.
35900         (cos_test_tonearest): Likewise.
35901         (cos_test_towardzero): Likewise.
35902         (cos_test_downward): Likewise.
35903         (cos_test_upward): Likewise.
35904         (cosh_test): Likewise.
35905         (cosh_test_tonearest): Likewise.
35906         (cosh_test_towardzero): Likewise.
35907         (cosh_test_downward): Likewise.
35908         (cosh_test_upward): Likewise.
35909         (cpow_test): Likewise.
35910         (cproj_test): Likewise.
35911         (creal_test): Likewise.
35912         (csin_test): Likewise.
35913         (csinh_test): Likewise.
35914         (csqrt_test): Likewise.
35915         (ctan_test): Likewise.
35916         (ctan_test_tonearest): Likewise.
35917         (ctan_test_towardzero): Likewise.
35918         (ctan_test_downward): Likewise.
35919         (ctan_test_upward): Likewise.
35920         (ctanh_test): Likewise.
35921         (ctanh_test_tonearest): Likewise.
35922         (ctanh_test_towardzero): Likewise.
35923         (ctanh_test_downward): Likewise.
35924         (ctanh_test_upward): Likewise.
35925         (erf_test): Likewise.
35926         (erfc_test): Likewise.
35927         (exp_test): Likewise.
35928         (exp_test_tonearest): Likewise.
35929         (exp_test_towardzero): Likewise.
35930         (exp_test_downward): Likewise.
35931         (exp_test_upward): Likewise.
35932         (exp10_test): Likewise.
35933         (exp10_test_tonearest): Likewise.
35934         (exp10_test_towardzero): Likewise.
35935         (exp10_test_downward): Likewise.
35936         (exp10_test_upward): Likewise.
35937         (pow10_test): Likewise.
35938         (exp2_test): Likewise.
35939         (expm1_test): Likewise.
35940         (expm1_test_tonearest): Likewise.
35941         (expm1_test_towardzero): Likewise.
35942         (expm1_test_downward): Likewise.
35943         (expm1_test_upward): Likewise.
35944         (fabs_test): Likewise.
35945         (fdim_test): Likewise.
35946         (floor_test): Likewise.
35947         (fma_test): Likewise.
35948         (fma_test_towardzero): Likewise.
35949         (fma_test_downward): Likewise.
35950         (fma_test_upward): Likewise.
35951         (fmax_test): Likewise.
35952         (fmin_test): Likewise.
35953         (fmod_test): Likewise.
35954         (fpclassify_test): Likewise.
35955         (frexp_test): Likewise.
35956         (hypot_test): Likewise.
35957         (ilogb_test): Likewise.
35958         (isfinite_test): Likewise.
35959         (finite_test): Likewise.
35960         (isgreater_test): Likewise.
35961         (isgreaterequal_test): Likewise.
35962         (isinf_test): Likewise.
35963         (isless_test): Likewise.
35964         (islessequal_test): Likewise.
35965         (islessgreater_test): Likewise.
35966         (isnan_test): Likewise.
35967         (isnormal_test): Likewise.
35968         (issignaling_test): Likewise.
35969         (isunordered_test): Likewise.
35970         (j0_test): Likewise.
35971         (j1_test): Likewise.
35972         (jn_test): Likewise.
35973         (ldexp_test): Likewise.
35974         (lgamma_test): Likewise.
35975         (gamma_test): Likewise.
35976         (lrint_test): Likewise.
35977         (lrint_test_tonearest): Likewise.
35978         (lrint_test_towardzero): Likewise.
35979         (lrint_test_downward): Likewise.
35980         (lrint_test_upward): Likewise.
35981         (llrint_test): Likewise.
35982         (llrint_test_tonearest): Likewise.
35983         (llrint_test_towardzero): Likewise.
35984         (llrint_test_downward): Likewise.
35985         (llrint_test_upward): Likewise.
35986         (log_test): Likewise.
35987         (log10_test): Likewise.
35988         (log1p_test): Likewise.
35989         (log2_test): Likewise.
35990         (logb_test): Likewise.
35991         (logb_test_downward): Likewise.
35992         (lround_test): Likewise.
35993         (llround_test): Likewise.
35994         (modf_test): Likewise.
35995         (nearbyint_test): Likewise.
35996         (nextafter_test): Likewise.
35997         (nexttoward_test): Likewise.
35998         (pow_test): Likewise.
35999         (pow_test_tonearest): Likewise.
36000         (pow_test_towardzero): Likewise.
36001         (pow_test_downward): Likewise.
36002         (pow_test_upward): Likewise.
36003         (remainder_test): Likewise.
36004         (drem_test): Likewise.
36005         (remainder_test_tonearest): Likewise.
36006         (drem_test_tonearest): Likewise.
36007         (remainder_test_towardzero): Likewise.
36008         (drem_test_towardzero): Likewise.
36009         (remainder_test_downward): Likewise.
36010         (drem_test_downward): Likewise.
36011         (remainder_test_upward): Likewise.
36012         (drem_test_upward): Likewise.
36013         (remquo_test): Likewise.
36014         (rint_test): Likewise.
36015         (rint_test_tonearest): Likewise.
36016         (rint_test_towardzero): Likewise.
36017         (rint_test_downward): Likewise.
36018         (rint_test_upward): Likewise.
36019         (round_test): Likewise.
36020         (scalb_test): Likewise.
36021         (scalbn_test): Likewise.
36022         (scalbln_test): Likewise.
36023         (signbit_test): Likewise.
36024         (sin_test): Likewise.
36025         (sin_test_tonearest): Likewise.
36026         (sin_test_towardzero): Likewise.
36027         (sin_test_downward): Likewise.
36028         (sin_test_upward): Likewise.
36029         (sincos_test): Likewise.
36030         (sinh_test): Likewise.
36031         (sinh_test_tonearest): Likewise.
36032         (sinh_test_towardzero): Likewise.
36033         (sinh_test_downward): Likewise.
36034         (sinh_test_upward): Likewise.
36035         (sqrt_test): Likewise.
36036         (sqrt_test_tonearest): Likewise.
36037         (sqrt_test_towardzero): Likewise.
36038         (sqrt_test_downward): Likewise.
36039         (sqrt_test_upward): Likewise.
36040         (tan_test): Likewise.
36041         (tan_test_tonearest): Likewise.
36042         (tan_test_towardzero): Likewise.
36043         (tan_test_downward): Likewise.
36044         (tan_test_upward): Likewise.
36045         (tanh_test): Likewise.
36046         (tgamma_test): Likewise.
36047         (trunc_test): Likewise.
36048         (y0_test): Likewise.
36049         (y1_test): Likewise.
36050         (yn_test): Likewise.
36051         (significand_test): Likewise.
36052
36053         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36054         individual tests in comment.
36055         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36056         (prev_max_error): New variable.
36057         (prev_real_max_error): Likewise.
36058         (prev_imag_max_error): Likewise.
36059         (compare_ulp_data): Don't refer to test names in comment.
36060         (find_test_ulps): Remove function.
36061         (find_function_ulps): Likewise.
36062         (find_complex_function_ulps): Likewise.
36063         (init_max_error): Take function name as argument.  Look up ulps
36064         for that function.
36065         (print_ulps): Remove function.
36066         (print_max_error): Use prev_max_error instead of calling
36067         find_function_ulps.
36068         (print_complex_max_error): Use prev_real_max_error and
36069         prev_imag_max_error instead of calling find_complex_function_ulps.
36070         (check_float_internal): Take max_ulp parameter instead of calling
36071         find_test_ulps.  Don't call print_ulps.
36072         (check_float): Update call to check_float_internal.
36073         (check_complex): Update calls to check_float_internal.
36074         (START): Pass argument to init_max_error.
36075         * math/gen-libm-test.pl (%results): Don't include "kind"
36076         information.
36077         (parse_ulps): Don't handle ulps of individual tests.
36078         (print_ulps_file): Likewise.
36079         (output_ulps): Likewise.
36080         * math/README.libm-test: Update.
36081         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36082         individual tests.
36083         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36084         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36085         * sysdeps/arm/libm-test-ulps: Likewise.
36086         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36087         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36088         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36089         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36090         * sysdeps/microblaze/libm-test-ulps: Likewise.
36091         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36092         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36093         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36094         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36095         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36096         * sysdeps/sh/libm-test-ulps: Likewise.
36097         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36098         * sysdeps/tile/libm-test-ulps: Likewise.
36099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36100
36101 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36102
36103         * math/libm-test.inc (print_complex_max_error): Check separately
36104         whether real and imaginary errors are within allowed range and
36105         pass 0 to print_complex_function_ulps instead of value within
36106         allowed range.
36107
36108 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36109
36110         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36111         formatting.
36112         (get_handles_fopen): Likewise.
36113         (do_write_test): Likewise.
36114
36115         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36116
36117         * libio/fileops.c (do_ftell): Use cached offset when
36118         available.
36119         * libio/iofwide.c (do_ftell_wide): Likewise.
36120         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36121         _IO_file_attach.
36122         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36123
36124         [BZ #16532]
36125         * libio/libioP.h (get_file_offset): New function.
36126         * libio/fileops.c (get_file_offset): Likewise.
36127         (do_ftell): Likewise.
36128         (_IO_new_file_seekoff): Split out ftell logic.
36129         * libio/wfileops.c (do_ftell_wide): Likewise.
36130         (_IO_wfile_seekoff): Split out ftell logic.
36131         * libio/tst-ftell-active-handler.c: New test case.
36132         * libio/Makefile (tests): Add it.
36133
36134 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36135
36136         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36137         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36138
36139 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36140
36141         [BZ #16639]
36142         * nscd/connections.c (nscd_init): Call do_exit.
36143         (start_threads): Call do_exit and notify_parent.
36144         (begin_drop_privileges): Call do_exit.
36145         (finish_drop_privileges): Likewise.
36146         * nscd/selinux.c (preserve_capabilities): Likewise.
36147         (install_real_capabilities): Likewise.
36148         (nscd_selinux_enabled): Likewise.
36149         (avc_create_thread): Likewise.
36150         (avc_alloc_lock): Likewise.
36151         (nscd_avc_init): Likewise.
36152         * nscd/nscd.c (parent_fd): New static variable.
36153         (main): Create a pipe between parent and child processes.
36154         Skip closing parent_fd.
36155         (monitor_child): New function.
36156         (do_exit): Likewise.
36157         (notify_parent): Likewise.
36158         * nscd/nscd.h (notify_parent): Likewise.
36159         (do_exit): Likewise.
36160
36161 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36162
36163         * malloc/malloc.c (__libc_calloc): Revert last change.
36164
36165 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36166
36167         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36168
36169 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36170
36171         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36172         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36173         implementation.
36174         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36175         (__libc_ifunc_impl_list): Likewise.
36176         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36177         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36178         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36179         * string/strrchr.c: Define STRRCHR.
36180
36181 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36182
36183         * benchtest/bench-strtok.c (simple_strtok): Delete.
36184         (strtok_string): Use as benchmark.
36185         * string/strtok (STRTOK): New macro.
36186
36187 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36188
36189         * manual/threads.texi: Add header and standard comments to all
36190         functions.
36191
36192         * elf/dl-lookup.c (check_match): New function.
36193         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36194         (do_lookup_x): Remove nested function check_match. Use non-nested
36195         function check_match.
36196
36197 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36198
36199         * csu/Makefile (generated, before-compile): Use += rather than =.
36200         * catgets/Makefile (generated, generated-dirs): Likewise.
36201         * debug/Makefile (generated): Likewise.
36202         * dlfcn/Makefile (generated): Likewise.
36203         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36204         * iconvdata/Makefile (before-compile, generated): Likewise.
36205         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36206         * libio/Makefile (generated): Likewise.
36207         * malloc/Makefile (generated): Likewise.
36208         * manual/Makefile (generated, generated-dirs): Likewise.
36209         * misc/Makefile (generated): Likewise.
36210         * posix/Makefile (generated): Likewise.
36211         * resolv/Makefile (generated): Likewise.
36212         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36213         * timezone/Makefile (generated, generated-dirs): Likewise.
36214
36215         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36216
36217 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36218
36219         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36220         power8 implementation.
36221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36222         file: POWER8 llround ifunc implementation.
36223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36224         (__lllround): Add POWER8 implementation.
36225         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36226         POWER8 llround implementation.
36227
36228         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36229         power8 implementation.
36230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36231         file: POWER8 llrint ifunc implementation.
36232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36233         Add POWER8 implementation.
36234         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36235         POWER8 llrint implementation.
36236
36237         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36238         power8 implementation.
36239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36240         file: POWER8 finite ifunc implementation.
36241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36242         Add POWER8 implementation.
36243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36244         Likewise.
36245         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36246         POWER8 finite implementation.
36247         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36248
36249         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36250         power8 implementation.
36251         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36252         file: POWER8 isinf ifunc implementation.
36253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36254         POWER8 implementation.
36255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36256         Likewise.
36257         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36258         isinf implementation.
36259         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36260
36261         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36262         (INIT_ARCH): Add hwcap2 initialization.
36263         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36264         power8 implementation.
36265         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36266         file: POWER8 isnan ifunc implementation.
36267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36268         POWER8 implementation.
36269         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36270         Likewise.
36271         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36272         isnan implementation.
36273         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36274
36275 2014-02-27  Joey Ye  <joey.ye@arm.com>
36276
36277         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36278         (_FP_NANFRAC_Q): Set to zero.
36279
36280 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36281
36282         [BZ #16623]
36283         * math/auto-libm-test-in: New test inputs.
36284         * math/auto-libm-test-out: Regenerate.
36285         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36286         and DA.
36287         (__cos): Likewise.
36288         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36289
36290 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36291
36292         * scripts/evaluate-test.sh: Take new argument indicating whether
36293         failure is expected.
36294         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36295         indicating whether failure is expected.
36296         * conform/Makefile (test-xfail-run-conformtest): New variable.
36297         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36298         level.
36299         * posix/Makefile (test-xfail-annexc): New variable.
36300         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36301
36302 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36303
36304         * argp/Makefile: Include Makeconfig immediately after defining
36305         subdir.
36306         * assert/Makefile: Likewise.
36307         * benchtests/Makefile: Likewise.
36308         * catgets/Makefile: Likewise.
36309         * conform/Makefile: Likewise.
36310         * crypt/Makefile: Likewise.
36311         * csu/Makefile: Likewise.
36312         (all): Remove target.
36313         * ctype/Makefile: Include Makeconfig immediately after defining
36314         subdir.
36315         * debug/Makefile: Likewise.
36316         * dirent/Makefile: Likewise.
36317         * dlfcn/Makefile: Likewise.
36318         * gmon/Makefile: Likewise.
36319         * gnulib/Makefile: Likewise.
36320         * grp/Makefile: Likewise.
36321         * gshadow/Makefile: Likewise.
36322         * hesiod/Makefile: Likewise.
36323         * hurd/Makefile: Likewise.
36324         (all): Remove target.
36325         * iconvdata/Makefile: Include Makeconfig immediately after
36326         defining subdir.
36327         * inet/Makefile: Likewise.
36328         * intl/Makefile: Likewise.
36329         * io/Makefile: Likewise.
36330         * libio/Makefile: Likewise.
36331         (all): Remove target.
36332         * locale/Makefile: Include Makeconfig immediately after defining
36333         subdir.
36334         * login/Makefile: Likewise.
36335         * mach/Makefile: Likewise.
36336         (all): Remove target.
36337         * malloc/Makefile: Include Makeconfig immediately after defining
36338         subdir.
36339         (all): Remove target.
36340         * manual/Makefile: Include Makeconfig immediately after defining
36341         subdir.
36342         * math/Makefile: Likewise.
36343         * misc/Makefile: Likewise.
36344         * nis/Makefile: Likewise.
36345         * nss/Makefile: Likewise.
36346         * po/Makefile: Likewise.
36347         (all): Remove target.
36348         * posix/Makefile: Include Makeconfig immediately after defining
36349         subdir.
36350         * pwd/Makefile: Likewise.
36351         * resolv/Makefile: Likewise.
36352         * resource/Makefile: Likewise.
36353         * rt/Makefile: Likewise.
36354         * setjmp/Makefile: Likewise.
36355         * shadow/Makefile: Likewise.
36356         * signal/Makefile: Likewise.
36357         * socket/Makefile: Likewise.
36358         * soft-fp/Makefile: Likewise.
36359         * stdio-common/Makefile: Likewise.
36360         * stdlib/Makefile: Likewise.
36361         * streams/Makefile: Likewise.
36362         * string/Makefile: Likewise.
36363         * sunrpc/Makefile: Likewise.
36364         (all): Remove target.
36365         * sysvipc/Makefile: Include Makeconfig immediately after defining
36366         subdir.
36367         * termios/Makefile: Likewise.
36368         * time/Makefile: Likewise.
36369         * timezone/Makefile: Likewise.
36370         (all): Remove target.
36371         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36372         subdir.
36373         * wctype/Makefile: Likewise.
36374
36375 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36376
36377         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36378         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36379         (libc_feholdexcept_setround_mips): Ditto.
36380         (libc_feholdsetround): New.
36381         (libc_feholdsetroundf): New.
36382         (libc_feholdsetroundl): New.
36383         (libc_feupdateenv_test_mips): New.
36384         (libc_feupdateenv_test): New.
36385         (libc_feupdateenv_testf): New.
36386         (libc_feupdateenv_testl): New.
36387         (libc_feresetround): New.
36388         (libc_feresetroundf): New.
36389         (libc_feresetroundl): New.
36390         (libc_fetestexcept_mips): New.
36391         (libc_fetestexcept): New.
36392         (libc_fetestexceptf): New.
36393         (libc_fetestexceptl): New.
36394         (HAVE_RM_CTX): New.
36395         (libc_feholdexcept_setround_mips_ctx): New.
36396         (libc_feholdexcept_setround_ctx): New.
36397         (libc_feholdexcept_setroundf_ctx): New.
36398         (libc_feholdexcept_setroundl_ctx): New.
36399         (libc_fesetenv_mips_ctx): New.
36400         (libc_fesetenv_ctx): New.
36401         (libc_fesetenv_ctxf): New.
36402         (libc_fesetenv_ctxl): New.
36403         (libc_feupdateenv_mips_ctx): New.
36404         (libc_feupdateenv_ctx): New.
36405         (libc_feupdateenvf_ctx): New.
36406         (libc_feupdateenvl_ctx): New.
36407         (libc_feholdsetround_mips_ctx): New.
36408         (libc_feholdsetround_ctx): New.
36409         (libc_feholdsetroundf_ctx): New.
36410         (libc_feholdsetroundl_ctx): New.
36411         (libc_feresetround_mips_ctx): New.
36412         (libc_feresetround_ctx): New.
36413         (libc_feresetroundf_ctx): New.
36414         (libc_feresetroundl_ctx): New.
36415
36416 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36417
36418         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36419
36420         * manual/ipc.texi: New file.
36421         * manual/Makefile (chapters): Add ipc.
36422         * manual/job.texi: Add "Inter-Process Communication" to next.
36423         * manual/process.texi: Add "Inter-Process Communication" to prev.
36424
36425 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36426
36427         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36428
36429 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36430
36431         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36432
36433         * manual/arith.texi: Fix spaces after sentences.
36434         * manual/charset.texi: Likewise.
36435         * manual/errno.texi: Likewise.
36436         * manual/install.texi: Likewise.
36437         * manual/llio.texi: Likewise.
36438         * manual/locale.texi: Likewise.
36439         * manual/maint.texi: Likewise.
36440         * manual/math.texi: Likewise.
36441         * manual/memory.texi: Likewise.
36442         * manual/message.texi: Likewise.
36443         * manual/probes.texi: Likewise.
36444         * manual/resource.texi: Likewise.
36445         * manual/signal.texi: Likewise.
36446         * manual/socket.texi: Likewise.
36447         * manual/stdio.texi: Likewise.
36448         * manual/string.texi: Likewise.
36449         * manual/time.texi: Likewise.
36450         * manual/users.texi: Likewise.
36451
36452 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36453
36454         [BZ #16632]
36455         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36456         _DEFAULT_SOURCE is defined.
36457
36458 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36459             Carlos O'Donell  <carlos@redhat.com>
36460
36461         [BZ #16613]
36462         * elf/dl-tls.c (_dl_count_modids): New function.
36463         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36464         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36465         audit library and increment generation counter.
36466         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36467         * elf/tst-audit9.c: New file.
36468         * elf/tst-auditmod9a.c: New file.
36469         * elf/tst-auditmod9b.c: New file.
36470         * elf/Makefile: Add rules to build and run tst-audit9.
36471
36472 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36473
36474         [BZ #15347]
36475         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36476
36477 2014-02-25  Will Newton  <will.newton@linaro.org>
36478
36479         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36480         (__longjmp): Restore sp and lr before restoring callee
36481         saved registers.  Add longjmp and longjmp_target
36482         SystemTap probe point.
36483         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36484         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36485         Define to zero to match jmpbuf layout.
36486         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36487         (__sigsetjmp): Save sp and lr before saving callee
36488         saved registers.  Add setjmp SystemTap probe point.
36489
36490 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36491
36492         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36493
36494 2014-02-24  Andreas Schwab  <schwab@suse.de>
36495
36496         [BZ #15804]
36497         * elf/pldd.c (wait_for_ptrace_stop): New function.
36498         (main): Call it after attaching.
36499
36500 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36501
36502         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36503         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36504         Versions files is now verboten.
36505         * hurd/Versions (libc: GLIBC_2.0):
36506         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36507         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36508         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36509         * mach/Versions: Likewise.
36510
36511         * csu/Versions: Remove unused %include.
36512         * resolv/Versions: Likewise.
36513
36514 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36515
36516         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36517         ($(objpfx)check-local-headers.out): Likewise.
36518         ($(objpfx)begin-end-check.out): Likewise.
36519         * Makerules (check-abi-%.out): Likewise.
36520         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36521         ($(objpfx)test2.cat): Likewise.
36522         ($(objpfx)de/libc.cat): Likewise.
36523         ($(objpfx)test-gencat.out): Likewise.
36524         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36525         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36526         ($(objpfx)noload-mem): Likewise.
36527         ($(objpfx)tst-pathopt.out): Likewise.
36528         ($(objpfx)tst-rtld-load-self.out): Likewise.
36529         ($(objpfx)tst-array1-cmp.out): Likewise.
36530         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36531         ($(objpfx)tst-array2-cmp.out): Likewise.
36532         ($(objpfx)tst-array3-cmp.out): Likewise.
36533         ($(objpfx)tst-array4-cmp.out): Likewise.
36534         ($(objpfx)tst-array5-cmp.out): Likewise.
36535         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36536         ($(objpfx)check-textrel.out): Likewise.
36537         ($(objpfx)check-execstack.out): Likewise.
36538         ($(objpfx)check-localplt.out): Likewise.
36539         ($(objpfx)order2-cmp.out): Likewise.
36540         ($(objpfx)tst-leaks1-mem): Likewise.
36541         ($(objpfx)tst-leaks1-static-mem): Likewise.
36542         ($(objpfx)tst-initorder-cmp.out): Likewise.
36543         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36544         ($(objpfx)tst-unused-dep.out): Likewise.
36545         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36546         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36547         * iconv/Makefile (test-iconvconfig): Likewise.
36548         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36549         ($(objpfx)iconv-test.out): Likewise.
36550         ($(objpfx)tst-tables.out): Likewise.
36551         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
36552         ($(objpfx)tst-gettext.out): Likewise.
36553         ($(objpfx)tst-translit.out): Likewise.
36554         ($(objpfx)tst-gettext2.out): Likewise.
36555         ($(objpfx)tst-gettext4.out): Likewise.
36556         ($(objpfx)tst-gettext6.out): Likewise.
36557         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
36558         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36559         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
36560         ($(objpfx)tst-fopenloc-mem.out): Likewise.
36561         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36562         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
36563         * posix/Makefile ($(objpfx)globtest.out): Likewise.
36564         ($(objpfx)wordexp-tst.out): Likewise.
36565         ($(objpfx)annexc.out): Likewise.
36566         ($(objpfx)tst-fnmatch-mem): Likewise.
36567         ($(objpfx)bug-regex2-mem): Likewise.
36568         ($(objpfx)bug-regex14-mem): Likewise.
36569         ($(objpfx)bug-regex21-mem): Likewise.
36570         ($(objpfx)bug-regex31-mem): Likewise.
36571         ($(objpfx)tst-vfork3-mem): Likewise.
36572         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36573         ($(objpfx)tst-pcre-mem): Likewise.
36574         ($(objpfx)tst-boost-mem): Likewise.
36575         ($(objpfx)tst-getconf.out): Likewise.
36576         ($(objpfx)bug-ga2-mem): Likewise.
36577         ($(objpfx)bug-glob2-mem): Likewise.
36578         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
36579         ($(objpfx)mtrace-tst-leaks2): Likewise.
36580         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
36581         ($(objpfx)tst-printf.out): Likewise.
36582         ($(objpfx)tst-setvbuf1.out): Likewise.
36583         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
36584         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
36585         ($(objpfx)tst-fmtmsg.out): Likewise.
36586         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
36587         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
36588
36589         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
36590         * bits/sigaction.h [__USE_MISC]: Likewise.
36591         * bits/waitstatus.h: Update #endif comments.
36592         * ctype/ctype.h: Likewise.
36593         * dirent/dirent.h: Likewise.
36594         [__USE_MISC]: Remove redundant conditionals.
36595         * grp/grp.h: Update #endif comments.
36596         [__USE_GNU]: Remove redundant conditionals.
36597         [__USE_MISC]: Likewise.
36598         * inet/netinet/in.h [__USE_GNU]: Likewise.
36599         * io/sys/stat.h [__USE_MISC]: Likewise.
36600         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
36601         * libio/bits/stdio.h: Update #endif comments.
36602         [__USE_MISC]: Remove redundant conditionals.
36603         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
36604         * libio/stdio.h: Update #endif comments.
36605         [__USE_MISC]: Remove redundant conditionals.
36606         * math/bits/math-finite.h [__USE_MISC]: Likewise.
36607         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
36608         * math/math.h: Update #else and #endif comments.
36609         [__USE_MISC]: Remove redundant conditionals.
36610         * misc/sys/uio.h: Update #endif comments.
36611         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
36612         * posix/glob.h [__USE_MISC]: Likewise.
36613         * posix/sys/types.h: Update #endif comments.
36614         [__USE_MISC]: Remove redundant conditionals.
36615         * posix/sys/wait.h: Update #endif comments.
36616         [__USE_MISC]: Remove redundant conditionals.
36617         * posix/unistd.h: Update #endif comments.
36618         [__USE_MISC]: Remove redundant conditionals.
36619         * pwd/pwd.h [__USE_GNU]: Likewise.
36620         [__USE_MISC]: Likewise.
36621         * resolv/netdb.h [__USE_GNU]: Likewise.
36622         * signal/signal.h: Update #endif comments.
36623         [__USE_MISC]: Remove redundant conditionals.
36624         * stdlib/stdlib.h: Update #else and #endif comments.
36625         [__USE_MISC]: Remove redundant conditionals.
36626         [__USE_GNU]: Likewise.
36627         * string/bits/string2.h [__USE_MISC]: Likewise.
36628         * string/string.h: Update #endif comments.
36629         [__USE_MISC]: Remove redundant conditionals.
36630         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
36631         Likewise.
36632         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
36633         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
36634         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
36635         Likewise.
36636         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
36637         Likewise.
36638         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
36639         comments.
36640         [__USE_MISC]: Remove redundant conditionals.
36641         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
36642         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
36643         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
36644         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
36645         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
36646         Likewise.
36647         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
36648         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
36649         Likewise.
36650         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
36651         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
36652         Likewise.
36653         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
36654         Likewise.
36655         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
36656         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
36657         Likewise.
36658         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
36659         Likewise.
36660         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
36661         * sysdeps/x86/bits/string.h: Update #endif comments.
36662         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
36663         conditionals.
36664         * time/sys/time.h: Update #endif comments.
36665         * time/time.h: Likewise.
36666         [__USE_MISC]: Remove redundant conditionals.
36667
36668 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
36669
36670         [BZ #16600]
36671         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
36672
36673 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
36674
36675         * Versions.def (librt): Add GLIBC_2.17.
36676
36677 2014-02-21  Adam Conrad  <adconrad@0c3.net>
36678
36679         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
36680         synonym for _SYS_AUXV_H to allow direct inclusion.
36681         * sysdeps/sparc/bits/hwcap.h: Likewise.
36682         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
36683         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
36684         * sysdeps/sparc/sysdep.h: Likewise.
36685
36686 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
36687
36688         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
36689
36690 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36691
36692         * benchtests/bench-strrchr.c: Print length instead of position.
36693
36694 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
36695
36696         [BZ #16611]
36697         * sysdeps/unix/sysv/linux/kernel-features.h
36698         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
36699         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
36700         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
36701         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
36702         Likewise.
36703         [__i386__ || __powerpc__ || __sh__ || __sparc__]
36704         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36705         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
36706         (__ASSUME_SENDMMSG): Define instead of using previous
36707         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
36708         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36709         (__ASSUME_SENDMMSG_SYSCALL): Define.
36710         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36711         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
36712         Likewise.
36713         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36714         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36715         Likewise.
36716         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36717         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36718         Likewise.
36719         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
36720         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36721         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36722         [__ASSUME_SENDMMSG]: Change conditionals to
36723         [__ASSUME_SENDMMSG_SOCKETCALL].
36724         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36725         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
36726         Define.
36727         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36728         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
36729         Likewise.
36730         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
36731         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36732         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36733         [!__ASSUME_SENDMMSG]: Change conditional to
36734         [!__ASSUME_SENDMMSG_SOCKETCALL].
36735         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36736         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36737         Define.
36738
36739         [BZ #16610]
36740         * sysdeps/unix/sysv/linux/kernel-features.h
36741         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
36742         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
36743         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
36744         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
36745         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
36746         [__i386__ || __sparc__]
36747         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36748         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
36749         (__ASSUME_RECVMMSG): Define instead of using previous
36750         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
36751         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36752         (__ASSUME_RECVMMSG_SYSCALL): Define.
36753         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36754         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36755         Likewise.
36756         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36757         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36758         Likewise.
36759         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36760         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36761         Likewise.
36762         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
36763         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36764         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36765         [__ASSUME_RECVMMSG]: Change condition to
36766         [__ASSUME_RECVMMSG_SOCKETCALL].
36767         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36768         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36769         Define.
36770         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36771         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36772         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36773         Likewise.
36774         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
36775         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36776         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36777         [!__ASSUME_RECVMMSG]: Change condition to
36778         [!__ASSUME_RECVMMSG_SOCKETCALL].
36779         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36780         (__ASSUME_RECVMMSG_SYSCALL): Define.
36781
36782         [BZ #16609]
36783         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
36784         __powerpc__ || __s390__ || __sh__ || __sparc__]
36785         (__ASSUME_SOCKETCALL): Define.
36786         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
36787         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
36788         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
36789         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
36790         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36791         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
36792         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
36793         (__ASSUME_ACCEPT4): Define instead of using previous
36794         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
36795         __powerpc__ || __sparc__ || __s390__)] condition.
36796         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36797         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36798         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
36799         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36800         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36801         [!__ASSUME_ACCEPT4]: Change condition to
36802         [!__ASSUME_ACCEPT4_SOCKETCALL].
36803         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36804         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
36805         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
36806         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36807         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
36808         __ASSUME_ACCEPT4_SYSCALL.
36809         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
36810         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
36811         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36812         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
36813         __ASSUME_ACCEPT4_SYSCALL.
36814         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
36815         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36816         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36817         [__ASSUME_ACCEPT4]: Change condition to
36818         [__ASSUME_ACCEPT4_SOCKETCALL].
36819         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
36820         (__ASSUME_SOCKETCALL): Define.
36821         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
36822         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36823         (__ASSUME_SOCKETCALL): Define.
36824         (__ASSUME_ACCEPT4): Remove.
36825         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
36826         Define.
36827         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36828         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
36829         Likewise.
36830         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36831         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36832
36833         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
36834         macro.
36835         (HWCAP_ARM_LPAE): Likewise.
36836         (HWCAP_ARM_EVTSTRM): Likewise.
36837         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
36838         Add vpfd32, lpae and evtstrm.
36839         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
36840         Increase to 22.
36841
36842 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
36843
36844         * math/auto-libm-test-in: Add tests of clog10.
36845         * math/auto-libm-test-out: Regenerated.
36846         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
36847         * sysdeps/i386/fpu/libm-test-ulps: Update.
36848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36849
36850 2014-02-18  Andreas Schwab  <schwab@suse.de>
36851
36852         [BZ #16574]
36853         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
36854         Store non-zero if the second buffer was newly allocated.
36855         (send_dg): Likewise.
36856         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
36857         to send_vc and send_dg.
36858         (res_nsend): Pass NULL for ansp2_malloced.
36859         * resolv/res_query.c (__libc_res_nquery): Add parameter
36860         answerp2_malloced and pass it down to __libc_res_nsend.
36861         (res_nquery): Pass additional NULL to __libc_res_nquery.
36862         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
36863         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
36864         second answer buffer if answerp2_malloced was set.
36865         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
36866         (__libc_res_nquerydomain): Add parameter
36867         answerp2_malloced and pass it down to __libc_res_nquery.
36868         (res_nquerydomain): Pass additional NULL to
36869         __libc_res_nquerydomain.
36870         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
36871         additional NULL to __libc_res_nsend and __libc_res_nquery.
36872         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
36873         additional NULL to __libc_res_nsearch.
36874         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
36875         parameter of __libc_res_nsearch to check for separately allocated
36876         second buffer.
36877         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
36878         __libc_res_nquery.
36879         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
36880         additional NULL to __libc_res_nquery.
36881         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
36882         __libc_res_nsearch.
36883         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
36884         * include/resolv.h: Update prototypes of __libc_res_nquery,
36885         __libc_res_nsearch, __libc_res_nsend.
36886
36887 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
36888
36889         * math/auto-libm-test-in: Add tests of fma.
36890         * math/auto-libm-test-out: Regenerated.
36891         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
36892         (fma_towardzero_test_data): Likewise.
36893         (fma_downward_test_data): Likewise.
36894         (fma_upward_test_data): Likewise.
36895         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
36896         mpc_mode.
36897         (rounding_modes): Add values for new field.
36898         (func_calc_method): Add value mpfr_fff_f.
36899         (func_calc_desc): Add mpfr_fff_f union field.
36900         (test_function): Add field exact_args.
36901         (FUNC): Add macro argument EXACT_ARGS.
36902         (FUNC_mpfr_f_f): Update call to FUNC.
36903         (FUNC_mpfr_f_f): Likewise.
36904         (FUNC_mpfr_ff_f): Likewise.
36905         (FUNC_mpfr_if_f): Likewise.
36906         (FUNC_mpc_c_f): Likewise.
36907         (FUNC_mpc_c_c): Likewise.
36908         (test_functions): Add fma.  Update calls to FUNC.
36909         (handle_input_arg): Add argument exact_args.
36910         (add_test): Update call to handle_input_arg.
36911         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
36912         (output_for_one_input_case): Update call to calc_generic_results.
36913         Recalculate exact zero results in each rounding mode.
36914
36915         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
36916         non-negative before setting low bit.
36917         * math/auto-libm-test-in: Mark one asin test possibly having
36918         spurious underflow.
36919         * math/auto-libm-test-out: Regenerated.
36920         * sysdeps/i386/fpu/libm-test-ulps: Update.
36921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36922
36923 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
36924
36925         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
36926         * sysdeps/unix/sysv/linux/microblaze: Move directory from
36927         ports/sysdeps/unix/sysv/linux/microblaze.
36928         * README: Add missing listing for microblaze*-*-linux-gnu.
36929
36930 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
36931
36932         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
36933         duplicate code
36934
36935 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
36936
36937         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
36938         * sysdeps/unix/sysv/linux/ia64: Move directory from
36939         ports/sysdeps/unix/sysv/linux/ia64.
36940         * README: Update listing for ia64-*-linux-gnu.
36941
36942 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
36943             Joseph Myers  <joseph@codesourcery.com>
36944
36945         * Makeconfig (test-name): New variable.
36946         (evaluate-test): Likewise.
36947         * Makerules (do-test-clean): Remove .test-result files.
36948         (common-mostlyclean): Likewise.
36949         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
36950         * scripts/evaluate-test.sh: New file.
36951
36952 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
36953
36954         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
36955         separate $(objpfx)tst-fopenloc-cmp.out and
36956         $(objpfx)tst-fopenloc-mem.out targets.
36957         (tests): Update dependencies.
36958         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
36959         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
36960         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
36961         (tst-rxspencer-no-utf8-ARGS): New variable.
36962         (tst-rxspencer-no-utf8-ENV): Likewise.
36963         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
36964         instead of $(objpfx)tst-rxspencer-mem.
36965         ($(objpfx)tst-rxspencer-mem): Change target to
36966         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
36967         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
36968         * posix/tst-rxspencer-no-utf8.c: New file.
36969
36970         * elf/Makefile ($(objpfx)order.out): Remove rule.
36971         [$(run-built-tests) = yes] (tests): Depend on
36972         $(objpfx)order-cmp.out.
36973         ($(objpfx)order-cmp.out): New rule.
36974         [$(run-built-tests) = yes] (tests): Depend on
36975         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
36976         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
36977         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
36978         $(objpfx)tst-array5-static-cmp.out.
36979         ($(objpfx)tst-array1.out): Remove rule.
36980         ($(objpfx)tst-array1-cmp.out): New rule.
36981         ($(objpfx)tst-array1-static.out): Remove rule.
36982         ($(objpfx)tst-array1-static-cmp.out): New rule.
36983         ($(objpfx)tst-array2.out): Remove rule.
36984         ($(objpfx)tst-array2-cmp.out): New rule.
36985         ($(objpfx)tst-array3.out): Remove rule.
36986         ($(objpfx)tst-array3-cmp.out): New rule.
36987         ($(objpfx)tst-array4.out): Remove rule.
36988         ($(objpfx)tst-array4-cmp.out): New rule.
36989         ($(objpfx)tst-array5.out): Remove rule.
36990         ($(objpfx)tst-array5-cmp.out): New rule.
36991         ($(objpfx)tst-array5-static.out): Remove rule.
36992         ($(objpfx)tst-array5-static-cmp.out): New rule.
36993         [$(run-built-tests) = yes] (tests): Depend on
36994         $(objpfx)order2-cmp.out.
36995         ($(objpfx)order2.out): Remove rule.
36996         ($(objpfx)order2-cmp.out): New rule.
36997         ($(objpfx)tst-initorder.out): Remove rule.
36998         [$(run-built-tests) = yes] (tests): Depend on
36999         $(objpfx)tst-initorder-cmp.out.
37000         ($(objpfx)tst-initorder-cmp.out): New rule.
37001         ($(objpfx)tst-initorder2.out): Remove rule.
37002         [$(run-built-tests) = yes] (tests): Depend on
37003         $(objpfx)tst-initorder2-cmp.out.
37004         ($(objpfx)tst-initorder2-cmp.out): New rule.
37005         [$(run-built-tests) = yes] (tests): Depend on
37006         $(objpfx)tst-unused-dep-cmp.out.
37007         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37008         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37009         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37010         on $(objpfx)tst-setvbuf1-cmp.out.
37011         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37012         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37013         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37014         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37015         ($(objpfx)tst-svc.out): Remove rule.
37016         ($(objpfx)tst-svc-cmp.out): New rule.
37017
37018 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37019
37020         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37021         * ctype/ctype.h [__USE_MISC]: Likewise.
37022         * dirent/dirent.h [__USE_MISC]: Likewise.
37023         * grp/grp.h [__USE_MISC]: Likewise.
37024         * io/fcntl.h [__USE_MISC]: Likewise.
37025         * io/sys/stat.h [__USE_MISC]: Likewise.
37026         * libio/stdio.h [__USE_MISC]: Likewise.
37027         * posix/unistd.h [__USE_MISC]: Likewise.
37028         * pwd/pwd.h [__USE_MISC]: Likewise.
37029         * stdlib.h [__USE_MISC]: Likewise.
37030         * string/bits/string2.h [__USE_MISC]: Likewise.
37031         * string/string.h [__USE_MISC]: Likewise.
37032         * time/time.h [__USE_MISC]: Likewise.
37033
37034 2014-02-13  Andreas Schwab  <schwab@suse.de>
37035
37036         [BZ #16574]
37037         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37038         second answer buffer if it was separately allocated.
37039
37040 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37041
37042         * sysdeps/mips/math-tests.h: Include <features.h>.
37043         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37044         (ROUNDING_TESTS_long_double): Do not define.
37045         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37046         (EXCEPTION_TESTS_long_double): Likewise.
37047         * sysdeps/mips/mips64/libm-test-ulps: Update.
37048
37049         * include/features.h (__USE_BSD): Remove macro definitions.
37050         (__USE_SVID): Likewise.
37051         (_BSD_SOURCE): Likewise.
37052         (_SVID_SOURCE): Likewise.
37053         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37054         from definition of _DEFAULT_SOURCE.
37055         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37056         [_DEFAULT_SOURCE].
37057         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37058         * bits/mman.h [__USE_BSD]: Likewise.
37059         * bits/termios.h [__USE_BSD]: Likewise.
37060         * bits/waitstatus.h [__USE_BSD]: Likewise.
37061         * ctype/ctype.h [__USE_SVID]: Likewise.
37062         * dirent/dirent.h [__USE_BSD]: Likewise.
37063         * grp/grp.h [__USE_SVID]: Likewise.
37064         [__USE_BSD]: Likewise.
37065         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37066         * io/fcntl.h [__USE_BSD]: Likewise.
37067         * io/ftw.h [__USE_BSD]: Likewise.
37068         * io/sys/stat.h [__USE_BSD]: Likewise.
37069         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37070         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37071         * libio/stdio.h [__USE_SVID]: Likewise.
37072         [__USE_BSD]: Likewise.
37073         * math/math.h [__USE_SVID]: Likewise.
37074         [__USE_BSD]: Likewise.
37075         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37076         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37077         * misc/search.h [__USE_SVID]: Likewise.
37078         * misc/sys/mman.h [__USE_BSD]: Likewise.
37079         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37080         * misc/sys/uio.h [__USE_BSD]: Likewise.
37081         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37082         * posix/glob.h [__USE_BSD]: Likewise.
37083         * posix/regex.h [__USE_BSD]: Likewise.
37084         * posix/sys/types.h [__USE_BSD]: Likewise.
37085         [__USE_SVID]: Likewise.
37086         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37087         * posix/sys/wait.h [__USE_BSD]: Likewise.
37088         [__USE_SVID]: Likewise.
37089         * posix/unistd.h [__USE_BSD]: Likewise.
37090         [__USE_SVID]: Likewise.
37091         * pwd/pwd.h [__USE_SVID]: Likewise.
37092         * resolv/netdb.h [__USE_BSD]: Likewise.
37093         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37094         * signal/signal.h [__USE_BSD]: Likewise.
37095         [__USE_SVID]: Likewise.
37096         * socket/sys/socket.h [__USE_BSD]: Likewise.
37097         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37098         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37099         [__USE_SVID]: Likewise.
37100         * string/bits/string2.h [__USE_BSD]: Likewise.
37101         [__USE_SVID]: Likewise.
37102         * string/bits/string3.h [__USE_BSD]: Likewise.
37103         * string/endian.h [__USE_BSD]: Likewise.
37104         * string/string.h [__USE_SVID]: Likewise.
37105         [__USE_BSD]: Likewise.
37106         * string/strings.h [__USE_BSD]: Likewise.
37107         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37108         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37109         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37110         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37111         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37112         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37113         Likewise.
37114         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37115         Likewise.
37116         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37117         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37118         Likewise.
37119         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37120         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37121         Likewise.
37122         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37123         Likewise.
37124         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37125         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37126         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37127         Likewise.
37128         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37129         Likewise.
37130         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37131         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37132         * termios/termios.h [__USE_BSD]: Likewise.
37133         * time/sys/time.h [__USE_BSD]: Likewise.
37134         * time/time.h [__USE_BSD]: Likewise.
37135         [__USE_SVID]: Likewise.
37136
37137         * Makefile (subdir_targets): Remove subdir_lint.out.
37138
37139         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37140         (do-tst-printf): Likewise.
37141         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37142         $(objpfx)tst-printf.out.
37143
37144         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37145
37146         * Makerules (check-abi-%): Change target to
37147         $(objpfx)check-abi-%.out.
37148         (check-abi target): Update dependencies.
37149         (check-abi-pattern variable): Redirect output of diff to $@.
37150         (check-abi variable): Likewise.
37151         * elf/Makefile (check-abi): Update dependencies.
37152
37153         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37154         unused.
37155         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37156         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37157         subnormal range.
37158         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37159         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37160         value has largest subnormal exponent.
37161         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37162         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37163         * sysdeps/aarch64/soft-fp/sfp-machine.h
37164         (_FP_TININESS_AFTER_ROUNDING): New macro.
37165         * sysdeps/alpha/soft-fp/sfp-machine.h
37166         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37167         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37168         Likewise.
37169         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37170         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37171         * sysdeps/mips/soft-fp/sfp-machine.h
37172         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37173         * sysdeps/powerpc/soft-fp/sfp-machine.h
37174         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37175         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37176         Likewise.
37177         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37178         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37179         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37180         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37181         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37182         Likewise.
37183
37184 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37185
37186         [BZ #16545]
37187         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37188         model 1.
37189
37190 2014-02-12  Richard Henderson  <rth@redhat.com>
37191
37192         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37193         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37194         * sysdeps/unix/sysv/linux/alpha: Move directory from
37195         ports/sysdeps/unix/sysv/linux/alpha.
37196         * README: Update listing for alpha-*-linux-gnu.
37197
37198 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37199
37200         * include/features.h: Update comment documenting feature test
37201         macros.
37202         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37203         _DEFAULT_SOURCE.
37204         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37205         (_SVID_SOURCE): Likewise.
37206         (_DEFAULT_SOURCE): Update description of default features.
37207         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37208         with _GNU_SOURCE.
37209         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37210         (S_ISVTX): Likewise.
37211         * manual/math.texi (Mathematical Constants): Likewise.
37212         * manual/signal.texi (Interrupted Primitives): Likewise.
37213         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37214         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37215         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37216         Don't refer to _SVID_SOURCE in warning text.
37217
37218         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37219
37220         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37221         already defined.
37222         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37223         * sysdeps/mips/dl-lookup.c: Remove.
37224         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37225
37226 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37227
37228         [BZ #16447]
37229         * math/auto-libm-test-in: Add testcase for expl.
37230         * math/auto-libm-test-out: Regenerate.
37231         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37232         calculation of unsafe.
37233         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37234
37235 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37236
37237         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37238         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37239         ports/sysdeps/unix/sysv/linux/aarch64.
37240         * README: Update listing for aarch64*-*-linux-gnu.
37241
37242 2014-02-11  Will Newton  <will.newton@linaro.org>
37243
37244         * manual/probes.texi (Mathematical Function Probes): Use
37245         "triggered" instead of "hit".
37246
37247         * manual/probes.texi (Internal Probes): Add documentation
37248         of setjmp, longjmp and longjmp_target probes.
37249
37250         * include/stap-probe.h: Add comment about probe argument
37251         format.
37252
37253         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37254         definition.  (tr_where, tr_freehook, tr_mallochook,
37255         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37256
37257 2014-02-11  David S. Miller  <davem@davemloft.net>
37258
37259         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37260         processing int_tests.
37261
37262 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37263
37264         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37265         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37266         * sysdeps/unix/sysv/linux/mips: Move directory from
37267         ports/sysdeps/unix/sysv/linux/mips.
37268         * README: Update listing for mips-*-linux-gnu and
37269         mips64-*-linux-gnu.
37270
37271 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37272
37273         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37274         * sysdeps/unix/sysv/linux/m68k: Move directory from
37275         ports/sysdeps/unix/sysv/linux/m68k.
37276         * README: Update listing for m68k-*-linux-gnu.
37277
37278 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37279
37280         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37281         * sysdeps/unix/sysv/linux/generic: Move directory from
37282         ports/sysdeps/unix/sysv/linux/generic.
37283         * sysdeps/unix/sysv/linux/tile: Move directory from
37284         ports/sysdeps/unix/sysv/linux/tile.
37285         * README: Update listing for tile*-*-linux-gnu.
37286
37287 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37288
37289         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37290         __builtin_expect.
37291         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37292         * catgets/open_catalog.c (__open_catalog): Likewise.
37293         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37294         * debug/confstr_chk.c: Likewise.
37295         * debug/fread_chk.c (__fread_chk): Likewise.
37296         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37297         * debug/getgroups_chk.c: Likewise.
37298         * debug/mbsnrtowcs_chk.c: Likewise.
37299         * debug/mbsrtowcs_chk.c: Likewise.
37300         * debug/mbstowcs_chk.c: Likewise.
37301         * debug/memcpy_chk.c: Likewise.
37302         * debug/memmove_chk.c: Likewise.
37303         * debug/mempcpy_chk.c: Likewise.
37304         * debug/memset_chk.c: Likewise.
37305         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37306         * debug/strcat_chk.c (__strcat_chk): Likewise.
37307         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37308         * debug/strncat_chk.c (__strncat_chk): Likewise.
37309         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37310         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37311         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37312         * debug/wcpncpy_chk.c: Likewise.
37313         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37314         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37315         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37316         * debug/wcsncpy_chk.c: Likewise.
37317         * debug/wcsnrtombs_chk.c: Likewise.
37318         * debug/wcsrtombs_chk.c: Likewise.
37319         * debug/wcstombs_chk.c: Likewise.
37320         * debug/wmemcpy_chk.c: Likewise.
37321         * debug/wmemmove_chk.c: Likewise.
37322         * debug/wmempcpy_chk.c: Likewise.
37323         * debug/wmemset_chk.c: Likewise.
37324         * dirent/scandirat.c (SCANDIRAT): Likewise.
37325         * dlfcn/dladdr1.c (dladdr1): Likewise.
37326         * dlfcn/dladdr.c (dladdr): Likewise.
37327         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37328         * dlfcn/dlerror.c (__dlerror): Likewise.
37329         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37330         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37331         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37332         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37333         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37334         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37335         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37336         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37337         Likewise.
37338         * elf/dl-conflict.c: Likewise.
37339         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37340         * elf/dl-dst.h: Likewise.
37341         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37342         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37343         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37344         * elf/dl-init.c (call_init, _dl_init): Likewise.
37345         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37346         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37347         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37348         Likewise.
37349         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37350         Likewise.
37351         * elf/dl-minimal.c (__libc_memalign): Likewise.
37352         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37353         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37354         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37355         * elf/dl-sym.c (do_sym): Likewise.
37356         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37357         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37358         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37359         * elf/dl-writev.h (_dl_writev): Likewise.
37360         * elf/ldconfig.c (search_dir): Likewise.
37361         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37362         (dl_main): Likewise.
37363         * elf/setup-vdso.h (setup_vdso): Likewise.
37364         * grp/compat-initgroups.c (compat_call): Likewise.
37365         * grp/fgetgrent.c (fgetgrent): Likewise.
37366         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37367         * grp/putgrent.c (putgrent): Likewise.
37368         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37369         Likewise.
37370         * hurd/hurdinit.c: Likewise.
37371         * iconvdata/8bit-gap.c (struct): Likewise.
37372         * iconvdata/ansi_x3.110.c : Likewise.
37373         * iconvdata/big5.c : Likewise.
37374         * iconvdata/big5hkscs.c : Likewise.
37375         * iconvdata/cp1255.c: Likewise.
37376         * iconvdata/cp1258.c : Likewise.
37377         * iconvdata/cp932.c : Likewise.
37378         * iconvdata/euc-cn.c: Likewise.
37379         * iconvdata/euc-jisx0213.c : Likewise.
37380         * iconvdata/euc-jp.c: Likewise.
37381         * iconvdata/euc-jp-ms.c : Likewise.
37382         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37383         * iconvdata/gb18030.c : Likewise.
37384         * iconvdata/gbbig5.c (const): Likewise.
37385         * iconvdata/gbgbk.c: Likewise.
37386         * iconvdata/gbk.c : Likewise.
37387         * iconvdata/ibm1364.c : Likewise.
37388         * iconvdata/ibm930.c : Likewise.
37389         * iconvdata/ibm932.c: Likewise.
37390         * iconvdata/ibm933.c : Likewise.
37391         * iconvdata/ibm935.c : Likewise.
37392         * iconvdata/ibm937.c : Likewise.
37393         * iconvdata/ibm939.c : Likewise.
37394         * iconvdata/ibm943.c: Likewise.
37395         * iconvdata/iso_11548-1.c: Likewise.
37396         * iconvdata/iso-2022-cn.c : Likewise.
37397         * iconvdata/iso-2022-cn-ext.c : Likewise.
37398         * iconvdata/iso-2022-jp-3.c: Likewise.
37399         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37400         * iconvdata/iso-2022-kr.c : Likewise.
37401         * iconvdata/iso646.c (gconv_end): Likewise.
37402         * iconvdata/iso_6937-2.c : Likewise.
37403         * iconvdata/iso_6937.c : Likewise.
37404         * iconvdata/iso8859-1.c: Likewise.
37405         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37406         * iconvdata/shift_jisx0213.c : Likewise.
37407         * iconvdata/sjis.c : Likewise.
37408         * iconvdata/t.61.c : Likewise.
37409         * iconvdata/tcvn5712-1.c : Likewise.
37410         * iconvdata/tscii.c: Likewise.
37411         * iconvdata/uhc.c : Likewise.
37412         * iconvdata/unicode.c (gconv_end): Likewise.
37413         * iconvdata/utf-16.c (gconv_end): Likewise.
37414         * iconvdata/utf-32.c (gconv_end): Likewise.
37415         * iconvdata/utf-7.c (base64): Likewise.
37416         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37417         * iconv/gconv_close.c (__gconv_close): Likewise.
37418         * iconv/gconv_open.c (__gconv_open): Likewise.
37419         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37420         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37421         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37422         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37423         (ucs4le_internal_loop_single): Likewise.
37424         * iconv/iconv.c (iconv): Likewise.
37425         * iconv/iconv_close.c: Likewise.
37426         * iconv/loop.c (SINGLE): Likewise.
37427         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37428         * include/atomic.h: Likewise.
37429         * inet/inet6_option.c (option_alloc): Likewise.
37430         * intl/bindtextdom.c (set_binding_values): Likewise.
37431         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37432         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37433         * intl/localealias.c (read_alias_file): Likewise.
37434         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37435         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37436         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37437         * libio/fmemopen.c (fmemopen): Likewise.
37438         * libio/iofgets.c (_IO_fgets): Likewise.
37439         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37440         * libio/iofgetws.c (fgetws): Likewise.
37441         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37442         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37443         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37444         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37445         * locale/findlocale.c (_nl_find_locale): Likewise.
37446         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37447         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37448         Likewise.
37449         * locale/setlocale.c (setlocale): Likewise.
37450         * login/programs/pt_chown.c (main): Likewise.
37451         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37452         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37453         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37454         (mmap, mmap64, mremap, munmap): Likewise.
37455         * math/e_exp2l.c: Likewise.
37456         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37457         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37458         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37459         * math/s_catan.c (__catan): Likewise.
37460         * math/s_catanf.c (__catanf): Likewise.
37461         * math/s_catanh.c (__catanh): Likewise.
37462         * math/s_catanhf.c (__catanhf): Likewise.
37463         * math/s_catanhl.c (__catanhl): Likewise.
37464         * math/s_catanl.c (__catanl): Likewise.
37465         * math/s_ccosh.c (__ccosh): Likewise.
37466         * math/s_ccoshf.c (__ccoshf): Likewise.
37467         * math/s_ccoshl.c (__ccoshl): Likewise.
37468         * math/s_cexp.c (__cexp): Likewise.
37469         * math/s_cexpf.c (__cexpf): Likewise.
37470         * math/s_cexpl.c (__cexpl): Likewise.
37471         * math/s_clog10.c (__clog10): Likewise.
37472         * math/s_clog10f.c (__clog10f): Likewise.
37473         * math/s_clog10l.c (__clog10l): Likewise.
37474         * math/s_clog.c (__clog): Likewise.
37475         * math/s_clogf.c (__clogf): Likewise.
37476         * math/s_clogl.c (__clogl): Likewise.
37477         * math/s_csin.c (__csin): Likewise.
37478         * math/s_csinf.c (__csinf): Likewise.
37479         * math/s_csinh.c (__csinh): Likewise.
37480         * math/s_csinhf.c (__csinhf): Likewise.
37481         * math/s_csinhl.c (__csinhl): Likewise.
37482         * math/s_csinl.c (__csinl): Likewise.
37483         * math/s_csqrt.c (__csqrt): Likewise.
37484         * math/s_csqrtf.c (__csqrtf): Likewise.
37485         * math/s_csqrtl.c (__csqrtl): Likewise.
37486         * math/s_ctan.c (__ctan): Likewise.
37487         * math/s_ctanf.c (__ctanf): Likewise.
37488         * math/s_ctanh.c (__ctanh): Likewise.
37489         * math/s_ctanhf.c (__ctanhf): Likewise.
37490         * math/s_ctanhl.c (__ctanhl): Likewise.
37491         * math/s_ctanl.c (__ctanl): Likewise.
37492         * math/w_pow.c: Likewise.
37493         * math/w_powf.c: Likewise.
37494         * math/w_powl.c: Likewise.
37495         * math/w_scalb.c (sysv_scalb): Likewise.
37496         * math/w_scalbf.c (sysv_scalbf): Likewise.
37497         * math/w_scalbl.c (sysv_scalbl): Likewise.
37498         * misc/error.c (error_tail): Likewise.
37499         * misc/pselect.c (__pselect): Likewise.
37500         * nis/nis_callback.c (__nis_create_callback): Likewise.
37501         * nis/nis_call.c (__nisfind_server): Likewise.
37502         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37503         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37504         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37505         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37506         * nis/nis_lookup.c (nis_lookup): Likewise.
37507         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37508         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37509         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37510         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37511         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37512         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37513         * nis/nss_compat/compat-initgroups.c (add_group)
37514         (internal_getgrent_r): Likewise.
37515         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37516         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37517         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37518         (internal_getspnam_r): Likewise.
37519         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37520         (_nss_nis_getaliasbyname_r): Likewise.
37521         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37522         (_nss_nis_getntohost_r): Likewise.
37523         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37524         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37525         (_nss_nis_getgrgid_r): Likewise.
37526         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37527         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37528         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37529         (_nss_nis_gethostbyname4_r): Likewise.
37530         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37531         (initgroups_netid): Likewise.
37532         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37533         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37534         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37535         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37536         (_nss_nis_getprotobynumber_r): Likewise.
37537         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37538         (_nss_nis_getsecretkey): Likewise.
37539         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37540         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37541         (_nss_nis_getpwuid_r): Likewise.
37542         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37543         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37544         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37545         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37546         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37547         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37548         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37549         Likewise.
37550         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37551         (_nss_nisplus_getntohost_r): Likewise.
37552         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
37553         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
37554         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
37555         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
37556         Likewise.
37557         * nis/nss_nisplus/nisplus-initgroups.c
37558         (_nss_nisplus_initgroups_dyn): Likewise.
37559         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
37560         (_nss_nisplus_getnetbyaddr_r): Likewise.
37561         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
37562         (_nss_nisplus_getprotobynumber_r): Likewise.
37563         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
37564         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
37565         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
37566         Likewise.
37567         * nis/nss_nisplus/nisplus-service.c
37568         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
37569         (_nss_nisplus_getservbyport_r): Likewise.
37570         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
37571         (_nss_nisplus_getspnam_r): Likewise.
37572         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
37573         Likewise.
37574         * nscd/aicache.c (addhstaiX): Likewise.
37575         * nscd/cache.c (cache_search, prune_cache): Likewise.
37576         * nscd/connections.c (register_traced_file, send_ro_fd)
37577         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
37578         (main_loop_epoll): Likewise.
37579         * nscd/grpcache.c (addgrbyX): Likewise.
37580         * nscd/hstcache.c (addhstbyX): Likewise.
37581         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37582         * nscd/mem.c (gc, mempool_alloc): Likewise.
37583         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
37584         (addinnetgrX): Likewise.
37585         * nscd/nscd-client.h (__nscd_acquire_maplock)
37586         (__nscd_drop_map_ref): Likewise.
37587         * nscd/nscd_getai.c (__nscd_getai): Likewise.
37588         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37589         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
37590         Likewise.
37591         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37592         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37593         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
37594         (__nscd_get_map_ref): Likewise.
37595         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37596         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
37597         Likewise.
37598         * nscd/pwdcache.c (addpwbyX): Likewise.
37599         * nscd/selinux.c (preserve_capabilities): Likewise.
37600         * nscd/servicescache.c (addservbyX): Likewise.
37601         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
37602         * posix/fnmatch.c (fnmatch): Likewise.
37603         * posix/getopt.c (_getopt_internal_r): Likewise.
37604         * posix/glob.c (glob, glob_in_dir): Likewise.
37605         * posix/wordexp.c (exec_comm_child): Likewise.
37606         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
37607         (getanswer_r, gaih_getanswer_slice): Likewise.
37608         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
37609         * resolv/res_init.c: Likewise.
37610         * resolv/res_mkquery.c (res_nmkquery): Likewise.
37611         * resolv/res_query.c (__libc_res_nquery): Likewise.
37612         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
37613         Likewise.
37614         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
37615         * stdio-common/perror.c (perror): Likewise.
37616         * stdio-common/printf_fp.c (___printf_fp): Likewise.
37617         * stdio-common/tmpnam.c (tmpnam): Likewise.
37618         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
37619         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
37620         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
37621         Likewise.
37622         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
37623         * stdlib/putenv.c (putenv): Likewise.
37624         * stdlib/setenv.c (__add_to_environ): Likewise.
37625         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
37626         * stdlib/strtol_l.c (INTERNAL): Likewise.
37627         * string/memmem.c (memmem): Likewise.
37628         * string/strerror.c (strerror): Likewise.
37629         * string/strnlen.c (__strnlen): Likewise.
37630         * string/test-memmem.c (simple_memmem): Likewise.
37631         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
37632         * sunrpc/pm_getport.c (__get_socket): Likewise.
37633         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
37634         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
37635         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
37636         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
37637         Likewise.
37638         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
37639         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
37640         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37641         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
37642         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37643         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
37644         Likewise.
37645         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
37646         Likewise.
37647         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37648         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37649         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
37650         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37651         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
37652         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
37653         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
37654         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
37655         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37656         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
37657         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37658         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
37659         Likewise.
37660         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
37661         Likewise.
37662         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
37663         Likewise.
37664         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
37665         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
37666         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
37667         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
37668         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
37669         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
37670         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
37671         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
37672         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
37673         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
37674         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
37675         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
37676         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
37677         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
37678         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
37679         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37680         Likewise.
37681         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
37682         Likewise.
37683         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
37684         Likewise.
37685         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
37686         Likewise.
37687         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
37688         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
37689         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
37690         Likewise.
37691         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
37692         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
37693         * sysdeps/posix/opendir.c (__opendirat): Likewise.
37694         * sysdeps/posix/sleep.c: Likewise.
37695         * sysdeps/posix/tempname.c: Likewise.
37696         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
37697         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
37698         Likewise.
37699         * sysdeps/powerpc/powerpc32/dl-machine.h
37700         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
37701         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
37702         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
37703         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
37704         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
37705         Likewise.
37706         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
37707         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
37708         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37709         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
37710         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37711         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
37712         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
37713         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
37714         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
37715         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
37716         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
37717         (elf_machine_lazy_rel): Likewise.
37718         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
37719         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
37720         (elf_machine_lazy_rel): Likewise.
37721         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
37722         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
37723         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
37724         * sysdeps/unix/grantpt.c (grantpt): Likewise.
37725         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
37726         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
37727         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
37728         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37729         Likewise.
37730         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
37731         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
37732         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
37733         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
37734         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
37735         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
37736         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
37737         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
37738         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
37739         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
37740         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
37741         Likewise.
37742         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
37743         (__posix_fallocate64_l64): Likewise.
37744         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
37745         (posix_fallocate): Likewise.
37746         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
37747         Likewise.
37748         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37749         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
37750         (getifaddrs_internal): Likewise.
37751         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
37752         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
37753         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
37754         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
37755         * sysdeps/unix/sysv/linux/posix_fallocate64.c
37756         (__posix_fallocate64_l64): Likewise.
37757         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
37758         Likewise.
37759         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
37760         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
37761         (__get_clockfreq): Likewise.
37762         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
37763         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
37764         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
37765         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37766         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37767         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
37768         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
37769         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
37770         Likewise.
37771         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
37772         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
37773         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
37774         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
37775         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37776         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
37777         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
37778         Likewise.
37779         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
37780         (posix_fallocate): Likewise.
37781         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37782         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
37783         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
37784         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
37785         (elf_machine_rela, elf_machine_rela_relative)
37786         (elf_machine_lazy_rel): Likewise.
37787         * time/asctime.c (asctime_internal): Likewise.
37788         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
37789         * time/tzset.c (__tzset_parse_tz): Likewise.
37790         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
37791         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
37792         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
37793         * wcsmbs/wcsmbsload.h: Likewise.
37794
37795         [BZ #15894]
37796         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
37797
37798         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
37799         (arena_get2): Remove THREAD_STATS conditionals.
37800         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
37801         (__malloc_stats, int): Likewise.
37802
37803 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
37804
37805         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
37806         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
37807
37808         * manual/setjmp.texi: Fix typos/grammar errors.
37809
37810         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
37811         Only return early when n is <= 0.  Delete unused return statement.
37812
37813         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
37814         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
37815         * debug/tst-longjmp_chk3.c: New file.
37816
37817         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
37818         (test_main): Replace code with set_fortify_handler call.
37819         * debug/test-strcpy_chk.c: Likewise.
37820         * debug/tst-chk1.c: Likewise.
37821         * debug/tst-longjmp_chk.c: Likewise.
37822         * test-skeleton.c: Include fcntl.h & paths.h
37823         (set_fortify_handler): Define.
37824
37825         * debug/tst-longjmp_chk.c: Add header comment and include
37826         ../test-skeleton.c.
37827         (do_test): Mark static.
37828         (TEST_FUNCTION): Define.
37829
37830         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
37831         (IP_PMTUDISC_INTERFACE): Likewise.
37832         (IP_MULTICAST_IF): Likewise.
37833         (IP_MULTICAST_TTL): Likewise.
37834         (IP_MULTICAST_LOOP): Likewise.
37835         (IP_ADD_MEMBERSHIP): Likewise.
37836         (IP_DROP_MEMBERSHIP): Likewise.
37837         (IP_UNBLOCK_SOURCE): Likewise.
37838         (IP_BLOCK_SOURCE): Likewise.
37839         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
37840         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
37841         (IP_MSFILTER): Likewise.
37842         (MCAST_JOIN_GROUP): Likewise.
37843         (MCAST_BLOCK_SOURCE): Likewise.
37844         (MCAST_UNBLOCK_SOURCE): Likewise.
37845         (MCAST_LEAVE_GROUP): Likewise.
37846         (MCAST_JOIN_SOURCE_GROUP): Likewise.
37847         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
37848         (MCAST_MSFILTER): Likewise.
37849         (IP_MULTICAST_ALL): Likewise.
37850         (IP_UNICAST_IF): Likewise.
37851
37852         * timezone/Makefile: Delete $(have-ksh) check.
37853         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
37854         * timezone/tzselect.ksh: Add +x mode bits.
37855
37856         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
37857         (ANON_INODE_FS_MAGIC): Likewise.
37858         (BDEVFS_MAGIC): Likewise.
37859         (BINFMTFS_MAGIC): Likewise.
37860         (BTRFS_TEST_MAGIC): Likewise.
37861         (CRAMFS_MAGIC_WEND): Likewise.
37862         (DEBUGFS_MAGIC): Likewise.
37863         (ECRYPTFS_SUPER_MAGIC): Likewise.
37864         (EXT3_SUPER_MAGIC): Likewise.
37865         (EXT4_SUPER_MAGIC): Likewise.
37866         (FUTEXFS_SUPER_MAGIC): Likewise.
37867         (HOSTFS_SUPER_MAGIC): Likewise.
37868         (HUGETLBFS_MAGIC): Likewise.
37869         (MINIX3_SUPER_MAGIC): Likewise.
37870         (MTD_INODE_FS_MAGIC): Likewise.
37871         (NILFS_SUPER_MAGIC): Likewise.
37872         (OPENPROM_SUPER_MAGIC): Likewise.
37873         (PIPEFS_MAGIC): Likewise.
37874         (PSTOREFS_MAGIC): Likewise.
37875         (QNX6_SUPER_MAGIC): Likewise.
37876         (RAMFS_MAGIC): Likewise.
37877         (REISERFS_SUPER_MAGIC_STRING): Likewise.
37878         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
37879         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
37880         (SECURITYFS_MAGIC): Likewise.
37881         (SELINUX_MAGIC): Likewise.
37882         (SMACK_MAGIC): Likewise.
37883         (SOCKFS_MAGIC): Likewise.
37884         (SQUASHFS_MAGIC): Likewise.
37885         (STACK_END_MAGIC): Likewise.
37886         (TMPFS_MAGIC): Likewise.
37887         (USBDEVICE_SUPER_MAGIC): Likewise.
37888         (V9FS_MAGIC): Likewise.
37889         (XENFS_SUPER_MAGIC): Likewise.
37890         (CRAMFS_MAGIC): Fix typo in comment.
37891         (EXT2_SUPER_MAGIC): Update comment.
37892         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
37893
37894 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
37895
37896         * sysdeps/arm: Move directory from ports/sysdeps/arm.
37897         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
37898         * sysdeps/unix/sysv/linux/arm: Move directory from
37899         ports/sysdeps/unix/sysv/linux/arm.
37900         * README: Update listing for arm-*-linux-gnueabi.
37901
37902         * README: Remove mention of am33.
37903
37904 2014-02-07  Roland McGrath  <roland@hack.frob.com>
37905
37906         * bits/sigset.h (__sigemptyset): Use a statement expression rather
37907         than the comma operator, to avoid "rhs of comma has no effect"
37908         compiler warnings.
37909         (__sigfillset, __sigandset, __sigorset): Likewise.
37910         * include/signal.h (__sigemptyset): Likewise.
37911         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
37912
37913 2014-02-07  Allan McRae  <allan@archlinux.org>
37914
37915         * version.h (RELEASE): Set to "development".
37916         (VERSION): Set to "2.19.90"
37917         * NEWS: Add 2.20 section.
37918
37919 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
37920
37921         [BZ #16529]
37922         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
37923
37924 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
37925
37926         * manual/contrib.texi: Update entry for Carlos O'Donell,
37927         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
37928
37929 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
37930
37931         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
37932
37933         * sysdeps/unix/sysv/linux/kernel-features.h
37934         [__LINUX_KERNEL_VERSION >= 0x020621]
37935         (__ASSUME_PROC_PID_TASK_COMM): Define.
37936
37937 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
37938
37939         [BZ #16398]
37940         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
37941         conversion when destination buffer does not have enough space.
37942         * libio/tst-ftell-partial-wide.c: New test case.
37943         * libio/Makefile (tests): Add tst-ftell-partial-wide.
37944
37945         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
37946         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
37947         Leonard and Allan McRae.
37948
37949 2014-02-04  David S. Miller  <davem@davemloft.net>
37950
37951         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
37952         32-bit.
37953
37954 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37955
37956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
37957         New file
37958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
37959         New file
37960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
37961         New file.
37962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
37963         New file.
37964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
37965         New file.
37966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
37967         New file.
37968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
37969         New file.
37970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
37971         New file.
37972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
37973         New file.
37974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
37975         New file.
37976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
37977         New file.
37978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
37979         New file.
37980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
37981         New file.
37982
37983 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37984
37985         * nptl/shlib-versions: Change powerpc*le start to 2.17.
37986         * shlib-versions: Likewise.
37987
37988 2014-02-04  Roland McGrath  <roland@hack.frob.com>
37989             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37990
37991         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
37992         (abilist-pattern): New variable, set to %-le.abilist.
37993
37994         * Makerules (abilist-pattern): New variable.
37995         (vpath): Use $(abilist-pattern) in place of %.abilist.
37996         (check-abi-% pattern rule): Likewise.
37997         (check-abi, update-abi): Likewise.
37998
37999 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38000
38001         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38002
38003 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38004
38005         * manual/startup.texi: Add next, previous, and top entries for
38006         the `Program Arguments' and `Environment Variables' nodes.
38007
38008 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38009
38010         * manual/macros.texi: Add comments before MTASC-safety macros.
38011
38012         * manual/users.texi: Document MTASC-safety properties.
38013
38014         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38015         (pthread_getspecific, pthread_setspecific): Format with
38016         @deftypefun, and add @safety note.
38017         * manual/signal.texi: Move comments that analyze the above
38018         functions to their home place.
38019
38020 2014-02-03  Allan McRae  <allan@archlinux.org>
38021
38022         * po/sl.po: Update Slovenian translation from translation project.
38023
38024 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38025
38026         * manual/time.texi (timegm): Add missing blank after @c.
38027         Reported by Joseph Myers <joseph@codesourcery.com>.
38028
38029 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38030
38031         * manual/check-safety.sh: New.
38032         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38033
38034         * manual/terminal.texi: Document MTASC-safety properties.
38035
38036         * manual/filesys.texi: Document MTASC-safety properties.
38037
38038         * manual/errno.texi: Document MTASC-safety properties.
38039
38040         * manual/intro.texi: Document safety identifiers and
38041         conditionals.
38042
38043         * manual/string.texi (wcstok): Fix prototype.
38044         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38045
38046         * manual/time.texi: Document MTASC-safety properties.
38047
38048         * manual/string.texi: Document MTASC-safety properties.
38049
38050         * manual/threads.texi: Document MTASC-safety properties.
38051
38052         * manual/stdio.texi: Document MTASC-safety properties.
38053
38054         * manual/syslog.texi: Document MTASC-safety properties.
38055
38056         * manual/sysinfo.texi: Document MTASC-safety properties.
38057
38058         * manual/startup.texi: Document MTASC-safety properties.
38059
38060         * manual/socket.texi: Document MTASC-safety properties.
38061
38062         * manual/signal.texi: Document MTASC-safety properties.
38063
38064 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38065
38066         * manual/setjmp.texi: Document MTASC-safety properties.
38067
38068         * manual/search.texi: Document MTASC-safety properties.
38069
38070         * manual/resource.texi: Document MTASC-safety properties.
38071
38072         * manual/process.texi: Document MTASC-safety properties.
38073
38074         * manual/platform.texi: Document MTASC-safety properties.
38075
38076         * manual/pipe.texi: Document MTASC-safety properties.
38077
38078         * manual/pattern.texi: Document MTASC-safety properties.
38079
38080         * manual/message.texi: Document MTASC-safety properties.
38081
38082         [BZ #12751]
38083         * manual/memory.texi: Document MTASC-safety properties.
38084
38085         * manual/math.texi: Document MTASC-safety properties.
38086
38087         * manual/locale.texi: Document MTASC-safety properties.
38088
38089         * manual/llio.texi: Document MTASC-safety properties.
38090
38091         * manual/libdl.texi: New.
38092
38093         * manual/lang.texi: Document MTASC-safety properties.
38094
38095         * manual/job.texi: Document MTASC-safety properties.
38096
38097         * manual/getopt.texi: Document MTASC-safety properties.
38098
38099         * manual/ctype.texi: Document MTASC-safety properties.
38100
38101 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38102
38103         [BZ #16046]
38104         * csu/libc-tls.c (static_map): Remove variable.
38105         (__libc_setup_tls): Use main executable's link map for TLS data.
38106         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38107         casing for LM_ID_BASE and GL(dl_nns).
38108         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38109         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38110         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38111         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38112         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38113         member.
38114         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38115         l_phnum members.
38116
38117 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38118
38119         * manual/debug.texi: Document MTASC-safety properties.
38120
38121 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38122
38123         [BZ #16510]
38124         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38125         of __x86_64__ when disabling x87 inline functions.
38126
38127 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38128
38129         * manual/charset.texi: Document MTASC-safety properties.
38130
38131         * manual/crypt.texi: Document MTASC-safety properties.
38132
38133         * manual/conf.texi: Document MTASC-safety properties.
38134
38135         * manual/arith.texi: Document MTASC-safety properties.
38136
38137         * manual/argp.texi: Document MTASC-safety properties.
38138
38139         * manual/macros.texi: Introduce macros to document multi
38140         thread, asynchronous signal and asynchronous cancellation
38141         safety properties.
38142         * manual/intro.texi: Introduce the properties themselves.
38143
38144 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38145
38146         * sysdeps/sh/sh4/Makefile: New file.
38147
38148 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38149
38150         * math/gen-libm-test.pl ($srcdir): New variable.
38151         ($auto_input): Use it.
38152
38153 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38154
38155         [BZ #16506]
38156         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38157         access beyond array bounds when parsing netgroups file.
38158
38159         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38160         the old buffer before realloc.
38161
38162 2014-01-27  Allan McRae  <allan@archlinux.org>
38163
38164         * po/fr.po: Update French translation from translation project.
38165
38166 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38167
38168         * sysdeps/sh/libm-test-ulps: Regenerate.
38169
38170 2014-01-24  David S. Miller  <davem@davemloft.net>
38171
38172         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38173
38174 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38175
38176         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38177         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38178
38179 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38180
38181         [BZ #16474]
38182         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38183         string pointers after reallocation.
38184
38185 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38186
38187         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38188         __SH4A__ instead of __SH_FPU_ANY__.
38189
38190 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38191
38192         * sysdeps/sh/fpu_control.h: New file.
38193         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38194         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38195         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38196         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38197         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38198         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38199         * sysdeps/sh/sys/ucontext.h: Remove.
38200         * sysdeps/sh/sys: Remove directory.
38201
38202 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38203
38204         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38205         s390/sys/ucontext.h.
38206         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38207         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38208
38209 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38210
38211         [BZ #15605]
38212         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38213
38214 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38215
38216         [BZ#16431]
38217         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38218         Adjust the vDSO correctly for internal calls.
38219         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38220
38221 2014-01-20  Allan McRae  <allan@archlinux.org>
38222
38223         * po/ca.po: Update Catalan translation from translation project.
38224
38225 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38226
38227         * sysdeps/s390/sotruss-lib.c: New file.
38228
38229 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38230
38231         [BZ#16430]
38232         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38233         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38234         local calls issues by not having a PLT stub required for IFUNC calls.
38235         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38236
38237 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38238
38239         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38240         * math/test-fpucw-static.c: Likewise.
38241
38242 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38243
38244         [BZ #16453]
38245         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38246
38247 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38248
38249         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38250         implementation for powerpc.
38251
38252 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38253
38254         [BZ #14782]
38255         * sysdeps/posix/system.c (__libc_system): Do not enable
38256         asynchronous cancellation.
38257
38258 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38259
38260         [BZ #16427]
38261         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38262         handling only for numbers special also in the IEEE case.
38263
38264 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38265
38266         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38267
38268 2014-01-11  Allan McRae  <allan@archlinux.org>
38269
38270         * po/bg.po: Update Bulgarian translation from translation project.
38271
38272         * po/de.po: Update German translation from translation project.
38273
38274 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38275
38276         * sysdeps/generic/gcc-compat.h: New file.
38277
38278 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38279
38280         * benchtests/asin-inputs: Correct slow inputs.
38281         * benchtests/acos-inputs: Likewise.
38282
38283 2014-01-10  Allan McRae  <allan@archlinux.org>
38284
38285         * po:sv.po: Update Swedish translation from translation project.
38286
38287         * po/vi.po: Update Vietnamese translation from translation project.
38288
38289         * po/eo.po: Update Esperanto translation from translation project.
38290
38291         * po/cs.po: Update Czech translation from translation project.
38292
38293         * po/nl.po: Update Dutch translation from translation project.
38294
38295         * po/pl.po: Update Polish translation from translation project.
38296
38297         * po/ru.po: Update Russian translation from translation project.
38298
38299         * po/uk.po: Update Ukrainian translation from translation project.
38300
38301 2014-01-08  Brooks Moses  <bmoses@google.com>
38302
38303         * elf/dl-load.c: Fix comment typo.
38304
38305 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38306
38307         * po/header.pot: Rename to...
38308         * po/pot.header: ... this.
38309         * po/Makefile: Use pot.header.
38310
38311 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38312             Maxim Kuvyrkov  <maxim@kugelworks.com>
38313
38314         [BZ #16394]
38315         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38316         SRC and DEST against LEN.
38317
38318 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38319
38320         [BZ #16414]
38321         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38322         implementation.
38323         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38324
38325 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38326
38327         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38328
38329 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38330
38331         [BZ #16408]
38332         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38333         for large positive arguments.
38334
38335 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38336
38337         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38338
38339         * math/auto-libm-test-in: Mark various tests with
38340         xfail-rounding:ldbl-128ibm.
38341         * math/auto-libm-test-out: Regenerated.
38342
38343         [BZ #16407]
38344         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38345         Increase overflow threshold.
38346
38347 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38348
38349         [BZ #14286]
38350         * stdio-common/vfprintf.c: Check for integer overflow.
38351
38352 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38353
38354         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38355         the first argument and return value of __tls_get_addr_internal.
38356
38357 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38358
38359         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38360         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38361
38362 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38363
38364         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38365         * sysdeps/s390/rtld-global-offsets.sym: New file.
38366         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38367         GLIBC_2.19 symbol.
38368         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38369         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38370         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38371         ... this.
38372         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38373         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38374         ... this.
38375         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38376         Regenerate.
38377         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38378         Regenerate.
38379         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38380         halfs of GPRs for high_gprs contexts.
38381         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38382         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38383         field.
38384         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38385         uc_flags field.
38386         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38387         64 bit versions:
38388         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38389         for high GPRs (uc_high_gprs) and for future extensions
38390         (__reserved).
38391         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38392         for future extensions (__reserved).
38393         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38394         64 bit versions:
38395         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38396         SC_HIGHGPRS offset definition.
38397         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38398         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38399
38400         * Versions.def: Add GLIBC_2.19 for libpthread.
38401         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38402         siglongjmp for libpthread with GLIBC_2.19 symver.
38403         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38404         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38405         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38406         * sysdeps/s390/__longjmp.c: New file.
38407         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38408         * sysdeps/s390/longjmp.c: New file.
38409         * sysdeps/s390/setjmp.S: New file.
38410         * sysdeps/s390/sigjmp.S: New file.
38411         * sysdeps/s390/v1-longjmp.c: New file.
38412         * sysdeps/s390/v1-setjmp.h: New file.
38413         * sysdeps/s390/v1-sigjmp.c: New file.
38414         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38415         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38416         GLIBC_2.19 version.
38417         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38418         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38419         versioned symbols for ____longjmp_chk.
38420         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38421         Likewise.
38422         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38423         Regenerate.
38424         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38425         Regenerate.
38426         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38427         Regenerate.
38428         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38429         Regenerate.
38430         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38431         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38432         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38433         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38434         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38435         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38436         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38437         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38438         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38439         * sysdeps/s390/rtld-__longjmp.c: New file.
38440         * sysdeps/s390/rtld-setjmp.S: New file.
38441
38442 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38443
38444         [BZ #16400]
38445         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38446         Return -__logl (x) for small positive arguments without evaluating
38447         a polynomial.
38448
38449 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38450
38451         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38452         Rename to ...
38453         (__ptrace_peeksiginfo_args): ... this.
38454         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38455         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38456         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38457
38458 2014-01-06  Allan McRae  <allan@archlinux.org>
38459
38460         * inet/netinet/in.h: Fix typo in comment.
38461
38462 2014-01-05  Andreas Jaeger  <aj@suse.de>
38463
38464         * sysdeps/i386/fpu/libm-test-ulps: Update.
38465
38466 2014-01-05  Allan McRae  <allan@archlinux.org>
38467
38468         * po/libc.pot: Regenerated.
38469
38470         * malloc/memusagestat.c: Fix gettext call formatting.
38471
38472 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38473
38474         * nscd/nscd.c: Improve usage() output.
38475
38476 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38477
38478         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38479         * sysdeps/unix/sysv/linux/configure: Regenerated.
38480         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38481         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38482
38483 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38484
38485         [BZ #16390]
38486         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38487         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38488
38489 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38490
38491         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38492         extra tokens at end of #undef directive.
38493         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38494         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38495         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38496
38497 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38498
38499         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38500
38501         * math/auto-libm-test-in: Mark various tests with
38502         xfail-rounding:ldbl-128ibm.
38503         * math/auto-libm-test-out: Regenerated.
38504
38505 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38506
38507         [BZ #16386]
38508         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38509         numbers with subnormal high part when calculating exponent.
38510
38511         [BZ #16385]
38512         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38513         fabs.
38514
38515         [BZ #16384]
38516         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38517         M_LN2l.
38518         (__ieee754_acoshl): Use __log1pl not __log1p.
38519
38520 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38521
38522         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38523         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38524         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38525         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38526         (reused_arena, arena_get2): Convert to GNU style.
38527         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38528         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38529         (memalign_check, __malloc_set_state): Likewise.
38530         * malloc/mallocbug.c (main): Likewise.
38531         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38532         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38533         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38534         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38535         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38536         (__posix_memalign, malloc_info): Likewise.
38537         * malloc/malloc.h: Likewise.
38538         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38539         (mallochook, memalignhook, reallochook, mabort): Likewise.
38540         * malloc/mcheck.h: Likewise.
38541         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38542         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38543         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38544         * malloc/morecore.c (__default_morecore): Likewise.
38545         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38546         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38547         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38548         (print_and_abort): Likewise.
38549         * malloc/obstack.h: Likewise.
38550         * malloc/set-freeres.c (__libc_freeres): Likewise.
38551         * malloc/tst-mallocstate.c (main): Likewise.
38552         * malloc/tst-mtrace.c (main): Likewise.
38553         * malloc/tst-realloc.c (do_test): Likewise.
38554
38555 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38556
38557         [BZ #16366]
38558         * nscd/netgroupcache.c (do_notfound): New function.
38559         (addgetnetgrentX): Use it.
38560
38561         [BZ # 16365]
38562         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
38563         NSS_STATUS_NOTFOUND.
38564
38565 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
38566
38567         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
38568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38569
38570 2014-01-01  Allan McRae  <allan@archlinux.org>
38571
38572         * scripts/update-copyrights: Update configure input file suffix.
38573
38574         * NEWS: Update copyright year.
38575         * catgets/gencat.c: Likewise.
38576         * csu/version.c: Likewise.
38577         * debug/catchsegv.sh: Likewise.
38578         * debug/pcprofiledump.c: Likewise.
38579         * debug/xtrace.sh: Likewise.
38580         * elf/ldconfig.c: Likewise.
38581         * elf/ldd.bash.in: Likewise.
38582         * elf/pldd.c: Likewise.
38583         * elf/sotruss.ksh: Likewise.
38584         * elf/sprof.c: Likewise.
38585         * iconv/iconv_prog.c: Likewise.
38586         * iconv/iconvconfig.c: Likewise.
38587         * locale/programs/locale.c: Likewise.
38588         * locale/programs/localedef.c: Likewise.
38589         * login/programs/pt_chown.c: Likewise.
38590         * malloc/memusage.sh: Likewise.
38591         * malloc/memusagestat.c: Likewise.
38592         * malloc/mtrace.pl: Likewise.
38593         * manual/libc.texinfo: Likewise.
38594         * nscd/nscd.c: Likewise.
38595         * nss/getent.c: Likewise.
38596         * nss/makedb.c: Likewise.
38597         * posix/getconf.c: Likewise.
38598         * scripts/test-installation.pl: Likewise.
38599
38600         * All files with FSF copyright notices: Update copyright dates
38601         using scripts/update-copyrights.
38602         * intl/plural.c: Regenerated.
38603         * locale/programs/charmap-kw.h: Likewise.
38604         * locale/programs/locfile-kw.h: Likewise.
38605
38606 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
38607
38608         * sysdeps/unix/sysv/linux/configure: Regenerated.
38609         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
38610         the linux/fanotify.h header.
38611         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
38612         HAVE_LINUX_FANOTIFY_H is defined.
38613
38614 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
38615
38616         * benchtests/cos-inputs: New inputs.
38617         * benchtests/sin-inputs: Likewise.
38618
38619         * benchtests/atan-inputs: New inputs. Fix name of multiple
38620         precision fallback inputs.
38621
38622         * benchtests/atanh-inputs: New inputs.
38623         * benchtests/tanh-inputs: Likewise.
38624
38625         * benchtests/acosh-inputs: New inputs.
38626         * benchtests/asinh-inputs: Likewise.
38627
38628         * benchtests/cosh-inputs: New inputs.
38629         * benchtests/sinh-inputs: Likewise.
38630
38631         * benchtests/acos-inputs: Add more inputs.
38632         * benchtests/asin-inputs: Likewise.
38633
38634 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
38635
38636         [BZ #16375]
38637         * manual/arith.texi: Fix spelling.
38638         * manual/charset.texi: Likewise.
38639         * manual/errno.texi: Likewise.
38640         * manual/filesys.texi: Likewise.
38641         * manual/lang.texi: Likewise.
38642         * manual/llio.texi: Likewise.
38643         * manual/locale.texi: Likewise.
38644         * manual/message.texi: Likewise.
38645         * manual/resource.texi: Likewise.
38646         * manual/search.texi: Likewise.
38647         * manual/setjmp.texi: Likewise.
38648         * manual/stdio.texi: Likewise.
38649         * manual/string.texi: Likewise.
38650         * manual/sysinfo.texi: Likewise.
38651         * manual/time.texi: Likewise.
38652
38653 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
38654
38655         * po/sl.po: New file.
38656
38657 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
38658
38659         * .gitignore: Add core/.gdbinit/.gdb_history.
38660
38661 2013-12-27  Allan McRae  <allan@archlinux.org>
38662
38663         [BZ #16369]
38664         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
38665         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
38666
38667 2013-12-24  Brooks Moses  <bmoses@google.com>
38668
38669         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
38670         all compilers that claim C++98 compliance, not just GCC.
38671         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
38672         Likewise.
38673
38674 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38675
38676         * NEWS: Restore accidentally deleted bug-fix entries.
38677
38678 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38679             Ondřej Bílka  <neleai@seznam.cz>
38680
38681         [BZ #15073]
38682         * malloc/malloc.c (_int_free): Perform sanity check only if we
38683         have_lock.
38684
38685 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
38686
38687         [BZ #12986]
38688         * manual/stdio.texi (String Input Conversions): Clarify that character
38689         classes are not supported.
38690
38691 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38692
38693         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38694
38695 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
38696
38697         [BZ #16337]
38698         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38699         Calculate results for small negative arguments directly rather
38700         than using reflection formula with special underflow handling.
38701
38702         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
38703         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
38704         sysdeps/unix/bsd/bsd4.4/syscalls.list.
38705         (fchflags): Likewise.
38706         (revoke): Likewise.
38707         (setlogin): Likewise.
38708         (sigaltstack): Likewise.
38709         (wait4): Likewise.
38710         (sigblock): Remove.
38711         (sigsetmask): Likewise.
38712         (wait3): Likewise.
38713         (waitpid): Likewise.
38714         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
38715         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
38716         file.
38717         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
38718         * sysdeps/unix/bsd/Makefile: ... here.
38719         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
38720         * sysdeps/unix/bsd/Versions: ... here.
38721         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
38722         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
38723         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
38724         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
38725         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
38726         * sysdeps/unix/bsd/sigblock.c: ... here.
38727         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
38728         * sysdeps/unix/bsd/sigsetmask.c: ... here.
38729         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
38730         * sysdeps/unix/bsd/sigvec.c: ... here.
38731         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
38732         * sysdeps/unix/bsd/tcdrain.c: ... here.
38733         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
38734         * sysdeps/unix/bsd/tcgetattr.c: ... here.
38735         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
38736         * sysdeps/unix/bsd/tcsetattr.c: ... here.
38737         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
38738         * sysdeps/unix/bsd/wait.c: ... here.
38739         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
38740         * sysdeps/unix/bsd/wait3.c: ... here.
38741         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
38742         * sysdeps/unix/bsd/waitpid.c: ... here.
38743
38744 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
38745
38746         [BZ #16356]
38747         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
38748         round-to-nearest for [!USE_AS_EXPM1L].
38749         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
38750         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
38751         more tests of exp and exp10.  Expect some exp10 tests to miss
38752         exceptions or fail in directed rounding modes.
38753         * math/auto-libm-test-out: Regenerated.
38754         * math/libm-test.inc (exp10_tonearest_test_data): New array.
38755         (exp10_test_tonearest): New function.
38756         (exp10_towardzero_test_data): New array.
38757         (exp10_test_towardzero): New function.
38758         (exp10_downward_test_data): New array.
38759         (exp10_test_downward): New function.
38760         (exp10_upward_test_data): New array.
38761         (exp10_test_upward): New function.
38762         (main): Call the new functions.
38763         * sysdeps/i386/fpu/libm-test-ulps: Update.
38764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38765
38766 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
38767
38768         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
38769         asinh, atan, atan2, atanh, cbrt, cos and cosh.
38770         * math/auto-libm-test-out: Regenerated.
38771         * math/libm-test.inc (acosh_test_data): Add more tests.
38772         (atanh_test_data): Likewise.
38773         (ceil_test_data): Likewise.
38774         (copysign_test_data): Likewise.
38775         * sysdeps/i386/fpu/libm-test-ulps: Update.
38776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38777
38778         * timezone/checktab.awk: Update from tzcode 2013i.
38779         * timezone/private.h: Likewise.
38780         * timezone/scheck.c: Likewise.
38781         * timezone/tzfile.h: Likewise.
38782         * timezone/tzselect.ksh: Likewise.
38783         * timezone/zdump.c: Likewise.
38784         * timezone/zic.c: Likewise.
38785
38786         * math/auto-libm-test-in: Add tests of cpow.
38787         * math/auto-libm-test-out: Regenerated.
38788         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
38789         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38790         mpc_cc_c.
38791         (func_calc_desc): Add mpc_cc_c union field.
38792         (test_functions): Add cpow.
38793         (special_fill_2pi): New function.
38794         (special_real_inputs): Add 2pi.
38795         (calc_generic_results): Handle mpc_cc_c.
38796         * sysdeps/i386/fpu/libm-test-ulps: Update.
38797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38798
38799         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
38800         csqrt, ctan and ctanh.
38801         * math/auto-libm-test-out: Regenerated.
38802         * math/libm-test.inc (TEST_COND_x86_64): New macro.
38803         (TEST_COND_x86): Likewise.
38804         (ccos_test_data): Use AUTO_TESTS_c_c.
38805         (ccosh_test_data): Likewise.
38806         (cexp_test_data): Likewise.
38807         (clog_test_data): Likewise.
38808         (csqrt_test_data): Likewise.
38809         (ctan_test_data): Likewise.
38810         (ctan_tonearest_test_data): Likewise.
38811         (ctan_towardzero_test_data): Likewise.
38812         (ctan_downward_test_data): Likewise.
38813         (ctan_upward_test_data): Likewise.
38814         (ctanh_test_data): Likewise.
38815         (ctanh_tonearest_test_data): Likewise.
38816         (ctanh_towardzero_test_data): Likewise.
38817         (ctanh_downward_test_data): Likewise.
38818         (ctanh_upward_test_data): Likewise.
38819         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38820         mpc_c_c.
38821         (func_calc_desc): Add mpc_c_c union field.
38822         (FUNC_mpc_c_c): New macro.
38823         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
38824         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
38825         ctanh.
38826         (special_fill_min_subnorm_p120): New function.
38827         (special_real_inputs): Add min_subnorm_p120.
38828         (calc_generic_results): Handle mpc_c_c.
38829         * sysdeps/i386/fpu/libm-test-ulps: Update.
38830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38831
38832 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
38833
38834         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
38835         (do_sin_slow): New functions.
38836         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
38837         (cslow2, csloww1, csloww2): Use the new functions.
38838
38839         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
38840         Use M to change sign of result instead of X.  Assume X is
38841         positive.
38842         (csloww1): Likewise.
38843         (__sin): Adjust.
38844         (__cos): Adjust.
38845
38846         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
38847         arguments A and DA.
38848         (__sin): Adjust.
38849         (__cos): Likewise.
38850
38851         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
38852         (__cos): Likewise.
38853         (sloww1): Don't adjust sign of DX.
38854         (csloww1): Likewise.
38855         (sloww2): Use X directly and don't adjust sign of DX.
38856         (csloww2): Likewise.
38857
38858 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38859
38860         * math/auto-libm-test-in: Add tests of cabs and carg.
38861         * math/auto-libm-test-out: Regenerated.
38862         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
38863         (carg_test_data): Likewise.
38864         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38865         mpc_c_f.
38866         (func_calc_desc): Add mpc_c_f union field.
38867         (test_functions): Add cabs and carg.
38868         (calc_generic_results): Handle mpc_c_f.
38869
38870         * sysdeps/powerpc/powerpc32/libgcc-compat.S
38871         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
38872         as a macro and a compat symbol.
38873         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
38874         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
38875         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
38876         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
38877         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
38878         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
38879         not use .hidden.
38880         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
38881         Likewise.
38882         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
38883         Likewise.
38884         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
38885         Likewise.
38886         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
38887         Likewise.
38888         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
38889         Likewise.
38890         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
38891         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
38892         from GLIBC_2.3.2.
38893
38894 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38895
38896         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38897
38898 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38899
38900         * manual/texinfo.tex: Update to version 2013-11-26.10 with
38901         trailing whitespace removed.
38902         * scripts/config.guess: Update to version 2013-11-29.
38903         * scripts/config.sub: Update to version 2013-10-01.
38904
38905         * math/auto-libm-test-in: Add tests of sincos.
38906         * math/auto-libm-test-out: Regenerated.
38907         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
38908         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38909         mpfr_f_11.
38910         (func_calc_desc): Add mpfr_f_11 union field.
38911         (test_functions): Add sincos.
38912         (calc_generic_results): Handle mpfr_f_11.
38913         * sysdeps/i386/fpu/libm-test-ulps: Update.
38914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38915
38916 2013-12-19  Andreas Schwab  <schwab@suse.de>
38917
38918         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
38919         CALL_MCOUNT.
38920         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
38921         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
38922         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
38923
38924 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38925
38926         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
38927         * sysdeps/i386/fpu/libm-test-ulps: Update.
38928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38929
38930         [BZ #16293]
38931         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
38932         round-to-nearest mode when using frndint.
38933         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
38934         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
38935         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
38936         Likewise.
38937         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
38938         sinh test to fail.
38939         * math/auto-libm-test-out: Regenerated.
38940         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
38941         (TEST_COND_x86): Likewise.
38942         (expm1_tonearest_test_data): New array.
38943         (expm1_test_tonearest): New function.
38944         (expm1_towardzero_test_data): New array.
38945         (expm1_test_towardzero): New function.
38946         (expm1_downward_test_data): New array.
38947         (expm1_test_downward): New function.
38948         (expm1_upward_test_data): New array.
38949         (expm1_test_upward): New function.
38950         (main): Run the new test functions.
38951         * sysdeps/i386/fpu/libm-test-ulps: Update.
38952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38953
38954         * include/features.h: Update comment documenting feature test
38955         macros.  Mention _DEFAULT_SOURCE in comment.
38956         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
38957         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
38958         _BSD_SOURCE and _SVID_SOURCE.
38959         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
38960         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
38961         !_SVID_SOURCE]: Likewise.
38962         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
38963         (__USE_POSIX_IMPLICITLY): Define.
38964         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
38965         (_POSIX_SOURCE): Undefine and redefine.
38966         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
38967         (_POSIX_C_SOURCE): Likewise.
38968         * manual/creature.texi (_DEFAULT_SOURCE): Document.
38969         (Feature Test Macros): Update documentation of default features.
38970
38971 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
38972
38973         * benchtests/Makefile: Add bench-strtok.
38974         * benchtests/bench-strtok.c: New file: strtok benchtest.
38975
38976 2013-12-19  Allan McRae  <allan@archlinux.org>
38977
38978         * manual/install.texi: Suppress menu for plain text output.
38979         * INSTALL: Regenerated.
38980
38981 2013-12-18  Brooks Moses  <bmoses@google.com>
38982
38983         [BZ #15846]
38984         * misc/getauxval.c: Include errno.h.
38985         (__getauxval): Set errno to ENOENT if the requested type is not
38986         found.
38987         * misc/sys/auxv.h (getauxval): Document that it may set errno;
38988         don't declare with __attribute_const__.
38989         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
38990         * manual/startup.texi: Document that getauxval sets errno.
38991
38992 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
38993
38994         * math/auto-libm-test-in: Add tests of jn and yn.
38995         * math/auto-libm-test-out: Regenerated.
38996         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
38997         (yn_test_data): Likewise.
38998         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38999         mpfr_if_f.
39000         (func_calc_desc): Add mpfr_if_f union field.
39001         (FUNC_mpfr_if_f): New macro.
39002         (test_functions): Add jn and yn.
39003         (calc_generic_results): Assert type of second input for
39004         mpfr_ff_f.  Handle mpfr_if_f.
39005         (output_for_one_input_case): Disable all checking for arguments
39006         fitting floating-point types in case of an integer argument.
39007         * sysdeps/i386/fpu/libm-test-ulps: Update.
39008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39009
39010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39011         Don't expect fegetround reference in libm.so.
39012
39013 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39014
39015         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39016         $(config-cflags-nofma).
39017
39018 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39019
39020         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39021         * math/auto-libm-test-out: Regenerated.
39022
39023         [BZ #16338]
39024         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39025         to determine exponent and adjust argument to have exponent of -1.
39026         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39027         log2.
39028         * math/auto-libm-test-out: Regenerated.
39029         * sysdeps/i386/fpu/libm-test-ulps: Update.
39030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39031
39032 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39033
39034         * manual/probes.texi: Remove cases when per-thread arenas are
39035         disabled.
39036
39037 2013-12-18  Andreas Schwab  <schwab@suse.de>
39038
39039         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39040         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39041         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39042         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39043         * sysdeps/i386/i686/multiarch/Makefile: Update.
39044         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39045
39046 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39047
39048         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39049         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39050
39051 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39052
39053         [BZ #15968]
39054         Support TZ transition times < 00:00:00.
39055         This is needed for version-3 tz-format files; it supports time
39056         stamps past 2037 for America/Godthab (the only entry in the tz
39057         database for which this change is relevant).
39058         * manual/time.texi (TZ Variable): Document transition times
39059         from -167:59:59 through -00:00:01.
39060         * time/tzset.c (tz_rule): Time of day is now signed.
39061         (__tzset_parse_tz): Parse negative time of day.
39062
39063         Document TZ transition times >= 25:00:00.
39064         * manual/time.texi (TZ Variable): Document transition times from
39065         25:00:00 through 167:59:59.  These are already supported, and this
39066         support will help with version-3 tz-format files.
39067
39068         * manual/time.texi (TZ Variable): Modernize North America example
39069         to reflect current (i.e., 2007-and-later) daylight saving rules.
39070
39071         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39072
39073 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39074
39075         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39076         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39077         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39078         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39079         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39080         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39081         * sysdeps/unix/bsd/clock.c: Likewise.
39082         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39083         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39084         * sysdeps/unix/bsd/init-posix.c: Likewise.
39085         * sysdeps/unix/bsd/poll.c: Likewise.
39086         * sysdeps/unix/bsd/ptsname.c: Likewise.
39087         * sysdeps/unix/bsd/seekdir.c: Likewise.
39088         * sysdeps/unix/bsd/setegid.c: Likewise.
39089         * sysdeps/unix/bsd/seteuid.c: Likewise.
39090         * sysdeps/unix/bsd/setgid.c: Likewise.
39091         * sysdeps/unix/bsd/setrgid.c: Likewise.
39092         * sysdeps/unix/bsd/setruid.c: Likewise.
39093         * sysdeps/unix/bsd/setsid.c: Likewise.
39094         * sysdeps/unix/bsd/setuid.c: Likewise.
39095         * sysdeps/unix/bsd/sigaction.c: Likewise.
39096         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39097         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39098         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39099         * sysdeps/unix/bsd/telldir.c: Likewise.
39100         * sysdeps/unix/bsd/times.c: Likewise.
39101         * sysdeps/unix/bsd/usleep.c: Likewise.
39102
39103         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39104         ($(objpfx)libbsd-compat.a): Remove rule.
39105
39106         * include/features.h (__FAVOR_BSD): Do not define.
39107         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39108         features conflicting with POSIX.
39109         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39110         (_BSD_SOURCE): Remove description of not being a subset of other
39111         feature test macros.
39112         * manual/job.texi (getpgrp): Do not document BSD version.
39113         (getpgid): Do not document by reference to BSD getpgrp.
39114         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39115         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39116         * signal/signal.h [__FAVOR_BSD]: Likewise.
39117         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39118         instead of making contents conditional on [__FAVOR_BSD].
39119         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39120
39121 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39122
39123         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39124
39125 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39126
39127         [BZ #16314]
39128         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39129         values below 2**-450, not 2**-500.
39130         * math/auto-libm-test-in: Don't allow spurious underflow from
39131         hypot.
39132         * math/auto-libm-test-out: Regenerated.
39133
39134         [BZ #16316]
39135         [BZ #16330]
39136         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39137         values of ha and hb and sort them after adjusting subnormal
39138         arguments.
39139         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39140         Likewise.
39141         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39142         values of ea and eb and sort them after adjusting subnormal
39143         arguments.
39144         * math/auto-libm-test-in: Do not expect some hypot tests of
39145         subnormals to fail.  Add more hypot tests.
39146         * math/auto-libm-test-out: Regenerated.
39147
39148 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39149
39150         [BZ #13304]
39151         * sysdeps/sh/s_fma.c: New file.
39152         * sysdeps/sh/s_fmaf.c: New file.
39153         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39154         version.
39155         * sysdeps/sh/Implies: Add sh/soft-fp.
39156
39157 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39158
39159         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39160         level of indirection to members `objname', `errstring', `malloced'.
39161         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39162         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39163         it as the __longjmp argument (just pass 1 instead).
39164         (_dl_catch_error): Initialize C with argument pointers and address of
39165         volatile local ERRCODE rather than copying values out of C at return.
39166
39167 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39168
39169         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39170         * math/auto-libm-test-out: Regenerated.
39171         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39172         (hypot_test_data): Likewise.
39173         (pow_test_data): Likewise.
39174         (pow_tonearest_test_data): Likewise.
39175         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39176         mpfr_ff_f.
39177         (func_calc_desc): Add mpfr_ff_f union field.
39178         (FUNC_mpfr_ff_f): New macro.
39179         (test_functions): Add atan2, hypot and pow.
39180         (special_fill_min): New function.
39181         (special_fill_minus_min): Likewise.
39182         (special_fill_min_subnorm): Likewise.
39183         (special_fill_minus_min_subnorm): Likewise.
39184         (special_real_inputs): Add min, -min, min_subnorm and
39185         -min_subnorm.
39186         (calc_generic_results): Handle mpfr_ff_f.
39187         * sysdeps/i386/fpu/libm-test-ulps: Update.
39188         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39189
39190 2013-12-16  Will Newton  <will.newton@linaro.org>
39191
39192         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39193         (Aligned Memory Blocks): Add documentation for aligned_alloc
39194         and suggest it as an alternative to posix_memalign.
39195         (Hooks for Malloc): Document __memalign_hook is also called
39196         for aligned_alloc.  (Summary of Malloc): Add summary for
39197         aligned alloc.  Document __memalign_hook is also called
39198         for aligned_alloc.
39199
39200 2013-12-16  Will Newton  <will.newton@linaro.org>
39201
39202         * manual/memory.texi (Malloc Examples): Clarify default
39203         alignment documentation.  Suggest posix_memalign rather
39204         than memalign or valloc.
39205         (Aligned Memory Blocks): Remove suggestion to use memalign
39206         or valloc.  Remove obsolete comment about BSD.
39207         Document memalign errno values and mark the function obsolete.
39208         Document posix_memalign returned error codes.  Mark valloc
39209         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39210         called for posix_memalign and valloc.
39211         (Summary of Malloc): Add posix_memalign to function summary.
39212         __memalign_hook is also called for posix_memalign and valloc.
39213
39214 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39215
39216         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39217         TAYLOR_SIN.
39218         (__sin): Adjust.
39219         (__cos): Likewise.
39220         (sloww): Use mynumber union.  Expand ternary operator into
39221         if-else statements.
39222         (cslow): use mynumber union.
39223
39224 2013-12-16  Allan McRae  <allan@archlinux.org>
39225
39226         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39227         * configure: Regenerated.
39228
39229         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39230
39231         [BZ #14120]
39232         * configure.ac: Added --enable-maintainer-mode. Check for
39233         autoconf when enabled.
39234         * configure: Regenerated.
39235
39236         * nscd/nscd.service: New file.
39237         * nscd/nscd.tmpfiles: New file.
39238
39239 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39240
39241         [BZ #12100]
39242         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39243         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39244         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39245         (strstr): Add __strstr_sse2_unaligned ifunc.
39246         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39247         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39248         (strcasestr): Remove __strcasestr_sse42 ifunc.
39249         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39250         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39251         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39252
39253 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39254
39255         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39256         * sysdeps/sh/bits/fenv.h: ... here.
39257         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39258
39259 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39260
39261         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39262
39263         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39264         hypotf multiarch implementations.
39265         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39266         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39267         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39268         multiarch hypot for PPC64.
39269         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39270         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39271         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39272         multiarch hypotf for PPC64.
39273
39274         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39275         modff multiarch implementations.
39276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39279         multiarch modf for PPC64.
39280         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39283         multiarch modff for PPC64.
39284
39285         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39286         and logl multiarch implementations.
39287         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39290         multiarch logb for PPC64.
39291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39294         multiarch logb for PPC64.
39295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39296         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39298         multiarch logb for PPC64.
39299
39300         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39301         isinff multiarch implementation.
39302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39303         file.
39304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39306         multiarch isinf for PPC64.
39307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39308         file.
39309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39310         multiarch isinff for PPC64.
39311
39312         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39313         finitef multiarch implementation.
39314         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39315         file.
39316         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39318         multiarch finite for PPC64.
39319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39320         file.
39321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39322         multiarch finitef for PPC64.
39323
39324         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39325         lrint multiarch implementation.
39326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39327         file.
39328         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39330         multiarch llrint for PPC64.
39331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39332         multiarch lrint for PPC64.
39333
39334         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39335         copysignf multiarch implementation.
39336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39337         file.
39338         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39339         file.
39340         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39341         multiarch copysign for PPC64.
39342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39343         multiarch copysignf for PPC64.
39344
39345         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39346         multiarch implementation.
39347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39348         file.
39349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39350         file.
39351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39352         file.
39353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39354         file.
39355         multiarch llround for PPC64.
39356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39357         multiarch trunc for PPC64.
39358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39359         multiarch truncf for PPC64.
39360
39361         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39362         multiarch implementation.
39363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39364         file.
39365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39366         file.
39367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39368         file.
39369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39370         file.
39371         multiarch llround for PPC64.
39372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39373         multiarch round for PPC64.
39374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39375         multiarch roundf for PPC64.
39376
39377         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39378         multiarch implementation.
39379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39380         file.
39381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39382         file.
39383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39384         file.
39385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39386         file.
39387         multiarch llround for PPC64.
39388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39389         multiarch floor for PPC64.
39390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39391         multiarch floorf for PPC64.
39392
39393         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39394         multiarch implementation.
39395         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39396         file.
39397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39398         file.
39399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39400         file.
39401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39402         file.
39403         multiarch llround for PPC64.
39404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39405         multiarch ceil for PPC64.
39406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39407         multiarch ceilf for PPC64.
39408
39409         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39410         multiarch implementation.
39411         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39412         file.
39413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39414         file.
39415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39416         file.
39417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39418         multiarch llround for PPC64.
39419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39420         multiarch lround for PPC64.
39421
39422         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39423         multiarch implementation.
39424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39425         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39426         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39427         file.
39428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39429         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39431         multiarch isnan for PPC64.
39432         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39433         multiarch isnanf for PPC64.
39434
39435         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39436         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39437         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39438         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39439         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39441
39442         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39443         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39444         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39445         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39446
39447         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39448         multiarch implementations.
39449         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39450         (__libc_ifunc_impl_list): Likewise.
39451         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39452         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39453         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39454         multiarch stpcpy for PPC64.
39455
39456         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39457         multiarch implementations.
39458         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39459         (__libc_ifunc_impl_list): Likewise.
39460         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39461         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39462         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39463         multiarch strcpy for PPC64.
39464
39465         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39466         redefine function name.
39467         (_wordcopy_fwd_dest_aligned): Likewise.
39468         (_wordcopy_bwd_aligned): Likewise.
39469         (_wordcopy_bwd_dest_aligned): Likewise.
39470         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39471         multiarch implementations.
39472         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39473         (__libc_ifunc_impl_list): Likewise.
39474         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39475         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39476         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39477         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39478         multiarch wcscpy for PPC64.
39479
39480         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39481         multiarch implementations.
39482         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39483         (__libc_ifunc_impl_list): Likewise.
39484         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39485         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39486         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39487         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39488         multiarch wcscpy for PPC64.
39489
39490         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39491         multiarch implementations.
39492         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39493         (__libc_ifunc_impl_list): Likewise.
39494         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39495         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39496         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39497         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39498         multiarch wcsrchr for PPC64.
39499
39500         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39501         multiarch implementations.
39502         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39503         (__libc_ifunc_impl_list): Likewise.
39504         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39505         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39506         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39507         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39508         multiarch wcschr for PPC64.
39509
39510         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39511         multiarch implementations.
39512         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39513         (__libc_ifunc_impl_list): Likewise.
39514         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39515         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39516         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39517         multiarch strchrnul for PPC64.
39518
39519         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39520         implementations.
39521         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39522         (__libc_ifunc_impl_list): Likewise.
39523         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39524         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39525         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39526         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39527         strchr for PPC64.
39528
39529         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39530         implementations.
39531         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39532         (__libc_ifunc_impl_list): Likewise.
39533         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39534         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39535         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39536         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39537         strncmp for PPC64.
39538
39539         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39540         multiarch implementations.
39541         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39542         (__libc_ifunc_impl_list): Likewise.
39543         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39544         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39545         strncasecmp for PPC64.
39546         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39547         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39548         multiarch strncasecmp_l for PPC64.
39549
39550         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39551         multiarch implementations.
39552         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39553         (__libc_ifunc_impl_list): Likewise.
39554         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
39555         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
39556         multiarch strcasecmp for PPC64.
39557         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
39558         file.
39559         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
39560         multiarch strcasecmp_l for PPC64.
39561
39562         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
39563         implementations.
39564         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39565         (__libc_ifunc_impl_list): Likewise.
39566         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
39567         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
39568         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
39569         strnlen for PPC64.
39570
39571         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
39572         implementations.
39573         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39574         (__libc_ifunc_impl_list): Likewise.
39575         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
39576         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
39577         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
39578         strlen for PPC64.
39579
39580         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
39581         implementations.
39582         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39583         (__libc_ifunc_impl_list): Likewise.
39584         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
39585         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
39586         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
39587         rawmemrchr for PPC64.
39588
39589         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
39590         implementation.
39591         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39592         (__libc_ifunc_impl_list): Likewise.
39593         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
39594         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
39595         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
39596         memrchr for PPC64.
39597
39598         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
39599         implementation.
39600         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39601         (__libc_ifunc_impl_list): Likewise.
39602         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
39603         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
39604         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
39605         memchr for PPC64.
39606
39607         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
39608         implementation.
39609         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39610         (__libc_ifunc_impl_list): Likewise.
39611         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
39612         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
39613         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
39614         mempcpy for PPC64.
39615
39616         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
39617         avoid cretion of __bzero symbol.
39618         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
39619         Likewise.
39620         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
39621         Likewise.
39622         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
39623         Likewise.
39624         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
39625         multiarch implementations.
39626         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39627         (__libc_ifunc_impl_list): Likewise.
39628         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
39629         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
39630         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
39631         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
39632         bzero for PPC32.
39633         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
39634         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
39635         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
39636         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
39637         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
39638         memset for PPC64.
39639         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
39640
39641         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
39642         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
39643         implementations.
39644         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39645         (__libc_ifunc_impl_list): Likewise.
39646         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
39647         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
39648         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
39649         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
39650         memcmp for PPC64.
39651
39652         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
39653         multiarch for POWER/PPC64.
39654         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
39655         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
39656         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
39657         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
39658         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
39659         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
39660         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
39661         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
39662         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
39663         memcpy for PPC64.
39664
39665         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
39666         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
39667         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
39668         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
39669         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
39670         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
39671         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
39672         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
39673         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
39674         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
39675         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
39676         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
39677         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
39678         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
39679         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
39680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
39681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
39682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
39683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
39684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
39685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
39686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
39687
39688 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39689
39690         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
39691
39692 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39693
39694         * benchtests/Makefile (bench): Add exp2 and log2.
39695         (LDLIBS-bench-exp2): Add -lm.
39696         (LDLIBS-bench-log2): Likewise.
39697         * benchtests/exp2-inputs: New inputs file.
39698         * benchtests/log2-inputs: New inputs file.
39699         * benchtests/log-inputs: Add new inputs.
39700         * benchtests/tan-inputs: Likewise.
39701
39702 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
39703
39704         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
39705         definition...
39706         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
39707         (csloww2): ... from here.
39708
39709         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
39710         instead of structures.
39711         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
39712         (POLYNOMIAL): Likewise.
39713         (TAYLOR_SLOW): Likewise.
39714         (__sin): Likewise.
39715         (__cos): Likewise.
39716         (slow1): Likewise.
39717         (slow2): Likewise.
39718         (sloww): Likewise.
39719         (sloww1); Likewise.
39720         (sloww2): Likewise.
39721         (bsloww1): Likewise.
39722         (bsloww2): Likewise.
39723         (cslow2): Likewise.
39724         (csloww): Likewise.
39725         (csloww1): Likewise.
39726         (csloww2): Likewise.
39727
39728 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
39729
39730         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
39731         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
39732         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
39733         * malloc/hooks.c (realloc_check): Likewise.
39734
39735         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
39736         * malloc/arena.c: Remove PER_THREAD conditional.
39737         [!PER_THREAD]: Remove code.
39738         (ptmalloc_unlock_all2): Likewise.
39739         (ptmalloc_init): Likewise.
39740         (_int_new_arena): Likewise.
39741         (arena_get2): Likewise.
39742         * malloc/hooks.c (__malloc_get_state): Likewise.
39743         (__malloc_set_state): Likewise.
39744         * malloc/malloc.c: Likewise.
39745         (struct malloc_state): Likewise.
39746         (struct malloc_par): Likewise.
39747         (__libc_realloc): Likewise.
39748         (__libc_mallopt): Likewise.
39749
39750 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39751
39752         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
39753
39754 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
39755
39756         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
39757         macro to a function.  Check for zero perturb_byte.
39758         (_int_malloc, _int_free): Remove zero perturb_byte checks.
39759
39760         * malloc/malloc.c: (force_reg): Remove.
39761         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
39762         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
39763         force_reg by atomic_forced_read.
39764         * malloc/arena.c (ptmalloc_init): Likewise.
39765         * malloc/hooks.c (top_check): Likewise.
39766
39767 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39768
39769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39770
39771 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
39772
39773         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39774
39775 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
39776
39777         * math/auto-libm-test-in: Add tests of lgamma.
39778         * math/auto-libm-test-out: Regenerated.
39779         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
39780         (M_LOG_2_SQRT_PIl): Likewise.
39781         (lgamma_test_data): Use AUTO_TESTS_f_f1.
39782         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39783         mpfr_f_f1.
39784         (func_calc_desc): Add mpfr_f_f1 union field.
39785         (ARGS1): New macro.
39786         (ARGS2): Likewise.
39787         (ARGS3): Likewise.
39788         (ARGS4): Likewise.
39789         (RET1): Likewise.
39790         (RET2): Likewise.
39791         (CALC): Likewise.
39792         (FUNC): Likewise.
39793         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
39794         (test_functions): Add lgamma.
39795         (calc_generic_results): Handle mpfr_f_f1.
39796         * sysdeps/i386/fpu/libm-test-ulps: Update.
39797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39798
39799 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39800
39801         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
39802         __mpn_add_n for PowerPC64/POWER7.
39803         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
39804         __mpn_sub_n for PowerPC64/POWER7.
39805
39806         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
39807         __mpn_addmul_1 for PowerPC64.
39808         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
39809         __mpn_submul_1 for PowerPC64.
39810         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
39811         for PowerPC64.
39812         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
39813         for PowerPC64.
39814
39815 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
39816
39817         [BZ #15089]
39818         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
39819
39820 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39821
39822         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
39823
39824         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
39825         add multiarch folders.
39826         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
39827         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
39828         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
39829         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
39830         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
39831         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
39832         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
39833         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
39834         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
39835         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
39836         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
39837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
39838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
39839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
39840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
39841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
39842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
39843
39844         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
39845         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
39846         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
39847         New file.
39848         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
39849         New file.
39850         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
39851         multiarch __ieee754_hypot for PowerPC32.
39852         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
39853         New file.
39854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
39855         New file.
39856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
39857         multiarch __ieee754_hypotf for PowerPC32.
39858
39859         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
39860         long_double_symbol only if __logbl is defined.
39861         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
39862         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
39863         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
39864         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
39865         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
39866         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
39867         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
39868         path for implementation.
39869         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
39870         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
39871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
39872         logb, and logbl multiarch implementations for PowerPC32.
39873         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
39874         file.
39875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
39876         file.
39877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
39878         multiarch logb for PowerPC32.
39879         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
39880         file.
39881         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
39882         file.
39883         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
39884         multiarch logbf for PowerPC32.
39885         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
39886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
39887         file.
39888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
39889         multiarch logbl implementation for PowerPC32.
39890
39891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
39892         and modff multiarch implementations.
39893         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
39894         New file.
39895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
39896         New file.
39897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
39898         multiarch modf for PowerPC32.
39899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
39900         New file.
39901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
39902         New file.
39903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
39904         multiarch modff for PowerPC32.
39905
39906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
39907         and lrintf multiarch implementations.
39908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
39909         New file.
39910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
39911         New file.
39912         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
39913         multiarch lrint for PowerPC32.
39914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
39915         file: multiarch lrintf for PowerPC32.
39916
39917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
39918         and lroundf multiarch implementations.
39919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
39920         New file.
39921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
39922         New file.
39923         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
39924         New file.
39925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
39926         multiarch lround for PowerPC32.
39927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
39928         file: multiarch lroundf for PowerPC32.
39929
39930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
39931         copysign and copysignf multiarch implementations.
39932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
39933         New file.
39934         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
39935         New file.
39936         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
39937         file: multiarch copysign for PowerPC32.
39938         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
39939         file: multiarch copysignf for PowerPC32.
39940
39941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
39942         and truncf multiarch implementations.
39943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
39944         New file.
39945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
39946         file.
39947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
39948         multiarch trunc for PowerPC32.
39949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
39950         New file.
39951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
39952         New file.
39953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
39954         multiarch truncf for PowerPC32.
39955
39956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
39957         and roundf multiarch implementations.
39958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
39959         New file.
39960         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
39961         file.
39962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
39963         multiarch round for PowerPC32.
39964         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
39965         New file.
39966         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
39967         New file.
39968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
39969         multiarch roundf for PowerPC32.
39970
39971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
39972         and floorf multiarch implementations.
39973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
39974         New file.
39975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
39976         file.
39977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
39978         multiarch floor for PowerPC32.
39979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
39980         New file.
39981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
39982         New file.
39983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
39984         multiarch floorf for PowerPC32.
39985
39986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
39987         and ceilf multiarch implementations.
39988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
39989         New file.
39990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
39991         file.
39992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
39993         multiarch ceil for PowerPC32.
39994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
39995         New file.
39996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
39997         file.
39998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
39999         multiarch ceilf for PowerPC32.
40000
40001         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40002         is defined.
40003         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40004         FINITEF is defined.
40005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40006         and finitef multiarch implementations.
40007         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40008         New file.
40009         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40010         file.
40011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40012         multiarch finite for PowerPC32.
40013         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40014         New file.
40015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40016         file: multiarch finitef for PowerPC32.
40017
40018         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40019         and isinff multiarch implementations.
40020         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40021         file.
40022         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40023         file.
40024         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40025         multiarch isinf for PowerPC32.
40026         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40027         New file.
40028         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40029         multiarch isinff for PowerPC32.
40030
40031         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40032         alias when __isnan is defined.
40033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40034         and isnanf multiarch implementations.
40035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40036         file.
40037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40038         file.
40039         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40040         file.
40041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40042         file.
40043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40044         multiarch isnan for PowerPC32.
40045         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40046         New file.
40047         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40048         New file.
40049         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40050         multiarch isnanf for PowerPC32.
40051
40052         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40053         and sqrtf multiarch implementations.
40054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40055         file.
40056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40057         file.
40058         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40059         multiarch sqrt for PowerPC32.
40060         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40061         file.
40062         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40063         file.
40064         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40065         multiarch sqrtf for PowerPC32.
40066
40067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40068         and llroundf multiarch implementations.
40069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40070         New file.
40071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40072         New file.
40073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40074         New file.
40075         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40076         file: multiarch llround for PowerPC32.
40077         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40078         file: multiarch llroundf for PowerPC32.
40079
40080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40081         multiarch PowerPC32 fpu implementations.
40082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40083         New file.
40084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40085         New file.
40086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40087         multiarch llrint for PowerPC32.
40088         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40089         New file.
40090         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40091         New file.
40092         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40093         file.
40094
40095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40096
40097         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40098         file.
40099         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40100         file.
40101         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40102         file.
40103         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40104         multiarch wordcopy for PPC32.
40105         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40106         wordcopy objects.
40107         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40108         (__libc_ifunc_impl_list): Likewise.
40109         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40110         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40111         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40112         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40113         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40114         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40115
40116         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40117         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40118         file.
40119         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40120         file.
40121         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40122         file.
40123         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40124         multiarch wcscpy for PPC32.
40125         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40126         multiarch objects.
40127         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40128         (__libc_ifunc_impl_list): Likewise.
40129         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40130         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40131         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40132         sysdeps/powerpc/power6/wcscpy.c.
40133
40134         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40135         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40136         file.
40137         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40138         file.
40139         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40140         file.
40141         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40142         multiarch wcsrchr for PPC32.
40143         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40144         multiarch objects.
40145         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40146         (__libc_ifunc_impl_list): Likewise.
40147         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40148         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40149         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40150         sysdeps/powerpc/power6/wcsrchr.c.
40151
40152         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40153         file.
40154         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40155         file.
40156         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40157         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40158         multiarch wcschr for PPc32.
40159         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40160         multiarch objects.
40161         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40162         (__libc_ifunc_impl_list): Likewise.
40163         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40164         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40165         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40166         sysdeps/powerpc/power6/wcschr.c.
40167
40168         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40169         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40170         file.
40171         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40172         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40173         file: multiarch strchr for PPC32.
40174         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40175         multiarch objects.
40176         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40177         (__libc_ifunc_impl_list): Likewise.
40178
40179         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40180         name.
40181         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40182         file.
40183         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40184         file.
40185         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40186         multiarch strchrnul for PPC32.
40187         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40188         multiarch objects.
40189         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40190         (__libc_ifunc_impl_list): Likewise.
40191
40192         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40193         file.
40194         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40195         multiarch strncasecmp for PPC32.
40196         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40197         file.
40198         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40199         multiarch strncasecmp_l for PPC32.
40200         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40201         strncasecmp multiarch objects.
40202         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40203         (__libc_ifunc_impl_list): Likewise.
40204
40205         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40206         file.
40207         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40208         multiarch strncasecmp for PPC32.
40209         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40210         New file.
40211         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40212         multiarch strcasecmp_l for PPC32.
40213         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40214         multiarch objects.
40215         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40216         (__libc_ifunc_impl_list): Likewise.
40217
40218         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40219         file.
40220         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40221         file.
40222         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40223         multiarch strncmp for PPC32.
40224         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40225         multiarch objects.
40226         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40227         (__libc_ifunc_impl_list): Likewise.
40228
40229         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40230         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40231         file.
40232         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40233         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40234         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40235         multiarch objects.
40236         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40237         (__libc_ifunc_impl_list): Likewise.
40238
40239         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40240         file.
40241         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40242         file.
40243         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40244         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40245         multiarch objects.
40246         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40247         (__libc_ifunc_impl_list): Likewise.
40248
40249         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40250         file.
40251         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40252         file.
40253         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40254         multiarch rawmemchr for PPC32.
40255         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40256         multiarch objects.
40257         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40258         (__libc_ifunc_impl_list): Likewise.
40259
40260         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40261         file.
40262         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40263         file.
40264         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40265         file: memrchr multiarch for PPC32.
40266         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40267         multiarch objects.
40268         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40269         (__libc_ifunc_impl_list): Likewise.
40270
40271         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40272         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40273         file.
40274         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40275         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40276         multiarch memchr for PPC32.
40277         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40278         multiarch objects.
40279         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40280         (__libc_ifunc_impl_list): Likewise.
40281
40282         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40283         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40284         file.
40285         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40286         file.
40287         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40288         file: multiarch mempcpy for PPC32.
40289         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40290         multiarch objects.
40291         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40292         (__libc_ifunc_impl_list): Likewise.
40293
40294         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40295         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40296         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40297         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40298         multiarch bzero for PPC32.
40299         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40300         file.
40301         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40302         file.
40303         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40304         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40305         file: multiarch memset for PPC32.
40306         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40307         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40308         memset multiarch objects.
40309         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40310         (__libc_ifunc_impl_list): Likewise.
40311
40312         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40313         file.
40314         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40315         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40316         memcmp for PPC32.
40317         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40318         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40319         multiarch objects.
40320         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40321         (__libc_ifunc_impl_list): Likewise.
40322
40323         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40324         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40325         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40326         file.
40327         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40328         file.
40329         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40330         file.
40331         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40332         multiarch memcpy for PPC32.
40333         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40334         multiarch objects.
40335         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40336         (__libc_ifunc_impl_list): Likewise.
40337
40338         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40339         support multiarch for POWER/PPC32.
40340         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40341         Likewise.
40342         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40344         Implies file to make multiarch folder appers before the fpu and
40345         default folder for power4 configuration.
40346
40347 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40348
40349         * scripts/bench.pl: Append volatile keyword to type.
40350
40351 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40352
40353         * sysdeps/sh/sotruss-lib.c: New file.
40354         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40355
40356 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40357
40358         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40359
40360 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40361
40362         [BZ #6810]
40363         * math/w_tgamma.c: Include <errno.h>.
40364         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40365         * math/w_tgammaf.c: Include <errno.h>.
40366         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40367         * math/w_tgammal.c: Include <errno.h>.
40368         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40369         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40370         underflow.  Add more tgamma tests.
40371         * math/auto-libm-test-out: Regenerated.
40372         * sysdeps/i386/fpu/libm-test-ulps: Update.
40373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40374
40375         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40376         sin, sinh, tan, tanh, tgamma, y0 and y1.
40377         * math/auto-libm-test-out: Regenerated.
40378         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40379         (TEST_COND_x86): Likewise.
40380         (M_E2l): Remove macro.
40381         (M_E3l): Likewise.
40382         (M_2_SQRT_PIl): Likewise.
40383         (M_SQRT_PIl): Likewise.
40384         (M_1_DIV_El): Likewise.
40385         (log_test_data): Use AUTO_TESTS_f_f.
40386         (log10_test_data): Likewise.
40387         (log1p_test_data): Likewise.
40388         (log2_test_data): Likewise.
40389         (sin_test_data): Likewise.
40390         (sin_tonearest_test_data): Likewise.
40391         (sin_towardzero_test_data): Likewise.
40392         (sin_downward_test_data): Likewise.
40393         (sin_upward_test_data): Likewise.
40394         (sinh_test_data): Likewise.
40395         (sinh_tonearest_test_data): Likewise.
40396         (sinh_towardzero_test_data): Likewise.
40397         (sinh_downward_test_data): Likewise.
40398         (sinh_upward_test_data): Likewise.
40399         (tan_test_data): Likewise.
40400         (tan_tonearest_test_data): Likewise.
40401         (tan_towardzero_test_data): Likewise.
40402         (tan_downward_test_data): Likewise.
40403         (tan_upward_test_data): Likewise.
40404         (tanh_test_data): Likewise.
40405         (tgamma_test_data): Likewise.
40406         (y0_test_data): Likewise.
40407         (y1_test_data): Likewise.
40408         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40409         (special_real_inputs): Add pi/4.
40410         * sysdeps/i386/fpu/libm-test-ulps: Update.
40411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40412
40413 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40414
40415         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40416         "longjmp_target" static probes.
40417         (__longjmp): Rename to __longjmp_symbol.
40418         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40419         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40420         on which longjmp to generate.
40421         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40422         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40423         probe.
40424         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40425         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40426         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40427         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40428         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40429         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40431         __longjmp_symbol based on which __longjmp to generate.
40432         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40433         probe.
40434         (setjmp): Rename to setjmp_symbol.
40435         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40436         (_setjmp): Rename to _setjmp_symbol.
40437         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40438         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40439         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40440         which setjmp to generate.
40441         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40442         "longjmp_target" static probes.
40443
40444 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40445
40446         * benchtests/README: Add note about output arguments.
40447         * benchtests/bench-sincos.c: Remove file.
40448         * benchtests/sincos-inputs: New file.
40449         * scripts/bench.pl: Identify output arguments and define
40450         static variables for them.
40451
40452         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40453
40454         [BZ #15941]
40455         * Makefile (INSTALL): Add install-plain.texi as the primary
40456         dependency.
40457         * manual/install-plain.texi: New file.
40458         * manual/install.texi: Include node directive only for
40459         non-plaintext output.
40460
40461 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40462
40463         * stdlib/longlong.h: Update from GCC.
40464
40465         [BZ #6807]
40466         [BZ #15901]
40467         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40468         * math/w_j0f.c (y0f): Likewise.
40469         * math/w_j0l.c (__y0l): Likewise.
40470         * math/w_j1.c (y1): Likewise.
40471         * math/w_j1f.c (y1f): Likewise.
40472         * math/w_j1l.c (__y1l): Likewise.
40473         * math/w_jn.c (yn): Likewise.
40474         * math/w_jnf.c (ynf): Likewise.
40475         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40476         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40477         value for Bessel function domain errors outside _SVID_ mode.
40478         Adjust sign of return value for yn (negative integer, 0).
40479         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40480         by zero in return for negative x and set sign appropriately for
40481         negative n.
40482         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40483         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40484         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40485         expectations in error cases.
40486         (y1_test_data): Likewise.
40487         (yn_test_data): Likewise.
40488         * sysdeps/i386/fpu/libm-test-ulps: Update.
40489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40490
40491 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40492
40493         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40494         "64" to "64-v1".  Add "64-v2".
40495         (abi-64-options): Rename to ...
40496         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40497         (abi-64-condition): Rename to ...
40498         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40499         (abi-64-ld-soname): Rename to ...
40500         (abi-64-v1-ld-soname): ... this.
40501         (abi-64-v2-options): Define.
40502         (abi-64-v2-condition): Likewise.
40503         (abi-64-v2-ld-soname): Likewise.
40504         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40505         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40509
40510 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40511             Alan Modra  <amodra@gmail.com>
40512
40513         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40514         New versions for use with the ELFv2 ABI.
40515         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40516         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40517         declaration.
40518         (struct La_ppc64v2_retval): Likewise.
40519         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40520         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40521         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40522         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40523         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40524         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40525         Do not save or restore CR.
40526         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40527         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40528         return values for ELFv2 ABI.  Fix location of FPR return registers.
40529         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40530         updated values for _CALL_ELF == 2.
40531         (La_regs, La_retval, int_retval): Likewise.
40532
40533 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40534
40535         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40536         (FRAME_MIN_SIZE_PARM): Likewise.
40537         (FRAME_BACKCHAIN): Likewise.
40538         (FRAME_CR_SAVE): Likewise.
40539         (FRAME_LR_SAVE): Likewise.
40540         (FRAME_TOC_SAVE): Likewise.
40541         (FRAME_PARM_SAVE): Likewise.
40542         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40543         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40544         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40545         (call_mcount_parm_offset): New macro.
40546         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40547         (PROF): Use symbolic stack frame offsets.
40548         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40549         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40550         Redefine in terms of FRAME_MIN_SIZE.
40551         (_dl_runtime_resolve): Use symbolic stack frame offsets.
40552         (_dl_profile_resolve): Likewise.  Update comment.
40553         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
40554         symbols stack frame offsets.
40555         (__sigsetjmp): Likewise.
40556         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
40557         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
40558         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
40559         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
40560
40561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
40562         (FRAME_BACKCHAIN): Remove.
40563         (FRAME_CR_SAVE): Likewise.
40564         (FRAME_LR_SAVE): Likewise.
40565         (FRAME_COMPILER_DW): Likewise.
40566         (FRAME_LINKER_DW): Likewise.
40567         (FRAME_TOC_SAVE): Likewise.
40568         (FRAME_PARM_SAVE): Likewise.
40569         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
40570         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
40571         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
40573         (CHECK_SP): Use symbolic stack frame offsets.
40574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
40575         zone" instead of caller's parameter save area for temp storage.
40576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
40577         Likewise.  Also, use symbolic stack frame offsets.
40578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
40579         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
40580         our own stack frame instead of the caller's.
40581         (__socket): Use symbolic stack frame offsets.
40582
40583 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40584             Alan Modra  <amodra@gmail.com>
40585
40586         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
40587         Define.
40588         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
40589         (PPC64_LOCAL_ENTRY_OFFSET): Define.
40590         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
40591         New function.
40592         (elf_machine_fixup_plt): Call it.
40593         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
40594         reloc arguments.
40595         (elf_machine_rela): Update call to elf_machine_plt_conflict.
40596         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40597         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
40598         r2 before calling target.
40599
40600 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40601             Alan Modra  <amodra@gmail.com>
40602
40603         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
40604         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
40605         versions of macros to support ELFv2 ABI.
40606         (LOCALENTRY): New macro.
40607         (ENTRY, EALIGN): Use it.
40608         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
40609         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
40610         fall through into ENTRY entry point.
40611         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
40612         Only define if _CALL_ELF != 2.
40613
40614         (elf_machine_matches_host): Verify ABI version matches.
40615         (RTLD_START): Use LOCALENTRY.
40616         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
40617         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
40618         (PLT_ENTRY_WORDS): New macro.
40619         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
40620         (elf_machine_runtime_setup): Support ELFv2 ABI.
40621         (elf_machine_fixup_plt): Likewise.
40622         (elf_machine_plt_conflict): Likewise.
40623         (resolve_ifunc): Likewise.
40624         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
40625         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
40626         Likewise.
40627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
40628         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
40629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40630         (makecontext): Support ELFv2 ABI.
40631         * elf/elf.h (EF_PPC64_ABI): Define.
40632
40633 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40634
40635         * sysdeps/powerpc/powerpc64/sysdep.h
40636         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
40637         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
40638         (ENTRY) [ASSEMBLER]: ... but instead here ...
40639         (EALIGN) [ASSEMBLER]: ... and here.
40640         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
40641         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
40642         (ENTRY_2) [!ASSEMBLER]: Use it.
40643         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
40644         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
40645         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40646         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
40647         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
40648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
40649         Use PPC64_LOAD_FUNCPTR.
40650
40651         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
40652
40653 2013-12-04  Alan Modra  <amodra@gmail.com>
40654
40655         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
40656         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
40657         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
40658         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
40659
40660         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
40661         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
40662         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
40663         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
40664         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
40665         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
40666
40667 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40668
40669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40670         (__makecontext): Fix incorrect CFI when backtracing out of
40671         context created via makecontext.
40672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
40673         (__setcontext): Fix incorrect CFI during switch to new context.
40674         (__novec_setcontext): Likewise.
40675
40676 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40677
40678         [BZ #4772]
40679         * time/strptime_l.c (__strptime_internal): Allow modifiers
40680         in strptime.
40681         * time/tst-strptime.c (day_tests): Add testcase.
40682
40683 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
40684
40685         * scripts/bench.pl: Skip over blank lines.
40686
40687 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40688
40689         [BZ #926]
40690         * manual/time.texi (Calendar Time): Clarify what timezone functions
40691         use.
40692
40693 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40694
40695         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40696
40697 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40698
40699         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
40700         implementation.
40701         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
40702         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
40703         * debug/memset_chk.c (__memset_chk): Likewise.
40704         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
40705         * debug/strncpy_chk.c: Likewise.
40706
40707 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40708
40709         [BZ #15268]
40710         [BZ #15425]
40711         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
40712         (__ieee754_exp): For possibly underflowing results, check size of
40713         result and force underflow exception if required.
40714         * math/auto-libm-test-in: Add more tests of exp.
40715         * math/auto-libm-test-out: Regenerated.
40716         * sysdeps/i386/fpu/libm-test-ulps: Update.
40717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40718
40719         [BZ #16283]
40720         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
40721         * math/w_exp2f.c (__exp2f): Likewise.
40722         * math/w_exp2l.c (__exp2l): Likewise.
40723         * math/auto-libm-test-in: Do not allow missing errno on exp2
40724         underflow.
40725         * math/auto-libm-test-out: Regenerated.
40726
40727 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
40728
40729         [BZ #16274]
40730         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
40731         handle filename validation.
40732         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
40733         (do_open): Delete.
40734
40735 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40736
40737         [BZ #6786]
40738         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
40739         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
40740         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
40741         <float.h>.
40742         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
40743         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
40744         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40745         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
40746         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40747         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
40748         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40749         * math/auto-libm-test-in: Don't allow missing errno from erfc.
40750         Add more erfc tests.
40751         * math/auto-libm-test-out: Regenerated.
40752         * sysdeps/i386/fpu/libm-test-ulps: Update.
40753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40754
40755         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
40756         exp2, expm1, j0 and j1.
40757         * math/auto-libm-test-out: Regenerated.
40758         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
40759         (erfc_test_data): Likewise.
40760         (exp_test_data): Likewise.
40761         (exp_tonearest_test_data): Likewise.
40762         (exp_towardzero_test_data): Likewise.
40763         (exp_downward_test_data): Likewise.
40764         (exp_upward_test_data): Likewise.
40765         (exp10_test_data): Likewise.
40766         (exp2_test_data): Likewise.
40767         (expm1_test_data): Likewise.
40768         (j0_test_data): Likewise.
40769         (j1_test_data): Likewise.
40770         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
40771         (input_flag_type): Add flag_xfail_rounding.
40772         (input_flags): Add xfail-rounding.
40773         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
40774         (output_for_one_input_case): Handle flag_xfail_rounding.
40775         * sysdeps/i386/fpu/libm-test-ulps: Update.
40776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40777
40778 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
40779
40780         [BZ #16289]
40781         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
40782         division by 0.
40783
40784 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
40785
40786         [BZ #16195]
40787         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
40788         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
40789         (STAP_PROBE0): New macro.
40790         (STAP_PROBE1): Likewise.
40791         (STAP_PROBE2): Likewise.
40792         (STAP_PROBE3): Likewise.
40793         (STAP_PROBE4): Likewise.
40794
40795 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
40796
40797         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
40798
40799 2013-12-02  Steve Ellcey  <sellcey@mips.com>
40800
40801         * benchtests/Makefile (bench): Add sqrt.
40802         (LDLIBS-bench-sqrt): New.
40803         * benchtests/sqrt-input: New.
40804
40805 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
40806
40807         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
40808         (GAIH_EAI): Likewise.
40809         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
40810         (gaih_inet): Likewise.
40811         (getaddrinfo): Don't use GAIH_EAI.
40812
40813         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
40814         (struct gaih): Remove definition.
40815
40816 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
40817
40818         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
40819         Use HERRNOP directly.
40820
40821 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40822
40823         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40824
40825 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
40826
40827         * math/gen-auto-libm-tests.c (test_functions): Add more
40828         single-argument functions.
40829         (special_fill_pi_2): New function.
40830         (special_fill_minus_pi_2): Likewise.
40831         (special_fill_pi_6): Likewise.
40832         (special_fill_minus_pi_6): Likewise.
40833         (special_fill_pi_3): Likewise.
40834         (special_fill_2pi_3): Likewise.
40835         (special_fill_e): Likewise.
40836         (special_fill_1_e): Likewise.
40837         (special_fill_e_minus_1): Likewise.
40838         (special_real_inputs): Add more special inputs.
40839         (output_for_one_input_case): Do not require ERANGE on underflow to
40840         zero if round-to-nearest result does not underflow to zero, unless
40841         exact results required.
40842         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
40843         atan, atanh, cbrt, cos and cosh.
40844         * math/auto-libm-test-out: Regenerated.
40845         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
40846         (acos_tonearest_test_data): Likewise.
40847         (acos_towardzero_test_data): Likewise.
40848         (acos_downward_test_data): Likewise.
40849         (acos_upward_test_data): Likewise.
40850         (acosh_test_data): Likewise.
40851         (asin_test_data): Likewise.
40852         (asin_tonearest_test_data): Likewise.
40853         (asin_towardzero_test_data): Likewise.
40854         (asin_upward_test_data): Likewise.
40855         (asinh_test_data): Likewise.
40856         (atan_test_data): Likewise.
40857         (atanh_test_data): Likewise.
40858         (cbrt_test_data): Likewise.
40859         (cos_test_data): Likewise.
40860         (cos_tonearest_test_data): Likewise.
40861         (cos_towardzero_test_data): Likewise.
40862         (cos_downward_test_data): Likewise.
40863         (cos_upward_test_data): Likewise.
40864         (cosh_test_data): Likewise.
40865         (cosh_tonearest_test_data): Likewise.
40866         (cosh_towardzero_test_data): Likewise.
40867         (cosh_downward_test_data): Likewise.
40868         (cosh_upward_test_data): Likewise.
40869         * sysdeps/i386/fpu/libm-test-ulps: Update.
40870         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40871
40872 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
40873
40874         [BZ #6787]
40875         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
40876         * math/w_exp10f.c (__exp10f): Likewise.
40877         * math/w_exp10l.c (__exp10l): Likewise.
40878         * math/libm-test.inc (exp10_test_data): Add more tests and expect
40879         errno settings in existing tests.
40880
40881         [BZ #14032]
40882         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
40883         precision control set to double precision.
40884         * sysdeps/i386/fpu/w_sqrt.c: New file.
40885         * math/auto-libm-test-in: Add more tests.
40886         * math/auto-libm-test-out: Update.
40887
40888         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
40889         (sqrt_test_tonearest): New function.
40890         (sqrt_towardzero_test_data): New variable.
40891         (sqrt_test_towardzero): New function.
40892         (sqrt_downward_test_data): New variable.
40893         (sqrt_test_downward): New function.
40894         (sqrt_upward_test_data): New variable.
40895         (sqrt_test_upward): New function.
40896         (main): Call the new functions.
40897
40898         * math/gen-auto-libm-tests.c: New file.
40899         * math/auto-libm-test-in: Likewise.
40900         * math/auto-libm-test-out: New generated file.
40901         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
40902         variables.
40903         (%beautify): Add generated representations of zero.
40904         (top level): Set $auto_input and call parse_auto_input.
40905         (beautify): Remove trailing "f" from hex float constants.
40906         (parse_args): Handle XFAIL_TEST.
40907         (convert_condition): New function.
40908         (or_value): Likewise.
40909         (or_cond_value): Likewise.
40910         (generate_testfile): Handle AUTO_TESTS_* lines.
40911         (parse_auto_input): New function.
40912         * math/libm-test.inc (XFAIL_TEST): New macro.
40913         (ERRNO_UNCHANGED): Update value.
40914         (ERRNO_EDOM): Likewise.
40915         (ERRNO_ERANGE): Likewise.
40916         (IGNORE_RESULT): Likewise.
40917         (TEST_COND_flt_32): New macro.
40918         (TEST_COND_dbl_64): Likewise.
40919         (TEST_COND_ldbl_96_intel): Likewise.
40920         (TEST_COND_ldbl_96_m68k): Likewise.
40921         (TEST_COND_ldbl_128): Likewise.
40922         (TEST_COND_ldbl_128ibm): Likewise.
40923         (TEST_COND_long32): Likewise.
40924         (TEST_COND_long64): Likewise.
40925         (TEST_COND_before_rounding): Likewise.
40926         (TEST_COND_after_rounding): Likewise.
40927         (enable_test): Handle XFAIL_TEST flag.
40928         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
40929         with finite results.
40930         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
40931         auto-libm-test-out.
40932
40933 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
40934             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40935
40936         [BZ #16214]
40937         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
40938         __tls_get_addr_internal instead of __tls_get_offset in order to
40939         avoid GOT pointer dependency.  Make rtld export
40940         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
40941         __tls_get_addr since we are a __tls_get_offset platform.
40942         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
40943         GOT pointer being set up before.
40944         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
40945
40946 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
40947
40948         * manual/math.texi (Errors in Math Functions): Document accuracy
40949         goals.
40950
40951         [BZ #15004]
40952         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
40953         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
40954         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
40955         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
40956         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
40957         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
40958         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
40959         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
40960         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
40961         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
40962         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
40963         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
40964         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
40965         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
40966         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
40967         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
40968
40969         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
40970         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
40971         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
40972         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
40973         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
40974         Likewise.
40975         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
40976         Likewise.
40977         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
40978         Likewise.
40979         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
40980         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
40981         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
40982         atomic-feupdateenv and flt-rounds.
40983         * sysdeps/powerpc/nofpu/Versions (libc): Add
40984         __atomic_feholdexcept, __atomic_feclearexcept,
40985         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
40986         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
40987         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
40988         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
40989         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
40990         here.
40991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
40992         Update.
40993
40994         * manual/arith.texi (FP Exceptions): Document that exceptions may
40995         not be raised when matherr is used.
40996         (Math Error Reporting): Document overflow in directed rounding
40997         modes.  Document that errno may not be set when finite values are
40998         returned on overflow.  Document intent to set errno on underflow
40999         only for underflow to zero.
41000
41001         [BZ #16271]
41002         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41003         round-to-nearest then adjust result for other rounding modes.
41004         * include/fenv.h (fegetround): Use libm_hidden_proto.
41005         * math/fegetround.c (fegetround): Use libm_hidden_def.
41006         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41007         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41008         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41009         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41010         Likewise.
41011         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41012         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41013         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41014         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41015
41016 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41017
41018         [BZ #16077]
41019         * nss/Versions (libnss_files): Add
41020         _nss_files_gethostbyname3_r.
41021         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41022         New function.
41023         (HOST_DB_LOOKUP): Remove macro.
41024         (_nss_files_gethostbyname_r): Implement function without the
41025         HOST_DB_LOOKUP macro.
41026         (_nss_files_gethostbyname2_r): Likewise.
41027
41028 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41029
41030         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41031
41032 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41033
41034         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41035         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41036         warning.
41037
41038 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41039
41040         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41041         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41042         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41043         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41044         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41045         __fe_nomask_env_priv and attribute_hidden.
41046         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41047         (libc_feupdateenv_test_ppc): Likewise.
41048         (libc_feresetround_ppc): Likewise.
41049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41050         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41051         compat_symbol macro.
41052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41053         (__fe_nomask_env): Likewise.
41054         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41055
41056 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41057
41058         * string/Makefile: Remove ifunc tests.
41059         * string/test-string.h: Define TEST_IFUNC.
41060         * string/test-bcopy-ifunc.c: Remove.
41061         * string/test-bzero-ifunc.c: Likewise.
41062         * string/test-memccpy-ifunc.c: Likewise.
41063         * string/test-memchr-ifunc.c: Likewise.
41064         * string/test-memcmp-ifunc.c: Likewise.
41065         * string/test-memcpy-ifunc.c: Likewise.
41066         * string/test-memmem-ifunc.c: Likewise.
41067         * string/test-memmove-ifunc.c: Likewise.
41068         * string/test-mempcpy-ifunc.c: Likewise.
41069         * string/test-memrchr-ifunc.c: Likewise.
41070         * string/test-memset-ifunc.c: Likewise.
41071         * string/test-rawmemchr-ifunc.c: Likewise.
41072         * string/test-stpcpy-ifunc.c: Likewise.
41073         * string/test-stpncpy-ifunc.c: Likewise.
41074         * string/test-strcasecmp-ifunc.c: Likewise.
41075         * string/test-strcasestr-ifunc.c: Likewise.
41076         * string/test-strcat-ifunc.c: Likewise.
41077         * string/test-strchr-ifunc.c: Likewise.
41078         * string/test-strchrnul-ifunc.c: Likewise.
41079         * string/test-strcmp-ifunc.c: Likewise.
41080         * string/test-strcpy-ifunc.c: Likewise.
41081         * string/test-strcspn-ifunc.c: Likewise.
41082         * string/test-strlen-ifunc.c: Likewise.
41083         * string/test-strncasecmp-ifunc.c: Likewise.
41084         * string/test-strncat-ifunc.c: Likewise.
41085         * string/test-strncmp-ifunc.c: Likewise.
41086         * string/test-strncpy-ifunc.c: Likewise.
41087         * string/test-strnlen-ifunc.c: Likewise.
41088         * string/test-strpbrk-ifunc.c: Likewise.
41089         * string/test-strrchr-ifunc.c: Likewise.
41090         * string/test-strspn-ifunc.c: Likewise.
41091         * string/test-strstr-ifunc.c: Likewise.
41092
41093 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41094
41095         * benchtests/Makefile: Remove ifunc tests.
41096         * benchtests/bench-string.h: Define TEST_IFUNC.
41097         * benchtests/bench-bcopy-ifunc.c: Remove.
41098         * benchtests/bench-bzero-ifunc.c: Likewise.
41099         * benchtests/bench-memccpy-ifunc.c: Likewise.
41100         * benchtests/bench-memchr-ifunc.c: Likewise.
41101         * benchtests/bench-memcmp-ifunc.c: Likewise.
41102         * benchtests/bench-memcpy-ifunc.c: Likewise.
41103         * benchtests/bench-memmem-ifunc.c: Likewise.
41104         * benchtests/bench-memmove-ifunc.c: Likewise.
41105         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41106         * benchtests/bench-memrchr-ifunc.c: Likewise.
41107         * benchtests/bench-memset-ifunc.c: Likewise.
41108         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41109         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41110         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41111         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41112         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41113         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41114         * benchtests/bench-strcat-ifunc.c: Likewise.
41115         * benchtests/bench-strchr-ifunc.c: Likewise.
41116         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41117         * benchtests/bench-strcmp-ifunc.c: Likewise.
41118         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41119         * benchtests/bench-strcpy-ifunc.c: Likewise.
41120         * benchtests/bench-strcspn-ifunc.c: Likewise.
41121         * benchtests/bench-strlen-ifunc.c: Likewise.
41122         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41123         * benchtests/bench-strncat-ifunc.c: Likewise.
41124         * benchtests/bench-strncmp-ifunc.c: Likewise.
41125         * benchtests/bench-strncpy-ifunc.c: Likewise.
41126         * benchtests/bench-strnlen-ifunc.c: Likewise.
41127         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41128         * benchtests/bench-strrchr-ifunc.c: Likewise.
41129         * benchtests/bench-strsep-ifunc.c: Likewise.
41130         * benchtests/bench-strspn-ifunc.c: Likewise.
41131         * benchtests/bench-strstr-ifunc.c: Likewise.
41132
41133 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41134
41135         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41136
41137 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41138
41139         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41140         * rt/aio.h: Likewise.
41141         * sysdeps/gnu/bits/utmp.h: Likewise.
41142         * sysdeps/gnu/bits/utmpx.h: Likewise.
41143         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41144         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41145         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41146         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41147         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41148         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41149         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41150         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41151         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41152         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41153         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41154         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41155         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41157         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41158         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41159         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41160         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41161         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41162         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41163         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41164         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41165         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41166         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41167         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41168         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41169         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41170         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41171         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41172         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41173         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41174         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41175         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41176         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41177         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41178         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41179         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41180         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41181         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41182         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41183         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41184         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41185
41186 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41187
41188         [BZ #16245]
41189         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41190         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41191
41192 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41193
41194         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41195         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41196         Likewise.
41197
41198 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41199
41200         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41201         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41202         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41203         (__fesetround): Remove define.
41204         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41205         rounding and exceptions handling.
41206         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41207         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41208         (__fe_nomask_env): Likewise.
41209         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41210         __fegetround instead of fegetround.
41211         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41212         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41213
41214 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41215
41216         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41217         it's there.
41218
41219         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41220
41221 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41222
41223         [BZ #11157]
41224         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41225         (encrypt_r): Likewise.
41226         * malloc/obstack.h (obstack_free): Likewise.
41227         * posix/unistd.h (encrypt): Likewise.
41228
41229 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41230
41231         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41232         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41233         DL_CALL_DT_FINI() that call the functions directly.
41234         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41235         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41236         * elf/dl-fini.c: Likewise.
41237
41238 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41239
41240         * malloc/hooks.c (memalign_check): Add alignment rounding.
41241         * malloc/malloc.c (_mid_memalign): New function.
41242         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41243         Implement by calling _mid_memalign.
41244         * manual/probes.texi (Memory Allocation Probes): Remove
41245         memory_valloc_retry and memory_pvalloc_retry.
41246
41247 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41248
41249         * locale/programs/locarchive.c (open_archive): Add const
41250         qualifier to ARCHIVEFNAME and copy default fname to
41251         DEFAULT_FNAME.
41252
41253         [BZ #15601]
41254         * libio/tst-widetext.input: Rename Oriya to Odia.
41255         * locale/iso-639.def: Likewise.
41256
41257         * manual/probes.texi (Mathematical Function Probes): Add
41258         documentation for sin, cos, asin and acos probes.
41259         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41260         (__sin32): Add slowasin probe.
41261         (__cos32): Add slowacos probe.
41262         (__mpsin): Add slowsin probe.
41263         (__mpcos): Add slowcos probe.
41264
41265 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41266
41267         [BZ #15483]
41268         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41269         thread-local __sim_exceptions_thread and global
41270         __sim_exceptions_global.
41271         (__sim_disabled_exceptions): Change to thread-local
41272         __sim_disabled_exceptions_thread and global
41273         __sim_disabled_exceptions_global.
41274         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41275         and global __sim_round_mode_global.
41276         (__simulate_exceptions): Use thread-local floating-point state and
41277         set global state from it as needed.
41278         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41279         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41280         __sim_round_mode_thread.
41281         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41282         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41283         and global __sim_exceptions_global.
41284         (__sim_disabled_exceptions): Change to thread-local
41285         __sim_disabled_exceptions_thread and global
41286         __sim_disabled_exceptions_global.
41287         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41288         and global __sim_round_mode_global.
41289         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41290         (SIM_SET_GLOBAL): Likewise.
41291         * sysdeps/powerpc/soft-fp/sfp-machine.h
41292         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41293         __sim_round_mode_thread.
41294         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41295         __sim_disabled_exceptions_thread.
41296         (__sim_exceptions): Change to __sim_exceptions_thread.
41297         (__sim_disabled_exceptions): Change to
41298         __sim_disabled_exceptions_thread.
41299         (__sim_round_mode): Change to __sim_round_mode_thread.
41300         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41301         thread-local floating-point state and set global state from it as
41302         needed.
41303         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41304         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41305         (__sim_disabled_exceptions): Remove extern declaration.
41306         (feenableexcept): Use thread-local floating-point state and set
41307         global state from it as needed.
41308         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41309         extern declaration.
41310         (__sim_disabled_exceptions): Likewise.
41311         (__sim_round_mode): Likewise.
41312         (__fegetenv): Use thread-local floating-point state.
41313         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41314         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41315         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41316         floating-point state and set global state from it as needed.
41317         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41318         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41319         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41320         Likewise.
41321         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41322         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41323         Likewise.
41324         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41325         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41326         Use __sim_round_mode_thread.
41327         * math/test-fenv-tls.c: New file.
41328         * math/Makefile (tests): Add test-fenv-tls.
41329         ($(objpfx)test-fenv-tls): Depend on
41330         $(common-objpfx)nptl/libpthread.so.
41331
41332 2013-11-19  Andreas Schwab  <schwab@suse.de>
41333
41334         * locale/programs/locale.c (show_info): Decode wordarray elements.
41335         * locale/categories.def (LC_MONETARY): Add element for
41336         _NL_MONETARY_CRNCYSTR.
41337         * locale/C-monetary.c (conversion_rate): New variable.
41338         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41339         element.
41340
41341 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41342
41343         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41344         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41345
41346 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41347
41348         * elf/Makefile (tst-auxv): New test.
41349         * elf/tst-auxv.c: New
41350         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41351
41352 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41353
41354         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41355         (hidden_proto): Caller changed.
41356         (hidden_tls_proto): New macro.
41357         (libc_hidden_tls_proto): Likewise.
41358         (rtld_hidden_tls_proto): Likewise.
41359         (libm_hidden_tls_proto): Likewise.
41360         (libresolv_hidden_tls_proto): Likewise.
41361         (librt_hidden_tls_proto): Likewise.
41362         (libdl_hidden_tls_proto): Likewise.
41363         (libnss_files_hidden_tls_proto): Likewise.
41364         (libnsl_hidden_tls_proto): Likewise.
41365         (libnss_nisplus_hidden_tls_proto): Likewise.
41366         (libutil_hidden_tls_proto): Likewise.
41367
41368 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41369
41370         [BZ #10253]
41371         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41372         (decompose_rpath): Defer expansion to fillin_rpath.
41373         (_dl_init_paths): Pass linkmap to fillin_rpath.
41374
41375 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41376
41377         * benchtests/Makefile: Add strsep.
41378         * benchtests/bench-strsep.c: New file: strsep benchtest.
41379         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41380
41381 2013-11-18  Andreas Schwab  <schwab@suse.de>
41382
41383         * locale/programs/locale.c (show_info) [case byte]: Check for
41384         '\377' instead of '\177'.
41385         * locale/C-monetary.c (not_available): Always use "\377".
41386         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41387         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41388         detect unavailable sign_posn locale elements.
41389         * locale/localeconv.c (__localeconv): For grouping and
41390         mon_grouping handle "\177" and "\377" like no grouping.
41391         (INT_ELEM): New macro.  Use it to set all numeric members.
41392         * locale/programs/ld-monetary.c (monetary_read)
41393         <tok_mon_grouping>: Normalize single -1 to the empty string.
41394         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41395         Likewise.
41396
41397 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41398
41399         [BZ #16055]
41400         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41401         when we match (nil).
41402         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41403
41404 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41405
41406         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41407         (NO_TEST_INLINE): Update value.
41408         (ERRNO_UNCHANGED): Likewise.
41409         (ERRNO_EDOM): Likewise.
41410         (ERRNO_ERANGE): Likewise.
41411         (IGNORE_RESULT): Likewise.
41412         (check_float_internal): Check signs of NaN results if
41413         TEST_NAN_SIGN used.
41414         (check_complex): Pass TEST_NAN_SIGN flag through to second
41415         check_float_internal call.
41416         (copysign_test_data): Add tests with quiet NaNs as second
41417         argument.  Use TEST_NAN_SIGN.
41418         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41419         TEST_NAN_SIGN.
41420         (signbit_test_data): Add tests of quiet NaN argument.
41421         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41422
41423         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41424         $ignore_result.
41425         (parse_args): Handle function results specified as IGNORE.
41426         * math/libm-test.inc (IGNORE_RESULT): New macro.
41427         (check_float_internal): Do not check numerical result if flag
41428         IGNORE_RESULT set.
41429         (check_complex): Pass through IGNORE_RESULT to second
41430         check_float_internal call.
41431         (check_int): Do not check numerical result if flag IGNORE_RESULT
41432         set.
41433         (check_long): Likewise.
41434         (check_bool): Likewise.
41435         (check_longlong): Likewise.
41436         (lrint_test_data): Add tests of infinite and NaN arguments.
41437         (lrint_tonearest_test_data): Likewise.
41438         (lrint_towardzero_test_data): Likewise.
41439         (lrint_downward_test_data): Likewise.
41440         (lrint_upward_test_data): Likewise.
41441         (llrint_test_data): Likewise.
41442         (llrint_tonearest_test_data): Likewise.
41443         (llrint_towardzero_test_data): Likewise.
41444         (llrint_downward_test_data): Likewise.
41445         (llrint_upward_test_data): Likewise.
41446         (lround_test_data): Likewise.
41447         (llround_test_data): Likewise.
41448
41449         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41450         (ERRNO_UNCHANGED): Update value.
41451         (ERRNO_EDOM): Likewise.
41452         (ERRNO_ERANGE): Likewise.
41453         (NO_TEST_INLINE_FLOAT): New macro.
41454         (NO_TEST_INLINE_DOUBLE): Likewise.
41455         (enable_test): New function.
41456         (RUN_TEST_f_f): Check enable_test before running test.
41457         (RUN_TEST_2_f): Likewise.
41458         (RUN_TEST_fff_f): Likewise.
41459         (RUN_TEST_c_f): Likewise.
41460         (RUN_TEST_f_f1): Likewise.
41461         (RUN_TEST_fF_f1): Likewise.
41462         (RUN_TEST_fI_f1): Likewise.
41463         (RUN_TEST_ffI_f1): Likewise.
41464         (RUN_TEST_c_c): Likewise.
41465         (RUN_TEST_cc_c): Likewise.
41466         (RUN_TEST_f_i): Likewise.
41467         (RUN_TEST_f_i_tg): Likewise.
41468         (RUN_TEST_ff_i_tg): Likewise.
41469         (RUN_TEST_f_b): Likewise.
41470         (RUN_TEST_f_b_tg): Likewise.
41471         (RUN_TEST_f_l): Likewise.
41472         (RUN_TEST_f_L): Likewise.
41473         (RUN_TEST_fFF_11): Likewise.
41474         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41475         conditionals.
41476         (cosh_test_data): Likewise.
41477         (exp_test_data): Likewise.
41478         (expm1_test_data): Likewise.
41479         (hypot_test_data): Likewise.
41480         (pow_test_data): Likewise.
41481         (sinh_test_data): Likewise.
41482         (tanh_test_data): Likewise.
41483         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41484         flags argument.
41485
41486         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41487         tests with quiet NaN input and output.
41488         (acosh_test_data): Likewise.
41489         (asin_test_data): Likewise.
41490         (asinh_test_data): Likewise.
41491         (atan_test_data): Likewise.
41492         (atanh_test_data): Likewise.
41493         (atan2_test_data): Likewise.
41494         (cbrt_test_data): Likewise.
41495         (cos_test_data): Likewise.
41496         (cosh_test_data): Likewise.
41497         (erf_test_data): Likewise.
41498         (erfc_test_data): Likewise.
41499         (exp_test_data): Likewise.
41500         (exp10_test_data): Likewise.
41501         (exp2_test_data): Likewise.
41502         (expm1_test_data): Likewise.
41503         (hypot_test_data): Likewise.
41504         (j0_test_data): Likewise.
41505         (j1_test_data): Likewise.
41506         (jn_test_data): Likewise.
41507         (lgamma_test_data): Likewise.
41508         (log_test_data): Likewise.
41509         (log10_test_data): Likewise.
41510         (log1p_test_data): Likewise.
41511         (log2_test_data): Likewise.
41512         (pow_test_data): Likewise.
41513         (scalb_test_data): Likewise.
41514         (sin_test_data): Likewise.
41515         (sincos_test_data): Likewise.
41516         (sinh_test_data): Likewise.
41517         (tan_test_data): Likewise.
41518         (tanh_test_data): Likewise.
41519         (tgamma_test_data): Likewise.
41520         (y0_test_data): Likewise.
41521         (y1_test_data): Likewise.
41522         (yn_test_data): Likewise.
41523
41524         [BZ #16167]
41525         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41526         argument being NaN and avoid computations with second argument in
41527         that case.
41528         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41529         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41530         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41531
41532 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41533
41534         * locale/iso-639.def: Add Chitwani Tharu (the).
41535
41536 2013-11-14  Andreas Schwab  <schwab@suse.de>
41537
41538         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41539         word instead of empty string.
41540
41541 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41542
41543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41544         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41546         (__fe_nomask_env): Likewise.
41547
41548 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41549
41550         * benchtests/bench-timing.h: Include time.h.
41551
41552 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
41553
41554         [BZ #15997]
41555         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
41556         to 3.4.0 for x32.
41557         * sysdeps/unix/sysv/linux/configure: Regenerated.
41558
41559 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
41560
41561         [BZ #16151]
41562         * stdlib/strtod_l.c (round_and_return): Do not consider
41563         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
41564         exponent one less than half the least subnormal exponent.
41565         * stdlib/test-strtod-round-data: Add more tests.
41566         * stdlib/tst-strtod-round.c (tests): Regenerated.
41567
41568 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41569
41570         [BZ #14143]
41571         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
41572         (__fe_mask_env): Likewise.
41573         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
41574         libm_hidden_proto and add function prototype.
41575         (__fe_mask_env): Add function prototype.
41576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41577         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
41578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
41579         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
41580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41581         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
41582
41583 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41584
41585         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
41586         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
41587
41588 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41589
41590         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
41591         of htab_find_slot().
41592
41593 2013-11-11  David S. Miller  <davem@davemloft.net>
41594
41595         [BZ #16150]
41596         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
41597         symbol in the non-vis3 case in static builds.
41598         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
41599         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
41600         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
41601         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
41602
41603 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
41604
41605         [BZ #387]
41606         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
41607         it is empty.
41608
41609 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41610
41611         * benchtests/Makefile: Add bench-strtod.
41612         * benchtests/bench-strtod.c: New file: strtod benchtest
41613
41614 2013-11-11  Andreas Schwab  <schwab@suse.de>
41615
41616         [BZ #16153]
41617         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
41618         terminating NUL in key length.
41619
41620 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41621
41622         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41623         Add artificial ODP entry for vDSO symbol for PPC64.
41624         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
41625         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
41626
41627 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41628
41629         [BZ #15374]
41630         * nss/getent.c (services_keys): Recognize services starting with digit.
41631
41632 2013-11-06  David S. Miller  <davem@davemloft.net>
41633
41634         [BZ #15985]
41635         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
41636         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
41637
41638 2013-11-06  Will Newton  <will.newton@linaro.org>
41639
41640         * manual/memory.texi (Malloc Examples): Remove register
41641         keyword from examples.
41642
41643 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
41644
41645         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
41646
41647 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
41648
41649         [BZ #6981]
41650         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
41651         depending on [__GCC_IEC_559 > 0].
41652         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
41653         depending on [__GCC_IEC_559_COMPLEX > 0].
41654
41655 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
41656
41657         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
41658         to iso-639.def.
41659
41660 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
41661
41662         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
41663
41664 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
41665
41666         [BZ #16112]
41667         * malloc/malloc (malloc_info): Do not handle first bin as
41668         special case.
41669
41670 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
41671
41672         * locale/iso-639.def: Add Central Nahuatl (nhn).
41673
41674 2013-11-01  Bruno Haible  <bruno@clisp.org>
41675
41676         [BZ #7003]
41677         * manual/math.texi (BSD Random): Specify range upper bound as
41678         in POSIX.
41679
41680 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
41681
41682         * locale/iso-639.def: Add Meadow Mari (mhr).
41683
41684 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
41685
41686         [BZ #14752], [BZ #15763]
41687         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
41688         Validate name.
41689         * rt/tst_shm.c: Add test for escaping directory.
41690
41691 2013-10-31  Andreas Schwab  <schwab@suse.de>
41692
41693         [BZ #15917]
41694         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
41695         followed by 'x' as part of digit sequence.
41696         * stdio-common/tst-sscanf.c (double_tests2): New tests.
41697
41698 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
41699
41700         [BZ #16037]
41701         * configure.ac: allow GNU Make 4.0 and greater.
41702         * configure: Regenerated.
41703
41704 2013-10-30  Will Newton  <will.newton@linaro.org>
41705
41706         [BZ #16038]
41707         * malloc/hooks.c (memalign_check): Limit alignment to the
41708         maximum representable power of two.
41709         * malloc/malloc.c (__libc_memalign): Likewise.
41710         * malloc/tst-memalign.c (do_test): Add test for very
41711         large alignment values.
41712         * malloc/tst-posix_memalign.c (do_test): Likewise.
41713
41714 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41715
41716         [BZ #11087]
41717         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
41718         (munmap_chunk): Likewise.
41719         (mremap_chunk): Likewise.
41720
41721 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41722
41723         [BZ #15799]
41724         * stdlib/div.c (div): Remove obsolete code.
41725         * stdlib/ldiv.c (ldiv): Likewise.
41726         * stdlib/lldiv.c (lldiv): Likewise.
41727
41728 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
41729
41730         [BZ #16071]
41731         * nss/nss_files/files-XXX.c (get_contents_ret): New
41732         enumerator.
41733         (get_contents): New function.
41734         (internal_getent): Use it.  Expand size of LINEBUFLEN.
41735
41736 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
41737
41738         * configure.in: Moved to ...
41739         * configure.ac: ... here. Change reference to configure.in
41740         to configure.ac.
41741         * sysdeps/arm/preconfigure.ac: ... here.
41742         configure.in to configure.ac.
41743         * sysdeps/gnu/configure.in: Moved to ...
41744         * sysdeps/gnu/configure.ac: ... here.
41745         * sysdeps/i386/configure.in: Moved to ...
41746         * sysdeps/i386/configure.ac: ... here.
41747         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
41748         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
41749         * sysdeps/mach/configure.in: Moved to ...
41750         * sysdeps/mach/configure.ac: ... here.
41751         * sysdeps/mach/hurd/configure.in: Moved to ...
41752         * sysdeps/mach/hurd/configure.ac: ... here.
41753         * sysdeps/powerpc/configure.in: Moved to ...
41754         * sysdeps/powerpc/configure.ac: ... here.
41755         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
41756         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
41757         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
41758         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
41759         * sysdeps/s390/s390-32/configure.in: Moved to ...
41760         * sysdeps/s390/s390-32/configure.ac: ... here.
41761         * sysdeps/s390/s390-64/configure.in: Moved to ...
41762         * sysdeps/s390/s390-64/configure.ac: ... here.
41763         * sysdeps/sh/configure.in: Moved to ...
41764         * sysdeps/sh/configure.ac: ... here.
41765         * sysdeps/sparc/configure.in: Moved to ...
41766         * sysdeps/sparc/configure.ac: ... here.
41767         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
41768         * sysdeps/unix/sysv/linux/configure.ac: ... here.
41769         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
41770         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
41771         * sysdeps/x86_64/configure.in: Moved to ...
41772         * sysdeps/x86_64/configure.ac: ... here.
41773         * sysdeps/x86_64/preconfigure.in: Moved to ...
41774         * sysdeps/x86_64/preconfigure.ac: ... here.
41775         * aclocal.m4: Change reference to configure.in to configure.ac.
41776         * config.h.in: Likewise.
41777         * manual/install.texi: Likewise.
41778         * manual/maint.texi: Likewise.
41779         * Makefile: Likewise.
41780         * malloc/Makefile: Likewise.
41781         * nscd/Makefile: Likewise.
41782         * Makeconfig: Change reference to configure.in and
41783         preconfigure.in to configure.ac and preconfigure.ac
41784         respectively.
41785         * INSTALL: Regenerated.
41786         * configure: Likewise.
41787         * sysdeps/gnu/configure: Likewise.
41788         * sysdeps/i386/configure: Likewise.
41789         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
41790         * sysdeps/mach/configure: Likewise.
41791         * sysdeps/mach/hurd/configure: Likewise.
41792         * sysdeps/powerpc/configure: Likewise.
41793         * sysdeps/powerpc/powerpc32/configure: Likewise.
41794         * sysdeps/powerpc/powerpc64/configure: Likewise.
41795         * sysdeps/s390/s390-32/configure: Likewise.
41796         * sysdeps/s390/s390-64/configure: Likewise.
41797         * sysdeps/sh/configure: Likewise.
41798         * sysdeps/sparc/configure: Likewise.
41799         * sysdeps/unix/sysv/linux/configure: Likewise.
41800         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
41801         * sysdeps/x86_64/configure: Likewise.
41802         * sysdeps/x86_64/preconfigure: Likewise.
41803
41804 2013-10-29  Andreas Schwab  <schwab@suse.de>
41805
41806         * stdio-common/Makefile (tst-swscanf-ENV): Define.
41807
41808 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41809
41810         * benchtests/pow-inputs: Add new inputs.
41811
41812         * benchtests/exp-inputs: Add new inputs.
41813
41814         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
41815         conditional check for return value.
41816         (__cos32): Likewise.
41817
41818 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41819
41820         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
41821         to provide a boost for large inputs with word alignment.
41822         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
41823         implementation based on optimized PPC64 strcpy.
41824         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
41825         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
41826         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
41827         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
41828
41829 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41830
41831         [BZ #2801]
41832         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
41833
41834 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41835
41836         [BZ #14876]
41837         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
41838         * time/tst-strptime.c (day_tests): Add testcase.
41839
41840 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41841
41842         [BZ #14029]
41843         * manual/pattern.texi: Acknowledge that fnmatch can fail.
41844
41845 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
41846
41847         [BZ #16074]
41848         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
41849         MAP_FAILED on error.
41850
41851 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
41852
41853         [BZ #16072]
41854         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
41855         heap for large requests.
41856
41857 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
41858
41859         [BZ #9954]
41860         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
41861         result if the result has no associated interface.
41862         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
41863         interface for all 127.X.Y.Z addresses.
41864
41865 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
41866
41867         * locale/iso-639.def: Add Ligurian (lij)
41868
41869 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
41870
41871         [BZ #15825]
41872         * sunrpc/rpc_main.c: Document rpcgen -5.
41873
41874 2013-10-19  Michael Stahl  <mstahl@redhat.com>
41875
41876         * elf/rtld.c (do_preload): Print the reason why preloading failed.
41877
41878 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
41879
41880         [BZ #10278]
41881         * posix/glob.c: Match only directories when trailing slash is present.
41882         * posix/tst-gnuglob.c (my_opendir): Do not open files.
41883         (main): Add testcase.
41884
41885 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
41886
41887         [BZ #15670]
41888         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
41889
41890 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
41891
41892         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
41893         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
41894         AUTH_DES and cindex for FIPS 140-2.
41895         (DES Encryption): Add cindex FIPS 46-3.
41896
41897         * locale/locarchive.h (struct locarhandle): Add fname.
41898         * locale/programs/localedef.c (main): Pass ARGV[remaining]
41899         if an optional argument was specified to --list-archive,
41900         otherwise NULL.
41901         * locale/programs/locarchive.c (show_archive_content): Take new
41902         argument fname and pass it via ah.fname to open_archive.
41903         * locale/programs/localedef.h: Update decl.
41904         (open_archive): If AH->fname is non-null, open that file
41905         rather than the default file name, and don't ignore ENOENT.
41906         (create_archive): Set AH.fname to NULL.
41907         (delete_locales_from_archive): Likewise.
41908         (add_locales_to_archive): Likewise.
41909         * locale/programs/locfile.c (write_all_categories): Likewise.
41910
41911 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
41912             Aldy Hernandez  <aldyh@redhat.com>
41913
41914         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
41915         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
41916         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
41917         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
41918         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
41919         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
41920         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
41921         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
41922         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
41923         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
41924         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
41925         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
41926         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
41927         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
41928         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
41929         Likewise.
41930         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
41931         Likewise.
41932         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
41933         Likewise.
41934         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
41935         Likewise.
41936         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
41937         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
41938         Likewise.
41939         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
41940         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
41941         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
41942         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
41943         Likewise.
41944         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
41945         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
41946         * sysdeps/powerpc/preconfigure: Likewise.
41947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
41948         Likewise.
41949         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
41950         Replace contents of file by #include of <fenv_libc.h>.
41951         * sysdeps/powerpc/soft-fp/sfp-machine.h
41952         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
41953         and <sys/prctl.h>.
41954         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
41955         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
41956         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
41957         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
41958         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
41959         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
41960         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
41961         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
41962         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
41963         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
41964         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
41965         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
41966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
41967         Allow copysignl PLT reference to be missing.
41968
41969 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
41970             Joseph Myers  <joseph@codesourcery.com
41971
41972         [BZ #15948]
41973         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
41974         single character.
41975         (add_to_tablewc): Assert sequence of wide characters is nonempty.
41976
41977 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
41978
41979         * elf/tst-tls-dlinfo.c: Don't include tls.h.
41980         * elf/tst-tls1.c: Likewise.
41981         * elf/tst-tls10.h: Likewise.
41982         * elf/tst-tls14.c: Likewise.
41983         * elf/tst-tls2.c: Likewise.
41984         * elf/tst-tls3.c: Likewise.
41985         * elf/tst-tls4.c: Likewise.
41986         * elf/tst-tls5.c: Likewise.
41987         * elf/tst-tls6.c: Likewise.
41988         * elf/tst-tls7.c: Likewise.
41989         * elf/tst-tls8.c: Likewise.
41990         * elf/tst-tls9.c: Likewise.
41991         * elf/tst-tlsmod1.c: Likewise.
41992         * elf/tst-tlsmod13.c: Likewise.
41993         * elf/tst-tlsmod13a.c: Likewise.
41994         * elf/tst-tlsmod14a.c: Likewise.
41995         * elf/tst-tlsmod16a.c: Likewise.
41996         * elf/tst-tlsmod16b.c: Likewise.
41997         * elf/tst-tlsmod2.c: Likewise.
41998         * elf/tst-tlsmod3.c: Likewise.
41999         * elf/tst-tlsmod4.c: Likewise.
42000         * elf/tst-tlsmod5.c: Likewise.
42001         * elf/tst-tlsmod6.c: Likewise.
42002
42003 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42004
42005         [BZ #12486]
42006         * malloc/malloc.c: remove checks for statistics.
42007
42008 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42009
42010         [BZ #15277]
42011         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42012         * inet/tst-network.c: Add testcase.
42013
42014 2013-10-17  Andreas Schwab  <schwab@suse.de>
42015
42016         [BZ #15218]
42017         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42018         to determine canonical name.
42019
42020 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42021
42022         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42023         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42024         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42025         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42026         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42027         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42028         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42029         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42030         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42031         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42032         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42033         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42034         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42035         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42036         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42037         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42038         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42039         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42040         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42041         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42042         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42043         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42044         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42045         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42046         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42047         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42048         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42049         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42050         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42051         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42052         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42053         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42054         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42055         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42056         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42057         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42058         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42059         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42060         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42061         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42062         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42063         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42064         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42065         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42066         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42067         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42068         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42069         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42070         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42071         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42072         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42073         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42074         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42075         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42076         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42077         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42078         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42079         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42080
42081 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42082
42083         [BZ #16041]
42084         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42085         make result into a quiet NaN.
42086
42087 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42088
42089         * soft-fp/adddf3.c: Fix horizontal whitespace.
42090         * soft-fp/addsf3.c: Likewise.
42091         * soft-fp/addtf3.c: Likewise.
42092         * soft-fp/divdf3.c: Likewise.
42093         * soft-fp/divsf3.c: Likewise.
42094         * soft-fp/divtf3.c: Likewise.
42095         * soft-fp/double.h: Likewise.
42096         * soft-fp/eqdf2.c: Likewise.
42097         * soft-fp/eqsf2.c: Likewise.
42098         * soft-fp/eqtf2.c: Likewise.
42099         * soft-fp/extenddftf2.c: Likewise.
42100         * soft-fp/extended.h: Likewise.
42101         * soft-fp/extendsfdf2.c: Likewise.
42102         * soft-fp/extendsftf2.c: Likewise.
42103         * soft-fp/extendxftf2.c: Likewise.
42104         * soft-fp/fixdfdi.c: Likewise.
42105         * soft-fp/fixdfsi.c: Likewise.
42106         * soft-fp/fixdfti.c: Likewise.
42107         * soft-fp/fixsfdi.c: Likewise.
42108         * soft-fp/fixsfsi.c: Likewise.
42109         * soft-fp/fixsfti.c: Likewise.
42110         * soft-fp/fixtfdi.c: Likewise.
42111         * soft-fp/fixtfsi.c: Likewise.
42112         * soft-fp/fixtfti.c: Likewise.
42113         * soft-fp/fixunsdfdi.c: Likewise.
42114         * soft-fp/fixunsdfsi.c: Likewise.
42115         * soft-fp/fixunsdfti.c: Likewise.
42116         * soft-fp/fixunssfdi.c: Likewise.
42117         * soft-fp/fixunssfsi.c: Likewise.
42118         * soft-fp/fixunssfti.c: Likewise.
42119         * soft-fp/fixunstfdi.c: Likewise.
42120         * soft-fp/fixunstfsi.c: Likewise.
42121         * soft-fp/fixunstfti.c: Likewise.
42122         * soft-fp/floatdidf.c: Likewise.
42123         * soft-fp/floatdisf.c: Likewise.
42124         * soft-fp/floatditf.c: Likewise.
42125         * soft-fp/floatsidf.c: Likewise.
42126         * soft-fp/floatsisf.c: Likewise.
42127         * soft-fp/floatsitf.c: Likewise.
42128         * soft-fp/floattidf.c: Likewise.
42129         * soft-fp/floattisf.c: Likewise.
42130         * soft-fp/floattitf.c: Likewise.
42131         * soft-fp/floatundidf.c: Likewise.
42132         * soft-fp/floatundisf.c: Likewise.
42133         * soft-fp/floatunditf.c: Likewise.
42134         * soft-fp/floatunsidf.c: Likewise.
42135         * soft-fp/floatunsisf.c: Likewise.
42136         * soft-fp/floatunsitf.c: Likewise.
42137         * soft-fp/floatuntidf.c: Likewise.
42138         * soft-fp/floatuntisf.c: Likewise.
42139         * soft-fp/floatuntitf.c: Likewise.
42140         * soft-fp/fmadf4.c: Likewise.
42141         * soft-fp/fmasf4.c: Likewise.
42142         * soft-fp/fmatf4.c: Likewise.
42143         * soft-fp/gedf2.c: Likewise.
42144         * soft-fp/gesf2.c: Likewise.
42145         * soft-fp/getf2.c: Likewise.
42146         * soft-fp/ledf2.c: Likewise.
42147         * soft-fp/lesf2.c: Likewise.
42148         * soft-fp/letf2.c: Likewise.
42149         * soft-fp/muldf3.c: Likewise.
42150         * soft-fp/mulsf3.c: Likewise.
42151         * soft-fp/multf3.c: Likewise.
42152         * soft-fp/negdf2.c: Likewise.
42153         * soft-fp/negsf2.c: Likewise.
42154         * soft-fp/negtf2.c: Likewise.
42155         * soft-fp/op-1.h: Likewise.
42156         * soft-fp/op-2.h: Likewise.
42157         * soft-fp/op-4.h: Likewise.
42158         * soft-fp/op-8.h: Likewise.
42159         * soft-fp/op-common.h: Likewise.
42160         * soft-fp/quad.h: Likewise.
42161         * soft-fp/single.h: Likewise.
42162         * soft-fp/soft-fp.h: Likewise.
42163         * soft-fp/sqrtdf2.c: Likewise.
42164         * soft-fp/sqrtsf2.c: Likewise.
42165         * soft-fp/sqrttf2.c: Likewise.
42166         * soft-fp/subdf3.c: Likewise.
42167         * soft-fp/subsf3.c: Likewise.
42168         * soft-fp/subtf3.c: Likewise.
42169         * soft-fp/truncdfsf2.c: Likewise.
42170         * soft-fp/trunctfdf2.c: Likewise.
42171         * soft-fp/trunctfsf2.c: Likewise.
42172         * soft-fp/trunctfxf2.c: Likewise.
42173         * soft-fp/unorddf2.c: Likewise.
42174         * soft-fp/unordsf2.c: Likewise.
42175         * soft-fp/unordtf2.c: Likewise.
42176
42177 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42178
42179         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42180         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42181
42182 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42183
42184         * elf/dl-libc.c: Clear initfini list after freeing.
42185
42186 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42187
42188         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42189         * soft-fp/addsf3.c: Likewise.
42190         * soft-fp/addtf3.c: Likewise.
42191         * soft-fp/divdf3.c: Likewise.
42192         * soft-fp/divsf3.c: Likewise.
42193         * soft-fp/divtf3.c: Likewise.
42194         * soft-fp/double.h: Likewise.
42195         * soft-fp/eqdf2.c: Likewise.
42196         * soft-fp/eqsf2.c: Likewise.
42197         * soft-fp/eqtf2.c: Likewise.
42198         * soft-fp/extenddftf2.c: Likewise.
42199         * soft-fp/extended.h: Likewise.
42200         * soft-fp/extendsfdf2.c: Likewise.
42201         * soft-fp/extendsftf2.c: Likewise.
42202         * soft-fp/extendxftf2.c: Likewise.
42203         * soft-fp/fixdfdi.c: Likewise.
42204         * soft-fp/fixdfsi.c: Likewise.
42205         * soft-fp/fixdfti.c: Likewise.
42206         * soft-fp/fixsfdi.c: Likewise.
42207         * soft-fp/fixsfsi.c: Likewise.
42208         * soft-fp/fixsfti.c: Likewise.
42209         * soft-fp/fixtfdi.c: Likewise.
42210         * soft-fp/fixtfsi.c: Likewise.
42211         * soft-fp/fixtfti.c: Likewise.
42212         * soft-fp/fixunsdfdi.c: Likewise.
42213         * soft-fp/fixunsdfsi.c: Likewise.
42214         * soft-fp/fixunsdfti.c: Likewise.
42215         * soft-fp/fixunssfdi.c: Likewise.
42216         * soft-fp/fixunssfsi.c: Likewise.
42217         * soft-fp/fixunssfti.c: Likewise.
42218         * soft-fp/fixunstfdi.c: Likewise.
42219         * soft-fp/fixunstfsi.c: Likewise.
42220         * soft-fp/fixunstfti.c: Likewise.
42221         * soft-fp/floatdidf.c: Likewise.
42222         * soft-fp/floatdisf.c: Likewise.
42223         * soft-fp/floatditf.c: Likewise.
42224         * soft-fp/floatsidf.c: Likewise.
42225         * soft-fp/floatsisf.c: Likewise.
42226         * soft-fp/floatsitf.c: Likewise.
42227         * soft-fp/floattidf.c: Likewise.
42228         * soft-fp/floattisf.c: Likewise.
42229         * soft-fp/floattitf.c: Likewise.
42230         * soft-fp/floatundidf.c: Likewise.
42231         * soft-fp/floatundisf.c: Likewise.
42232         * soft-fp/floatunsidf.c: Likewise.
42233         * soft-fp/floatunsisf.c: Likewise.
42234         * soft-fp/floatuntidf.c: Likewise.
42235         * soft-fp/floatuntisf.c: Likewise.
42236         * soft-fp/floatuntitf.c: Likewise.
42237         * soft-fp/fmadf4.c: Likewise.
42238         * soft-fp/fmasf4.c: Likewise.
42239         * soft-fp/fmatf4.c: Likewise.
42240         * soft-fp/gedf2.c: Likewise.
42241         * soft-fp/gesf2.c: Likewise.
42242         * soft-fp/getf2.c: Likewise.
42243         * soft-fp/ledf2.c: Likewise.
42244         * soft-fp/lesf2.c: Likewise.
42245         * soft-fp/letf2.c: Likewise.
42246         * soft-fp/muldf3.c: Likewise.
42247         * soft-fp/mulsf3.c: Likewise.
42248         * soft-fp/multf3.c: Likewise.
42249         * soft-fp/negdf2.c: Likewise.
42250         * soft-fp/negsf2.c: Likewise.
42251         * soft-fp/negtf2.c: Likewise.
42252         * soft-fp/op-1.h: Likewise.
42253         * soft-fp/op-2.h: Likewise.
42254         * soft-fp/op-4.h: Likewise.
42255         * soft-fp/op-8.h: Likewise.
42256         * soft-fp/op-common.h: Likewise.
42257         * soft-fp/quad.h: Likewise.
42258         * soft-fp/single.h: Likewise.
42259         * soft-fp/soft-fp.h: Likewise.
42260         * soft-fp/sqrtdf2.c: Likewise.
42261         * soft-fp/sqrtsf2.c: Likewise.
42262         * soft-fp/sqrttf2.c: Likewise.
42263         * soft-fp/subdf3.c: Likewise.
42264         * soft-fp/subsf3.c: Likewise.
42265         * soft-fp/subtf3.c: Likewise.
42266         * soft-fp/truncdfsf2.c: Likewise.
42267         * soft-fp/trunctfdf2.c: Likewise.
42268         * soft-fp/trunctfsf2.c: Likewise.
42269         * soft-fp/trunctfxf2.c: Likewise.
42270         * soft-fp/unorddf2.c: Likewise.
42271         * soft-fp/unordsf2.c: Likewise.
42272         * soft-fp/unordtf2.c: Likewise.
42273
42274 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42275
42276         [BZ #15672]
42277         * misc/error.c (error_tail): Fix possible buffer overflow.
42278
42279 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42280
42281         [BZ #13028]
42282         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42283         address.
42284
42285 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42286
42287         [BZ #832]
42288         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42289         testing pipefail option.
42290
42291 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42292
42293         * soft-fp/double.h: Indent preprocessor directives inside #if.
42294         * soft-fp/extended.h: Likewise.
42295         * soft-fp/op-2.h: Likewise.
42296         * soft-fp/op-4.h: Likewise.
42297         * soft-fp/op-common.h: Likewise.
42298         * soft-fp/quad.h: Likewise.
42299         * soft-fp/single.h: Likewise.
42300         * soft-fp/soft-fp.h: Likewise.
42301
42302 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42303
42304         * iconv/iconv_prog.c: Fix typos.
42305         * stdio-common/psiginfo-data.h: Likewise.
42306
42307 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42308
42309         [BZ #15764]
42310         * locale/setlocale.c: Fix typo.
42311
42312 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42313
42314         [BZ #16036]
42315         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42316         signaling NaN arguments.
42317         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42318         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42319
42320         [BZ #14910]
42321         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42322         unordered operands.
42323         * soft-fp/gesf2.c (__gesf2): Likewise.
42324         * soft-fp/getf2.c (__getf2): Likewise.
42325         * soft-fp/ledf2.c (__ledf2): Likewise.
42326         * soft-fp/lesf2.c (__lesf2): Likewise.
42327         * soft-fp/letf2.c (__letf2): Likewise.
42328
42329         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42330         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42331         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42332         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42333         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42334         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42335         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42336         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42337         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42338         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42339         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42340         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42341         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42342         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42343         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42344         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42345         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42346         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42347         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42348         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42349         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42350         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42351         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42352         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42353         * soft-fp/floattidf.c (__floattidf): Likewise.
42354         * soft-fp/floattisf.c (__floattisf): Likewise.
42355         * soft-fp/floattitf.c (__floattitf): Likewise.
42356         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42357         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42358         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42359         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42360         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42361         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42362         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42363         * soft-fp/gesf2.c (__gesf2): Likewise.
42364         * soft-fp/getf2.c (__getf2): Likewise.
42365         * soft-fp/ledf2.c (__ledf2): Likewise.
42366         * soft-fp/lesf2.c (__lesf2): Likewise.
42367         * soft-fp/letf2.c (__letf2): Likewise.
42368
42369         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42370         Undefine and redefine.
42371         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42372         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42373         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42374         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42375         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42376         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42377         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42378         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42379         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42380         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42381         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42382         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42383         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42384         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42385         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42386
42387         [BZ #16032]
42388         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42389         without decrementing exponent if mantissa >= that for the
42390         denominator, not >.
42391         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42392         denominator, not >.  Decrement exponent in < case instead of
42393         incrementing in >= case.
42394         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42395         without decrementing exponent if mantissa >= that for the
42396         denominator, not >.
42397
42398         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42399         computing saturated result for unsigned overflow.
42400
42401 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42402             Jeff Law  <law@redhat.com>
42403
42404         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42405         (atan2Mp): Add systemtap probe marker.
42406         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42407         (__ieee754_log): Add systemtap probe marker.
42408         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42409         (atanMp): Add systemtap probe marker.
42410         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42411         (tanMp): Add systemtap probe marker.
42412         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42413         (__slowexp): Add systemtap probe marker.
42414         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42415         (__slowpow): Add systemtap probe marker.
42416         * manual/probes.texi: Document probes.
42417
42418 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42419
42420         [BZ #15362]
42421         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42422         written.
42423         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42424         written.
42425         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42426         written to buffer but not flushed.
42427         * libio/iofwrite_u.c:  Likewise.
42428         * libio/iopadn.c:  Return bytes returned even if EOF was
42429         encountered.
42430         * libio/iowpadn.c:  Likewise.
42431         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42432         if _IO_padn does not write the whole buffer.
42433         [!COMPILE_WPRINTF] (PAD): Likewise.
42434
42435 2013-10-10  David S. Miller  <davem@davemloft.net>
42436
42437         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42438         directory block.
42439
42440 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42441
42442         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42443         instead of FSF address.
42444         * soft-fp/fixdfti.c: Likewise.
42445         * soft-fp/fixsfti.c: Likewise.
42446         * soft-fp/fixtfti.c: Likewise.
42447         * soft-fp/fixunsdfti.c: Likewise.
42448         * soft-fp/fixunssfti.c: Likewise.
42449         * soft-fp/fixunstfti.c: Likewise.
42450         * soft-fp/floattidf.c: Likewise.
42451         * soft-fp/floattisf.c: Likewise.
42452         * soft-fp/floattitf.c: Likewise.
42453         * soft-fp/floatuntidf.c: Likewise.
42454         * soft-fp/floatuntisf.c: Likewise.
42455         * soft-fp/floatuntitf.c: Likewise.
42456         * soft-fp/trunctfxf2.c: Likewise.
42457
42458         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42459         * soft-fp/fixdfti.c: Likewise.
42460         * soft-fp/fixsfti.c: Likewise.
42461         * soft-fp/fixtfti.c: Likewise.
42462         * soft-fp/fixunsdfti.c: Likewise.
42463         * soft-fp/fixunssfti.c: Likewise.
42464         * soft-fp/fixunstfti.c: Likewise.
42465         * soft-fp/floattidf.c: Likewise.
42466         * soft-fp/floattisf.c: Likewise.
42467         * soft-fp/floattitf.c: Likewise.
42468         * soft-fp/floatuntidf.c: Likewise.
42469         * soft-fp/floatuntisf.c: Likewise.
42470         * soft-fp/floatuntitf.c: Likewise.
42471         * soft-fp/trunctfxf2.c: Likewise.
42472
42473 2013-10-10  David S. Miller  <davem@davemloft.net>
42474
42475         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42476
42477 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42478
42479         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42480         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42481         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42482         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42483         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42484         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42485         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42486
42487         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42488         for NaNs before doing comparisons on argument.
42489         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42490         Likewise.
42491
42492 2013-10-10  Will Newton  <will.newton@linaro.org>
42493
42494         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42495         passed to _int_memalign does not overflow.
42496
42497 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42498
42499         * scripts/bench.pl: Add include-sources directive.
42500         * benchtests/README: Update documentation.
42501
42502 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42503
42504         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42505         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42506         instead of FP_INIT_ROUNDMODE.
42507         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42508         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42509
42510         [BZ #16034]
42511         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42512         copy class of input value.
42513         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42514         not handle exceptions.
42515         * soft-fp/negsf2.c (__negsf2): Likewise.
42516         * soft-fp/negtf2.c (__negtf2): Likewise.
42517         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42518
42519 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42520
42521         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42522         semicolon.  From Linux kernel.
42523
42524 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42525
42526         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42527
42528 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42529
42530         [BZ #156]
42531         * manual/socket.texi: Added statement about buffer
42532         for gethostbyname2_r.
42533
42534 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42535
42536         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42537         Use .p2align directive instead, throughout.
42538         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42539         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42540         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42541         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42542         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42543         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42544         * sysdeps/x86_64/strchr.S: Likewise.
42545         * sysdeps/x86_64/strrchr.S: Likewise.
42546
42547 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42548
42549         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42550
42551         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
42552
42553         * sysdeps/generic/math_private.h (__mpsin1): Remove
42554         declaration.
42555         (__mpcos1): Likewise.
42556         (__mpsin): New argument __range_reduce.
42557         (__mpcos): Likewise.
42558         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42559         (slow): Use __mpsin and __mpcos.
42560         (slow1): Likewise.
42561         (slow2): Likewise.
42562         (sloww): Likewise.
42563         (sloww1): Likewise.
42564         (sloww2): Likewise.
42565         (bsloww): Likewise.
42566         (bsloww1): Likewise.
42567         (bsloww2): Likewise.
42568         (cslow2): Likewise.
42569         (csloww): Likewise.
42570         (csloww1): Likewise.
42571         (csloww2): Likewise.
42572         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
42573         range_reduce.  Merge in __mpsin1.
42574         (__mpcos): Likewise.
42575         (__mpsin1): Remove.
42576         (__mpcos1): Likewise.
42577
42578 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
42579
42580         * locale/loadlocale.c (_nl_intern_locale_data): Use
42581         LOCFILE_ALIGNED_P.
42582         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
42583         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
42584         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
42585         obstack data is appropriately aligned.
42586         (obstack_int32_grow_fast): Likewise.
42587         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
42588         * locale/programs/locfile.c (add_locale_uint32): Likewise.
42589         (add_locale_uint32_array): Likewise.
42590
42591 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
42592
42593         * benchtests/Makefile: Remove ARGLIST and RET variables.
42594         ($(objpfx)bench-%.c): Pass only function name to the script.
42595         * benchtests/README: Update documentation.
42596         * benchtests/acos-inputs: Add new directives.
42597         * benchtests/acosh-inputs: Likewise.
42598         * benchtests/asin-inputs: Likewise.
42599         * benchtests/asinh-inputs: Likewise.
42600         * benchtests/atan-inputs: Likewise.
42601         * benchtests/atanh-inputs: Likewise.
42602         * benchtests/cos-inputs: Likewise.
42603         * benchtests/cosh-inputs: Likewise.
42604         * benchtests/exp-inputs: Likewise.
42605         * benchtests/log-inputs: Likewise.
42606         * benchtests/pow-inputs: Likewise.
42607         * benchtests/rint-inputs: Likewise.
42608         * benchtests/sin-inputs: Likewise.
42609         * benchtests/sinh-inputs: Likewise.
42610         * benchtests/tan-inputs: Likewise.
42611         * benchtests/tanh-inputs: Likewise.
42612         * scripts/bench.pl: Add support for new directives.
42613
42614 2013-10-07  Alan Modra  <amodra@gmail.com>
42615
42616         * README: Fix careless merge.
42617
42618 2013-10-05  Alan Modra  <amodra@gmail.com>
42619
42620         * NEWS: Mention powerpc64le support and bugs fixed.
42621         * README: Both big-endian and little-endian powerpc64 supported.
42622
42623 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42624
42625         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
42626         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
42627         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
42628         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
42629
42630 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
42631
42632         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
42633         match prototype.
42634
42635 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
42636
42637         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
42638         Move -mhard-float appending from
42639         ports/sysdeps/powerpc/powerpc32/Makefile.
42640         [$(with-fp) = yes] (ASFLAGS): Likewise.
42641         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
42642         * sysdeps/powerpc/nofpu: Move directory from
42643         ports/sysdeps/powerpc/nofpu.
42644         * sysdeps/powerpc/soft-fp: Move directory from
42645         ports/sysdeps/powerpc/soft-fp.
42646         * sysdeps/powerpc/powerpc32/405: Move directory from
42647         ports/sysdeps/powerpc/powerpc32/405.
42648         * sysdeps/powerpc/powerpc32/440: Move directory from
42649         ports/sysdeps/powerpc/powerpc32/440.
42650         * sysdeps/powerpc/powerpc32/464: Move directory from
42651         ports/sysdeps/powerpc/powerpc32/464.
42652         * sysdeps/powerpc/powerpc32/476: Move directory from
42653         ports/sysdeps/powerpc/powerpc32/476.
42654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
42655         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
42656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
42657         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
42658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
42659         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
42660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
42661         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
42662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
42663         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
42664         * README: Update for powerpc-*-linux-gnu software floating point
42665         support in libc.
42666
42667         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
42668         case to powerpc/powerpc32*.
42669         * sysdeps/unix/sysv/linux/configure: Regenerated.
42670
42671         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
42672         (_FPU_MASK_OM): Define as 0x04.
42673         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
42674         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
42675         0x00c10080.
42676         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
42677         0x0000003c.
42678         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
42679
42680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
42681         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42682         getcontext_e500.
42683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
42684         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42685         setcontext_e500.
42686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
42687         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
42688         and setcontext_e500.
42689
42690 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
42691
42692         * locale/iso-3166.def: Update iso-1366.def and related occurrences
42693
42694 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42695
42696         * manual/threads.texi (Default Thread Attributes): Fix typo.
42697
42698 2013-10-04  Will Newton  <will.newton@linaro.org>
42699
42700         * malloc/Makefile: Add tst-memalign.
42701         * malloc/tst-memalign.c: New file.
42702
42703         * malloc/tst-posix_memalign.c: Add comments.
42704         (do_test): Add comments and call free on all potentially
42705         allocated pointers. Add space after cast.
42706
42707         * malloc/tst-pvalloc.c: Add comments.
42708         (do_test): Add comments and call free on all potentially
42709         allocated pointers. Remove duplicate check for NULL pointer.
42710         Add space after cast.
42711
42712         * malloc/tst-valloc.c: Add comments.
42713         (do_test): Add comments and call free on all potentially
42714         allocated pointers. Remove duplicate check for NULL pointer.
42715         Add space after cast.
42716
42717 2013-10-04  Alan Modra  <amodra@gmail.com>
42718
42719         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42720         Use stdint types in rather than __attribute__((mode())).
42721         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42722
42723 2013-10-04  Alan Modra  <amodra@gmail.com>
42724
42725         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42726         Correct handling of unaligned relocs for little-endian.
42727         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42728
42729 2013-10-04  Alan Modra  <amodra@gmail.com>
42730
42731         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
42732         * configure: Regenerate.
42733         * nptl/shlib-versions: Powerpc*le starts at 2.18.
42734         * shlib-versions: Likewise.
42735
42736 2013-10-04  Alan Modra  <amodra@gmail.com>
42737
42738         * string/tester.c (test_memrchr): Increment reported test cycle.
42739
42740 2013-10-04  Alan Modra  <amodra@gmail.com>
42741
42742         * string/test-memcpy.c (do_one_test): When reporting errors, print
42743         string address and don't overrun end of string.
42744
42745 2013-10-04  Alan Modra  <amodra@gmail.com>
42746
42747         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
42748         insrdi.  Make better use of reg selection to speed exit slightly.
42749         Schedule entry path a little better.  Remove useless "are we done"
42750         checks on entry to main loop.  Handle wrapping around zero address.
42751         Correct main loop count.  Handle single left-over word from main
42752         loop inline rather than by using loop_small.  Remove extra word
42753         case in loop_small caused by wrong loop count.  Add little-endian
42754         support.
42755         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
42756         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
42757         cache hint.
42758         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
42759         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
42760         support.  Avoid rlwimi.
42761         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
42762
42763 2013-10-04  Alan Modra  <amodra@gmail.com>
42764
42765         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
42766         insrdi.  Formatting.
42767         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
42768         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
42769         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
42770         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
42771         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
42772         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
42773
42774 2013-10-04  Alan Modra  <amodra@gmail.com>
42775
42776         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
42777         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
42778         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
42779         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
42780         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
42781         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
42782         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
42783         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42784         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
42785         use of regs.  Use power7 mtocrf.  Tidy function tails.
42786
42787 2013-10-04  Alan Modra  <amodra@gmail.com>
42788
42789         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
42790         Formatting.  Consistently use rXXX register defines or rN defines.
42791         Use early exit labels that avoid restoring unused non-volatile regs.
42792         Make cr field use more consistent with rWORDn compares.  Rename
42793         regs used as shift registers for unaligned loop, using rN defines
42794         for short lifetime/multiple use regs.
42795         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
42796         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
42797         addi 1,1,64 to pop stack frame.  Simplify return value code.
42798         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
42799
42800 2013-10-04  Alan Modra  <amodra@gmail.com>
42801
42802         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
42803         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
42804         rather than rlwimi.
42805         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
42806         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
42807         little-endian support.  Correct typos.
42808         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
42809         rather than rlwimi.
42810         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
42811         in loop and entry code to keep "and." results.
42812         (strchr): Add little-endian support.  Comment.  Move cntlzd
42813         earlier in tail.
42814         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
42815
42816 2013-10-04  Alan Modra  <amodra@gmail.com>
42817
42818         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
42819         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
42820         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
42821         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
42822
42823 2013-10-04  Alan Modra  <amodra@gmail.com>
42824
42825         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
42826         (rTMP): Define as r11.
42827         (strcmp): Add little-endian support.  Optimise tail.
42828         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
42829         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
42830         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
42831         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
42832         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
42833         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42834         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
42835
42836 2013-10-04  Alan Modra  <amodra@gmail.com>
42837
42838         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
42839         little-endian support.  Remove unnecessary "are we done" tests.
42840         Handle "s" wrapping around zero and extremely large "size".
42841         Correct main loop count.  Handle single left-over word from main
42842         loop inline rather than by using small_loop.  Correct comments.
42843         Delete "zero" tail, use "end_max" instead.
42844         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
42845
42846 2013-10-04  Alan Modra  <amodra@gmail.com>
42847
42848         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
42849         support.  Don't branch over align.
42850         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
42851         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
42852         support.  Rearrange tmp reg use to suit.  Comment.
42853         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
42854
42855 2013-10-04  Alan Modra  <amodra@gmail.com>
42856
42857         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
42858
42859 2013-10-04  Alan Modra  <amodra@gmail.com>
42860
42861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
42862         conditional form of branch and link when obtaining pc.
42863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
42864
42865 2013-10-04  Alan Modra  <amodra@gmail.com>
42866
42867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
42868         HIWORD/LOWORD.
42869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
42870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
42871
42872 2013-10-04  Alan Modra  <amodra@gmail.com>
42873
42874         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
42875         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
42876         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
42877         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
42878         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
42879         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
42880         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
42881         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
42882         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
42883         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
42884
42885 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42886             Alistair Popple <alistair@ozlabs.au.ibm.com>
42887             Alan Modra <amodra@gmail.com>
42888
42889         [BZ #15723]
42890         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
42891         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
42892         _dl_hwcap access for little-endian.
42893         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
42894         destroy vmx regs when saving unaligned.
42895         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
42896         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
42897         destroy vmx regs when saving unaligned.
42898
42899 2013-10-04  Alan Modra  <amodra@gmail.com>
42900
42901         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
42902         Don't use a union to pack hi/low value.
42903
42904 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42905
42906         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
42907         for little-endian.
42908         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
42909         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
42910         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
42911         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
42912         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
42913
42914 2013-10-04  Alan Modra  <amodra@gmail.com>
42915
42916         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
42917         constants to usual value for .cst8 section, and remove redundant
42918         high address load.
42919         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
42920         constant for 0x1p52.  Load little-endian words of double from
42921         correct stack offsets.
42922
42923 2013-10-04  Alan Modra  <amodra@gmail.com>
42924
42925         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
42926         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
42927         words of double from correct stack offsets.
42928         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
42929         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
42930         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
42931         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
42932         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
42933         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
42934         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
42935         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
42936         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
42937         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
42938         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
42939         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
42940         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
42941         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
42942         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
42943         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
42944         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
42945
42946 2013-10-04  Alan Modra  <amodra@gmail.com>
42947
42948         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
42949         64-bit int/double union.
42950         (_FPU_SETCW): Likewise.
42951         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
42952         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
42953
42954 2013-10-04  Alan Modra  <amodra@gmail.com>
42955
42956         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
42957         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
42958
42959 2013-10-04  Alan Modra  <amodra@gmail.com>
42960
42961         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
42962         use vector int constants.
42963         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
42964
42965 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42966
42967         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
42968         array with long long.
42969         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
42970         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
42971         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
42972         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
42973         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
42974         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
42975         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
42976         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
42977         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
42978         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
42979         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
42980         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
42981         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
42982
42983 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42984
42985         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
42986         (__signbit): Likewise.  Correct for little-endian.
42987         (__signbitl): Call __signbit.
42988         (lrint): Correct for little-endian.
42989         (lrintf): Call lrint.
42990
42991 2013-10-04  Alan Modra  <amodra@gmail.com>
42992
42993         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
42994         union 32-bit int array member with 64-bit int array.
42995         (t515, tm256): Double rather than long double.
42996         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
42997
42998 2013-10-04  Alan Modra  <amodra@gmail.com>
42999
43000         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43001         Delete.
43002         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43003         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43004         version of math_ldbl.h.
43005
43006 2013-10-04  Alan Modra  <amodra@gmail.com>
43007
43008         [BZ #15734], [BZ #15735]
43009         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43010         all uses of ieee875 long double macros and unions.  Simplify test
43011         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43012         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43013         normalize after ldbl_extract_mantissa, and don't add hidden bit
43014         already handled.  Don't treat low word of ieee854 mantissa like
43015         low word of IBM long double and mask off bit when testing for
43016         zero.
43017         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43018         all uses of ieee875 long double macros and unions.  Simplify tests
43019         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43020         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43021         two1022, instead use their values.  Recognise that tests for large
43022         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43023         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43024         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43025         test for 0.0L and nan.  Correct negation.
43026         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43027         ieee875 long double macros and unions.  Correct output for large
43028         magnitude x.  Correct absolute value calculation.
43029         (__erfcl): Likewise.
43030         * math/libm-test.inc: Add tests for errors discovered in IBM long
43031         double versions of fmodl, remainderl, erfl and erfcl.
43032
43033 2013-10-04  Alan Modra  <amodra@gmail.com>
43034
43035         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43036         all uses of ieee854 long double macros and unions.  Simplify tests
43037         for long doubles that are fully specified by the high double.
43038         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43039         Likewise.
43040         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43041         Remove dead code too.
43042         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43043         (__ieee754_ynl): Likewise.
43044         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43045         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43046         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43047         Remove dead code too.
43048         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43049         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43050         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43051         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43052         Simplify.
43053         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43054         Simplify.
43055         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43056         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43057         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43058         Comment on variable precision.
43059         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43060         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43061         Likewise.
43062         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43063         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43064         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43065         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43066         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43067
43068 2013-10-04  Alan Modra  <amodra@gmail.com>
43069
43070         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43071         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43072         all uses of ieee854 long double macros and unions.
43073         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43074         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43075         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43076         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43077         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43078         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43079         Likewise.
43080         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43081         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43082         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43083         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43084         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43085         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43086         Simplify sign and nan test too.
43087         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43088         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43089         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43090         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43091         Likewise.
43092         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43093         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43094         Likewise.
43095         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43096         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43097         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43098         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43099         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43100         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43101
43102 2013-10-04  Alan Modra  <amodra@gmail.com>
43103
43104         * stdio-common/printf_size.c (__printf_size): Don't use
43105         union ieee854_long_double in fpnum union.
43106         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43107         signbit macro to retrieve sign from long double.
43108         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43109         retrieve sign from long double.
43110         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43111         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43112         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43113         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43114         * math/test-misc.c (main): Don't use union ieee854_long_double.
43115
43116 2013-10-04  Alan Modra  <amodra@gmail.com>
43117
43118         [BZ #15680]
43119         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43120         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43121         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43122         calculation.  Remove unnecessary test for denormal exponent.
43123         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43124         Correct handling of denormals.  Avoid undefined shift behaviour.
43125         Correct normalisation of low mantissa when low double is denormal.
43126         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43127         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43128         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43129         Correct normalisation of low mantissa.  Test for overflow of high
43130         mantissa and normalise.
43131         (ldbl_nearbyint): Use more readable constant for two52.
43132         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43133         (__mpn_construct_long_double): Fix test for overflow of high
43134         mantissa and correct normalisation.  Avoid undefined shift.
43135
43136 2013-10-04  Alan Modra  <amodra@gmail.com>
43137
43138         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43139         (union ibm_extended_long_double): Define as an array of ieee754_double.
43140         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43141         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43142         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43143         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43144         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43145         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43146         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43147         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43148         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43149         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43150         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43151
43152 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43153
43154         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43155         page size instead of calling getpagesize.
43156
43157         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43158         (LOCFILE_ALIGN_MASK): Likewise.
43159         (LOCFILE_ALIGN_UP): Likewise.
43160         (LOCFILE_ALIGNED_P): Likewise.
43161         * locale/programs/ld-collate.c (collate_output): Use the new
43162         macros instead of __alignof__ (int32_t).
43163         * locale/weight.h (findidx): Likewise.
43164
43165 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43166
43167         [BZ #431]
43168         * manual/string.texi: Fix strncat and wcsncat.
43169
43170 2013-10-03  Brooks Moses  <bmoses@google.com>
43171
43172         [BZ #15915]
43173         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43174         * Makerules: ...here, and adjust associated comments.
43175
43176 2013-10-02  Will Newton  <will.newton@linaro.org>
43177
43178         * malloc/Makefile: Add tst-pvalloc.
43179         * malloc/tst-pvalloc.c: New file.
43180
43181 2013-10-02  Will Newton  <will.newton@linaro.org>
43182
43183         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43184         improve test coverage.
43185
43186 2013-10-02  Will Newton  <will.newton@linaro.org>
43187
43188         * malloc/Makefile: Add tst-posix_memalign.
43189         * malloc/tst-posix_memalign.c: New file.
43190
43191 2013-10-01  Eric Blake  <eblake@redhat.com>
43192
43193         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43194         Use __THROWNL rather than __THROW on static functions.
43195
43196 2013-09-30  Petr Machata  <pmachata@redhat.com>
43197
43198         * elf/elf.h (R_AARCH64_ABS16): New macro.
43199         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43200         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43201         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43202         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43203         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43204         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43205         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43206         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43207         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43208         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43209         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43210         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43211         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43212         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43213         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43214         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43215         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43216         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43217         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43218         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43219         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43220         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43221         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43222         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43223         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43224         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43225         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43226         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43227         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43228         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43229         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43230         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43231         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43232         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43233         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43234         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43235         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43236         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43237         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43238         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43239         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43240         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43241         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43242         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43243         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43244         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43245         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43246         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43247         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43248         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43249         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43250         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43251         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43252         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43253         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43254         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43255         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43256         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43257         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43258         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43259         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43260         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43261         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43262         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43263         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43264         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43265         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43266         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43267         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43268         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43269         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43270         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43271         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43272         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43273         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43274         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43275         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43276         (R_AARCH64_TLSDESC_LDR): Likewise.
43277         (R_AARCH64_TLSDESC_ADD): Likewise.
43278         (R_AARCH64_TLSDESC_CALL): Likewise.
43279
43280 2013-09-30  Andreas Schwab  <schwab@suse.de>
43281
43282         [BZ #15048]
43283         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43284         the nss database lookup.
43285         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43286         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43287
43288 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43289
43290         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43291
43292 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43293
43294         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43295         ${Bash-specific parameter/pattern/string} parameter expansion.
43296         * sysdeps/unix/make-syscalls.sh: Likewise.
43297
43298 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43299
43300         * sysdeps/sh/stackguard-macros.h: New file.
43301
43302 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43303
43304         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43305         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43306         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43307         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43308         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43309         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43310
43311 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43312
43313         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43314         Fix thread ID register.
43315
43316 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43317
43318         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43319         [POSIX || UNIX98]: Require rather than permitting all symbols from
43320         <time.h>.
43321         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43322         element of struct sched_param.
43323         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43324         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43325         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43326         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43327         constant.
43328
43329 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43330
43331         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43332         argument calculation.
43333
43334 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43335
43336         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43337         Expect macro.
43338         [POSIX] (pthread_attr_t): Do not require type.
43339         [POSIX] (pthread_cond_t): Likewise.
43340         [POSIX] (pthread_condattr_t): Likewise.
43341         [POSIX] (pthread_key_t): Likewise.
43342         [POSIX] (pthread_mutex_t): Likewise.
43343         [POSIX] (pthread_mutexattr_t): Likewise.
43344         [POSIX] (pthread_once_t): Likewise.
43345         [POSIX] (pthread_t): Likewise.
43346         [POSIX-based standards] (pthread_atfork): Expect function.
43347
43348 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43349             Richard Sandiford  <richard@codesourcery.com>
43350
43351         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43352         (swap_endianness_p): New extern variable.
43353         (set_big_endian): New inline function.
43354         (maybe_swap_uint32): Likewise.
43355         (maybe_swap_uint32_array): Likewise.
43356         (maybe_swap_uint32_obstack): Likewise.
43357         * locale/programs/locfile.c: Include <stdbool.h>.
43358         (swap_endianness_p): New variable.
43359         (add_locale_uint32): Call maybe_swap_uint32.
43360         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43361         (write_locale_data): Call maybe_swap_uint32_array.
43362         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43363         maybe_swap_uint32.
43364         (obstack_int32_grow_fast): Likewise.
43365         (output_weightwc): Call maybe_swap_uint32_obstack.
43366         (collate_output): Likewise.
43367         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43368         (OPT_LITTLE_ENDIAN): Likewise.
43369         (options): Add --little-endian and --big-endian options.
43370         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43371         * locale/programs/locarchive.c: Include "locfile.h".
43372         (GET): New macro.
43373         (SET): Likewise.
43374         (INC): Likewise.
43375         (create_archive): Use the new macros to access fields of
43376         structures directly mapped from or written to locale archives.
43377         (oldlocrecentcmp): Likewise.
43378         (enlarge_archive): Likewise.
43379         (insert_name): Likewise.
43380         (add_alias): Likewise.
43381         (add_locale): Likewise.
43382         (delete_locales_from_archive): Likewise.
43383         (show_archive_content): Likewise.
43384         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43385         locale data.
43386
43387 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43388
43389         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43390         http://www.gnu.org/doc/freemanuals.texi.
43391         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43392
43393 2013-09-24  Will Newton  <will.newton@linaro.org>
43394
43395         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43396         macro.
43397
43398 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43399
43400         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43401         unsigned char.
43402
43403 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43404
43405         * manual/threads.texi (POSIX Threads): Fix a typo.
43406
43407 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43408
43409         [BZ #14547]
43410         * string/tst-strcoll-overflow.c: New test case.
43411         * string/Makefile (xtests): Add tst-strcoll-overflow.
43412         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43413         cache if string sizes may cause integer overflow.
43414
43415         [BZ #14547]
43416         * string/strcoll_l.c (coll_seq): New members rule, idx,
43417         save_idx and back_us.
43418         (get_next_seq_nocache): New function.
43419         (do_compare_nocache): New function.
43420         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43421         when malloc fails.
43422
43423 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43424
43425         [BZ #15754]
43426         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43427         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43428         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43429
43430         [BZ #15754]
43431         * elf/Makefile (tests): Add tst-ptrguard1.
43432         (tests-static): Add tst-ptrguard1-static.
43433         (tst-ptrguard1-ARGS): Define.
43434         (tst-ptrguard1-static-ARGS): Define.
43435         * elf/tst-ptrguard1.c: New file.
43436         * elf/tst-ptrguard1-static.c: New file.
43437         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43438         * sysdeps/i386/stackguard-macros.h: Likewise.
43439         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43440         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43441         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43442         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43443         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43444         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43445
43446 2013-09-23  Hector Marco  <hecmargi@upv.es>
43447             Ismael Ripoll  <iripoll@disca.upv.es>
43448             Carlos O'Donell  <carlos@redhat.com>
43449
43450         [BZ #15754]
43451         * sysdeps/generic/stackguard-macros.h: Define
43452         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43453         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43454         Define __pointer_chk_guard_local.
43455         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43456         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43457
43458 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43459
43460         [BZ #15859]
43461         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43462
43463 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43464
43465         * include/string.h (__ffs): Declare as hidden.
43466         * string/ffs.c (__ffs): Define as hidden.
43467         * sysdeps/i386/ffs.c (__ffs): Likewise.
43468         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43469         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43470         * sysdeps/s390/ffs.c (__ffs): Likewise.
43471         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43472
43473 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43474
43475         * NEWS: Mention malloc probes.
43476
43477         * malloc/arena.c (new_heap): New memory_heap_new probe.
43478         (grow_heap): New memory_heap_more probe.
43479         (shrink_heap): New memory_heap_less probe.
43480         (heap_trim): New memory_heap_free probe.
43481         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43482         (systrim): New memory_sbrk_less probe.
43483         * manual/probes.texi: Document them.
43484
43485         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43486         * manual/probes.texi: Document it.
43487
43488         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43489         (__libc_realloc): Add memory_realloc_retry probe.
43490         (__libc_memalign): Add memory_memalign_retry probe.
43491         (__libc_valloc): Add memory_valloc_retry probe.
43492         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43493         (__libc_calloc): Add memory_calloc_retry probe.
43494         * manual/probes.texi: Document them.
43495
43496         * malloc/arena.c (get_free_list): Add probe
43497         memory_arena_reuse_free_list.
43498         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43499         and memory_arena_reuse.
43500         (arena_get2) [!PER_THREAD]: Likewise.
43501         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43502         memory_arena_reuse_realloc.
43503         * manual/probes.texi: Document them.
43504
43505         * malloc/malloc.c (__libc_free): Add
43506         memory_mallopt_free_dyn_thresholds probe.
43507         (__libc_mallopt): Add multiple memory_mallopt probes.
43508         * manual/probes.texi: Document them.
43509
43510         * malloc/malloc.c: Include stap-probe.h.
43511         (__libc_mallopt): Add memory_mallopt probe.
43512         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43513         * manual/probes.texi: New.
43514         * manual/Makefile (chapters): Add probes.
43515         * manual/threads.texi: Set next node.
43516
43517 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43518
43519         [BZ #15963, #13985]
43520         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43521         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43522         Add `Chinese' to `nan' entry name.
43523
43524 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43525
43526         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43527         (POLYNOMIAL): Likewise.
43528         (TAYLOR_SINCOS): Likewise.
43529         (TAYLOR_SLOW): Likewise.
43530         (__sin): Use TAYLOR_SINCOS.
43531         (__cos): Likewise.
43532         (slow): Use TAYLOR_SLOW.
43533         (sloww): Likewise.
43534         (bsloww): Likewise.
43535         (csloww): Likewise.
43536
43537 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43538
43539         * stdlib/strtod_l.c: Fix buffer overrun.
43540
43541 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43542
43543         * benchtests/Makefile (bench): Add sincos.
43544         * benchtests/bench-sincos.c: New file.
43545
43546         * math/libm-test.inc (cos_test_data): New test inputs.
43547         (sin_test_data): Likewise.
43548
43549         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43550         macro.
43551         (__sin): Use it.
43552         (__cos): Likewise.
43553         (slow1): Likewise.
43554         (slow2): Likewise.
43555         (sloww1): Likewise.
43556         (sloww2): Likewise.
43557         (bsloww1): Likewise.
43558         (bsloww2): Likewise.
43559         (cslow2): Likewise.
43560         (csloww1): Likewise.
43561         (csloww2): Likewise.
43562
43563         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
43564         function.
43565         (__sin): Use it.
43566         (__cos): Likewise.
43567
43568         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
43569         gotos.
43570         (__cos): Likewise.
43571
43572 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
43573
43574         * config.h.in (HAVE_MIPS_NAN2008): New macro.
43575         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
43576         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
43577         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
43578         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
43579         * elf/cache.c (print_entry): Handle the new cache flags.
43580
43581 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43582             Aldy Hernandez  <aldyh@redhat.com>
43583
43584         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
43585         Change condition to [_SOFT_FLOAT].
43586         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
43587         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
43588         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
43589         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
43590         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
43591         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
43592         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
43593         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
43594         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
43595         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
43596         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
43597         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
43598         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
43599         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
43600         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
43601         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
43602         declaration.
43603
43604 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43605
43606         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
43607         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43608         (__longjmp): Use LOAD_GP to load saved GPRs.
43609         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
43610         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43611         (__sigsetjmp): Use SAVE_GP to save GPRs.
43612
43613         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
43614         Do not append -msoft-float.
43615         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
43616
43617 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
43618
43619         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
43620
43621 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
43622
43623         [BZ #15966]
43624         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
43625         (_FPU_GETCW): Use initial "__" on variable and field names but not
43626         on macro parameter name.
43627         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
43628         parentheses around reference to macro parameter.
43629
43630 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
43631
43632         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
43633         prototype.
43634         (ctype_startup): Use uint32_t in cast and sizeof for
43635         ctype->charnames.
43636
43637 2013-09-11  Jia Liu  <proljc@gmail.com>
43638
43639         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
43640         __daddr_t_defined.
43641         [__FreeBSD__]: Likewise.
43642
43643 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
43644
43645         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
43646         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
43647         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
43648         (strchr): Remove __strchr_sse42 ifunc selection.
43649         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
43650         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
43651
43652 2013-09-11  Will Newton  <will.newton@linaro.org>
43653
43654         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
43655         parameter to RES. Remove hardcoded 1000 value.
43656         * benchtests/bench-skeleton.c (main): Pass RES parameter
43657         to TIMING_INIT and multiply result by 1000.
43658
43659 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43660
43661         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43662
43663 2013-09-11  Andreas Schwab  <schwab@suse.de>
43664
43665         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
43666         if not defined.
43667         (O_TMPFILE) [__USE_GNU]: Define.
43668         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
43669         Define.
43670
43671 2013-09-11  Will Newton  <will.newton@linaro.org>
43672
43673         [BZ #15857]
43674         * malloc/malloc.c (__libc_memalign): Check the value of bytes
43675         does not overflow.
43676
43677 2013-09-11  Will Newton  <will.newton@linaro.org>
43678
43679         [BZ #15856]
43680         * malloc/malloc.c (__libc_valloc): Check the value of bytes
43681         does not overflow.
43682
43683 2013-09-11  Will Newton  <will.newton@linaro.org>
43684
43685         [BZ #15855]
43686         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
43687         does not overflow.
43688
43689 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
43690
43691         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
43692         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
43693         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
43694         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
43695         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43696
43697 2013-09-10  Allan McRae  <allan@archlinux.org>
43698
43699         [BZ #15748]
43700         * manual/arith.texi (Parsing of Floats): Clarify
43701         cross-reference.
43702
43703         [BZ #15849]
43704         * manual/install.texi (Running make install): Mention
43705         --enable-pt-chown.
43706         * INSTALL: Regenerated.
43707
43708 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
43709
43710         * csu/init-first.c (_init): Remove the !SHARED condition around
43711         FPU control word initialization.
43712         * elf/dl-support.c (_dl_fpu_control): New variable.
43713         (_dl_aux_init) <AT_FPUCW>: Initialize it.
43714         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
43715         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
43716         * math/test-fpucw-static.c: New file.
43717         * math/test-fpucw-ieee.c: New file.
43718         * math/test-fpucw-ieee-static.c: New file.
43719         * math/Makefile (tests): Add `test-fpucw-ieee' and
43720         `$(tests-static)'.
43721         (tests-static): New variable.
43722         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
43723         dependency to...
43724         [($(build-shared),yes)]
43725         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
43726         ... this.
43727         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
43728         New dependency.
43729
43730 2013-09-09  Allan McRae  <allan@archlinux.org>
43731
43732         [BZ #15939]
43733         * manual/string.texi (Collation Functions): Fix typo in
43734         strcoll example.
43735         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
43736
43737         [BZ #15893]
43738         * stdlib/isomac.c (get_null_defines): Fix memory leak.
43739
43740         [BZ #15892]
43741         * libio/memstream.c (open_memstream): Fix memory leak.
43742         * libio/wmemstream.c (open_wmemstream): Likewise.
43743
43744         [BZ #15895]
43745         * nscd/netgroupcache.c: Fix nesting of ifdefs.
43746
43747 2013-09-09  Will Newton  <will.newton@linaro.org>
43748
43749         * malloc/Makefile: Add tst-realloc to tests.
43750         * malloc/tst-realloc.c: New file.
43751
43752 2013-09-09  Allan McRae  <allan@archlinux.org>
43753
43754         [BZ #15844]
43755         * COPYING: Update from GNU website to fix FSF address.
43756         * COPYING.LIB: Likewise.
43757
43758 2013-09-06  David S. Miller  <davem@davemloft.net>
43759
43760         * po/zh_TW.po: Update Chinese (traditional) translation from
43761         translation project.
43762
43763 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
43764             Joseph Myers  <joseph@codesourcery.com>
43765
43766         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
43767         "localeinfo.h".
43768         (obstack_chunk_alloc): New macro.
43769         (obstack_chunk_free): Likewise.
43770         (record_offset): New function.
43771         (init_locale_data): Likewise.
43772         (align_locale_data): Likewise.
43773         (add_locale_empty): Likewise.
43774         (add_locale_raw_data): Likewise.
43775         (add_locale_raw_obstack): Likewise.
43776         (add_locale_string): Likewise.
43777         (add_locale_wstring): Likewise.
43778         (add_locale_uint32): Likewise.
43779         (add_locale_uint32_array): Likewise.
43780         (add_locale_char): Likewise.
43781         (start_locale_structure): Likewise.
43782         (end_locale_structure): Likewise.
43783         (start_locale_prelude): Likewise.
43784         (end_locale_prelude): Likewise.
43785         (write_locale_data): Take locale_file structure rather than an
43786         iovec.
43787         * locale/programs/locfile.h: Include "obstack.h".
43788         (struct locale_file): Change to store locale file contents instead
43789         of header.
43790         (init_locale_data): New prototype.
43791         (align_locale_data): Likewise.
43792         (add_locale_empty): Likewise.
43793         (add_locale_raw_data): Likewise.
43794         (add_locale_raw_obstack): Likewise.
43795         (add_locale_string): Likewise.
43796         (add_locale_wstring): Likewise.
43797         (add_locale_uint32): Likewise.
43798         (add_locale_uint32_array): Likewise.
43799         (add_locale_char): Likewise.
43800         (start_locale_structure): Likewise.
43801         (end_locale_structure): Likewise.
43802         (start_locale_prelude): Likewise.
43803         (end_locale_prelude): Likewise.
43804         (write_locale_data): Update prototype.
43805         * locale/programs/3level.h (struct TABLE): Remove result field.
43806         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
43807         Use new locale_file interface.
43808         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
43809         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
43810         * locale/programs/ld-address.c (address_output): Use new
43811         locale_file interface.
43812         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
43813         NO_ADD_LOCALE.
43814         (collate_finish): Don't call collseq_table_finalize.
43815         (collate_output): Use new locale_file interface.
43816         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
43817         in file.
43818         (NO_FINALIZE): Change to NO_ADD_LOCALE.
43819         (TABLE): Move defines earlier in file.
43820         (ELEMENT): Likewise.
43821         (DEFAULT): Likewise.
43822         (wctrans_table_add): Move macro and inline function earlier in
43823         file.
43824         (struct wctype_table): Move type earlier in file.
43825         (add_locale_wctype_table): New static prototype.
43826         (struct locale_ctype_t): Use logical types instead of struct iovec
43827         pointers for members.
43828         (ctype_output): Use new locale_file interface.
43829         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
43830         new locale_file interface.
43831         (allocate_arrays): Update for use of new locale_file interface.
43832         * locale/programs/ld-identification.c (identification_output): Use
43833         new locale_file interface.
43834         * locale/programs/ld-measurement.c (measurement_output): Likewise.
43835         * locale/programs/ld-messages.c (messages_output): Likewise.
43836         * locale/programs/ld-monetary.c (monetary_output): Likewise.
43837         * locale/programs/ld-name.c (name_output): Likewise.
43838         * locale/programs/ld-numeric.c (numeric_output): Likewise.
43839         * locale/programs/ld-paper.c (paper_output): Likewise.
43840         * locale/programs/ld-telephone.c (telephone_output): Likewise.
43841         * locale/programs/ld-time.c (time_output): Likewise.
43842
43843 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43844
43845         * benchtests/Makefile: Add memrchr benchmark.
43846         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
43847         benchmark as memrchr.
43848         * benchtests/bench-memrchr-ifunc.c: New file.
43849         * benchtests/bench-memrchr.c: New file.
43850
43851 2013-09-06   Will Newton  <will.newton@linaro.org>
43852
43853         * benchtests/Makefile (string-bench): Add memcpy.
43854
43855 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
43856             Cong Wang  <amwang@redhat.com>
43857
43858         [BZ #15850]
43859         * sysdeps/unix/sysv/linux/bits/in.h
43860         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
43861         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
43862         before __USE_KERNEL_IPV6_DEFS uses.
43863         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
43864         IPPROTO_BEETPH.
43865         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
43866         sockaddr_in6, or ipv6_mreq.
43867
43868 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43869
43870         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
43871         memory access for final bytes in some large inputs.
43872         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
43873
43874 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43875
43876         * string/test-memrchr.c: New file.
43877         * string/test-memrchr-ifunc.c: New file.
43878         * string/Makefile: Add new memrchr testcase.
43879
43880 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
43881
43882         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
43883         fanotify_init returns EPERM.
43884
43885 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
43886
43887         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
43888         errors.
43889         (top level): Treat second token from macro or constant entries for
43890         allowed headers as allowed.
43891         * include/complex.h: Condition internal declarations on
43892         [!_ISOMAC].
43893         * include/fenv.h: Condition include of <stdbool.h> and internal
43894         declarations on [!_ISOMAC].
43895
43896 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
43897
43898         [BZ #15923]
43899         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
43900
43901 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
43902
43903         * configure.in (--enable-versioning): Remove configure option.
43904         (libc_cv_asm_symver_directive): Remove configure test.
43905         (libc_cv_ld_version_script_option): Likewise.
43906         (VERSIONING): Remove variable and AC_SUBST.
43907         (DO_VERSIONING): Remove AC_DEFINE.
43908         * configure: Regenerated.
43909         * config.h.in (DO_VERSIONING): Remove macro.
43910         * Makerules [$(versioning) = yes]: Change conditionals to
43911         [$(build-shared) = yes].
43912         * config.make.in (versioning): Remove variable.
43913         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
43914         [$(build-shared) = yes].
43915         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
43916         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
43917         * elf/Makefile [$(versioning) = yes]: Change conditionals to
43918         [$(build-shared) = yes].
43919         * extra-lib.mk [$(versioning) = yes]: Likewise.
43920         * hurd/Makefile [$(versioning) = yes]: Likewise.
43921         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
43922         [SHARED].
43923         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
43924         [SHARED].
43925         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
43926         [SHARED && !NO_HIDDEN].
43927         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
43928         [SHARED].
43929         [SHARED && DO_VERSIONING]: Likewise..
43930         * libio/Makefile [$(versioning) = yes]: Change conditionals to
43931         [$(build-shared) = yes].
43932         * manual/install.texi (--disable-versioning): Remove
43933         documentation.
43934         * INSTALL: Regenerated.
43935         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
43936         to [SHARED].
43937         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
43938         [$(build-shared) = yes].
43939         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
43940         * sysdeps/i386/i686/multiarch/strstr-c.c
43941         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
43942         [SHARED && !NO_HIDDEN].
43943         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
43944         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
43945         * sysdeps/powerpc/powerpc32/dl-machine.c
43946         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
43947         * sysdeps/powerpc/powerpc32/sysdep.h
43948         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
43949         to [SHARED && PIC && !NO_HIDDEN].
43950         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
43951         conditional to [SHARED].
43952
43953 2013-09-04   Will Newton  <will.newton@linaro.org>
43954
43955         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
43956         * benchtests/bench-string.h: Include bench-timing.h instead
43957         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
43958         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
43959         call to HP_TIMING_DIFF_INIT.
43960         * benchtests/bench-memccpy.c: Use bench-timing.h macros
43961         instead of hp-timing.h macros.
43962         * benchtests/bench-memchr.c: Likewise.
43963         * benchtests/bench-memcmp.c: Likewise.
43964         * benchtests/bench-memcpy.c: Likewise.
43965         * benchtests/bench-memmem.c: Likewise.
43966         * benchtests/bench-memmove.c: Likewise.
43967         * benchtests/bench-memset.c: Likewise.
43968         * benchtests/bench-rawmemchr.c: Likewise.
43969         * benchtests/bench-strcasecmp.c: Likewise.
43970         * benchtests/bench-strcasestr.c: Likewise.
43971         * benchtests/bench-strcat.c: Likewise.
43972         * benchtests/bench-strchr.c: Likewise.
43973         * benchtests/bench-strcmp.c: Likewise.
43974         * benchtests/bench-strcpy.c: Likewise.
43975         * benchtests/bench-strcpy_chk.c: Likewise.
43976         * benchtests/bench-strlen.c: Likewise.
43977         * benchtests/bench-strncasecmp.c: Likewise.
43978         * benchtests/bench-strncat.c: Likewise.
43979         * benchtests/bench-strncmp.c: Likewise.
43980         * benchtests/bench-strncpy.c: Likewise.
43981         * benchtests/bench-strnlen.c: Likewise.
43982         * benchtests/bench-strpbrk.c: Likewise.
43983         * benchtests/bench-strrchr.c: Likewise.
43984         * benchtests/bench-strspn.c: Likewise.
43985         * benchtests/bench-strstr.c: Likewise.
43986
43987 2013-09-04  Will Newton  <will.newton@linaro.org>
43988
43989         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
43990
43991 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
43992
43993         [BZ #15427]
43994         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
43995         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
43996         * math/libm-test.inc (lgamma_test_data): Add more tests.
43997         * sysdeps/i386/fpu/libm-test-ulps: Update.
43998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43999
44000 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44001
44002         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44003         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44004         Add ifunc.
44005         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44006         Add strcmp-sse2-unaligned
44007         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44008
44009 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44010
44011         * Versions.def (libc): Add GLIBC_2.19.
44012
44013 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44014
44015         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44016         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44017
44018 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44019
44020         [BZ #14155]
44021         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44022         intermediate calculations in recurrence.
44023         (__ieee754_ynf): Likewise.
44024         * math/libm-test.inc (jn_test_data): Do not allow spurious
44025         underflow exception.  Add more tests.
44026         (yn_test_data): Add more tests.
44027         * sysdeps/i386/fpu/libm-test-ulps: Update.
44028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44029
44030 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44031
44032         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44033
44034 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44035
44036         * csu/init-first.c: Fix then/than typos.
44037         * locale/programs/ld-collate.c: Likewise.
44038         * locale/programs/linereader.h: Likewise.
44039         * manual/charset.texi: Likewise.
44040         * manual/filesys.texi: Likewise.
44041         * manual/stdio.texi: Likewise.
44042         * manual/string.texi: Likewise.
44043         * stdlib/fmtmsg.c: Likewise.
44044         * sysdeps/i386/stpncpy.S: Likewise.
44045         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44046         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44047         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44048         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44049
44050 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44051
44052         * elf/dl-open.c: Fix typos.
44053         * iconvdata/gbbig5.c: Likewise.
44054         * iconvdata/iso-2022-jp.c: Likewise.
44055         * iconv/gconv_int.h: Likewise.
44056         * iconv/loop.c: Likewise.
44057         * nis/rpcsvc/nis.h: Likewise.
44058         * resolv/ns_name.c: Likewise.
44059         * stdio-common/vfscanf.c: Likewise.
44060         * streams/stropts.h: Likewise.
44061         * sunrpc/rpc_thread.c: Likewise.
44062         * sysdeps/i386/strpbrk.S: Likewise.
44063         * sysdeps/ieee754/k_standard.c: Likewise.
44064         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44065         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44066         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44067         * sysdeps/mach/hurd/profil.c: Likewise.
44068         * sysdeps/s390/dl-procinfo.h: Likewise.
44069         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44070         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44071         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44072         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44073         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44074
44075 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44076
44077         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44078         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44079
44080 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44081
44082         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44083         aix specific files.
44084         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44085         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44086         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44087         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44088         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44089         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44090         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44091         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44092
44093 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44094             Roland McGrath  <roland@hack.frob.com>
44095
44096         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44097         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44098
44099 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44100
44101         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44102         __executable_start symbol instead of _start.
44103
44104 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44105
44106         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44107         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44108         Move macros to...
44109         * sysdeps/gnu/ldsodefs.h: ... this new file.
44110
44111         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44112         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44113         instead of ELFOSABI_LINUX.
44114
44115         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44116         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44117         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44118         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44119         Likewise.
44120         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44121         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44122         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44123         Likewise.
44124         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44125         (ibm_extended_long_double): Add ieee_nan member.
44126         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44127         (do_test): New function.
44128
44129         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44130         TEST_TRUNC.
44131         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44132         functions, renamed from truncdfsf_test, trunctfsf_test,
44133         trunctfdf_test.
44134         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44135         functions.
44136         (do_test): Run all these.
44137
44138 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44139
44140         * argp/argp-help.c: Fix typos.
44141         * argp/argp-parse.c: Likewise.
44142         * debug/backtracesyms.c: Likewise.
44143         * elf/elf.h: Likewise.
44144         * malloc/malloc.c: Likewise.
44145         * nis/nis_print.c: Likewise.
44146         * resolv/res_comp.c: Likewise.
44147         * stdlib/stdlib.h: Likewise.
44148         * sunrpc/clnt_tcp.c: Likewise.
44149         * sunrpc/clnt_udp.c: Likewise.
44150         * sunrpc/clnt_unix.c: Likewise.
44151         * sysdeps/unix/bsd/ptsname.c: Likewise.
44152         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44153         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44155         Likewise.
44156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44157         Likewise.
44158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44159         Likewise.
44160         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44161
44162 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44163
44164         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44165         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44166
44167 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44168
44169         [BZ #15897]
44170         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44171         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44172         ($(objpfx)bug-dl-leaf): New rule.
44173         ($(objpfx)bug-dl-leaf.so): Likewise.
44174         ($(objpfx)bug-dl-leaf.out): Likewise.
44175         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44176         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44177         * dlfcn/bug-dl-leaf.c: New test.
44178         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44179         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44180         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44181         (dlclose): Likewise.
44182         (dlmopen): Likewise.
44183
44184 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44185
44186         * include/netdb.h [!_ISOMAC]:
44187         Don't include <tls.h>.
44188         (h_errno, __libc_h_errno): Move declaration and macros out of
44189         [_LIBC_REENTRANT].
44190
44191         * include/resolv.h [_RESOLV_H_]:
44192         Don't include <tls.h>.
44193         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44194         * resolv/res_libc.c: Don't include <tls.h>.
44195         (_res): Use __attribute__ ((nocommon)) in place of
44196         __attribute__ ((section (".bss"))).
44197
44198         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44199         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44200
44201         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44202
44203         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44204         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44205
44206         * resolv/res_mkquery.c: Include <sys/time.h>.
44207
44208         * inet/ifreq.c: Moved to ...
44209         * sysdeps/unix/ifreq.c: ... here.
44210         * inet/ifreq.c: New file, true stub version.
44211
44212         * socket/sa_len.c: New file.
44213         * socket/Makefile (aux): Add it.
44214         * sysdeps/unix/sysv/linux/Makefile
44215         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44216         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44217         and #include <socket/sa_len.c>.
44218         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44219         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44220
44221         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44222         * bits/socket.h: ... here.
44223
44224         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44225         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44226         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44227
44228 2013-08-27  Andreas Schwab  <schwab@suse.de>
44229
44230         [BZ #15736]
44231         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44232         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44233         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44234         * string/test-strcasecmp.c (test_main): Run tests in several
44235         locales.
44236         * string/test-strncasecmp.c (test_main): Likewise.
44237
44238         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44239         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44240         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44241         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44242         (__strncasecmp_ssse3) [PIC]: Likewise.
44243
44244 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44245
44246         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44247
44248         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44249         instead of explicitly declaring xdecrypt.
44250         * nis/nss_nis/nis-publickey.c: Likewise.
44251
44252 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44253
44254         [BZ #15890]
44255         * nscd/aicache.c: Include res_hconf.h.
44256         (addhstaiX): Initialize res_hconf.
44257
44258 2013-08-26  Andreas Schwab  <schwab@suse.de>
44259
44260         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44261         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44262
44263 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44264
44265         * nscd/aicache.c (addhstaiX): Fix indentation.
44266
44267 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44268
44269         * configure.ac: Quote $build_pt_chown test.
44270         * configure: Regenerated.
44271
44272 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44273
44274         [BZ #15532]
44275         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44276         * math/s_cexpf.c (__cexpf): Likewise.
44277         * math/s_cexpl.c (__cexpl): Likewise.
44278         * math/libm-test.inc (cexp_test_data): Correct expected return
44279         value for NaN + i0.  Add another test.
44280
44281 2013-08-22  David S. Miller  <davem@davemloft.net>
44282
44283         * po/ca.po: Update Catalan translation from translation project.
44284         * po/uk.po: Add Ukrainian translations from translation project.
44285
44286 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44287
44288         [BZ #15797]
44289         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44290         is infinite, not alongside NaN test.
44291         * math/s_fdimf.c (__fdimf): Likewise.
44292         * math/s_fdiml.c (__fdiml): Likewise.
44293         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44294         errno is unchanged.
44295
44296 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44297
44298         * argp/argp-help.c: Fix typos.
44299         * crypt/speeds.c: Likewise.
44300         * csu/check_fds.c: Likewise.
44301         * elf/dl-load.c: Likewise.
44302         * elf/dl-open.c: Likewise.
44303         * elf/reldep3.c: Likewise.
44304         * elf/reldep.c: Likewise.
44305         * elf/sprof.c: Likewise.
44306         * iconv/iconv_charmap.c: Likewise.
44307         * iconv/skeleton.c: Likewise.
44308         * iconv/strtab.c: Likewise.
44309         * io/lockf64.c: Likewise.
44310         * libio/libioP.h: Likewise.
44311         * resolv/gai_notify.c: Likewise.
44312         * resolv/ns_name.c: Likewise.
44313         * resolv/ns_samedomain.c: Likewise.
44314         * resolv/res_send.c: Likewise.
44315         * stdlib/random.c: Likewise.
44316         * sunrpc/rpc/xdr.h: Likewise.
44317         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44318         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44319         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44320         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44321         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44322         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44323         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44324         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44325         * sysdeps/mach/hurd/check_fds.c: Likewise.
44326         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44327         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44328         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44329         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44330         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44331         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44332         * sysdeps/pthread/aio_notify.c: Likewise.
44333         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44334         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44335         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44336         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44337         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44338
44339 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44340
44341         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44342         version if bit_Slow_SSE4_2 is set.
44343         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44344         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44345
44346 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44347
44348         [BZ #15867]
44349         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44350         trampoline stack frame information.
44351         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44352         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44353         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44354         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44355         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44356         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44357         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44358         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44359         sa_flags value.
44360         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44361         interrupting a syscall and set with option SA_SIGINFO.
44362
44363 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44364
44365         [BZ #15531]
44366         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44367         argument is infinite.
44368         * math/s_cprojf.c (__cprojf): Likewise.
44369         * math/s_cprojl.c (__cprojl): Likewise.
44370         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44371         * math/libm-test.inc (cproj_test_data): Add more tests.
44372
44373         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44374
44375         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44376         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44377         size.  Use __ffs to determine corresponding shift.
44378
44379 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44380             Roland McGrath  <roland@hack.frob.com>
44381
44382         * Makefile (INSTALL): Remove trailing blank lines from output of
44383         makeinfo.
44384
44385 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44386
44387         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44388         Align 32 bit compat elf_greg to 8 bytes.
44389
44390 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44391
44392         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44393
44394 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44395
44396         * string/strcoll_l.c (coll_seq): New structure.
44397         (get_next_seq_cached): New function.
44398         (get_next_seq): New function.
44399         (do_compare): New function.
44400         (STRCOLL): Use GNU style definition.  Simplify implementation
44401         by using get_next_seq, get_next_seq_cached and do_compare.
44402
44403 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44404
44405         [BZ #14699]
44406         CVE-2013-4237
44407         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44408         member.
44409         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44410         member.
44411         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44412         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44413         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44414         conditional.
44415         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44416         GETDENTS_64BIT_ALIGNED.
44417         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44418         * manual/filesys.texi (Reading/Closing Directory): Document
44419         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44420         strongly.
44421         * manual/conf.texi (Limits for Files): Add portability note to
44422         NAME_MAX, PATH_MAX.
44423         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44424
44425 2013-08-13  Andreas Schwab  <schwab@suse.de>
44426
44427         [BZ #15749]
44428         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44429         of fabs.
44430         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44431         LDBL_MAX_EXP >= 16384]: Add tests for it.
44432
44433 2013-08-12  David S. Miller  <davem@davemloft.net>
44434
44435         * version.h (RELEASE): Set to "development".
44436         (VERSION): Set to "2.18.90".
44437         * NEWS: Add 2.19 section.
44438
44439 2013-08-03  David S. Miller  <davem@davemloft.net>
44440
44441         * po/ko.po: Update Korean translation from translation project.
44442
44443 2013-08-01  David S. Miller  <davem@davemloft.net>
44444
44445         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44446         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44447         Bilka.
44448
44449 2013-07-30  David S. Miller  <davem@davemloft.net>
44450
44451         * po/fr.po: Update French translation from translation project.
44452
44453 2013-07-28  David S. Miller  <davem@davemloft.net>
44454
44455         * po/cs.po: Update Czech translation from translation project.
44456
44457         * po/sv.po: Update Swedish translation from translation project.
44458
44459 2013-07-27  David S. Miller  <davem@davemloft.net>
44460
44461         * po/eo.po: Update Esperanto translation from translation project.
44462
44463         * po/vi.po: Update Vietnamese translation from translation project.
44464
44465         * po/de.po: Update German translation from translation project.
44466
44467 2013-07-26  David S. Miller  <davem@davemloft.net>
44468
44469         * po/bg.po: Update Bulgarian translation from translation project.
44470
44471         * po/nl.po: Update Dutch translation from translation project.
44472         * po/pl.po: Update Polish translation from translation project.
44473         * po/ru.po: Update Russian translation from translation project.
44474
44475 2013-07-24  David S. Miller  <davem@davemloft.net>
44476
44477         * po/libc.pot: Update.
44478
44479 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44480
44481         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44482         variable page size.
44483         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44484         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44485         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44486
44487 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44488
44489         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44490
44491 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44492             Andreas Schwab  <schwab@suse.de>
44493             Roland McGrath  <roland@hack.frob.com>
44494             Joseph Myers  <joseph@codesourcery.com>
44495             Carlos O'Donell  <carlos@redhat.com>
44496
44497         [BZ #15755]
44498         * config.h.in: Define HAVE_PT_CHOWN.
44499         * config.make.in (build-pt-chown): New variable.
44500         * configure.in (--enable-pt_chown): New configure option.
44501         * configure: Regenerate.
44502         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44503         build-pt-chown is enabled.
44504         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44505         pt_chown to fix pty ownership.
44506         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44507         CLOSE_ALL_FDS.
44508         * manual/install.texi (Configuring and compiling): Mention
44509         --enable-pt_chown. Add @findex for grantpt.
44510         * INSTALL: Regenerate.
44511
44512 2013-07-20  David S. Miller  <davem@davemloft.net>
44513
44514         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44515         difference between 32-bit and 64-bit.
44516
44517 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44518
44519         [BZ #15711]
44520         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44521         Avoid system header dependency with -ffreestanding.
44522         ($(objpfx)bits/syscall%d): Likewise.
44523
44524 2013-07-13  David S. Miller  <davem@davemloft.net>
44525
44526         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44527         underflows from atanl/atan2l due to bug 15319.
44528         (casinh_test_data): Likewise.
44529
44530 2013-07-07  David S. Miller  <davem@davemloft.net>
44531
44532         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44533
44534 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44535
44536         * sysdeps/i386/fpu/libm-test-ulps: Update.
44537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44538
44539 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44540
44541         * configure.in (--enable-lock-elision): Fix message text.
44542         * INSTALL: Regenerate.
44543         * configure: Regenerate.
44544
44545 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44546
44547         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44548
44549 2013-07-03  Andreas Jaeger  <aj@suse.de>
44550
44551         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
44552         define.
44553         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
44554         (ptrace_peeksiginfo_args): Add.
44555         (__ptrace_peeksiginfo_flags): Add.
44556         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44557         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44558         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44559
44560 2013-07-03  Allan McRae  <allan@archlinux.org>
44561
44562         * sysdeps/i386/fpu/libm-test-ulps: Update.
44563
44564 2013-07-02  David S. Miller  <davem@davemloft.net>
44565
44566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44567
44568 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
44569
44570         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44571
44572 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44573
44574         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
44575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44576
44577 2013-07-02  Andi Kleen <ak@linux.intel.com>
44578
44579         * config.h.in (ENABLE_LOCK_ELISION): Add.
44580         * configure.in (--enable-lock-elision): Add option.
44581         * manual/install.texi: Document --enable lock elision.
44582         * configure: Regenerate
44583         * INSTALL: Regenerate.
44584
44585 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
44586
44587         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
44588         SSE4.2 strcasecmp for libc.a.
44589         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
44590
44591 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44592
44593         [BZ #13304]
44594         * soft-fp/op-common.h (_FP_FMA): New macro.
44595         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
44596         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
44597         (_FP_MUL_MEAT_1_imm): ... here.
44598         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
44599         (_FP_MUL_MEAT_1_wide): ... here.
44600         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
44601         (_FP_MUL_MEAT_1_hard): ... here.
44602         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
44603         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
44604         (_FP_MUL_MEAT_2_wide): ... here.
44605         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
44606         (_FP_MUL_MEAT_2_wide_3mul): ... here.
44607         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
44608         (_FP_MUL_MEAT_2_gmp): ... here.
44609         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
44610         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
44611         (_FP_MUL_MEAT_4_wide): ... here.
44612         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
44613         (_FP_MUL_MEAT_4_gmp): ... here.
44614         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
44615         (_FP_WFRACBITS_DW_S): Likewise.
44616         (_FP_WFRACXBITS_DW_S): Likewise.
44617         (_FP_HIGHBIT_DW_S): Likewise.
44618         (FP_FMA_S): Likewise.
44619         (_FP_FRAC_HIGH_DW_S): Likewise.
44620         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
44621         (_FP_WFRACBITS_DW_D): Likewise.
44622         (_FP_WFRACXBITS_DW_D): Likewise.
44623         (_FP_HIGHBIT_DW_D): Likewise.
44624         (FP_FMA_D): Likewise.
44625         (_FP_FRAC_HIGH_DW_D): Likewise.
44626         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
44627         (_FP_WFRACBITS_DW_E): Likewise.
44628         (_FP_WFRACXBITS_DW_E): Likewise.
44629         (_FP_HIGHBIT_DW_E): Likewise.
44630         (FP_FMA_E): Likewise.
44631         (_FP_FRAC_HIGH_DW_E): Likewise.
44632         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
44633         (_FP_WFRACBITS_DW_Q): Likewise.
44634         (_FP_WFRACXBITS_DW_Q): Likewise.
44635         (_FP_HIGHBIT_DW_Q): Likewise.
44636         (FP_FMA_Q): Likewise.
44637         (_FP_FRAC_HIGH_DW_Q): Likewise.
44638         * soft-fp/fmasf4.c: New file.
44639         * soft-fp/fmadf4.c: Likewise.
44640         * soft-fp/fmatf4.c: Likewise.
44641
44642 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44643
44644         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
44645         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
44646         Silvermont.
44647         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
44648         macro.
44649         (index_Slow_SSE4_2): Likewise.
44650         (index_Prefer_PMINUB_for_stringop): Likewise.
44651         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
44652         bit_Slow_SSE4_2 is set.
44653         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
44654         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44655
44656 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44657
44658         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
44659         rtld_global._dl_hwcap2.
44660         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
44661         POWER8.
44662         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
44663         POWER8 feature descriptions defined in _dl_hwcap2.
44664         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
44665         string handling for POWER8 feature bits.
44666         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
44667         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
44668         _dl_powerpc_cap_flags.
44669         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
44670         * sysdeps/powerpc/rtld-global-offsets.sym
44671         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
44672         _dl_hwcap2 in the rtld_global_ro structure.
44673
44674 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44675
44676         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
44677         hardware capabilities in support of AT_HWCAP2.
44678         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
44679         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
44680         GLRO(dl_hwcap2).
44681         (_dl_show_auxv): Add support for calling _dl_procinfo to display
44682         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
44683         explicitly the unknown a_type display mechanism is used.
44684         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
44685         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
44686         struct member.
44687         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
44688         to macro prototype for AT_HWCAP2 support.
44689         * sysdeps/i386/dl-procinfo.h: Likewise.
44690         * sysdeps/s390/dl-procinfo.h: Likewise.
44691         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
44692         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
44693         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
44694         return -1 for unknown a_type display fallback.
44695         * sysdeps/sparc/dl-procinfo.h: Likewise.
44696         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
44697         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
44698
44699 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
44700
44701         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
44702         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
44703
44704 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
44705
44706         [BZ #12492]
44707         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
44708         mprotect making __stack_prot writable.
44709
44710 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
44711             Joseph Myers  <joseph@codesourcery.com>
44712
44713         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
44714         as being properly aligned.
44715
44716 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
44717
44718         * dlfcn/modstatic5.c: New file.
44719         * dlfcn/tststatic5.c: New file.
44720         * dlfcn/Makefile (tests): Add tststatic5.
44721         (tests-static): Likewise.
44722         (modules-names): Add modstatic5.
44723         (tststatic5-ENV): New variable.
44724         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
44725
44726         [BZ #15022]
44727         * elf/dl-support.c (_dl_main_map): New variable.
44728         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
44729         (_dl_nns, _dl_load_adds): Set to 1.
44730         (_dl_initial_searchlist): Refer to _dl_main_map.
44731         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
44732         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
44733         call to _dl_get_origin.
44734         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
44735         around call_map.
44736         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
44737         * dlfcn/modstatic3.c: New file.
44738         * dlfcn/tststatic3.c: New file.
44739         * dlfcn/tststatic4.c: New file.
44740         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
44741         (tests-static): Likewise.
44742         (modules-names): Add modstatic3.
44743         (tststatic3-ENV, tststatic4-ENV): New variables.
44744         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
44745         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
44746
44747 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
44748
44749         * configure.in (CC): Require GCC version 4.4 or later.
44750         * configure: Regenerated.
44751         * manual/install.texi (Tools for Compilation): Update GCC version
44752         requirement.
44753         * INSTALL: Regenerated.
44754
44755 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44756
44757         [BZ #15674]
44758         * string/test-memcmp.c (check2): New.
44759         (main): Call check2.
44760
44761         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
44762
44763 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
44764
44765         [BZ #15022]
44766         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
44767         over to...
44768         (dl_open_worker) [!SHARED]: ... here.
44769
44770 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44771
44772         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
44773
44774 2013-06-25  Richard Henderson  <rth@redhat.com>
44775
44776         * locale/programs/locarchive.c: Include <libc-internal.h>
44777
44778 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
44779
44780         * manual/texinfo.tex: Update to version 2013-06-21.17, with
44781         trailing whitespace removed.
44782
44783 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44784
44785         [BZ #10283]
44786         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
44787         * locale/programs/locarchive.c: Include libc-mmap.h.
44788         (prepare_address_space): Take two new outputs (the mmap base and len).
44789         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
44790         values.
44791         (create_archive): Declare new mmap base and len values for
44792         prepare_address_space, and store the result in ah.
44793         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
44794         (enlarge_archive): If ah->mmap_base is not NULL, use that and
44795         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44796         Declare new mmap base and len values for
44797         prepare_address_space, and store the result in new_ah.
44798         (open_archive): Declare new mmap base and len values for
44799         prepare_address_space, and store the result in ah.
44800         (close_archive): If ah->mmap_base is not NULL, use that and
44801         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44802         * sysdeps/generic/libc-mmap.h: New file.
44803
44804 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44805
44806         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
44807         (ALIGN_UP): Likewise.
44808         (PTR_ALIGN_DOWN): Likewise.
44809         (PTR_ALIGN_UP): Likewise.
44810
44811 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44812
44813         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
44814         entry mapped to PPC_PLATFORM_POWER8.
44815         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
44816         POWER8.
44817         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
44818         (_dl_string_platform): Add case for exporting platform position for
44819         POWER8.
44820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
44821         search path to sysdeps/powerpc/powerpc32/power8 directory.
44822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
44823         search path to sysdeps/powerpc/powerpc64/power8 directory.
44824         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
44825         power7 directories.
44826         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
44827         power7 directories.
44828
44829 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
44830
44831         * INSTALL: Regenerate.
44832
44833         * nscd/connections.c (nscd_init): Fix comment.
44834
44835 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
44836
44837         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
44838
44839         [BZ #15667]
44840         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
44841         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
44842
44843 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
44844
44845         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
44846         DL_DST_REQ_STATIC.
44847         (DL_DST_REQ_STATIC): Remove macro.
44848
44849 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
44850
44851         [BZ #7006]
44852         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
44853         with a shift of 0 bits.
44854
44855 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
44856
44857         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
44858         $(tststatic-ENV).
44859
44860 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44861
44862         [BZ #15655]
44863         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
44864
44865 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44866
44867         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
44868         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
44869         accepts -fno-tree-loop-distribute-patterns.
44870         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
44871         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
44872         recursive call.
44873         * string/memset.c (memset): Likewise.
44874         * string/test-memmove.c (simple_memmove): Disable loop transformation
44875         to library calls.
44876         * string/test-memset.c (simple_memset): Likewise.
44877         * benchtests/bench-memmove.c (simple_memmove): Likewise.
44878         * benchtests/bench-memset.c (simple_memset): Likewise.
44879         * configure: Regenerated.
44880
44881 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
44882
44883         * math/test-misc.c (main): Ignore fesetround failure when failures
44884         of subsequent rounding tests would be ignored.
44885
44886         [BZ #15654]
44887         * math/fedisblxcpt.c (fedisableexcept): Return 0.
44888         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
44889         * math/fegetenv.c (__fegetenv): Return 0.
44890         * math/fegetexcept.c (fegetexcept): Return 0.
44891         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
44892         FE_TONEAREST.
44893         * math/feholdexcpt.c (feholdexcept): Return 0.
44894         * math/fesetenv.c (__fesetenv): Return 0.
44895         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
44896         argument FE_TONEAREST.
44897         * math/feupdateenv.c (__feupdateenv): Return 0.
44898         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
44899
44900 2013-06-18  Roland McGrath  <roland@hack.frob.com>
44901
44902         * elf/rtld-Rules (rtld-compile-command.S): New variable.
44903         (rtld-compile-command.s, rtld-compile-command.c): New variables.
44904         ($(objpfx)rtld-%.os rules): Use them.
44905
44906 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44907
44908         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
44909         fields.
44910
44911 2013-06-17  Roland McGrath  <roland@hack.frob.com>
44912
44913         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
44914         length of target pattern, then descending length of dependency pattern.
44915         * configure.in (AWK): Require gawk 3.1.2 or newer.
44916         * manual/install.texi (Tools for Compilation): Say that we do.
44917         * configure: Regenerated.
44918
44919         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
44920         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
44921         * scripts/sysd-rules.awk: ... this new script.
44922         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
44923         than a glob-style pattern.
44924
44925 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
44926
44927         * math/test-misc.c (main): Do not treat incorrectly rounded
44928         conversions as failure unless ROUNDING_TESTS passes.
44929
44930 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
44931
44932         [BZ #15631]
44933         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
44934         restore exception state around main square root computation, then
44935         check for inexactness explicitly.
44936
44937         * math/libm-test.inc (fma_test_data): Add another test.
44938
44939 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
44940
44941         * manual/threads.texi (Non-POSIX Extensions): New document
44942         node.  Document pthread_getattr_default_np and
44943         pthread_setattr_default_np.
44944
44945         * Versions.def (libpthread): Add GLIBC_2.18.
44946         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
44947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
44948         Likewise.
44949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
44950         Likewise.
44951         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
44952         Likewise.
44953         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
44954         Likewise.
44955         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
44956         Likewise.
44957         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
44958         Likewise.
44959         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
44960         Likewise.
44961         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
44962         Likewise.
44963         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
44964         Likewise.
44965
44966 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44967
44968         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44969         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
44970
44971 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
44972             H.J. Lu  <hjl.tools@gmail.com>
44973
44974         [BZ #15627]
44975         * sysdeps/x86_64/rtld-memset.c: Remove file.
44976         * sysdeps/x86_64/rtld-memset.S: New file.
44977
44978 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
44979
44980         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
44981         (test_in_one_mode): Take arguments for whether the rounding mode
44982         is supported for each floating-point type.
44983         (do_test): Pass new arguments to test_in_one_mode using
44984         ROUNDING_TESTS.
44985
44986 2013-06-13  Roland McGrath  <roland@hack.frob.com>
44987
44988         * posix/tst-waitid.c (do_test): Distinguish different instances of
44989         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
44990         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
44991         before entering the kernel for waitpid.
44992
44993 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
44994
44995         * NEWS: Fix note on clock function precision.  Text by Roland
44996         McGrath.
44997
44998 2013-06-13  Roland McGrath  <roland@hack.frob.com>
44999
45000         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45001         it into place only when and if the sanity check passes.
45002
45003 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45004
45005         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45006         output for whether conversion result is exact.  Take argument
45007         indicating whether type is IBM long double.
45008         (round_for_all): Change need_exact field to ibm_ld.
45009         * stdlib/tst-strtod-round.c (struct exactness): New type.
45010         (struct test): Change bool ld_ok field to struct exactness exact.
45011         (TEST): Update all definitions for change to field.
45012         (tests): Regenerate array contents.
45013         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45014         field value.  Check for IBM long double here.
45015         (do_test): Update calls to test_in_one_mode.
45016
45017 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45018
45019         [BZ #12515]
45020         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45021         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45022
45023 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45024
45025         [BZ #15605]
45026         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45027         generated by the compiler on loop optimizations.
45028         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45029         general definitions.
45030
45031 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45032
45033         * math/bug-nextafter.c: Include <math-tests.h>.
45034         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45035         the relevant type.
45036         * math/bug-nexttoward.c: Include <math-tests.h>.
45037         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45038         the relevant type.
45039         * math/test-misc.c: Include <math-tests.h>.
45040         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45041         the relevant type.
45042
45043 2013-06-12  Andreas Jaeger  <aj@suse.de>
45044
45045         * po/ia.po: Update Interlingua translation from translation
45046         project.
45047
45048 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45049
45050         * include/fenv.h: Include stdbool.h.
45051         (struct rm_ctx): New structure.
45052         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45053         Define macro.
45054         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45055         (SET_RESTORE_ROUNDF): Likewise.
45056         (SET_RESTORE_ROUNDL): Likewise.
45057         (SET_RESTORE_ROUND_NOEX): Likewise.
45058         (SET_RESTORE_ROUND_NOEXF): Likewise.
45059         (SET_RESTORE_ROUND_NOEXL): Likewise.
45060         (SET_RESTORE_ROUND_53BIT): Likewise.
45061         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45062         (libc_feresetround_noexf_ctx): Likewise.
45063         (libc_feresetround_noexl_ctx): Likewise.
45064         (libc_feholdsetround_53bit_ctx): Likewise.
45065         (libc_feresetround_53bit_ctx): Likewise.
45066         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45067         (libc_feholdexcept_setround_sse_ctx): New function.
45068         (libc_fesetenv_sse_ctx): Likewise.
45069         (libc_feupdateenv_sse_ctx): Likewise.
45070         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45071         (libc_feholdexcept_setround_387_ctx): Likewise.
45072         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45073         (libc_feholdsetround_387_prec_ctx): Likewise.
45074         (libc_feholdsetround_387_ctx): Likewise.
45075         (libc_feholdsetround_387_53bit_ctx): Likewise.
45076         (libc_feholdsetround_sse_ctx): Likewise.
45077         (libc_feresetround_sse_ctx): Likewise.
45078         (libc_feresetround_387_ctx): Likewise.
45079         (libc_feupdateenv_387_ctx): Likewise.
45080         (libc_feholdexcept_setroundf_ctx): Define macro.
45081         (libc_fesetenvf_ctx): Likewise.
45082         (libc_feupdateenvf_ctx): Likewise.
45083         (libc_feholdsetroundf_ctx): Likewise.
45084         (libc_feresetroundf_ctx): Likewise.
45085         (libc_feholdexcept_setround_ctx): Likewise.
45086         (libc_fesetenv_ctx): Likewise.
45087         (libc_feupdateenv_ctx): Likewise.
45088         (libc_feholdsetround_ctx): Likewise.
45089         (libc_feresetround_ctx): Likewise.
45090         (libc_feholdexcept_setroundl_ctx): Likewise.
45091         (libc_feupdateenvl_ctx): Likewise.
45092         (libc_feholdsetroundl_ctx): Likewise.
45093         (libc_feresetroundl_ctx): Likewise.
45094         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45095         (libc_feresetround_53bit_ctx): Likewise.
45096
45097 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45098
45099         * locale/iso-639.def: Convert to UTF-8.
45100
45101 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45102
45103         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45104         (EXCEPTION_TESTS_double): Likewise.
45105         (EXCEPTION_TESTS_long_double): Likewise.
45106         (EXCEPTION_TESTS): Likewise.
45107         * math/libm-test.inc (test_exceptions): Only test exceptions if
45108         EXCEPTION_TESTS (FLOAT).
45109
45110 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45111
45112         * benchtests/Makefile (string-bench): Add strcpy_chk and
45113         stpcpy_chk.
45114         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45115         * benchtests/bench-stpcpy_chk.c: New file.
45116         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45117         * benchtests/bench-strcpy_chk.c: New file.
45118         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45119         code.
45120         (do_test): Likewise.
45121
45122 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45123
45124         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45125         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45126         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45127         with tabs where appropriate.
45128         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45129         dl-procinfo.h.
45130         [PPC_PLATFORM_PPC440]: Likewise.
45131         [PPC_PLATFORM_PPC464]: Likewise.
45132         [PPC_PLATFORM_PPC476]: Likewise.
45133         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45134         ppc464, and ppc476 platform strings merging from ports/
45135         dl-procinfo.h.
45136
45137 2013-06-11  Andreas Schwab  <schwab@suse.de>
45138
45139         [BZ #14991]
45140         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45141         (from_ucs4_idx): Regenerate.
45142         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45143         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45144         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45145         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45146         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45147         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45148         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45149         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45150         from FROM_LOOP and TO_LOOP specific macros.
45151         (BODY): Handle combining characters.
45152         * iconvdata/BIG5HKSCS.irreversible: Update.
45153         * iconvdata/BIG5HKSCS.precomposed: New file.
45154         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45155         characters.
45156         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45157
45158 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45159
45160         * include/sys/time.h: Fix indentation and add copyright header.
45161
45162         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45163         (do_test): Likewise.
45164         * string/test-memchr.c (do_one_test): Likewise.
45165         (do_test): Likewise.
45166         * string/test-memcmp.c (do_one_test): Likewise.
45167         (do_test): Likewise.
45168         * string/test-memcpy.c (do_one_test): Likewise.
45169         (do_test): Likewise.
45170         * string/test-memmem.c (do_one_test): Likewise.
45171         (do_test): Likewise.
45172         (do_random_tests): Likewise.
45173         * string/test-memmove.c (do_one_test): Likewise.
45174         (do_test): Likewise.
45175         * string/test-memset.c (do_one_test): Likewise.
45176         (do_test): Likewise.
45177         * string/test-rawmemchr.c (do_one_test): Likewise.
45178         (do_test): Likewise.
45179         * string/test-strcasecmp.c (do_one_test): Likewise.
45180         (do_test): Likewise.
45181         * string/test-strcasestr.c (do_one_test): Likewise.
45182         (do_test): Likewise.
45183         * string/test-strcat.c (do_one_test): Likewise.
45184         (do_test): Likewise.
45185         * string/test-strchr.c (do_one_test): Likewise.
45186         (do_test): Likewise.
45187         * string/test-strcmp.c (do_one_test): Likewise.
45188         (do_test): Likewise.
45189         * string/test-strcpy.c (do_one_test): Likewise.
45190         (do_test): Likewise.
45191         * string/test-string.h: Likewise.
45192         (test_init): Likewise.
45193         * string/test-strlen.c (do_one_test): Likewise.
45194         (do_test): Likewise.
45195         * string/test-strncasecmp.c (do_one_test): Likewise.
45196         (do_test): Likewise.
45197         * string/test-strncat.c (do_one_test): Likewise.
45198         (do_test): Likewise.
45199         * string/test-strncmp.c (do_one_test): Likewise.
45200         (do_test_limit): Likewise.
45201         (do_test): Likewise.
45202         * string/test-strncpy.c (do_one_test): Likewise.
45203         (do_test): Likewise.
45204         * string/test-strnlen.c (do_one_test): Likewise.
45205         (do_test): Likewise.
45206         * string/test-strpbrk.c (do_one_test): Likewise.
45207         (do_test): Likewise.
45208         * string/test-strrchr.c (do_one_test): Likewise.
45209         (do_test): Likewise.
45210         * string/test-strspn.c (do_one_test): Likewise.
45211         (do_test): Likewise.
45212         * string/test-strstr.c (do_one_test): Likewise.
45213         (do_test): Likewise.
45214
45215         * benchtests/Makefile (string-bench): Add string benchmarks.
45216         * benchtests/bench-bcopy-ifunc.c: New file.
45217         * benchtests/bench-bcopy.c: New file.
45218         * benchtests/bench-bzero-ifunc.c: New file.
45219         * benchtests/bench-bzero.c: New file.
45220         * benchtests/bench-memccpy-ifunc.c: New file.
45221         * benchtests/bench-memccpy.c: New file.
45222         * benchtests/bench-memchr-ifunc.c: New file.
45223         * benchtests/bench-memchr.c: New file.
45224         * benchtests/bench-memcmp-ifunc.c: New file.
45225         * benchtests/bench-memcmp.c: New file.
45226         * benchtests/bench-memmem-ifunc.c: New file.
45227         * benchtests/bench-memmem.c: New file.
45228         * benchtests/bench-memmove-ifunc.c: New file.
45229         * benchtests/bench-memmove.c: New file.
45230         * benchtests/bench-mempcpy-ifunc.c: New file.
45231         * benchtests/bench-mempcpy.c: New file.
45232         * benchtests/bench-memset-ifunc.c: New file.
45233         * benchtests/bench-memset.c: New file.
45234         * benchtests/bench-rawmemchr-ifunc.c: New file.
45235         * benchtests/bench-rawmemchr.c: New file.
45236         * benchtests/bench-stpcpy-ifunc.c: New file.
45237         * benchtests/bench-stpcpy.c: New file.
45238         * benchtests/bench-stpncpy-ifunc.c: New file.
45239         * benchtests/bench-stpncpy.c: New file.
45240         * benchtests/bench-strcasecmp-ifunc.c: New file.
45241         * benchtests/bench-strcasecmp.c: New file.
45242         * benchtests/bench-strcasestr-ifunc.c: New file.
45243         * benchtests/bench-strcasestr.c: New file.
45244         * benchtests/bench-strcat-ifunc.c: New file.
45245         * benchtests/bench-strcat.c: New file.
45246         * benchtests/bench-strchr-ifunc.c: New file.
45247         * benchtests/bench-strchr.c: New file.
45248         * benchtests/bench-strchrnul-ifunc.c: New file.
45249         * benchtests/bench-strchrnul.c: New file.
45250         * benchtests/bench-strcmp-ifunc.c: New file.
45251         * benchtests/bench-strcmp.c: New file.
45252         * benchtests/bench-strcpy-ifunc.c: New file.
45253         * benchtests/bench-strcpy.c: New file.
45254         * benchtests/bench-strcspn-ifunc.c: New file.
45255         * benchtests/bench-strcspn.c: New file.
45256         * benchtests/bench-strlen-ifunc.c: New file.
45257         * benchtests/bench-strlen.c: New file.
45258         * benchtests/bench-strncasecmp-ifunc.c: New file.
45259         * benchtests/bench-strncasecmp.c: New file.
45260         * benchtests/bench-strncat-ifunc.c: New file.
45261         * benchtests/bench-strncat.c: New file.
45262         * benchtests/bench-strncmp-ifunc.c: New file.
45263         * benchtests/bench-strncmp.c: New file.
45264         * benchtests/bench-strncpy-ifunc.c: New file.
45265         * benchtests/bench-strncpy.c: New file.
45266         * benchtests/bench-strnlen-ifunc.c: New file.
45267         * benchtests/bench-strnlen.c: New file.
45268         * benchtests/bench-strpbrk-ifunc.c: New file.
45269         * benchtests/bench-strpbrk.c: New file.
45270         * benchtests/bench-strrchr-ifunc.c: New file.
45271         * benchtests/bench-strrchr.c: New file.
45272         * benchtests/bench-strspn-ifunc.c: New file.
45273         * benchtests/bench-strspn.c: New file.
45274         * benchtests/bench-strstr-ifunc.c: New file.
45275         * benchtests/bench-strstr.c: New file.
45276
45277         * benchtests/Makefile: Disable parallel execution of targets.
45278         (string-bench): Add memcpy.
45279         (benchset): New variable to store a list of benchmark sets.
45280         (bench-func): Renamed from bench.
45281         (bench-set): New target.
45282         (bench): Depend on bench-func and bench-set.
45283         * benchtests/README: Add section on benchmark sets.
45284         * benchtests/bench-memcpy-ifunc.c: New file.
45285         * benchtests/bench-memcpy.c: New file.
45286         * benchtests/bench-string.h: New file.
45287
45288 2013-06-11  Andreas Schwab  <schwab@suse.de>
45289
45290         [BZ #15577]
45291         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45292         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45293         values in the triple.
45294         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45295         terminator in the group key.
45296
45297 2013-06-11  Andreas Jaeger  <aj@suse.de>
45298
45299         * po/zh_TW.po: Update Chinese (traditional) translation from
45300         translation project.
45301
45302 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45303
45304         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45305         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45306         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45307         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45308         (clock_getcpuclockid): Likewise.
45309         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45310         Add weak_alias and libc_hidden_def.
45311         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45312         * rt/clock_gettime.c (clock_gettime): Rename to
45313         __clock_gettime.  Add weak_alias and libc_hidden_def.
45314         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45315         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45316         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45317         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45318         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45319         Likewise.
45320         * rt/clock_settime.c (clock_settime): Rename to
45321         __clock_settime.  Add weak_alias and libc_hidden_def.
45322         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45323
45324 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45325
45326         * mach/err_boot.sub: Remove trailing whitespace.
45327         * mach/err_ipc.sub: Likewise.
45328         * mach/err_mach.sub: Likewise.
45329
45330         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45331         (ROUNDING_TESTS_double): Likewise.
45332         (ROUNDING_TESTS_long_double): Likewise.
45333         (ROUNDING_TESTS): Likewise.
45334         * math/libm-test.inc: Include <math-tests.h>.
45335         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45336         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45337         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45338         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45339
45340 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45341
45342         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45343         of assigning.
45344
45345 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45346
45347         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45348         otherwise empty TRANS lines.
45349         * sysdeps/gnu/errlist.c: Regenerated.
45350
45351         * catgets/gencat.c (error_print): Use (void) in function
45352         definition.
45353         * crypt/crypt_util.c (__init_des): Likewise.
45354         * crypt/speeds.c (Stop): Likewise.
45355         (main): Likewise.
45356         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45357         * inet/ruserpass.c (token): Likewise.
45358         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45359         * intl/localealias.c (extend_alias_table): Likewise.
45360         * intl/plural-exp.c (init_germanic_plural): Likewise.
45361         * libio/fcloseall.c (__fcloseall): Likewise.
45362         * libio/genops.c (_IO_flush_all): Likewise.
45363         (_IO_flush_all_linebuffered): Likewise.
45364         (_IO_cleanup): Likewise.
45365         (_IO_iter_begin): Likewise.
45366         (_IO_iter_end): Likewise.
45367         (_IO_list_lock): Likewise.
45368         (_IO_list_unlock): Likewise.
45369         (_IO_list_resetlock): Likewise.
45370         * libio/getchar.c (getchar): Likewise.
45371         * libio/getchar_u.c (getchar_unlocked): Likewise.
45372         * libio/getwchar.c (getwchar): Likewise.
45373         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45374         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45375         * login/getpt.c (__getpt): Likewise.
45376         * login/tst-utmp.c (main): Likewise.
45377         * malloc/hooks.c (__malloc_check_init): Likewise.
45378         * malloc/malloc.c (__malloc_stats): Likewise.
45379         * malloc/mtrace.c (tr_break): Likewise.
45380         (mtrace): Likewise.
45381         (muntrace): Likewise.
45382         * misc/fstab.c (endfsent): Likewise.
45383         * misc/getclktck.c (__getclktck): Likewise.
45384         * misc/getdtsz.c (__getdtablesize): Likewise.
45385         * misc/gethostid.c (gethostid): Likewise.
45386         * misc/getpagesize.c (__getpagesize): Likewise.
45387         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45388         (__get_nprocs): Likewise.
45389         (__get_phys_pages): Likewise.
45390         (__get_avphys_pages): Likewise.
45391         * misc/getttyent.c (getttyent): Likewise.
45392         (setttyent): Likewise.
45393         (endttyent): Likewise.
45394         * misc/getusershell.c (getusershell): Likewise.
45395         (endusershell): Likewise.
45396         (setusershell): Likewise.
45397         (initshells): Likewise.
45398         * misc/hsearch.c (__hdestroy): Likewise.
45399         * misc/sync.c (sync): Likewise.
45400         * misc/syslog.c (closelog_internal): Likewise.
45401         (closelog): Likewise.
45402         * misc/ttyslot.c (ttyslot): Likewise.
45403         * misc/vhangup.c (vhangup): Likewise.
45404         * posix/fork.c (__fork): Likewise.
45405         * posix/getegid.c (__getegid): Likewise.
45406         * posix/geteuid.c (__geteuid): Likewise.
45407         * posix/getgid.c (__getgid): Likewise.
45408         * posix/getpid.c (__getpid): Likewise.
45409         * posix/getppid.c (__getppid): Likewise.
45410         * posix/getuid.c (__getuid): Likewise.
45411         * posix/pause.c (pause): Likewise.
45412         * posix/setpgrp.c (setpgrp): Likewise.
45413         * posix/setsid.c (__setsid): Likewise.
45414         * posix/test-vfork.c (noop): Likewise.
45415         * resolv/gethnamaddr.c (_endhtent): Likewise.
45416         (_gethtent): Likewise.
45417         (ht_endhostent): Likewise.
45418         (gethostent): Likewise.
45419         (dns_service): Likewise.
45420         * stdlib/drand48.c (drand48): Likewise.
45421         * stdlib/lrand48.c (lrand48): Likewise.
45422         * stdlib/mrand48.c (mrand48): Likewise.
45423         * stdlib/rand.c (rand): Likewise.
45424         * stdlib/random.c (__random): Likewise.
45425         * stdlib/setenv.c (clearenv): Likewise.
45426         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45427         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45428         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45429         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45430         (__get_nprocs): Likewise.
45431         (__get_phys_pages): Likewise.
45432         (__get_avphys_pages): Likewise.
45433         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45434         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45435         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45436         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45437         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45438         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45439         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45440         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45441         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45442         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45443         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45444         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45445         * sysdeps/posix/clock.c (clock): Likewise.
45446         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45447         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45448         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45449         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45450         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45451         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45452         (__get_nprocs_conf): Likewise.
45453         (__get_phys_pages): Likewise.
45454         (__get_avphys_pages): Likewise.
45455         * time/clock.c (clock): Likewise.
45456         * time/tzset.c (__tzname_max): Likewise.
45457
45458 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45459
45460         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45461         (__bswap_32): Do not use "register".
45462         * crypt/crypt.c (_ufc_doit_r): Likewise.
45463         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45464         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45465         * gmon/gmon.c (__monstartup): Likewise.
45466         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45467         * hurd/hurdmalloc.c (more_memory): Likewise.
45468         (malloc): Likewise.
45469         (free): Likewise.
45470         (realloc): Likewise.
45471         (malloc_fork_prepare): Likewise.
45472         (malloc_fork_parent): Likewise.
45473         (malloc_fork_child): Likewise.
45474         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45475         (_svcauth_des): Likewise.
45476         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45477         * inet/inet_net.c (inet_network): Likewise.
45478         * inet/inet_netof.c (inet_netof): Likewise.
45479         * inet/rcmd.c (__validuser2_sa): Likewise.
45480         * io/fts.c (fts_open): Likewise.
45481         (fts_load): Likewise.
45482         (fts_close): Likewise.
45483         (fts_read): Likewise.
45484         (fts_children): Likewise.
45485         (fts_build): Likewise.
45486         (fts_stat): Likewise.
45487         (fts_sort): Likewise.
45488         (fts_alloc): Likewise.
45489         (fts_lfree): Likewise.
45490         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45491         (_IO_file_xsgetn): Likewise.
45492         (_IO_file_xsgetn_mmap): Likewise.
45493         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45494         (_IO_cookie_write): Likewise.
45495         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45496         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45497         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45498         * malloc/obstack.c (_obstack_begin): Likewise.
45499         (_obstack_begin_1): Likewise.
45500         (_obstack_newchunk): Likewise.
45501         (_obstack_allocated_p): Likewise.
45502         (obstack_free): Likewise.
45503         (_obstack_memory_used): Likewise.
45504         * misc/getttyent.c (getttynam): Likewise.
45505         (getttyent): Likewise.
45506         (skip): Likewise.
45507         (value): Likewise.
45508         * misc/getusershell.c (initshells): Likewise.
45509         * misc/syslog.c (__vsyslog_chk): Likewise.
45510         * misc/ttyslot.c (ttyslot): Likewise.
45511         * nis/nis_hash.c (__nis_hash): Likewise.
45512         * posix/fnmatch_loop.c (FCT): Likewise.
45513         * posix/getconf.c (print_all): Likewise.
45514         (main): Likewise.
45515         * posix/getopt.c (exchange): Likewise.
45516         * posix/glob.c (globfree): Likewise.
45517         (prefix_array): Likewise.
45518         (__glob_pattern_type): Likewise.
45519         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45520         (NS_GET32): Likewise.
45521         (NS_PUT16): Likewise.
45522         (NS_PUT32): Likewise.
45523         * resolv/gethnamaddr.c (getanswer): Likewise.
45524         (gethostbyname2): Likewise.
45525         (gethostbyaddr): Likewise.
45526         (_gethtent): Likewise.
45527         (_gethtbyname2): Likewise.
45528         (_gethtbyaddr): Likewise.
45529         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45530         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45531         * resolv/res_init.c (__res_vinit): Likewise.
45532         (net_mask): Likewise.
45533         * resolv/res_mkquery.c (outchar): Likewise.
45534         (PRINT): Likewise.
45535         * stdio-common/printf_fp.c (outchar): Likewise.
45536         (PRINT): Likewise.
45537         * stdio-common/printf_fphex.c (outchar): Likewise.
45538         (PRINT): Likewise.
45539         * stdio-common/printf_size.c (outchar): Likewise.
45540         (PRINT): Likewise.
45541         * stdio-common/test_rdwr.c (main): Likewise.
45542         * stdio-common/tfformat.c (matches): Likewise.
45543         * stdio-common/vfprintf.c (outchar): Likewise.
45544         (printf_unknown): Likewise.
45545         (buffered_vfprintf): Likewise.
45546         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45547         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45548         (ReadFile): Likewise.
45549         * stdlib/qsort.c (SWAP): Likewise.
45550         (_quicksort): Likewise.
45551         * stdlib/setenv.c (__add_to_environ): Likewise.
45552         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45553         * stdlib/strtol_l.c (__strtol_l): Likewise.
45554         * stdlib/tst-strtod.c (main): Likewise.
45555         * stdlib/tst-strtol.c (main): Likewise.
45556         * stdlib/tst-strtoll.c (main): Likewise.
45557         * string/bits/string2.h (__strcmp_cc): Likewise.
45558         (__strcmp_cg): Likewise.
45559         (__strcspn_c1): Likewise.
45560         (__strcspn_c2): Likewise.
45561         (__strcspn_c3): Likewise.
45562         (__strspn_c1): Likewise.
45563         (__strspn_c2): Likewise.
45564         (__strspn_c3): Likewise.
45565         (__strsep_1c): Likewise.
45566         (__strsep_2c): Likewise.
45567         (__strsep_3c): Likewise.
45568         * string/memccpy.c (__memccpy): Likewise.
45569         * string/stpcpy.c (__stpcpy): Likewise.
45570         * string/strcmp.c (strcmp): Likewise.
45571         * string/strrchr.c (strrchr): Likewise.
45572         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
45573         Likewise.
45574         * sysdeps/mach/hurd/getcwd.c
45575         (_hurd_canonicalize_directory_name_internal): Likewise.
45576         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
45577         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
45578         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
45579         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
45580         Likewise, in both definitions.
45581         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
45582         definitions.
45583         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
45584         64] (__bswap_64): Likewise.
45585         * time/test_time.c (main): Likewise.
45586         * time/tzfile.c (__tzfile_read): Likewise.
45587         (__tzfile_compute): Likewise.
45588         * time/tzset.c (__tzset_parse_tz): Likewise.
45589         (tzset_internal): Likewise.
45590         (compute_change): Likewise.
45591         * wcsmbs/wcscat.c (__wcscat): Likewise.
45592         * wcsmbs/wcschr.c (wcschr): Likewise.
45593         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
45594         * wcsmbs/wcscspn.c (wcscspn): Likewise.
45595         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
45596         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
45597         * wcsmbs/wcsspn.c (wcsspn): Likewise.
45598         * wcsmbs/wcsstr.c (wcsstr): Likewise.
45599         * wcsmbs/wmemchr.c (wmemchr): Likewise.
45600         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
45601         * wcsmbs/wmemset.c (wmemset): Likewise.
45602
45603 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
45604
45605         * scripts/config.guess: Update to version 2013-05-16.
45606         * scripts/config.sub: Update to version 2013-04-24.
45607         * scripts/install-sh: Update to version 2011-11-20.07.
45608         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
45609         * scripts/move-if-change: Update to version 2012-01-06 07:23.
45610
45611 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
45612
45613         * debug/fgetws_u_chk.c: Fix leading whitespaces.
45614         * elf/sln.c: Likewise.
45615         * hurd/hurd/ioctl.h: Likewise.
45616         * hurd/hurdmalloc.c: Likewise.
45617         * hurd/xattr.c: Likewise.
45618         * include/shlib-compat.h: Likewise.
45619         * inet/ruserpass.c: Likewise.
45620         * libio/iofgets_u.c: Likewise.
45621         * libio/iofgetws_u.c: Likewise.
45622         * locale/programs/ld-identification.c: Likewise.
45623         * locale/programs/ld-time.c: Likewise.
45624         * mach/msg-destroy.c: Likewise.
45625         * nss/nss_files/files-netgrp.c: Likewise.
45626         * resolv/res_data.c: Likewise.
45627         * soft-fp/op-1.h: Likewise.
45628         * soft-fp/op-2.h: Likewise.
45629         * soft-fp/op-4.h: Likewise.
45630         * soft-fp/op-common.h: Likewise.
45631         * stdio-common/printf_fphex.c: Likewise.
45632         * stdlib/strtod_l.c: Likewise.
45633         * sunrpc/rpc/clnt.h: Likewise.
45634         * sysdeps/generic/framestate.c: Likewise.
45635         * sysdeps/i386/bsd-_setjmp.S: Likewise.
45636         * sysdeps/i386/bsd-setjmp.S: Likewise.
45637         * sysdeps/i386/__longjmp.S: Likewise.
45638         * sysdeps/i386/setjmp.S: Likewise.
45639         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
45640         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
45641         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45642         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
45643         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45644         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
45645         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
45646         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
45647         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
45648         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
45649         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
45650         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
45651         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
45652         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
45653         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
45654         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
45655         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
45656         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
45657         * sysdeps/ieee754/support.c: Likewise.
45658         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
45659         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
45660         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
45661         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
45662         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
45663         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
45664         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
45665         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
45666         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
45667         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
45668         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
45669         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
45670         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
45671         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
45672         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
45673         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
45674         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
45675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
45676
45677 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
45678
45679         * posix/transbug.c: Remove executable mode.
45680
45681 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
45682
45683         * crypt/speeds.c: Remove trailing whitespace.
45684         * dlfcn/default.c: Likewise.
45685         * elf/ifuncdep2.c: Likewise.
45686         * elf/ifuncmain1.c: Likewise.
45687         * elf/ifuncmain1vis.c: Likewise.
45688         * elf/testobj.h: Likewise.
45689         * elf/tst-stackguard1.c: Likewise.
45690         * gmon/sys/gmon.h: Likewise.
45691         * hurd/hurdmsg.c: Likewise.
45692         * hurd/new-fd.c: Likewise.
45693         * hurd/ports-get.c: Likewise.
45694         * iconvdata/ibm1008_420.c: Likewise.
45695         * inet/tst-getni1.c: Likewise.
45696         * inet/tst-getni2.c: Likewise.
45697         * libio/ioungetc.c: Likewise.
45698         * libio/wfiledoalloc.c: Likewise.
45699         * manual/libm-err-tab.pl: Likewise.
45700         * math/w_dremf.c: Likewise.
45701         * misc/ftruncate.c: Likewise.
45702         * posix/bug-glob2.c: Likewise.
45703         * posix/tst-pcre.c: Likewise.
45704         * posix/wait4.c: Likewise.
45705         * resolv/README: Likewise.
45706         * resolv/res_debug.h: Likewise.
45707         * resolv/tst-inet_ntop.c: Likewise.
45708         * setjmp/bug269-setjmp.c: Likewise.
45709         * soft-fp/extended.h: Likewise.
45710         * soft-fp/op-1.h: Likewise.
45711         * soft-fp/op-2.h: Likewise.
45712         * soft-fp/op-4.h: Likewise.
45713         * soft-fp/op-8.h: Likewise.
45714         * soft-fp/testit.c: Likewise.
45715         * stdio-common/bug16.c: Likewise.
45716         * stdlib/random.c: Likewise.
45717         * sunrpc/rpcsvc/rquota.x: Likewise.
45718         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
45719         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
45720         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45721         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
45722         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
45723         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
45724         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
45725         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
45726         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
45727         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
45728         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
45729         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
45730         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
45731         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
45732         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
45733         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
45734         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
45735         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
45736         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
45737         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
45738         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
45739         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
45740         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
45741         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
45742         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
45743         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
45744         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
45745         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
45746         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
45747         * sysdeps/ieee754/s_lib_version.c: Likewise.
45748         * sysdeps/mach/hurd/check_fds.c: Likewise.
45749         * sysdeps/mach/hurd/getsockname.c: Likewise.
45750         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
45751         * sysdeps/mach/hurd/recvfrom.c: Likewise.
45752         * sysdeps/powerpc/bits/link.h: Likewise.
45753         * sysdeps/powerpc/dl-procinfo.c: Likewise.
45754         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
45755         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
45756         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
45757         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
45758         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
45759         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
45760         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
45761         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
45762         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
45763         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
45764         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
45765         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
45766         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
45767         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
45768         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
45769         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
45770         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
45771         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
45772         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
45773         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
45774         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
45775         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45776         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
45777         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
45778         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
45779         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
45780         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
45781         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
45782         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
45783         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
45784         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
45785         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
45786         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
45787         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
45788         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
45789         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
45790         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
45791         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
45792         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
45793         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
45794         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
45795         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
45796         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
45797         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
45798         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
45799         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
45800         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
45801         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
45802         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
45803         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
45804         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
45805         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
45806         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
45807         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
45808         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
45809         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
45810         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
45811         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
45812         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
45813         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
45814         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
45815         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
45816         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
45817         * sysdeps/powerpc/sysdep.h: Likewise.
45818         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
45819         * sysdeps/s390/s390-64/sub_n.S: Likewise.
45820         * sysdeps/sh/dl-trampoline.S: Likewise.
45821         * sysdeps/sh/memset.S: Likewise.
45822         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
45823         * sysdeps/sh/strlen.S: Likewise.
45824         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
45825         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
45826         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
45827         * sysdeps/sparc/sparc32/rem.S: Likewise.
45828         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
45829         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
45830         * sysdeps/sparc/sparc32/strchr.S: Likewise.
45831         * sysdeps/sparc/sparc32/udiv.S: Likewise.
45832         * sysdeps/sparc/sparc32/urem.S: Likewise.
45833         * sysdeps/sparc/sparc64/add_n.S: Likewise.
45834         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
45835         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
45836         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
45837         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
45838         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
45839         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
45840         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
45841         * sysdeps/unix/bsd/times.c: Likewise.
45842         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
45843         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
45844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
45845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
45846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
45847         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
45848         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
45849         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
45850         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
45851         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
45852         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
45853         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
45854         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
45855         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
45856         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
45857         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
45858         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
45859         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
45860         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
45861         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
45862         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
45863         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
45864         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
45865         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
45866         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
45867         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
45868         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
45869         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
45870         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
45871         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
45872         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
45873         * sysdeps/x86_64/strcspn.S: Likewise.
45874
45875 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45876
45877         * locale/C-translit.h: Revert #include <stdint.h> because this is a
45878         generated file.  Regenerate properly from gen-translit.pl.
45879         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
45880         locale/C-translit.h.
45881
45882 2013-06-05  Andreas Schwab  <schwab@suse.de>
45883
45884         [BZ #15100]
45885         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
45886         week as 6 instead of -1.
45887         * time/tst-strptime.c (day_tests): Add test case.
45888
45889 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45890
45891         * sysdeps/generic/math_private.h
45892         (libc_feholdexcept_setround_53bit): Replace with
45893         libc_feholdsetround_53bit.
45894         (libc_feupdateenv_53bit): Replace with
45895         libc_feresetround_53bit.
45896         (SET_RESTORE_ROUND_53BIT): Adjust.
45897
45898 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
45899
45900         * string/test-strchrnul.c: Add copyright header.
45901
45902         * posix/tst-getaddrinfo4.c: Increase test timeout.
45903
45904 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
45905
45906         [BZ #15536]
45907         * math/libm-test.inc (MAX_EXP): Remove
45908         (MIN_EXP): Define.
45909         (ulp): Use MIN_EXP - MANT_DIG.
45910         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
45911
45912 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
45913
45914         * po/be.po: Revert last change.
45915         * po/zh_CN.po: Likewise.
45916         * po/header.pot: Likewise.
45917
45918 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
45919
45920         * Makefile ($(common-objpfx)linkobj/libc.so): Define
45921         link-libc-deps to empty as target-specific variable.
45922         * Makerules (link-libc-args): New variable.
45923         (libc-for-link): Likewise.
45924         (link-libc-deps): Likewise.
45925         (lib%.so): Depend on $(link-libc-deps).  Link with
45926         $(link-libc-args).
45927         (build-module): Link with $(link-libc-args).
45928         (build-module-asneeded): Likewise.
45929         (build-module-helper-objlist): Filter out $(link-libc-deps) from
45930         list of objects.
45931         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
45932         target-specific variable.
45933         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
45934         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
45935         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
45936         libc.
45937         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
45938         libc and ld.so.
45939         ($(objpfx)libpcprofile.so): Likewise.
45940         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
45941         libc_nonshared.a.
45942         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
45943         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
45944         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
45945         $(link-libc-deps).
45946         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
45947         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
45948         * login/Makefile ($(objpfx)libutil.so): Likewise.
45949         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
45950         * math/Makefile ($(objpfx)libm.so): Likewise.
45951         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
45952         $(objpfx)libnsl.so): Define libc-for-link as target-specific
45953         variable instead of depending directly on libc.
45954         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
45955         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
45956         $(link-libc-deps).
45957         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
45958         libc.
45959         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
45960         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
45961         ($(objpfx)libanl.so): Likewise.
45962         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
45963         ld.so.
45964         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
45965         $(link-libc-deps).
45966         * sysdeps/i386/fpu/Makefile: Remove file.
45967         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
45968         ($(objpfx)libm.so): Remove dependency on ld.so.
45969
45970 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
45971
45972         [BZ # 15553]
45973         * nis/yp_xdr.c (XDRMAXNAME): Define.
45974         (XDRMAXRECORD): Define.
45975         (xdr_domainname): Use XDRMAXNAME.
45976         (xdr_mapname): Likewise.
45977         (xdr_peername): Likewise.
45978         (xdr_keydat): Use XDRMAXRECORD.
45979         (xdr_valdat): Likewise.
45980
45981 2013-05-30  Jeff Law  <law@redhat.com>
45982
45983         [BZ #14256]
45984         * manual/errno.texi (ESTALE): Update to account for more than
45985         just NFS file systems.
45986         * sysdeps/gnu/errlist.c: Regenerated.
45987
45988 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
45989
45990         [BZ #15465]
45991         * elf/Makefile (tests): Add tst-null-argv.
45992         (modules-names):  Add tst-null-argv-lib.
45993         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
45994         (tst-null-argv-ENV): Set environment for tst-null-argv.
45995         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
45996         (RTLD_PROGNAME): New macro.
45997         * elf/tst-null-argv.c: New test case.
45998         * elf/tst-null-argv-lib.c: Library for test case.
45999         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46000         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46001         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46002         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46003         * elf/dl-init.c (call_init): Likewise.
46004         (_dl_init): Likewise.
46005         * elf/dl-load.c (print_search_path): Likewise.
46006         (_dl_map_object): Likewise.
46007         * elf/dl-lookup.c (do_lookup_x): Likewise.
46008         (add_dependency): Likewise.
46009         (_dl_lookup_symbol_x): Likewise.
46010         (_dl_debug_bindings): Likewise.
46011         * elf/dl-open.c (_dl_show_scope): Likewise.
46012         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46013         * elf/dl-version.c (match_symbol): Likewise.
46014         (_dl_check_map_versions): Likewise.
46015         * elf/rtld.c (dl_main): Likewise.
46016         (print_unresolved): Use RTLD_PROGNAME.
46017         (print_missing_version): Likewise.
46018         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46019         (elf_machine_rela): Likewise.
46020         * sysdeps/powerpc/powerpc32/dl-machine.c
46021         (__process_machine_rela): Likewise.
46022         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46023         Likewise.
46024         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46025         Likewise.
46026         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46027         Likewise.
46028         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46029         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46030         Likewise.
46031         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46032         Likewise.
46033         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46034
46035 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46036
46037         * po/be.po: Add descriptive title.
46038         * po/zh_CN.po: Likewise.
46039         * po/header.pot: Likewise.
46040
46041 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46042
46043         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46044         error message.
46045         (enlarge_archive): Likewise.
46046
46047 2013-05-28  Ben North  <ben@redfrontdoor.org>
46048
46049         * manual/arith.texi (frexp): It is the magnitude of the return
46050         value which lies in [0.5, 1), not the return value itself.
46051
46052 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46053
46054         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46055
46056 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46057
46058         * stdio-common/bug26.c (main): Correct fscanf template.
46059
46060         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46061         declare _dl_skip_args.
46062
46063         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46064         Don't declare.
46065
46066         * manual/platform.texi: Add missing @end deftypefun.
46067
46068 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46069
46070         [BZ #15529]
46071         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46072         bit of mantissa of 2^16382.
46073         * math/libm-test.inc (hypot_test_data): Add more tests.
46074
46075         * math/libm-test.inc: Add drem and pow10 to list of tested
46076         functions.
46077         (pow10_test): New function.
46078         (drem_test): Likewise.
46079         (drem_test_tonearest): Likewise.
46080         (drem_test_towardzero): Likewise.
46081         (drem_test_downward): Likewise.
46082         (drem_test_upward): Likewise.
46083         (main): Call the new functions.
46084
46085         * math/libm-test.inc (finite_test_data): Remove.
46086         (finite_test): Run tests from isfinite_test_data.
46087         (gamma_test_data): Remove.
46088         (gamma_test): Run tests from lgamma_test_data.
46089         * sysdeps/i386/fpu/libm-test-ulps: Update.
46090         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46091
46092 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46093
46094         * manual/platform.texi: Add PowerPC PPR function set documentation.
46095         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46096         implementation.
46097
46098 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46099
46100         * math/libm-test.inc (MAX_EXP): Define.
46101         (ULPDIFF): Define.
46102         (ulp): New function.
46103         (check_float_internal): Use ULPDIFF.
46104         (cpow_test): Disable failing test.
46105         (check_ulp): Test ulp() implemetnation.
46106         (main): Call check_ulp before starting tests.
46107
46108 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46109
46110         * math/gen-libm-test.pl (generate_testfile): Do not handle
46111         START_DATA and END_DATA.
46112         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46113         END_DATA.
46114         (acos_tonearest_test_data): Likewise.
46115         (acos_towardzero_test_data): Likewise.
46116         (acos_downward_test_data): Likewise.
46117         (acos_upward_test_data): Likewise.
46118         (acosh_test_data): Likewise.
46119         (asin_test_data): Likewise.
46120         (asin_tonearest_test_data): Likewise.
46121         (asin_towardzero_test_data): Likewise.
46122         (asin_downward_test_data): Likewise.
46123         (asin_upward_test_data): Likewise.
46124         (asinh_test_data): Likewise.
46125         (atan_test_data): Likewise.
46126         (atanh_test_data): Likewise.
46127         (atan2_test_data): Likewise.
46128         (cabs_test_data): Likewise.
46129         (cacos_test_data): Likewise.
46130         (cacosh_test_data): Likewise.
46131         (carg_test_data): Likewise.
46132         (casin_test_data): Likewise.
46133         (casinh_test_data): Likewise.
46134         (catan_test_data): Likewise.
46135         (catanh_test_data): Likewise.
46136         (cbrt_test_data): Likewise.
46137         (ccos_test_data): Likewise.
46138         (ccosh_test_data): Likewise.
46139         (ceil_test_data): Likewise.
46140         (cexp_test_data): Likewise.
46141         (cimag_test_data): Likewise.
46142         (clog_test_data): Likewise.
46143         (clog10_test_data): Likewise.
46144         (conj_test_data): Likewise.
46145         (copysign_test_data): Likewise.
46146         (cos_test_data): Likewise.
46147         (cos_tonearest_test_data): Likewise.
46148         (cos_towardzero_test_data): Likewise.
46149         (cos_downward_test_data): Likewise.
46150         (cos_upward_test_data): Likewise.
46151         (cosh_test_data): Likewise.
46152         (cosh_tonearest_test_data): Likewise.
46153         (cosh_towardzero_test_data): Likewise.
46154         (cosh_downward_test_data): Likewise.
46155         (cosh_upward_test_data): Likewise.
46156         (cpow_test_data): Likewise.
46157         (cproj_test_data): Likewise.
46158         (creal_test_data): Likewise.
46159         (csin_test_data): Likewise.
46160         (csinh_test_data): Likewise.
46161         (csqrt_test_data): Likewise.
46162         (ctan_test_data): Likewise.
46163         (ctan_tonearest_test_data): Likewise.
46164         (ctan_towardzero_test_data): Likewise.
46165         (ctan_downward_test_data): Likewise.
46166         (ctan_upward_test_data): Likewise.
46167         (ctanh_test_data): Likewise.
46168         (ctanh_tonearest_test_data): Likewise.
46169         (ctanh_towardzero_test_data): Likewise.
46170         (ctanh_downward_test_data): Likewise.
46171         (ctanh_upward_test_data): Likewise.
46172         (erf_test_data): Likewise.
46173         (erfc_test_data): Likewise.
46174         (exp_test_data): Likewise.
46175         (exp_tonearest_test_data): Likewise.
46176         (exp_towardzero_test_data): Likewise.
46177         (exp_downward_test_data): Likewise.
46178         (exp_upward_test_data): Likewise.
46179         (exp10_test_data): Likewise.
46180         (exp2_test_data): Likewise.
46181         (expm1_test_data): Likewise.
46182         (fabs_test_data): Likewise.
46183         (fdim_test_data): Likewise.
46184         (finite_test_data): Likewise.
46185         (floor_test_data): Likewise.
46186         (fma_test_data): Likewise.
46187         (fma_towardzero_test_data): Likewise.
46188         (fma_downward_test_data): Likewise.
46189         (fma_upward_test_data): Likewise.
46190         (fmax_test_data): Likewise.
46191         (fmin_test_data): Likewise.
46192         (fmod_test_data): Likewise.
46193         (fpclassify_test_data): Likewise.
46194         (frexp_test_data): Likewise.
46195         (gamma_test_data): Likewise.
46196         (hypot_test_data): Likewise.
46197         (ilogb_test_data): Likewise.
46198         (isfinite_test_data): Likewise.
46199         (isgreater_test_data): Likewise.
46200         (isgreaterequal_test_data): Likewise.
46201         (isinf_test_data): Likewise.
46202         (isless_test_data): Likewise.
46203         (islessequal_test_data): Likewise.
46204         (islessgreater_test_data): Likewise.
46205         (isnan_test_data): Likewise.
46206         (isnormal_test_data): Likewise.
46207         (issignaling_test_data): Likewise.
46208         (isunordered_test_data): Likewise.
46209         (j0_test_data): Likewise.
46210         (j1_test_data): Likewise.
46211         (jn_test_data): Likewise.
46212         (ldexp_test_data): Likewise.
46213         (lgamma_test_data): Likewise.
46214         (lrint_test_data): Likewise.
46215         (lrint_tonearest_test_data): Likewise.
46216         (lrint_towardzero_test_data): Likewise.
46217         (lrint_downward_test_data): Likewise.
46218         (lrint_upward_test_data): Likewise.
46219         (llrint_test_data): Likewise.
46220         (llrint_tonearest_test_data): Likewise.
46221         (llrint_towardzero_test_data): Likewise.
46222         (llrint_downward_test_data): Likewise.
46223         (llrint_upward_test_data): Likewise.
46224         (log_test_data): Likewise.
46225         (log10_test_data): Likewise.
46226         (log1p_test_data): Likewise.
46227         (log2_test_data): Likewise.
46228         (logb_test_data): Likewise.
46229         (logb_downward_test_data): Likewise.
46230         (lround_test_data): Likewise.
46231         (llround_test_data): Likewise.
46232         (modf_test_data): Likewise.
46233         (nearbyint_test_data): Likewise.
46234         (nextafter_test_data): Likewise.
46235         (nexttoward_test_data): Likewise.
46236         (pow_test_data): Likewise.
46237         (pow_tonearest_test_data): Likewise.
46238         (pow_towardzero_test_data): Likewise.
46239         (pow_downward_test_data): Likewise.
46240         (pow_upward_test_data): Likewise.
46241         (remainder_test_data): Likewise.
46242         (remainder_tonearest_test_data): Likewise.
46243         (remainder_towardzero_test_data): Likewise.
46244         (remainder_downward_test_data): Likewise.
46245         (remainder_upward_test_data): Likewise.
46246         (remquo_test_data): Likewise.
46247         (rint_test_data): Likewise.
46248         (rint_tonearest_test_data): Likewise.
46249         (rint_towardzero_test_data): Likewise.
46250         (rint_downward_test_data): Likewise.
46251         (rint_upward_test_data): Likewise.
46252         (round_test_data): Likewise.
46253         (scalb_test_data): Likewise.
46254         (scalbn_test_data): Likewise.
46255         (scalbln_test_data): Likewise.
46256         (signbit_test_data): Likewise.
46257         (sin_test_data): Likewise.
46258         (sin_tonearest_test_data): Likewise.
46259         (sin_towardzero_test_data): Likewise.
46260         (sin_downward_test_data): Likewise.
46261         (sin_upward_test_data): Likewise.
46262         (sincos_test_data): Likewise.
46263         (sinh_test_data): Likewise.
46264         (sinh_tonearest_test_data): Likewise.
46265         (sinh_towardzero_test_data): Likewise.
46266         (sinh_downward_test_data): Likewise.
46267         (sinh_upward_test_data): Likewise.
46268         (sqrt_test_data): Likewise.
46269         (tan_test_data): Likewise.
46270         (tan_tonearest_test_data): Likewise.
46271         (tan_towardzero_test_data): Likewise.
46272         (tan_downward_test_data): Likewise.
46273         (tan_upward_test_data): Likewise.
46274         (tanh_test_data): Likewise.
46275         (tgamma_test_data): Likewise.
46276         (trunc_test_data): Likewise.
46277         (y0_test_data): Likewise.
46278         (y1_test_data): Likewise.
46279         (yn_test_data): Likewise.
46280         (significand_test_data): Likewise.
46281
46282         * math/gen-libm-test.pl (@functions): Remove variable.
46283         (generate_testfile): Don't handle START and END lines.
46284         * math/libm-test.inc (START): New macro.
46285         (END): Likewise.
46286         (END_COMPLEX): Likewise.
46287         (acos_test): Use END macro without arguments.
46288         (acos_test_tonearest): Likewise.
46289         (acos_test_towardzero): Likewise.
46290         (acos_test_downward): Likewise.
46291         (acos_test_upward): Likewise.
46292         (acosh_test): Likewise.
46293         (asin_test): Likewise.
46294         (asin_test_tonearest): Likewise.
46295         (asin_test_towardzero): Likewise.
46296         (asin_test_downward): Likewise.
46297         (asin_test_upward): Likewise.
46298         (asinh_test): Likewise.
46299         (atan_test): Likewise.
46300         (atanh_test): Likewise.
46301         (atan2_test): Likewise.
46302         (cabs_test): Likewise.
46303         (cacos_test): Use END_COMPLEX macro without arguments.
46304         (cacosh_test): Likewise.
46305         (carg_test): Use END macro without arguments.
46306         (casin_test): Use END_COMPLEX macro without arguments.
46307         (casinh_test): Likewise.
46308         (catan_test): Likewise.
46309         (catanh_test): Likewise.
46310         (cbrt_test): Use END macro without arguments.
46311         (ccos_test): Use END_COMPLEX macro without arguments.
46312         (ccosh_test): Likewise.
46313         (ceil_test): Use END macro without arguments.
46314         (cexp_test): Use END_COMPLEX macro without arguments.
46315         (cimag_test): Use END macro without arguments.
46316         (clog_test): Use END_COMPLEX macro without arguments.
46317         (clog10_test): Likewise.
46318         (conj_test): Likewise.
46319         (copysign_test): Use END macro without arguments.
46320         (cos_test): Likewise.
46321         (cos_test_tonearest): Likewise.
46322         (cos_test_towardzero): Likewise.
46323         (cos_test_downward): Likewise.
46324         (cos_test_upward): Likewise.
46325         (cosh_test): Likewise.
46326         (cosh_test_tonearest): Likewise.
46327         (cosh_test_towardzero): Likewise.
46328         (cosh_test_downward): Likewise.
46329         (cosh_test_upward): Likewise.
46330         (cpow_test): Use END_COMPLEX macro without arguments.
46331         (cproj_test): Likewise.
46332         (creal_test): Use END macro without arguments.
46333         (csin_test): Use END_COMPLEX macro without arguments.
46334         (csinh_test): Likewise.
46335         (csqrt_test): Likewise.
46336         (ctan_test): Likewise.
46337         (ctan_test_tonearest): Likewise.
46338         (ctan_test_towardzero): Likewise.
46339         (ctan_test_downward): Likewise.
46340         (ctan_test_upward): Likewise.
46341         (ctanh_test): Likewise.
46342         (ctanh_test_tonearest): Likewise.
46343         (ctanh_test_towardzero): Likewise.
46344         (ctanh_test_downward): Likewise.
46345         (ctanh_test_upward): Likewise.
46346         (erf_test): Use END macro without arguments.
46347         (erfc_test): Likewise.
46348         (exp_test): Likewise.
46349         (exp_test_tonearest): Likewise.
46350         (exp_test_towardzero): Likewise.
46351         (exp_test_downward): Likewise.
46352         (exp_test_upward): Likewise.
46353         (exp10_test): Likewise.
46354         (exp2_test): Likewise.
46355         (expm1_test): Likewise.
46356         (fabs_test): Likewise.
46357         (fdim_test): Likewise.
46358         (finite_test): Likewise.
46359         (floor_test): Likewise.
46360         (fma_test): Likewise.
46361         (fma_test_towardzero): Likewise.
46362         (fma_test_downward): Likewise.
46363         (fma_test_upward): Likewise.
46364         (fmax_test): Likewise.
46365         (fmin_test): Likewise.
46366         (fmod_test): Likewise.
46367         (fpclassify_test): Likewise.
46368         (frexp_test): Likewise.
46369         (gamma_test): Likewise.
46370         (hypot_test): Likewise.
46371         (ilogb_test): Likewise.
46372         (isfinite_test): Likewise.
46373         (isgreater_test): Likewise.
46374         (isgreaterequal_test): Likewise.
46375         (isinf_test): Likewise.
46376         (isless_test): Likewise.
46377         (islessequal_test): Likewise.
46378         (islessgreater_test): Likewise.
46379         (isnan_test): Likewise.
46380         (isnormal_test): Likewise.
46381         (issignaling_test): Likewise.
46382         (isunordered_test): Likewise.
46383         (j0_test): Likewise.
46384         (j1_test): Likewise.
46385         (jn_test): Likewise.
46386         (ldexp_test): Likewise.
46387         (lgamma_test): Likewise.
46388         (lrint_test): Likewise.
46389         (lrint_test_tonearest): Likewise.
46390         (lrint_test_towardzero): Likewise.
46391         (lrint_test_downward): Likewise.
46392         (lrint_test_upward): Likewise.
46393         (llrint_test): Likewise.
46394         (llrint_test_tonearest): Likewise.
46395         (llrint_test_towardzero): Likewise.
46396         (llrint_test_downward): Likewise.
46397         (llrint_test_upward): Likewise.
46398         (log_test): Likewise.
46399         (log10_test): Likewise.
46400         (log1p_test): Likewise.
46401         (log2_test): Likewise.
46402         (logb_test): Likewise.
46403         (logb_test_downward): Likewise.
46404         (lround_test): Likewise.
46405         (llround_test): Likewise.
46406         (modf_test): Likewise.
46407         (nearbyint_test): Likewise.
46408         (nextafter_test): Likewise.
46409         (nexttoward_test): Likewise.
46410         (pow_test): Likewise.
46411         (pow_test_tonearest): Likewise.
46412         (pow_test_towardzero): Likewise.
46413         (pow_test_downward): Likewise.
46414         (pow_test_upward): Likewise.
46415         (remainder_test): Likewise.
46416         (remainder_test_tonearest): Likewise.
46417         (remainder_test_towardzero): Likewise.
46418         (remainder_test_downward): Likewise.
46419         (remainder_test_upward): Likewise.
46420         (remquo_test): Likewise.
46421         (rint_test): Likewise.
46422         (rint_test_tonearest): Likewise.
46423         (rint_test_towardzero): Likewise.
46424         (rint_test_downward): Likewise.
46425         (rint_test_upward): Likewise.
46426         (round_test): Likewise.
46427         (scalb_test): Likewise.
46428         (scalbn_test): Likewise.
46429         (scalbln_test): Likewise.
46430         (signbit_test): Likewise.
46431         (sin_test): Likewise.
46432         (sin_test_tonearest): Likewise.
46433         (sin_test_towardzero): Likewise.
46434         (sin_test_downward): Likewise.
46435         (sin_test_upward): Likewise.
46436         (sincos_test): Likewise.
46437         (sinh_test): Likewise.
46438         (sinh_test_tonearest): Likewise.
46439         (sinh_test_towardzero): Likewise.
46440         (sinh_test_downward): Likewise.
46441         (sinh_test_upward): Likewise.
46442         (sqrt_test): Likewise.
46443         (tan_test): Likewise.
46444         (tan_test_tonearest): Likewise.
46445         (tan_test_towardzero): Likewise.
46446         (tan_test_downward): Likewise.
46447         (tan_test_upward): Likewise.
46448         (tanh_test): Likewise.
46449         (tgamma_test): Likewise.
46450         (trunc_test): Likewise.
46451         (y0_test): Likewise.
46452         (y1_test): Likewise.
46453         (yn_test): Likewise.
46454         (significand_test): Likewise.
46455
46456 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46457
46458         [BZ #15381]
46459         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46460
46461 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46462
46463         [BZ #14894]
46464         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46465         __ppc_mdoio and __ppc_mdoom.
46466         * manual/platform.texi: Document new functions __ppc_yield,
46467         __ppc_mdoio and __ppc_mdoom.
46468
46469 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46470
46471         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46472         (main): Mention "tls" pseudo-hwcap is legacy.
46473         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46474
46475 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46476
46477         * math/gen-libm-test.pl (parse_args): Output only string of
46478         arguments as text for test name, not full call or descriptions of
46479         tests for extra outputs.
46480         (generate_testfile): Do not pass function name to parse_args.
46481         Generate this_func variable from START.
46482         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46483         field to arg_str.
46484         (struct test_ff_f_data): Likewise.
46485         (test_ff_f_data_nexttoward): Likewise.
46486         (struct test_fi_f_data): Likewise.
46487         (struct test_fl_f_data): Likewise.
46488         (struct test_if_f_data): Likewise.
46489         (struct test_fff_f_data): Likewise.
46490         (struct test_c_f_data): Likewise.
46491         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46492         (struct test_fF_f1_data): Likewise.
46493         (struct test_ffI_f1_data): Likewise.
46494         (struct test_c_c_data): Rename test_name field to arg_str.
46495         (struct test_cc_c_data): Likewise.
46496         (struct test_f_i_data): Likewise.
46497         (struct test_ff_i_data): Likewise.
46498         (struct test_f_l_data): Likewise.
46499         (struct test_f_L_data): Likewise.
46500         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46501         and extra2_name.
46502         (COMMON_TEST_SETUP): New macro.
46503         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46504         (COMMON_TEST_CLEANUP): Likewise.
46505         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46506         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46507         macros.
46508         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46509         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46510         macros.
46511         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46512         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46513         cleanup macros.
46514         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46515         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46516         macros.
46517         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46518         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46519         macros.
46520         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46521         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46522         cleanup macros.
46523         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46524         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46525         cleanup macros.
46526         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46527         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46528         cleanup macros.
46529         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46530         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46531         macros.
46532         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46533         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46534         macros.
46535         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46536         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46537         macros.
46538         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46539         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46540         cleanup macros.
46541         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46542         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46543         cleanup macros.
46544         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46545         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46546         macros.
46547         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46548         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46549         cleanup macros.
46550         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46551         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
46552         macros.
46553         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
46554         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
46555         macros.
46556         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
46557         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
46558         cleanup macros.
46559         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
46560
46561 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
46562
46563         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
46564         to _sifields.sigfault.
46565         (si_addr_lsb): Define new macro.
46566         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
46567         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
46568         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
46569
46570 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
46571
46572         [BZ #15441]
46573         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
46574         returns -1.
46575         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
46576         null return -1.
46577         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
46578         loading the domain.
46579
46580 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46581
46582         * math/gen-libm-test.pl (parse_args): Do not include expected
46583         result in test name.
46584         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
46585         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46586         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46587         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46588         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46590
46591 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46592
46593         * benchtests/Makefile: Sort function entries.
46594
46595         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
46596         tanh, asinh, acosh, atanh.
46597         * benchtests/acos-inputs: New file.
46598         * benchtests/acosh-inputs: New file.
46599         * benchtests/asin-inputs: New file.
46600         * benchtests/asinh-inputs: New file.
46601         * benchtests/atanh-inputs: New file.
46602         * benchtests/cosh-inputs: New file.
46603         * benchtests/log-inputs: New file.
46604         * benchtests/sinh-inputs: New file.
46605         * benchtests/tanh-inputs: New file.
46606
46607 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
46608
46609         [BZ #15339]
46610         * posix/tst-getaddrinfo4.c: New test.
46611         * posix/Makefile (tests): Add it.
46612
46613 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46614
46615         [BZ #15339]
46616         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
46617         when no services were used.
46618         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
46619         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
46620
46621 2013-05-21  Andreas Schwab  <schwab@suse.de>
46622
46623         [BZ #15014]
46624         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
46625         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
46626         successful.
46627         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
46628         redundant variable declarations and reallocation of buffer when
46629         parsing as IPv6 address.  Always set NSS status when called from
46630         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
46631         buffer too small.  Correct computation of needed size.
46632         * nss/Makefile (tests): Add test-digits-dots.
46633         * nss/test-digits-dots.c: New test.
46634
46635 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46636
46637         * benchtests/Makefile: Remove instructions for adding
46638         benchmark tests.
46639         * benchtests/README: New file to explain how to execute and
46640         enhance the benchmark tests.
46641
46642 2013-05-21  Andreas Schwab  <schwab@suse.de>
46643
46644         [BZ #15493]
46645         * setjmp/Makefile (tests): Add tst-sigsetjmp.
46646         * setjmp/tst-sigsetjmp.c: New test.
46647
46648 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46649
46650         * sysdeps/x86_64/memset.S (memset): New implementation.
46651         (__bzero): Likewise.
46652         (__memset_tail): New function.
46653
46654 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46655
46656         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
46657         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
46658         __memcpy_sse2_unaligned ifunc selection.
46659         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
46660         Add memcpy-sse2-unaligned.S.
46661         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
46662         Add: __memcpy_sse2_unaligned.
46663
46664 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
46665
46666         [BZ #15490]
46667         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
46668         math_force_eval before restoring floating-point envrionment.
46669         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
46670         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
46671         Likewise.
46672         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
46673         <math_private.h>.
46674         (__nearbyintl): Use math_force_eval before restoring
46675         floating-point environment.
46676         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
46677
46678         * math/gen-libm-test.pl (special_functions): Remove.
46679         (parse_args): Don't handle TEST_extra.  Handle functions with no
46680         return value.
46681         * math/libm-test.inc (struct test_sincos_data): Replace with
46682         struct test_fFF_11_data.
46683         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
46684         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
46685         (sincos_test_data): Change element type to struct
46686         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
46687         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
46688         RUN_TEST_LOOP_sincos.
46689         * math/README.libm-test: Don't mention special handling of
46690         individual functions.
46691         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
46692         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46693         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46694         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46695         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46697
46698         * math/gen-libm-test.pl (get_variable): Remove function.
46699         (parse_args): Don't show pointer parameters to call in test
46700         names.  Use "extra output N" in test names for extra outputs
46701         rather than naming variables.
46702
46703 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
46704
46705         [BZ #15488]
46706         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
46707         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
46708         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
46709         double tests.
46710         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
46711         disable.
46712         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
46713         check_long_double.
46714
46715         * math/gen-libm-test.pl (@tests): Remove variable.
46716         ($count): Likewise.
46717         (new_test): Remove function.
46718         (show_exceptions): New function.
46719         (special_functions): Use show_exceptions instead of new_test.
46720         (parse_args): Likewise.
46721         (generate_testfile): Pass only function name in generated call to
46722         print_max_error or print_complex_max_error.
46723         (get_ulps): Do not handle complex tests specially.
46724         (output_test): Rename to ...
46725         (get_all_ulps_for_test): ... this.  Return a string rather than
46726         printing to a file.  Require ulps to be present.
46727         (output_ulps): Generate arrays rather than #defines.
46728         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
46729         (struct ulp_data): New type.
46730         (BUILD_COMPLEX_ULP): Remove macro.
46731         (compare_ulp_data): New function.
46732         (find_ulps): Likewise.
46733         (find_test_ulps): Likewise.
46734         (find_function_ulps): Likewise.
46735         (find_complex_function_ulps): Likewise.
46736         (print_max_error): Determine allowed ulps using
46737         find_function_ulps.
46738         (print_complex_max_error): Determine allowed ulps using
46739         find_complex_function_ulps.
46740         (check_float_internal): Determine max ulps using find_test_ulps.
46741         (check_float): Do not take max_ulp parameter.  Update call to
46742         check_float_internal.
46743         (check_complex): Likewise.
46744         (check_int): Do not take max_ulp parameter.
46745         (check_long): Likewise.
46746         (check_bool): Likewise.
46747         (check_longlong): Likewise.
46748         (struct test_f_f_data): Remove max_ulp field.
46749         (struct test_ff_f_data): Likewise.
46750         (struct test_ff_f_data_nexttoward): Likewise.
46751         (struct test_fi_f_data): Likewise.
46752         (struct test_fl_f_data): Likewise.
46753         (struct test_if_f_data): Likewise.
46754         (struct test_fff_f_data): Likewise.
46755         (struct test_c_f_data): Likewise.
46756         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
46757         (struct test_fF_f1_data): Likewise.
46758         (struct test_ffI_f1_data): Likewise.
46759         (struct test_c_c_data): Remove max_ulp field.
46760         (struct test_cc_c_data): Likewise.
46761         (struct test_f_i_data): Likewise.
46762         (struct test_ff_i_data): Likewise.
46763         (struct test_f_l_data): Likewise.
46764         (struct test_f_L_data): Likewise.
46765         (struct test_sincos_data): Likewise.
46766         (RUN_TEST_f_f): Do not handle ulps.
46767         (RUN_TEST_LOOP_f_f): Likewise.
46768         (RUN_TEST_2_f): Likewise.
46769         (RUN_TEST_LOOP_2_f): Likewise.
46770         (RUN_TEST_fff_f): Likewise.
46771         (RUN_TEST_LOOP_fff_f): Likewise.
46772         (RUN_TEST_c_f): Likewise.
46773         (RUN_TEST_LOOP_c_f): Likewise.
46774         (RUN_TEST_f_f1): Likewise.
46775         (RUN_TEST_LOOP_f_f1): Likewise.
46776         (RUN_TEST_fF_f1): Likewise.
46777         (RUN_TEST_LOOP_fF_f1): Likewise.
46778         (RUN_TEST_fI_f1): Likewise.
46779         (RUN_TEST_LOOP_fI_f1): Likewise.
46780         (RUN_TEST_ffI_f1): Likewise.
46781         (RUN_TEST_LOOP_ffI_f1): Likewise.
46782         (RUN_TEST_c_c): Likewise.
46783         (RUN_TEST_LOOP_c_c): Likewise.
46784         (RUN_TEST_cc_c): Likewise.
46785         (RUN_TEST_LOOP_cc_c): Likewise.
46786         (RUN_TEST_f_i): Likewise.
46787         (RUN_TEST_LOOP_f_i): Likewise.
46788         (RUN_TEST_f_i_tg): Likewise.
46789         (RUN_TEST_LOOP_f_i_tg): Likewise.
46790         (RUN_TEST_ff_i_tg): Likewise.
46791         (RUN_TEST_LOOP_ff_i_tg): Likewise.
46792         (RUN_TEST_f_b): Likewise.
46793         (RUN_TEST_LOOP_f_b): Likewise.
46794         (RUN_TEST_f_b_tg): Likewise.
46795         (RUN_TEST_LOOP_f_b_tg): Likewise.
46796         (RUN_TEST_f_l): Likewise.
46797         (RUN_TEST_LOOP_f_l): Likewise.
46798         (RUN_TEST_f_L): Likewise.
46799         (RUN_TEST_LOOP_f_L): Likewise.
46800         (RUN_TEST_sincos): Likewise.
46801         (RUN_TEST_LOOP_sincos): Likewise.
46802
46803 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
46804
46805         [BZ #15480]
46806         [BZ #15485]
46807         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
46808         main case of finite arguments, set rounding mode to FE_TONEAREST
46809         and discard exceptions.
46810         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
46811         exceptions.
46812         (remainder_tonearest_test_data): New variable.
46813         (remainder_test_tonearest): New function.
46814         (remainder_towardzero_test_data): New variable.
46815         (remainder_test_towardzero): New function.
46816         (remainder_downward_test_data): New variable.
46817         (remainder_test_downward): New function.
46818         (remainder_upward_test_data): New variable.
46819         (remainder_test_upward): New function.
46820         (main): Call the new test functions.
46821
46822         * math/libm-test.inc (struct test_f_f1_data): Remove field
46823         extra_init.
46824         (struct test_fF_f1_data): Likewise.
46825         (struct test_ffI_f1_data): Likewise.
46826         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
46827         based on value of EXTRA_EXPECTED.
46828         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46829         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
46830         EXTRA_VAR based on value of EXTRA_EXPECTED.
46831         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46832         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
46833         EXTRA_VAR based on value of EXTRA_EXPECTED.
46834         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46835         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
46836         EXTRA_VAR based on value of EXTRA_EXPECTED.
46837         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46838         * math/gen-libm-test.pl (parse_args): Don't output initializers
46839         for extra output values.
46840
46841         * math/libm-test.inc (check_int): Expect result to be exactly
46842         equal to expected value and do not handle ulps.
46843         (check_long): Likewise.
46844         (check_longlong): Likewise.
46845
46846         * math/libm-test.inc (ceil_test_data): Test for "inexact"
46847         exceptions.
46848         (cimag_test_data): Likewise.
46849         (conj_test_data): Likewise.
46850         (copysign_test_data): Likewise.
46851         (cproj_test_data): Likewise.
46852         (creal_test_data): Likewise.
46853         (fabs_test_data): Likewise.
46854         (fdim_test_data): Likewise.
46855         (finite_test_data): Likewise.
46856         (floor_test_data): Likewise.
46857         (fmax_test_data): Likewise.
46858         (fmin_test_data): Likewise.
46859         (fmod_test_data): Likewise.
46860         (fpclassify_test_data): Likewise.
46861         (frexp_test_data): Likewise.
46862         (ilogb_test_data): Likewise.
46863         (isfinite_test_data): Likewise.
46864         (isgreater_test_data): Likewise.
46865         (isgreaterequal_test_data): Likewise.
46866         (isinf_test_data): Likewise.
46867         (isless_test_data): Likewise.
46868         (islessequal_test_data): Likewise.
46869         (islessgreater_test_data): Likewise.
46870         (isnan_test_data): Likewise.
46871         (isnormal_test_data): Likewise.
46872         (issignaling_test_data): Likewise.
46873         (isunordered_test_data): Likewise.
46874         (ldexp_test_data): Likewise.
46875         (lrint_test_data): Likewise.
46876         (lrint_test_data) [TEST_FLOAT]: Disable one test.
46877         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
46878         (lrint_tonearest_test_data): Test for "inexact" exceptions.
46879         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
46880         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
46881         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
46882         test input.
46883         (lrint_towardzero_test_data): Test for "inexact" exceptions.
46884         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
46885         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
46886         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
46887         that test input.
46888         (lrint_downward_test_data): Test for "inexact" exceptions.
46889         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
46890         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
46891         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
46892         test input.
46893         (lrint_upward_test_data): Test for "inexact" exceptions.
46894         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
46895         test input.
46896         (llrint_test_data): Test for "inexact" exceptions.
46897         (llrint_test_data) [TEST_FLOAT]: Disable one test.
46898         (llrint_tonearest_test_data): Test for "inexact" exceptions.
46899         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
46900         (llrint_towardzero_test_data): Test for "inexact" exceptions.
46901         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
46902         (llrint_downward_test_data): Test for "inexact" exceptions.
46903         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
46904         (llrint_upward_test_data): Test for "inexact" exceptions.
46905         (logb_test_data): Likewise.
46906         (logb_downward_test_data): Likewise.
46907         (nextafter_test_data): Likewise.
46908         (nexttoward_test_data): Likewise.
46909         (remainder_test_data): Likewise.
46910         (remquo_test_data): Likewise.
46911         (scalbn_test_data): Likewise.
46912         (scalbln_test_data): Likewise.
46913         (signbit_test_data): Likewise.
46914         (sqrt_test_data): Likewise.
46915         (significand_test_data): Likewise.
46916
46917 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
46918
46919         [BZ #15424]
46920         * benchtests/bench-modf.c (struct args): Mark arg0 as
46921         volatile.
46922         * scripts/bench.pl: Mark members of struct args as volatile.
46923
46924 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46925
46926         [BZ # 15497]
46927         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
46928         negative infinity on POWER6 or lower.
46929         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
46930
46931 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
46932
46933         [BZ #15442]
46934         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
46935         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
46936         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
46937         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
46938         (_FP_SETQNAN): New macro.
46939         (_FP_SETQNAN_SEMIRAW): Likewise.
46940         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
46941         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
46942         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
46943         (FP_EXTEND): Use _FP_FRAC_SNANP.
46944         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
46945         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
46946         into account.
46947         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
46948         New macro.
46949         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
46950         Likewise.
46951
46952 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
46953
46954         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
46955         with DIVIDE_BY_ZERO_EXCEPTION.
46956         (gamma_test_data): Likewise.
46957         (lgamma_test_data): Likewise.
46958         (log_test_data): Likewise.
46959         (log10_test_data): Likewise.
46960         (log2_test_data): Likewise.
46961         (tgamma_test_data): Likewise.
46962
46963         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
46964         (acos_test_tonearest): Likewise.
46965         (acos_test_towardzero): Likewise.
46966         (acos_test_downward): Likewise.
46967         (acos_test_upward): Likewise.
46968         (acosh_test): Likewise.
46969         (asin_test): Likewise.
46970         (asin_test_tonearest): Likewise.
46971         (asin_test_towardzero): Likewise.
46972         (asin_test_downward): Likewise.
46973         (asin_test_upward): Likewise.
46974         (asinh_test): Likewise.
46975         (atan_test): Likewise.
46976         (atanh_test): Likewise.
46977         (atan2_test): Likewise.
46978         (cabs_test): Likewise.
46979         (cacos_test): Likewise.
46980         (cacosh_test): Likewise.
46981         (casin_test): Likewise.
46982         (casinh_test): Likewise.
46983         (catan_test): Likewise.
46984         (catanh_test): Likewise.
46985         (cbrt_test): Likewise.
46986         (ccos_test): Likewise.
46987         (ccosh_test): Likewise.
46988         (cexp_test): Likewise.
46989         (clog_test): Likewise.
46990         (clog10_test): Likewise.
46991         (cos_test): Likewise.
46992         (cos_test_tonearest): Likewise.
46993         (cos_test_towardzero): Likewise.
46994         (cos_test_downward): Likewise.
46995         (cos_test_upward): Likewise.
46996         (cosh_test): Likewise.
46997         (cosh_test_tonearest): Likewise.
46998         (cosh_test_towardzero): Likewise.
46999         (cosh_test_downward): Likewise.
47000         (cosh_test_upward): Likewise.
47001         (cpow_test): Likewise.
47002         (csin_test): Likewise.
47003         (csinh_test): Likewise.
47004         (csqrt_test): Likewise.
47005         (ctan_test): Likewise.
47006         (ctan_test_tonearest): Likewise.
47007         (ctan_test_towardzero): Likewise.
47008         (ctan_test_downward): Likewise.
47009         (ctan_test_upward): Likewise.
47010         (ctanh_test): Likewise.
47011         (ctanh_test_tonearest): Likewise.
47012         (ctanh_test_towardzero): Likewise.
47013         (ctanh_test_downward): Likewise.
47014         (ctanh_test_upward): Likewise.
47015         (erf_test): Likewise.
47016         (erfc_test): Likewise.
47017         (exp_test): Likewise.
47018         (exp_test_tonearest): Likewise.
47019         (exp_test_towardzero): Likewise.
47020         (exp_test_downward): Likewise.
47021         (exp_test_upward): Likewise.
47022         (exp10_test): Likewise.
47023         (exp2_test): Likewise.
47024         (expm1_test): Likewise.
47025         (fmod_test): Likewise.
47026         (gamma_test): Likewise.
47027         (hypot_test): Likewise.
47028         (j0_test): Likewise.
47029         (j1_test): Likewise.
47030         (jn_test): Likewise.
47031         (lgamma_test): Likewise.
47032         (log_test): Likewise.
47033         (log10_test): Likewise.
47034         (log1p_test): Likewise.
47035         (log2_test): Likewise.
47036         (logb_test_downward): Likewise.
47037         (pow_test): Likewise.
47038         (pow_test_tonearest): Likewise.
47039         (pow_test_towardzero): Likewise.
47040         (pow_test_downward): Likewise.
47041         (pow_test_upward): Likewise.
47042         (remainder_test): Likewise.
47043         (remquo_test): Likewise.
47044         (sin_test): Likewise.
47045         (sin_test_tonearest): Likewise.
47046         (sin_test_towardzero): Likewise.
47047         (sin_test_downward): Likewise.
47048         (sin_test_upward): Likewise.
47049         (sincos_test): Likewise.
47050         (sinh_test): Likewise.
47051         (sinh_test_tonearest): Likewise.
47052         (sinh_test_towardzero): Likewise.
47053         (sinh_test_downward): Likewise.
47054         (sinh_test_upward): Likewise.
47055         (sqrt_test): Likewise.
47056         (tan_test): Likewise.
47057         (tan_test_tonearest): Likewise.
47058         (tan_test_towardzero): Likewise.
47059         (tan_test_downward): Likewise.
47060         (tan_test_upward): Likewise.
47061         (tanh_test): Likewise.
47062         (tgamma_test): Likewise.
47063         (y0_test): Likewise.
47064         (y1_test): Likewise.
47065         (yn_test): Likewise.
47066
47067         * math/gen-libm-test.pl (adjust_arg): Remove function.
47068         (special_function): Remove argument $in_func.  Only handle
47069         generating output for tables of tests, not inside functions.
47070         (parse_args): Likewise.
47071         (generate_testfile): Remove variable $in_func.  Update call to
47072         parse_args.
47073         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47074         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47075         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47076         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47077         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47078         (MAX_VALUE_INIT): Rename macro to max_value.
47079         (MIN_VALUE_INIT): Rename macro to min_value.
47080         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47081         (plus_zero): Remove variable.
47082         (minus_zero): Likewise.
47083         (plus_infty): Likewise.
47084         (minus_infty): Likewise.
47085         (qnan_value): Likewise.
47086         (max_value): Likewise.
47087         (min_value): Likewise.
47088         (min_subnorm_value): Likewise.
47089
47090 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47091
47092         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47093         uint64_t or uint32_t usage.
47094         * crypt/sha256-block.c: Likewise.
47095         * crypt/sha256-crypt.c: Likewise.
47096         * crypt/sha256.c: Likewise.
47097         * crypt/sha512-block.c: Likewise.
47098         * crypt/sha512-crypt.c: Likewise.
47099         * crypt/sha512.c: Likewise.
47100         * debug/backtrace-tst.c: Likewise.
47101         * debug/pcprofiledump.c: Likewise.
47102         * elf/cache.c: Likewise.
47103         * elf/dl-cache.c: Likewise.
47104         * elf/dl-misc.c: Likewise.
47105         * elf/dl-profile.c: Likewise.
47106         * elf/dl-support.c: Likewise.
47107         * elf/ldconfig.c: Likewise.
47108         * elf/sprof.c: Likewise.
47109         * iconv/dummy-repertoire.c: Likewise.
47110         * iconv/iconv_charmap.c: Likewise.
47111         * iconv/skeleton.c: Likewise.
47112         * iconvdata/8bit-generic.c: Likewise.
47113         * iconvdata/cp737.h: Likewise.
47114         * iconvdata/cp775.h: Likewise.
47115         * iconvdata/ibm1008.h: Likewise.
47116         * iconvdata/ibm1025.h: Likewise.
47117         * iconvdata/ibm1046.h: Likewise.
47118         * iconvdata/ibm1097.h: Likewise.
47119         * iconvdata/ibm1112.h: Likewise.
47120         * iconvdata/ibm1122.h: Likewise.
47121         * iconvdata/ibm1123.h: Likewise.
47122         * iconvdata/ibm1124.h: Likewise.
47123         * iconvdata/ibm1129.h: Likewise.
47124         * iconvdata/ibm1130.h: Likewise.
47125         * iconvdata/ibm1132.h: Likewise.
47126         * iconvdata/ibm1133.h: Likewise.
47127         * iconvdata/ibm1137.h: Likewise.
47128         * iconvdata/ibm1140.h: Likewise.
47129         * iconvdata/ibm1141.h: Likewise.
47130         * iconvdata/ibm1142.h: Likewise.
47131         * iconvdata/ibm1143.h: Likewise.
47132         * iconvdata/ibm1144.h: Likewise.
47133         * iconvdata/ibm1145.h: Likewise.
47134         * iconvdata/ibm1146.h: Likewise.
47135         * iconvdata/ibm1147.h: Likewise.
47136         * iconvdata/ibm1148.h: Likewise.
47137         * iconvdata/ibm1149.h: Likewise.
47138         * iconvdata/ibm1153.h: Likewise.
47139         * iconvdata/ibm1154.h: Likewise.
47140         * iconvdata/ibm1155.h: Likewise.
47141         * iconvdata/ibm1156.h: Likewise.
47142         * iconvdata/ibm1157.h: Likewise.
47143         * iconvdata/ibm1158.h: Likewise.
47144         * iconvdata/ibm1160.h: Likewise.
47145         * iconvdata/ibm1161.h: Likewise.
47146         * iconvdata/ibm1162.h: Likewise.
47147         * iconvdata/ibm1163.h: Likewise.
47148         * iconvdata/ibm1164.h: Likewise.
47149         * iconvdata/ibm1166.h: Likewise.
47150         * iconvdata/ibm1167.h: Likewise.
47151         * iconvdata/ibm12712.h: Likewise.
47152         * iconvdata/ibm1390.h: Likewise.
47153         * iconvdata/ibm1399.h: Likewise.
47154         * iconvdata/ibm16804.h: Likewise.
47155         * iconvdata/ibm4517.h: Likewise.
47156         * iconvdata/ibm4899.h: Likewise.
47157         * iconvdata/ibm4909.h: Likewise.
47158         * iconvdata/ibm4971.h: Likewise.
47159         * iconvdata/ibm5347.h: Likewise.
47160         * iconvdata/ibm803.h: Likewise.
47161         * iconvdata/ibm856.h: Likewise.
47162         * iconvdata/ibm901.h: Likewise.
47163         * iconvdata/ibm902.h: Likewise.
47164         * iconvdata/ibm9030.h: Likewise.
47165         * iconvdata/ibm9066.h: Likewise.
47166         * iconvdata/ibm921.h: Likewise.
47167         * iconvdata/ibm922.h: Likewise.
47168         * iconvdata/ibm9448.h: Likewise.
47169         * iconvdata/isiri-3342.h: Likewise.
47170         * iconvdata/jis0201.h: Likewise.
47171         * include/link.h: Likewise.
47172         * include/netdb.h: Likewise.
47173         * inet/check_native.c: Likewise.
47174         * inet/check_pf.c: Likewise.
47175         * inet/getipv4sourcefilter.c: Likewise.
47176         * inet/getnameinfo.c: Likewise.
47177         * inet/getsourcefilter.c: Likewise.
47178         * inet/htonl.c: Likewise.
47179         * inet/setipv4sourcefilter.c: Likewise.
47180         * inet/setsourcefilter.c: Likewise.
47181         * inet/test-inet6_opt.c: Likewise.
47182         * inet/tst-network.c: Likewise.
47183         * locale/C-collate.c: Likewise.
47184         * locale/C-ctype.c: Likewise.
47185         * locale/C-time.c: Likewise.
47186         * locale/C-translit.h: Likewise.
47187         * locale/loadarchive.c: Likewise.
47188         * locale/programs/3level.h: Likewise.
47189         * locale/programs/charmap.c: Likewise.
47190         * locale/programs/charmap.h: Likewise.
47191         * locale/programs/ld-address.c: Likewise.
47192         * locale/programs/ld-collate.c: Likewise.
47193         * locale/programs/ld-ctype.c: Likewise.
47194         * locale/programs/ld-identification.c: Likewise.
47195         * locale/programs/ld-measurement.c: Likewise.
47196         * locale/programs/ld-messages.c: Likewise.
47197         * locale/programs/ld-monetary.c: Likewise.
47198         * locale/programs/ld-name.c: Likewise.
47199         * locale/programs/ld-numeric.c: Likewise.
47200         * locale/programs/ld-paper.c: Likewise.
47201         * locale/programs/ld-telephone.c: Likewise.
47202         * locale/programs/ld-time.c: Likewise.
47203         * locale/programs/linereader.c: Likewise.
47204         * locale/programs/locale.c: Likewise.
47205         * locale/programs/locarchive.c: Likewise.
47206         * locale/programs/locfile.h: Likewise.
47207         * locale/programs/repertoire.c: Likewise.
47208         * locale/programs/simple-hash.c: Likewise.
47209         * locale/programs/simple-hash.h: Likewise.
47210         * malloc/memusage.c: Likewise.
47211         * malloc/memusagestat.c: Likewise.
47212         * nis/nis_defaults.c: Likewise.
47213         * nis/nis_hash.c: Likewise.
47214         * nis/nis_print.c: Likewise.
47215         * nis/nis_xdr.c: Likewise.
47216         * nscd/connections.c: Likewise.
47217         * nscd/hstcache.c: Likewise.
47218         * nscd/nscd_gethst_r.c: Likewise.
47219         * nscd/nscd_getserv_r.c: Likewise.
47220         * nscd/nscd_helper.c: Likewise.
47221         * nscd/servicescache.c: Likewise.
47222         * nss/makedb.c: Likewise.
47223         * nss/nss_db/db-XXX.c: Likewise.
47224         * nss/nss_db/db-initgroups.c: Likewise.
47225         * nss/nss_db/db-netgrp.c: Likewise.
47226         * nss/nss_files/files-network.c: Likewise.
47227         * nss/nss_files/files-parse.c: Likewise.
47228         * posix/bug-regex5.c: Likewise.
47229         * posix/fnmatch_loop.c: Likewise.
47230         * posix/regcomp.c: Likewise.
47231         * posix/regexec.c: Likewise.
47232         * posix/tst-rfc3484-2.c: Likewise.
47233         * posix/tst-rfc3484-3.c: Likewise.
47234         * posix/tst-rfc3484.c: Likewise.
47235         * resolv/nss_dns/dns-canon.c: Likewise.
47236         * resolv/nss_dns/dns-network.c: Likewise.
47237         * resolv/res_init.c: Likewise.
47238         * resolv/res_mkquery.c: Likewise.
47239         * resolv/tst-aton.c: Likewise.
47240         * stdlib/cxa_atexit.c: Likewise.
47241         * stdlib/cxa_finalize.c: Likewise.
47242         * stdlib/gen-fpioconst.c: Likewise.
47243         * stdlib/strtol_l.c: Likewise.
47244         * string/tst-endian.c: Likewise.
47245         * sunrpc/auth_des.c: Likewise.
47246         * sunrpc/clnt_udp.c: Likewise.
47247         * sunrpc/rtime.c: Likewise.
47248         * sunrpc/svcauth_des.c: Likewise.
47249         * sunrpc/xdr.c: Likewise.
47250         * sunrpc/xdr_intXX_t.c: Likewise.
47251         * sunrpc/xdr_rec.c: Likewise.
47252         * sysdeps/generic/ldconfig.h: Likewise.
47253         * sysdeps/generic/ldsodefs.h: Likewise.
47254         * sysdeps/generic/memusage.h: Likewise.
47255         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47256         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47257         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47258         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47259         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47260         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47261         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47262         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47263         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47264         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47265         * sysdeps/posix/getaddrinfo.c: Likewise.
47266         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47267         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47268         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47269         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47270         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47271         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47272         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47273         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47274         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47275         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47276         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47277         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47278         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47279         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47280         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47281         * sysdeps/x86_64/dl-tls.h: Likewise.
47282         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47283         * time/alt_digit.c: Likewise.
47284         * time/era.c: Likewise.
47285         * wcsmbs/tst-c16c32-1.c: Likewise.
47286
47287 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47288
47289         * math/libm-test.inc (struct test_sincos_data): New type.
47290         (RUN_TEST_LOOP_sincos): New macro.
47291         (sincos_test_data): New variable.
47292         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47293
47294 2013-05-16  Richard Henderson  <rth@redhat.com>
47295
47296         * math/atest-exp2.c (LIMB64): New macro.
47297         (CONSTSZ): New macro.
47298         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47299         (hexdig): Move ...
47300         (print_mpn_fp): ... to function scope.
47301         (read_mpn_hex): Remove.
47302         (get_log2): Remove.
47303         (exp2_mpn): Use mp_log2.
47304         (main): Use mp_exp1.
47305
47306 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47307
47308         * math/libm-test.inc: Remove comment about not testing "inexact"
47309         exceptions.
47310         (INEXACT_EXCEPTION): New macro.
47311         (NO_INEXACT_EXCEPTION): Likewise.
47312         (INVALID_EXCEPTION_OK): Update value.
47313         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47314         (OVERFLOW_EXCEPTION_OK): Likewise.
47315         (UNDERFLOW_EXCEPTION_OK): Likewise.
47316         (IGNORE_ZERO_INF_SIGN): Likewise.
47317         (ERRNO_UNCHANGED): Likewise.
47318         (ERRNO_EDOM): Likewise.
47319         (ERRNO_ERANGE): Likewise.
47320         (test_exceptions): Handle testing "inexact" exceptions.
47321         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47322         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47323         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47324         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47325         INEXACT_EXCEPTION.
47326         (rint_towardzero_test_data): Likewise.
47327         (rint_downward_test_data): Likewise.
47328         (rint_upward_test_data): Likewise.
47329
47330         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47331         with OVERFLOW_EXCEPTION.
47332         (exp10_test_data): Likewise.
47333         (exp2_test_data): Likewise.
47334         (expm1_test_data): Likewise.
47335         (lgamma_test_data): Likewise.
47336         (pow_test_data): Likewise.
47337         (tgamma_test_data): Likewise.
47338         (yn_test_data): Remove duplicate test of overflow.
47339
47340         * math/libm-test.inc (struct test_cc_c_data): New type.
47341         (RUN_TEST_LOOP_cc_c): New macro.
47342         (cpow_test_data): New variable.
47343         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47344
47345         * math/libm-test.inc (struct test_f_L_data): New type.
47346         (RUN_TEST_LOOP_f_L): New macro.
47347         (llrint_test_data): New variable.
47348         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47349         (llrint_tonearest_test_data): New variable.
47350         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47351         (llrint_towardzero_test_data): New variable.
47352         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47353         (llrint_downward_test_data): New variable.
47354         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47355         (llrint_upward_test_data): New variable.
47356         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47357         (llround_test_data): New variable.
47358         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47359
47360 2013-05-13  Peter Collingbourne  <pcc@google.com>
47361
47362         * math/atest-exp2.c (get_log2): Remove const attribute.
47363
47364 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47365
47366         * math/libm-test.inc (struct test_f_l_data): New type.
47367         (RUN_TEST_LOOP_f_l): New macro.
47368         (lrint_test_data): New variable.
47369         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47370         (lrint_tonearest_test_data): New variable.
47371         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47372         (lrint_towardzero_test_data): New variable.
47373         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47374         (lrint_downward_test_data): New variable.
47375         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47376         (lrint_upward_test_data): New variable.
47377         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47378         (lround_test_data): New variable.
47379         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47380
47381 2013-05-15  Peter Collingbourne  <pcc@google.com>
47382
47383         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47384         (EXTRACT_WORDS64) Use where appropriate.
47385         (INSERT_WORDS64) Likewise.
47386
47387         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47388         constraints with x constraints.
47389         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47390
47391         * malloc/obstack.c (_obstack_compat): Add initializer.
47392
47393 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47394
47395         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47396         si_trapno and add si_addr_lsb to _sifields.sigfault.
47397         (si_trapno): Remove macro.
47398         (si_addr_lsb): Define new macro.
47399         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47400
47401 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47402
47403         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47404         instead of TEST_f_l.
47405         (llrint_test_tonearest): Likewise.
47406         (llrint_test_towardzero): Likewise.
47407         (llrint_test_downward): Likewise.
47408         (llrint_test_upward): Likewise.
47409         (llround_test): Likewise.
47410
47411         * math/libm-test.inc (struct test_f_i_data): Add comment.
47412         (RUN_TEST_LOOP_f_b): New macro.
47413         (RUN_TEST_LOOP_f_b_tg): Likewise.
47414         (finite_test_data): New variable.
47415         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47416         (isfinite_test_data): New variable.
47417         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47418         (isinf_test_data): New variable.
47419         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47420         (isnan_test_data): New variable.
47421         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47422         (isnormal_test_data): New variable.
47423         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47424         (issignaling_test_data): New variable.
47425         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47426         (signbit_test_data): New variable.
47427         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47428
47429         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47430         with INVALID_EXCEPTION.
47431         (acosh_test_data): Likewise.
47432         (asin_test_data): Likewise.
47433         (atanh_test_data): Likewise.
47434         (fmod_test_data): Likewise.
47435         (log_test_data): Likewise.
47436         (log10_test_data): Likewise.
47437         (log2_test_data): Likewise.
47438         (pow_test_data): Likewise.
47439         (sqrt_test_data): Likewise.
47440         (y0_test_data): Likewise.
47441         (y1_test_data): Likewise.
47442         (yn_test_data): Likewise.
47443
47444         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47445         function contents.
47446
47447         * math/libm-test.inc (struct test_ff_i_data): New type.
47448         (RUN_TEST_LOOP_ff_i_tg): New macro.
47449         (isgreater_test_data): New variable.
47450         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47451         (isgreaterequal_test_data): New variable.
47452         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47453         (isless_test_data): New variable.
47454         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47455         (islessequal_test_data): New variable.
47456         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47457         (islessgreater_test_data): New variable.
47458         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47459         (isunordered_test_data): New variable.
47460         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47461
47462 2013-05-14  David S. Miller  <davem@davemloft.net>
47463
47464         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47465
47466 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47467
47468         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47469
47470         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47471         extra_test to int.
47472         (struct test_f_i_data): Change type of max_ulp to int.
47473
47474         * math/libm-test.inc (test_ffI_f1_data): New type.
47475         (RUN_TEST_LOOP_ffI_f1): New macro.
47476         (remquo_test_data): New variable.
47477         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47478
47479         * setjmp/tst-setjmp-fp.c: New file.
47480         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47481         (link-libm): New variable.
47482         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47483
47484         * math/libm-test.inc (struct test_f_i_data): New type.
47485         (RUN_TEST_LOOP_f_i): New macro.
47486         (RUN_TEST_LOOP_f_i_tg): Likewise.
47487         (fpclassify_test_data): New variable.
47488         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47489         (ilogb_test_data): New variable.
47490         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47491
47492         * math/libm-test.inc (scalbln_test): Correct function name in END
47493         call.
47494
47495         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47496         (RUN_TEST_LOOP_fI_f1): New macro.
47497         (frexp_test_data): New variable.
47498         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47499
47500         * math/libm-test.inc (struct test_fF_f1_data): New type.
47501         (RUN_TEST_LOOP_fF_f1): New macro.
47502         (modf_test_data): New variable.
47503         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47504
47505         * math/libm-test.inc (struct test_f_f1_data): New type.
47506         (RUN_TEST_LOOP_f_f1): New macro.
47507         (gamma_test_data): New variable.
47508         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47509         (lgamma_test_data): New variable.
47510         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47511
47512 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47513
47514         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47515         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47516         (main): Comment "tls" pseudo-hwcap.
47517
47518 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47519
47520         * math/libm-test.inc (struct test_fl_f_data): New type.
47521         (RUN_TEST_LOOP_fl_f): New variable.
47522         (scalbln_test_data): New variable.
47523         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47524
47525         * math/libm-test.inc (struct test_fi_f_data): New type.
47526         (RUN_TEST_LOOP_fi_f): New macro.
47527         (ldexp_test_data): New variable.
47528         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47529         (scalbn_test_data): New variable.
47530         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47531
47532         * math/libm-test.inc (struct test_c_f_data): New type.
47533         (RUN_TEST_LOOP_c_f): New macro.
47534         (cabs_test_data): New variable.
47535         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47536         (carg_test_data): New variable.
47537         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47538         (cimag_test_data): New variable.
47539         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47540         (creal_test_data): New variable.
47541         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47542
47543         * math/libm-test.inc (struct test_if_f_data): New type.
47544         (RUN_TEST_LOOP_if_f): New macro.
47545         (jn_test_data): New variable.
47546         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47547         (yn_test_data): New variable.
47548         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47549
47550         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47551
47552 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47553
47554         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
47555         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
47556
47557 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
47558
47559         * benchtests/Makefile (CPPFLAGS-nonlib): Add
47560         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
47561         (bench-deps): Add bench-timing.h.
47562         * benchtests-bench-skeleton.c: Include bench-timing.h.
47563         (main): Use TIMING_* macros instead of clock_gettime.
47564         * benchtests/bench-timing.h: New file.
47565
47566         [BZ #14582]
47567         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
47568         Renamed from _LIB_VERSION.
47569         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
47570
47571 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
47572
47573         * math/libm-test.inc (struct test_fff_f_data): New type.
47574         (RUN_TEST_LOOP_fff_f): New macro.
47575         (fma_test_data): New variable.
47576         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
47577         (fma_towardzero_test_data): New variable.
47578         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
47579         (fma_downward_test_data): New variable.
47580         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
47581         (fma_upward_test_data): New variable.
47582         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
47583
47584         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
47585         (struct test_c_c_data): New type.
47586         (RUN_TEST_LOOP_c_c): New macro.
47587         (cacos_test_data): New variable.
47588         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
47589         (cacosh_test_data): New variable.
47590         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
47591         (casin_test_data): New variable.
47592         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
47593         (casinh_test_data): New variable.
47594         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
47595         (catan_test_data): New variable.
47596         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
47597         (catanh_test_data): New variable.
47598         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
47599         (ccos_test_data): New variable.
47600         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
47601         (ccosh_test_data): New variable.
47602         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
47603         (cexp_test_data): New variable.
47604         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
47605         (clog_test_data): New variable.
47606         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
47607         (clog10_test_data): New variable.
47608         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
47609         (conj_test_data): New variable.
47610         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
47611         (cproj_test_data): New variable.
47612         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
47613         (csin_test_data): New variable.
47614         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
47615         (csinh_test_data): New variable.
47616         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
47617         (csqrt_test_data): New variable.
47618         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
47619         (ctan_test_data): New variable.
47620         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
47621         (ctan_tonearest_test_data): New variable.
47622         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47623         (ctan_towardzero_test_data): New variable.
47624         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47625         (ctan_downward_test_data): New variable.
47626         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47627         (ctan_upward_test_data): New variable.
47628         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47629         (ctanh_test_data): New variable.
47630         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
47631         (ctanh_tonearest_test_data): New variable.
47632         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47633         (ctanh_towardzero_test_data): New variable.
47634         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47635         (ctanh_downward_test_data): New variable.
47636         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47637         (ctanh_upward_test_data): New variable.
47638         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47639         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
47640         of BUILD_COMPLEX.
47641
47642         * math/libm-test.inc (struct test_ff_f_data): New type.
47643         (struct test_ff_f_data_nexttoward): Likewise.
47644         (RUN_TEST_LOOP_2_f): New macro.
47645         (RUN_TEST_LOOP_ff_f): Likewise.
47646         (atan2_test_data): New variable.
47647         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
47648         (copysign_test_data): New variable.
47649         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
47650         (fdim_test_data): New variable.
47651         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
47652         (fmax_test_data): New variable.
47653         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
47654         (fmin_test_data): New variable.
47655         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
47656         (fmod_test_data): New variable.
47657         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
47658         (hypot_test_data): New variable.
47659         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
47660         (nextafter_test_data): New variable.
47661         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
47662         (nexttoward_test_data): New variable.
47663         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
47664         (pow_test_data): New variable.
47665         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
47666         (pow_tonearest_test_data): New variable.
47667         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
47668         (pow_towardzero_test_data): New variable.
47669         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
47670         (pow_downward_test_data): New variable.
47671         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
47672         (pow_upward_test_data): New variable.
47673         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
47674         (remainder_test_data): New variable.
47675         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
47676         (scalb_test_data): New variable.
47677         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
47678         * sysdeps/i386/fpu/libm-test-ulps: Update.
47679
47680 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
47681
47682         * math/libm-test.inc (fma_test): Use max_value instead of local
47683         variable fltmax.
47684         (nextafter_test): Likewise.
47685
47686         * math/libm-test.inc (acos_towardzero_test_data): New variable.
47687         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47688         (acos_downward_test_data): New variable.
47689         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47690         (acos_upward_test_data): New variable.
47691         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47692         (acosh_test_data): New variable.
47693         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
47694         (asin_test_data): New variable.
47695         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
47696         (asin_tonearest_test_data): New variable.
47697         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47698         (asin_towardzero_test_data): New variable.
47699         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47700         (asin_downward_test_data): New variable.
47701         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47702         (asin_upward_test_data): New variable.
47703         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47704         (asinh_test_data): New variable.
47705         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
47706         (atan_test_data): New variable.
47707         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
47708         (atanh_test_data): New variable.
47709         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
47710         (cbrt_test_data): New variable.
47711         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
47712         (ceil_test_data): New variable.
47713         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
47714         (cos_test_data): New variable.
47715         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
47716         (cos_tonearest_test_data): New variable.
47717         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47718         (cos_towardzero_test_data): New variable.
47719         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47720         (cos_downward_test_data): New variable.
47721         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47722         (cos_upward_test_data): New variable.
47723         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47724         (cosh_test_data): New variable.
47725         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
47726         (cosh_tonearest_test_data): New variable.
47727         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47728         (cosh_towardzero_test_data): New variable.
47729         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47730         (cosh_downward_test_data): New variable.
47731         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47732         (cosh_upward_test_data): New variable.
47733         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47734         (erf_test_data): New variable.
47735         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
47736         (erfc_test_data): New variable.
47737         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
47738         (exp_test_data): New variable.
47739         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
47740         (exp_tonearest_test_data): New variable.
47741         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47742         (exp_towardzero_test_data): New variable.
47743         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47744         (exp_downward_test_data): New variable.
47745         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47746         (exp_upward_test_data): New variable.
47747         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47748         (exp10_test_data): New variable.
47749         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
47750         (exp2_test_data): New variable.
47751         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
47752         (expm1_test_data): New variable.
47753         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
47754         (fabs_test_data): New variable.
47755         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
47756         (floor_test_data): New variable.
47757         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
47758         (j0_test_data): New variable.
47759         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
47760         (j1_test_data): New variable.
47761         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
47762         (log_test_data): New variable.
47763         (log_test): Run tests with RUN_TEST_LOOP_f_f.
47764         (log10_test_data): New variable.
47765         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
47766         (log1p_test_data): New variable.
47767         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
47768         (log2_test_data): New variable.
47769         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
47770         (logb_test_data): New variable.
47771         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
47772         (logb_downward_test_data): New variable.
47773         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47774         (nearbyint_test_data): New variable.
47775         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
47776         (rint_test_data): New variable.
47777         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
47778         (rint_tonearest_test_data): New variable.
47779         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47780         (rint_towardzero_test_data): New variable.
47781         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47782         (rint_downward_test_data): New variable.
47783         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47784         (rint_upward_test_data): New variable.
47785         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47786         (round_test_data): New variable.
47787         (round_test): Run tests with RUN_TEST_LOOP_f_f.
47788         (sin_test_data): New variable.
47789         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
47790         (sin_tonearest_test_data): New variable.
47791         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47792         (sin_towardzero_test_data): New variable.
47793         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47794         (sin_downward_test_data): New variable.
47795         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47796         (sin_upward_test_data): New variable.
47797         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47798         (sinh_test_data): New variable.
47799         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
47800         (sinh_tonearest_test_data): New variable.
47801         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47802         (sinh_towardzero_test_data): New variable.
47803         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47804         (sinh_downward_test_data): New variable.
47805         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47806         (sinh_upward_test_data): New variable.
47807         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47808         (sqrt_test_data): New variable.
47809         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
47810         (tan_test_data): New variable.
47811         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
47812         (tan_tonearest_test_data): New variable.
47813         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47814         (tan_towardzero_test_data): New variable.
47815         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47816         (tan_downward_test_data): New variable.
47817         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47818         (tan_upward_test_data): New variable.
47819         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47820         (tanh_test_data): New variable.
47821         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
47822         (tgamma_test_data): New variable.
47823         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
47824         (trunc_test_data): New variable.
47825         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
47826         (y0_test_data): New variable.
47827         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
47828         (y1_test_data): New variable.
47829         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
47830         (significand_test_data): New variable.
47831         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
47832
47833 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
47834
47835         [BZ #12387]
47836         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
47837
47838 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
47839
47840         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
47841
47842 2013-05-10  Andreas Jaeger  <aj@suse.de>
47843
47844         [BZ #15448]
47845         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
47846         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
47847
47848 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
47849
47850         * math/gen-libm-test.pl (adjust_arg): New function.
47851         (special_functions): Handle generating output in both functions
47852         and arrays.
47853         (parse_args): Likewise.
47854         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
47855         $in_func argument to parse_args.
47856         * math/libm-test.inc (struct test_f_f_data): New type.
47857         (IF_ROUND_INIT_): New macro.
47858         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
47859         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
47860         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
47861         (IF_ROUND_INIT_FE_UPWARD): Likewise.
47862         (ROUND_RESTORE_): Likewise.
47863         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
47864         (ROUND_RESTORE_FE_TONEAREST): Likewise.
47865         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
47866         (ROUND_RESTORE_FE_UPWARD): Likewise.
47867         (RUN_TEST_LOOP_f_f): New macro.
47868         (acos_test_data): New variable.
47869         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
47870         (acos_tonearest_test_data): New variable.
47871         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47872
47873 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
47874
47875         * benchtests/bench-skeleton.c (startup): Fix coding style.
47876
47877 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
47878
47879         [BZ #6809]
47880         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
47881         negative infinity argument.
47882         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
47883         negative infinity argument.
47884         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
47885         negative infinity argument.
47886         * math/libm-test.inc (tgamma_test): Expect errno to be set for
47887         domain errors.
47888
47889 2013-05-10  Florian Weimer  <fweimer@redhat.com>
47890
47891         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
47892         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
47893         * iconv/iconv_prog.c (main): Likewise.
47894         * locale/programs/charmap-dir.c (charmap_readdir)
47895         (fopen_uncompressed): Likewise.
47896         * locale/programs/locfile.c (siblings_uncached)
47897         (write_locale_data): Use lstat64 instead of lstat.
47898         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
47899         stat.
47900
47901 2013-05-10  Andreas Jaeger  <aj@suse.de>
47902
47903         [BZ #15395]
47904         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
47905         localization.
47906         Include <locale.h>.
47907
47908 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
47909
47910         * elf/dl-close.c (_dl_close_worker): Add comments.
47911
47912 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
47913
47914         [BZ #15359]
47915         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
47916         high part of pi/2.
47917         (__ieee754_rem_pio2l): Update comments.
47918
47919         [BZ #15429]
47920         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
47921         high part of pi/2.
47922         (__ieee754_rem_pio2l): Update comments.
47923
47924         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
47925         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
47926
47927         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
47928         M_PI_4l.
47929
47930         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
47931         (M_PI_34_LOG10El): Likewise.
47932         (M_PI2_LOG10El): Likewise.
47933         (M_PI4_LOG10El): Likewise.
47934         (M_PI_LOG10El): Likewise.
47935
47936 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47937
47938         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47939
47940 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
47941
47942         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
47943         (MINUS_ZERO_INIT): Likewise.
47944         (PLUS_INFTY_INIT): Likewise.
47945         (MINUS_INFTY_INIT): Likewise.
47946         (QNAN_VALUE_INIT): Likewise.
47947         (MAX_VALUE_INIT): Likewise.
47948         (MIN_VALUE_INIT): Likewise.
47949         (MIN_SUBNORM_VALUE_INIT): Likewise.
47950         (plus_zero): Initialize with PLUS_ZERO_INIT.
47951         (minus_zero): Initialize with MINUS_ZERO_INIT.
47952         (plus_infty): Initialize with PLUS_INFTY_INIT.
47953         (minus_infty): Initialize with MINUS_INFTY_INIT.
47954         (qnan_value): Initialize with QNAN_VALUE_INIT.
47955         (max_value): Initialize with MAX_VALUE_INIT.
47956         (min_value): Initialize with MIN_VALUE_INIT.
47957         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
47958
47959         * math/libm-test.inc (RUN_TEST_if_f): New macro.
47960         (jn_test): Use TEST_if_f instead of TEST_ff_f.
47961         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
47962         (yn_test): Use TEST_if_f instead of TEST_ff_f.
47963
47964         * math/libm-test.inc (RUN_TEST_f_f): New macro.
47965         (RUN_TEST_2_f): Likewise.
47966         (RUN_TEST_ff_f): Likewise.
47967         (RUN_TEST_fi_f): Likewise.
47968         (RUN_TEST_fl_f): Likewise.
47969         (RUN_TEST_fff_f): Likewise.
47970         (RUN_TEST_c_f): Likewise.
47971         (RUN_TEST_f_f1): Likewise.
47972         (RUN_TEST_fF_f1): Likewise.
47973         (RUN_TEST_fI_f1): Likewise.
47974         (RUN_TEST_ffI_f1): Likewise.
47975         (RUN_TEST_c_c): Likewise.
47976         (RUN_TEST_cc_c): Likewise.
47977         (RUN_TEST_f_i): Likewise.
47978         (RUN_TEST_f_i_tg): Likewise.
47979         (RUN_TEST_ff_i_tg): Likewise.
47980         (RUN_TEST_f_b): Likewise.
47981         (RUN_TEST_f_b_tg): Likewise.
47982         (RUN_TEST_f_l): Likewise.
47983         (RUN_TEST_f_L): Likewise.
47984         (RUN_TEST_sincos): Likewise.
47985         * math/gen-libm-test.pl (new_test): Take new argument to indicate
47986         whether to show exceptions.  Do not include ");\n" in return
47987         value.
47988         (special_functions): Output call to RUN_TEST_sincos instead of
47989         check_float calls.  Update calls to new_test.
47990         (parse_args): Output call to single RUN_TEST_* macro instead of
47991         check_* calls and other assignments.  Update calls to new_test.
47992
47993         [BZ #2546]
47994         [BZ #2560]
47995         [BZ #5159]
47996         [BZ #15426]
47997         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
47998         input to result for tgamma overflow.
47999         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48000         (gamma_coeff): New variable.
48001         (NCOEFF): New macro.
48002         (gamma_positive): New function.
48003         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48004         underflow here.  Use gamma_positive instead of exp (lgamma) for
48005         other arguments.
48006         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48007         (gamma_coeff): New variable.
48008         (NCOEFF): New macro.
48009         (gammaf_positive): New function.
48010         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48011         underflow here.  Use gamma_positive instead of exp (lgamma) for
48012         other arguments.
48013         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48014         (gamma_coeff): New variable.
48015         (NCOEFF): New macro.
48016         (gammal_positive): New function.
48017         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48018         underflow here.  Use gamma_positive instead of exp (lgamma) for
48019         other arguments.
48020         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48021         (gamma_coeff): New variable.
48022         (NCOEFF): New macro.
48023         (gammal_positive): New function.
48024         (__ieee754_gammal_r): Handle positive infinity, overflow and
48025         underflow here.  Handle NaN the same as positive infinity.  Remove
48026         check x < 0xffffffff for negative integers.  Use gamma_positive
48027         instead of exp (lgamma) for other arguments.
48028         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48029         (gamma_coeff): New variable.
48030         (NCOEFF): New macro.
48031         (gammal_positive): New function.
48032         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48033         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48034         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48035         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48036         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48037         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48038         * sysdeps/generic/math_private.h (__gamma_productf): New
48039         prototype.
48040         (__gamma_product): Likewise.
48041         (__gamma_productl): Likewise.
48042         * math/Makefile (libm-calls): Add gamma_product.
48043         * math/libm-test.inc (tgamma_test): Add more tests.
48044         * sysdeps/i386/fpu/libm-test-ulps: Update.
48045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48046
48047 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48048
48049         * benchtests/bench-skeleton.c (main): Preheat CPU.
48050
48051 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48052
48053         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48054
48055 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48056
48057         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48058         and _dl_skip_args_internal.
48059
48060 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48061
48062         * manual/message.texi (Message Translation): Talk about users.
48063         Message to key mapping impacts design.
48064
48065 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48066
48067         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48068
48069         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48070
48071         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48072         * sysdeps/wordsize-64/glob64.c: ... here.
48073
48074         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48075         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48076         New macros.
48077
48078         * debug/getlogin_r_chk.c: Moved to ...
48079         * login/getlogin_r_chk.c: ... here.
48080         * debug/Makefile (routines): Move getlogin_r_chk to ...
48081         * login/Makefile (routines): ... here.
48082         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48083         * login/Versions (libc: GLIBC_2.4): ... here.
48084
48085         * io/poll.c (__poll): Renamed from poll.
48086         Add libc_hidden_def.
48087         (poll): Define as weak alias.
48088
48089         * debug/ptsname_r_chk.c: Moved to ...
48090         * login/ptsname_r_chk.c: ... here.
48091         * debug/Makefile (routines): Move ptsname_r_chk to ...
48092         * login/Makefile (routines): ... here.
48093         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48094         * login/Versions (libc: GLIBC_2.4): ... here.
48095
48096         * posix/getlogin.c: Moved to ...
48097         * login/getlogin.c: ... here.
48098         * posix/getlogin_r.c: Moved to ...
48099         * login/getlogin_r.c: ... here.
48100         * posix/getlogin_r.c: Moved to ...
48101         * login/getlogin_r.c: ... here.
48102         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48103         * login/Makefile (routines): ... here.
48104         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48105         * login/Versions (libc: GLIBC_2.0): ... here.
48106
48107         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48108         (setrlimit): Define as weak alias.
48109
48110         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48111         Call __ names for open, ftruncate, and close.
48112         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48113         (truncate): Define as weak alias.
48114
48115 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48116
48117         * math/gen-libm-test.pl (parse_args): Initialize x before each
48118         test of frexp, modf and remquo.
48119
48120         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48121         test signgam value.
48122
48123 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48124
48125         [BZ #15418]
48126         [BZ #15419]
48127         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48128         internal tests.
48129         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48130
48131 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48132
48133         * elf/dl-writev.h: New file.
48134         * elf/dl-misc.c: Include it.
48135         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48136         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48137
48138 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48139
48140         * math/libm-test.inc (noXFails): Remove variable.
48141         (noXPasses): Likewise.
48142         (BUILD_COMPLEX_INT): Remove macro.
48143         (print_screen): Remove xfail argument.
48144         (print_screen_max_error): Likewise.
48145         (update_stats): Likewise.
48146         (print_max_error): Likewise.  Update calls to other affected
48147         functions.
48148         (print_complex_max_error): Likewise.
48149         (test_single_exception): Update calls to print_screen.
48150         (test_single_errno): Likewise.
48151         (check_float_internal): Remove xfail argument.  Update calls to
48152         other affected functions.
48153         (check_float): Likewise.
48154         (check_complex): Likewise.
48155         (check_int): Likewise.
48156         (check_long): Likewise.
48157         (check_bool): Likewise.
48158         (check_longlong): Likewise.
48159         (main): Don't print noXFails and noXPasses.
48160         * math/gen-libm-test.pl (top level): Don't mention expected
48161         failure handling in comment.
48162         (new_test): Don't handle expected failures.
48163         (parse_args): Don't mention expected failure handling in comment.
48164         (generate_testfile): Don't handle expected failures.
48165         (parse_ulps): Likewise.
48166         (print_ulps_file): Likewise.
48167         (get_failure): Remove function.
48168         (output_test): Don't handle expected failures.
48169         * make/README.libm-test: Don't mention expected failure handling.
48170
48171         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48172         (minus_zero): Likewise.
48173         (plus_infty): Likewise.
48174         (minus_infty): Likewise.
48175         (qnan_value): Likewise.
48176         (max_value): Likewise.
48177         (min_value): Likewise.
48178         (min_subnorm_value): Likewise.
48179         (initialize): Do not initialize those variables dynamically.
48180
48181 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48182
48183         * io/open.c (__open_2): Moved to ...
48184         * io/open_2.c: ... this new file.
48185         * io/open64.c (__open64_2): Moved to ...
48186         * io/open64_2.c: ... this new file.
48187         * io/openat.c (__openat_2): Moved to ...
48188         * io/openat_2.c: ... this new file.
48189         * io/openat64.c (__openat64_2): Moved to ...
48190         * io/openat64_2.c: ... this new file.
48191         * io/Makefile (routines): Add them.
48192         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48193         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48194         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48195         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48196         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48197         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48198         (__openat64): Add hidden_ver.
48199         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48200         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48201
48202         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48203         Separately conditionalize setting of GLRO(dl_sysinfo) so
48204         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48205         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48206
48207 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48208
48209         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48210         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48211         definition.
48212         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48213         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48214         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48215         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48216         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48217
48218 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48219
48220         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48221         test signgam value.
48222
48223         * math/libm-test.inc (hypot_test): Do not use
48224         IGNORE_ZERO_INF_SIGN.
48225
48226 2013-05-03  Andreas Jaeger  <aj@suse.de>
48227
48228         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48229         Linux 3.9.
48230         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48231         (PF_MAX): Adjust for VSOCK change.
48232
48233 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48234
48235         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48236
48237 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48238
48239         [BZ #15264]
48240         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48241         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48242         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48243
48244 2013-05-02  David S. Miller  <davem@davemloft.net>
48245
48246         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48247
48248 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48249
48250         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48251
48252 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48253
48254         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48255
48256 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48257
48258         [BZ #14952]
48259         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48260         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48261         Use __attribute__ ((__gnu_inline__)).
48262         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48263         Don't use __attribute__ ((__gnu_inline__)).
48264
48265 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48266
48267         [BZ #15423]
48268         * math/s_catan.c (__catan): Handle small real or imaginary part of
48269         input specially to avoid spurious underflow.
48270         * math/s_catanf.c (__catanf): Likewise.
48271         * math/s_catanh.c (__catanh): Likewise.
48272         * math/s_catanhf.c (__catanhf): Likewise.
48273         * math/s_catanhl.c (__catanhl): Likewise.
48274         * math/s_catanl.c (__catanl): Likewise.
48275         * math/libm-test.inc (catan_test): Add more tests.
48276         (catanh_test): Likewise.
48277         * sysdeps/i386/fpu/libm-test-ulps: Update.
48278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48279
48280 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48281
48282         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48283
48284 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48285
48286         [BZ #15416]
48287         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48288         accurately for denominator in atan2.
48289         * math/s_catanf.c (__catanf): Likewise.
48290         * math/s_catanh.c (__catanh): Likewise.
48291         * math/s_catanhf.c (__catanhf): Likewise.
48292         * math/s_catanhl.c (__catanhl): Likewise.
48293         * math/s_catanl.c (__catanl): Likewise.
48294         * math/libm-test.inc (catan_test): Add more tests.
48295         (catanh_test): Likewise.
48296         * sysdeps/i386/fpu/libm-test-ulps: Update.
48297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48298
48299 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48300
48301         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48302
48303         * benchtests/Makefile (bench): Remove slow benchmarks.
48304         * benchtests/atan-inputs: Add slow benchmark inputs.
48305         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48306         (BENCH_FUNC): Accept variant offset.
48307         (VARIANT): Define.
48308         * benchtests/bench-skeleton.c (main): Run benchmark for each
48309         variant.
48310         * benchtests/cos-inputs: Add slow benchmark inputs.
48311         * benchtests/exp-inputs: Likewise.
48312         * benchtests/pow-inputs: Likewise.
48313         * benchtests/sin-inputs: Likewise.
48314         * benchtests/slowatan-inputs: Remove.
48315         * benchtests/slowatan.c: Remove.
48316         * benchtests/slowcos-inputs: Remove.
48317         * benchtests/slowcos.c: Remove.
48318         * benchtests/slowexp-inputs: Remove.
48319         * benchtests/slowexp.c: Remove.
48320         * benchtests/slowpow-inputs: Remove.
48321         * benchtests/slowpow.c: Remove.
48322         * benchtests/slowsin-inputs: Remove.
48323         * benchtests/slowsin.c: Remove.
48324         * benchtests/slowtan-inputs: Remove.
48325         * benchtests/slowtan.c: Remove.
48326         * benchtests/tan-inputs: Add slow benchmark inputs.
48327         * scripts/bench.pl: Parse comments and directives.
48328
48329         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48330         in CPPFLAGS.
48331         ($(objpfx)bench-%.c): Remove *-ITER.
48332         * benchtests/bench-modf.c: Remove definition of ITER.
48333         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48334         (main): Loop for DURATION seconds instead of fixed number of
48335         iterations.
48336         * scripts/bench.pl: Don't expect iterations in parameters.
48337
48338 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48339
48340         * io/fchdir.c (__fchdir): Renamed from fchdir.
48341         (fchdir): Define as weak alias.
48342
48343 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48344
48345         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48346         (ERRNO_EDOM): Likewise.
48347         (ERRNO_ERANGE): Likewise.
48348         (noErrnoTests): New variable.
48349         (init_max_error): Set errno to 0.
48350         (test_single_errno): New function.
48351         (test_errno): Likewise.
48352         (check_float_internal): Call test_errno.  Set errno to 0.
48353         (check_complex): Refer to errno tests in comment.
48354         (check_int): Call test_errno.  Set errno to 0.
48355         (check_long): Likewise.
48356         (check_bool): Likewise.
48357         (check_longlong): Likewise.
48358         (cos_test): Use ERRNO_* flags for errno tests instead of
48359         check_int.
48360         (expm1_test): Likewise.
48361         (fmod_test): Likewise.
48362         (ilogb_test): Likewise.
48363         (lgamma_test): Likewise.
48364         (pow_test): Likewise.
48365         (remainder_test): Likewise.
48366         (sin_test): Likewise.
48367         (tan_test): Likewise.
48368         (yn_test): Likewise.
48369         (initialize): Set errno to 0.
48370         (main): Print number of errno tests.
48371         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48372
48373 2013-04-29  Andreas Jaeger  <aj@suse.de>
48374
48375         [BZ #15084]
48376         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48377         and RES_USEVC.
48378
48379         [BZ #15085]
48380         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48381         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48382         unimplemented.
48383
48384         [BZ #15380]
48385         * stdlib/random.c (__initstate): Return NULL if
48386         __initstate fails.
48387
48388         [BZ #15086]
48389         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48390         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48391         RES_SNGLKUPREOP.
48392
48393 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48394
48395         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48396
48397 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48398
48399         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48400         of individual tests.
48401         (casin_test): Likewise.
48402         (casinh_test): Likewise.
48403
48404 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48405
48406         [BZ #15409]
48407         * math/s_catan.c (__catan): Handle arguments with large real or
48408         imaginary part separately without squaring.
48409         * math/s_catanf.c (__catanf): Likewise.
48410         * math/s_catanh.c (__catanh): Likewise.
48411         * math/s_catanhf.c (__catanhf): Likewise.
48412         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48413         and redefine.
48414         (__catanhl): Handle arguments with large real or imaginary part
48415         separately without squaring.
48416         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48417         and redefine.
48418         (__catanl): Handle arguments with large real or imaginary part
48419         separately without squaring.
48420         * math/libm-test.inc (catan_test): Add more tests.
48421         (catanh_test): Likewise.
48422         * sysdeps/i386/fpu/libm-test-ulps: Update.
48423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48424
48425 2013-04-27  Andreas Jaeger  <aj@suse.de>
48426
48427         [BZ #15007]
48428         * stdlib/stdlib.h: Update guards for qecvt.
48429         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48430         <stdlib.h>.
48431
48432 2013-04-27  Allan McRae  <allan@archlinux.org>
48433
48434         * sysdeps/i386/fpu/libm-test-ulps: Update.
48435
48436 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48437
48438         [BZ #15406]
48439         * math/s_catan.c: Include <float.h>.
48440         (__catan): Ensure underflow exception occurs for underflowed
48441         result.
48442         * math/s_catanf.c: Include <float.h>.
48443         (__catanf): Ensure underflow exception occurs for underflowed
48444         result.
48445         * math/s_catanh.c: Include <float.h>.
48446         (__catanh): Ensure underflow exception occurs for underflowed
48447         result.
48448         * math/s_catanhf.c: Include <float.h>.
48449         (__catanhf): Ensure underflow exception occurs for underflowed
48450         result.
48451         * math/s_catanhl.c: Include <float.h>.
48452         (__catanhl): Ensure underflow exception occurs for underflowed
48453         result.
48454         * math/s_catanl.c: Include <float.h>.
48455         (__catanl): Ensure underflow exception occurs for underflowed
48456         result.
48457         * math/libm-test.inc (catan_test): Add more tests.
48458         (catanh_test): Likewise.
48459
48460         [BZ #15405]
48461         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48462         underflowed result.
48463         * math/s_ccoshf.c (__ccoshf): Likewise.
48464         * math/s_ccoshl.c (__ccoshl): Likewise.
48465         * math/s_csin.c (__csin): Likewise.
48466         * math/s_csinf.c (__csinf): Likewise.
48467         * math/s_csinh.c (__csinh): Likewise.
48468         * math/s_csinhf.c (__csinhf): Likewise.
48469         * math/s_csinhl.c (__csinhl): Likewise.
48470         * math/s_csinl.c (__csinl): Likewise.
48471         * math/libm-test.inc (ccos_test): Add more tests.
48472         (ccosh_test): Likewise.
48473         (csin_test): Likewise.
48474         (csinh_test): Likewise.
48475
48476 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48477
48478         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48479         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48480         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48481         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48482         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48483         powerpc/power5+/fpu folders.
48484         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48485
48486
48487 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48488
48489         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48490
48491 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48492
48493         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48494         additions to variable.
48495         [$(config-machine) = x86_64] (modules-names): Likewise.
48496         ($(objpfx)tst-audit3): Remove dependency.
48497         ($(objpfx)tst-audit3.out): Likewise.
48498         ($(objpfx)tst-audit4): Likewise.
48499         ($(objpfx)tst-audit4.out): Likewise.
48500         ($(objpfx)tst-audit5): Likewise.
48501         ($(objpfx)tst-audit5.out): Likewise.
48502         ($(objpfx)tst-audit6): Likewise.
48503         ($(objpfx)tst-audit6.out): Likewise.
48504         ($(objpfx)tst-audit7): Likewise.
48505         ($(objpfx)tst-audit7.out): Likewise.
48506         (tst-audit3-ENV): Remove variable.
48507         (tst-audit4-ENV): Likewise.
48508         (tst-audit5-ENV): Likewise.
48509         (tst-audit6-ENV): Likewise.
48510         (tst-audit7-ENV): Likewise.
48511         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48512         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48513         addition to variable.
48514         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48515         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48516         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48517         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48518         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48519         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48520         tst-audit3, tst-audit4 and tst-audit5.
48521         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48522         tst-audit6 and tst-audit7.
48523         [$(subdir) = elf] (modules-names): Add audit modules for those
48524         tests.
48525         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48526         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48527         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48528         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48529         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48530         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48531         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48532         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48533         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48534         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48535         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48536         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48537         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48538         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48539         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48540         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48541         Likewise.
48542         [$(subdir) = elf && $(config-cflags-avx) = yes]
48543         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48544         [$(subdir) = elf && $(config-cflags-avx) = yes]
48545         (CFLAGS-tst-auditmod4a.c): Likewise.
48546         [$(subdir) = elf && $(config-cflags-avx) = yes]
48547         (CFLAGS-tst-auditmod4b.c): Likewise.
48548         [$(subdir) = elf && $(config-cflags-avx) = yes]
48549         (CFLAGS-tst-auditmod6b.c): Likewise.
48550         [$(subdir) = elf && $(config-cflags-avx) = yes]
48551         (CFLAGS-tst-auditmod6c.c): Likewise.
48552         [$(subdir) = elf && $(config-cflags-avx) = yes]
48553         (CFLAGS-tst-auditmod7b.c): Likewise.
48554         * elf/tst-audit3.c: Move to ...
48555         * sysdeps/x86_64/tst-audit3.c: ... here.
48556         * elf/tst-audit4.c: Move to ...
48557         * sysdeps/x86_64/tst-audit4.c: ... here.
48558         * elf/tst-audit5.c: Move to ...
48559         * sysdeps/x86_64/tst-audit5.c: ... here.
48560         * elf/tst-audit6.c: Move to ...
48561         * sysdeps/x86_64/tst-audit6.c: ... here.
48562         * elf/tst-audit7.c: Move to ...
48563         * sysdeps/x86_64/tst-audit7.c: ... here.
48564         * elf/tst-auditmod3a.c: Move to ...
48565         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
48566         * elf/tst-auditmod3b.c: Move to ...
48567         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
48568         * elf/tst-auditmod4a.c: Move to ...
48569         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
48570         * elf/tst-auditmod4b.c: Move to ...
48571         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
48572         * elf/tst-auditmod5a.c: Move to ...
48573         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
48574         * elf/tst-auditmod5b.c: Move to ...
48575         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
48576         * elf/tst-auditmod6a.c: Move to ...
48577         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
48578         * elf/tst-auditmod6b.c: Move to ...
48579         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
48580         * elf/tst-auditmod6c.c: Move to ...
48581         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
48582         * elf/tst-auditmod7a.c: Move to ...
48583         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
48584         * elf/tst-auditmod7b.c: Move to ...
48585         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
48586
48587 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
48588
48589         [BZ #15366]
48590         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
48591         define unconditionally.
48592         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
48593         define unconditionally.
48594         (INT8_C, INT16_C, etc.): Likewise.
48595
48596 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
48597
48598         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
48599         __ehdr_start with hidden visibility.
48600
48601         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
48602
48603 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
48604
48605         * math/libm-test.inc (cos_test): Use accurate hex constants.
48606         (sincost_test): Likewise.
48607
48608 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
48609
48610         * math/libm-test.inc (catan_test): Add more tests.
48611         (catanh_test): Likewise.
48612
48613         * math/s_catanf.c (__catanf): Use suffixed floating-point
48614         constants.
48615         * math/s_catanhf.c (__catanhf): Likewise.
48616         * math/s_catanhl.c (__catanhl): Likewise.
48617         * math/s_catanl.c (__catanl): Likewise.
48618
48619         [BZ #15394]
48620         * math/s_catan.c (__catan): Calculate imaginary part of result
48621         with log1p not log unless computing log of number close to 0.
48622         * math/s_catanf.c (__catanf): Likewise.
48623         * math/s_catanl.c (__catanl): Likewise.
48624         * math/s_catanh.c (__catanh): Calculate real part of result with
48625         log1p not log unless computing log of number close to 0.
48626         * math/s_catanhf.c (__catanhf): Likewise.
48627         * math/s_catanhl.c (__catanhl): Likewise.
48628         * math/libm-test.inc (catan_test): Add more tests.
48629         (catanh_test): Likewise.
48630         * sysdeps/i386/fpu/libm-test-ulps: Update.
48631         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48632
48633 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48634
48635         * benchtests/Makefile: Mention files in which fast and slow
48636         paths of math functions are implemented.
48637
48638 2013-04-23  Roland McGrath  <roland@hack.frob.com>
48639
48640         * sysdeps/posix/timespec_get.c: New file.
48641
48642 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48643
48644         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
48645         POWER.
48646         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
48647         for POWER.
48648         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
48649         powerpc/power5/fpu folders.
48650         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
48651         * benchtests/Makefile: Add modf testcase.
48652         * benchtests/bench-modf.c: New file: Benchmark test for mo
48653
48654 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
48655
48656         [BZ #14888]
48657         * time/Makefile (tests): Add tst-strptime-whitespace.
48658         * time/strptime_l.c (get_number): Use ISSPACE.
48659         (__strptime_internal): Likewise.
48660         * time/tst-strptime-whitespace.c: New test case.
48661
48662 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
48663
48664         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
48665         member.
48666         (_nss_files_init): Set it here.
48667
48668 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
48669
48670         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
48671         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
48672         unsigned.
48673
48674 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
48675
48676         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
48677
48678 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
48679
48680         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
48681         size just once.
48682
48683 2013-04-21  David S. Miller  <davem@davemloft.net>
48684
48685         * po/ru.po: Update Russion translation from translation project.
48686
48687 2013-04-17  Adam Conrad  <adconrad@0c3.net>
48688
48689         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
48690         and setfsgid.
48691
48692 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
48693
48694         * configure.in: Remove i386 configure warning. Remove i386 case.
48695         * configure: Regenerate.
48696         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
48697         Add example to error message.
48698         * sysdeps/i386/configure: Regenerate.
48699
48700 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48701
48702         * benchtests/Makefile (bench): Add cos, tan, slowcos and
48703         slowtan.
48704         * benchtests/cos-inputs: New file.
48705         * benchtests/slowcos-inputs: New file.
48706         * benchtests/slowcos.c: New file.
48707         * benchtests/slowtan-inputs: New file.
48708         * benchtests/slowtan.c: New file.
48709         * benchtests/tan-inputs: New file.
48710
48711 2013-04-16  Roland McGrath  <roland@hack.frob.com>
48712
48713         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
48714         considered kosher.
48715
48716 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
48717
48718         * benchtests/Makefile: Include cppflags-iterator.mk to add
48719         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
48720
48721         * Makefile.in (bench-clean): New target.
48722         * benchtests/Makefile (bench-clean): Likewise.
48723
48724 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
48725
48726         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
48727
48728 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
48729
48730         * stdio-common/tstdiomisc.c: Fix coding-style violation.
48731
48732 2013-04-15  Andreas Schwab  <schwab@suse.de>
48733
48734         * nscd/grpcache.c (cache_addgr): Properly check for short write.
48735         * nscd/initgrcache.c (addinitgroupsX): Likewise.
48736         * nscd/pwdcache.c (cache_addpw): Likewise.
48737         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
48738         more than recsize.
48739
48740 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48741
48742         * benchtests/Makefile (bench): Write all output to
48743         bench-out.tmp together.
48744
48745 2013-04-15  Andreas Schwab  <schwab@suse.de>
48746
48747         * nscd/nscd.c (main): Don't fork again after closing files.
48748
48749 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48750
48751         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
48752
48753         * benchtests/Rules (bench-deps): Collect dependencies into a
48754         single variable.  Add Makefile to dependencies.
48755         ($(objpfx)bench-%.c): Depend on bench-deps.
48756
48757 2013-04-12  Roland McGrath  <roland@hack.frob.com>
48758             Xavier Roche  <roche+kml2@exalead.com>
48759
48760         [BZ #15361]
48761         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
48762         just that it's a file descriptor.
48763         * manual/llio.texi (Synchronizing AIO Operations): Update description
48764         for EBADF error from aio_fsync.
48765
48766 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
48767
48768         * Rules (bench): Move target definition...
48769         * benchtests/Makefile: ... here.
48770
48771 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
48772
48773         * math/libm-test.inc (cos_test): Fix PI/2 test.
48774         (sincos_test): Likewise.
48775         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
48776         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
48777
48778 2013-04-11  Andreas Schwab  <schwab@suse.de>
48779
48780         [BZ #13988]
48781         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
48782         accept exponent character only when digits were seen.
48783         * stdio-common/Makefile (tests): Add bug26.
48784         * stdio-common/bug26.c: New file.
48785
48786         [BZ #14293]
48787         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
48788         non-freeable.
48789
48790 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48791
48792         * Makeconfig (rtld-prefix): Define built linker prefix.
48793         * Rules (run-bench): Use it.
48794         * math/Makefile (run-regen-ulps): Likewise.
48795
48796         * Rules (bench): Remove eval.
48797
48798 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48799             Roland McGrath  <roland@hack.frob.com>
48800             Ondrej Bilka  <neleai@seznam.cz>
48801
48802         [BZ #15346]
48803         * time/getdate.c: Include ctype.h and alloca.h.
48804         (__getdate_r): Trim leading and trailing spaces of input.
48805         * time/tst-getdate.c (tests): Add tests with leading and
48806         trailing spaces.
48807
48808 2013-04-08  Roland McGrath  <roland@hack.frob.com>
48809
48810         [BZ #14280]
48811         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
48812         when computing value.
48813
48814 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48815
48816         * math/README.libm-test (How can I generate "libm-test-ulps"?):
48817         Use testrun.sh to run libm tests.
48818
48819         [BZ #15309]
48820         * elf/dl-open.c (dl_open_worker): memset all of seen array.
48821
48822 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
48823
48824         [BZ #15264]
48825         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
48826
48827 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48828
48829         * Makefile.in (regen-ulps): New target.
48830         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
48831         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
48832         [ifneq (no,$(PERL)] (regen-ulps): New target.
48833         [ifeq (no,$(PERL)] (regen-ulps): New target.
48834         * math/libm-test.inc (ulps_file_name): Define.
48835         (output_dir): New variable.
48836         (options): Add "output-dir" option.
48837         (parse_opt): Handle 'o' case.
48838         (main): If output_dir is non-NULL use it as a prefix
48839         otherwise use "".
48840         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
48841
48842 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48843
48844         [BZ #10060, #10062]
48845         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
48846         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
48847         fail configure if __sync_val_compare_and_swap is not inlined.
48848         * sysdeps/i386/configure: Regenerate.
48849         * configure.in: Build for i686 when configured for i386.
48850         * configure: Regenerate.
48851         * README: Remove i386 reference.
48852
48853 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48854
48855         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
48856         * sysdeps/s390/s390-64/sysdep.h: Likewise.
48857
48858 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
48859
48860         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
48861         (lmsnanval): New variables.
48862         (F): Add conversion tests.
48863         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
48864         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
48865
48866         * stdio-common/tstdiomisc.c (F): Properly collect individual
48867         tests' results.
48868
48869         [BZ #14686, #15336]
48870         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
48871         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
48872         Instead, use input NaN values or generate a qNaN by arithmetic
48873         operation.  Also fix bugs to comply with the standard.
48874         * math/libm-test.inc (remainder_test): Add more tests.
48875
48876         [BZ #15335, #15342]
48877         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
48878         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
48879         input NaN values or generate a qNaN by arithmetic operation.
48880
48881         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
48882         unreachable code.
48883
48884         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
48885         definitions.
48886
48887 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
48888
48889         [BZ #14478]
48890         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
48891         underflowed result.
48892         * math/s_cexpf.c (__cexpf): Likewise.
48893         * math/s_cexpl.c (__cexpl): Likewise.
48894         * math/libm-test.inc (cexp_test): Add more tests.
48895
48896 2013-04-03  Andreas Schwab  <schwab@suse.de>
48897
48898         [BZ #15330]
48899         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
48900         order arrays from heap if bigger than alloca cutoff.
48901
48902 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
48903
48904         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
48905         (SNAN_TESTS_double): Refer to GCC PR56831.
48906         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
48907         GCC PR56828.
48908
48909 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
48910
48911         * Rules (bench): Move bench.out after the run is complete.
48912
48913         * Rules (bench): Echo currently running benchmark.
48914
48915         * benchtests/Makefile (bench): Add atan and slowatan.
48916         * benchtests/atan-inputs: New file.
48917         * benchtests/slowatan-inputs: New file.
48918         * benchtests/slowatan.c: New file.
48919
48920         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
48921         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
48922         its value.
48923
48924         [BZ #15305]
48925         * sysdeps/unix/sysv/linux/kernel-features.h
48926         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
48927         __ASSUME_XFS_RESTRICTED_CHOWN.
48928         * sysdeps/unix/sysv/linux/pathconf.c
48929         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
48930         Save and restore errno.
48931
48932 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
48933
48934         [BZ #15327]
48935         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
48936         arguments using __kernel_casinh.
48937         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
48938         arguments using __kernel_casinhf.
48939         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
48940         arguments using __kernel_casinhl.
48941         * math/libm-test.inc (cacosh_test): Add more tests.
48942         * sysdeps/i386/fpu/libm-test-ulps: Update.
48943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48944
48945 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
48946
48947         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
48948         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
48949
48950         * bench/Makefile (bench): Add sin and slowsin.
48951         * benchtests/sin-inputs: New file.
48952         * benchtests/slowsin-inputs: New file.
48953         * benchtests/slowsin.c: New file.
48954
48955         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
48956         (bench): Add slowexp and slowpow.
48957         (exp-ITER): Increase iterations.
48958         (pow-ITER): Likewise.
48959         * benchtests/exp-inputs: Change input.
48960         * benchtests/pow-inputs: Likewise.
48961         * benchtests/slowexp-inputs: New file.
48962         * benchtests/slowexp.c: New file.
48963         * benchtests/slowpow-inputs: New file.
48964         * benchtests/slowpow.c: New file.
48965
48966 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48967
48968         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
48969         instructions.
48970         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
48971         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
48972         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
48973         * benchtests/Makefile: Add rint benchtest.
48974         * benchtests/rint-inputs: Input for rint benchtest.
48975
48976 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
48977
48978         * Versions.def (libm): Add GLIBC_2.18.
48979         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
48980         hidden libm prototypes.
48981         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
48982         * math/Makefile (libm-calls): Add s_issignaling.
48983         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
48984         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
48985         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
48986         declaration.
48987         * math/math.h [__USE_GNU] (issignaling): New macro.
48988         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
48989         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
48990         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
48991         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
48992         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
48993         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
48994         * manual/arith.texi (issignaling): New section.
48995         * manual/libm-err-tab.pl (@all_functions): Update comment.
48996         * math/gen-libm-test.pl (parse_args): Apply special handling for
48997         issignaling.
48998         * math/libm-test.inc (print_float, issignaling_test): New
48999         functions.
49000         (check_float_internal): Add issignaling checks.
49001         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49002         default definition.
49003         * sysdeps/powerpc/math-tests.h: New file.
49004         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49005         tests.
49006         * math/test-snan.c (TEST_FUNC): Likewise.
49007
49008 2013-03-30  David S. Miller  <davem@davemloft.net>
49009
49010         * po/de.po: Update from translation team.
49011
49012 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49013
49014         [BZ #10357]
49015         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49016         imaginary part less than 1.0 and real part less than 0.5
49017         specially.
49018         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49019         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49020         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49021         (cacos_test): Add more tests.
49022         (casin_test): Likewise.
49023         (casinh_test): Likewise.
49024         * sysdeps/i386/fpu/libm-test-ulps: Update.
49025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49026
49027 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49028
49029         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49030         ONE with its value.
49031
49032         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49033         (__pow_mp): Replace ONE and MONE with their values.
49034         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49035         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49036         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49037         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49038         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49039         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49040
49041         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49042
49043         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49044         (__pow_mp): Replace ZERO and MZERO with their values.
49045         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49046         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49047         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49048         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49049         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49050         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49051         (__sqr): Likewise.
49052
49053         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49054
49055         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49056
49057 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49058
49059         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49060         Declare with __attribute__ ((weak)).
49061         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49062         Call __call_tls_dtors only if it's not NULL.
49063
49064 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49065
49066         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49067         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49068         magic __ehdr_start linker symbol if it's defined.
49069         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49070         them up here if it was already done.
49071
49072         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49073         (_dl_aux_init): Use const in cast when setting it.
49074         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49075         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49076         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49077
49078         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49079         Declare them here.
49080         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49081         * csu/libc-tls.c: Nor here.
49082         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49083
49084         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49085         (__libc_message): Never call vsyslog.
49086
49087 2013-03-28  Alan Modra  <amodra@gmail.com>
49088
49089         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49090         Define as empty.
49091         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49092         Likewise.
49093
49094 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49095
49096         [BZ #15214]
49097         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49098         underflow.
49099         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49100
49101 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49102
49103         [BZ #15304]
49104         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49105         Don't add gid passed as argument.
49106
49107         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49108
49109 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49110
49111         [BZ #15307]
49112         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49113         imaginary part between 1.0 and 1.5 and real part less than 0.5
49114         specially.
49115         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49116         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49117         * math/libm-test.inc (cacos_test): Add more tests.
49118         (casin_test): Likewise.
49119         (casinh_test): Likewise.
49120         * sysdeps/i386/fpu/libm-test-ulps: Update.
49121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49122
49123 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49124
49125         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49126         constants.
49127         (norm): Likewise.
49128         (denorm): Likewise.
49129         (__dbl_mp): Likewise.
49130         (add_magnitudes): Likewise.
49131         (sub_magnitudes): Likewise.
49132         (__add): Likewise.
49133         (__sub): Likewise.
49134         (__mul): Likewise.
49135         (__sqr): Likewise.
49136         (__inv): Likewise.
49137         (__dvd): Likewise.
49138
49139         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49140         commented code.
49141         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49142         (__dubcos): Likewise.
49143         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49144         (__ieee754_acos): Likewise.
49145         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49146         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49147         (__exp1): Likewise.
49148         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49149         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49150         (log1): Likewise.
49151         (my_log2): Likewise.
49152         (checkint): Likewise.
49153         * sysdeps/ieee754/dbl-64/e_remainder.c
49154         (__ieee754_remainder): Likewise.
49155         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49156         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49157         (bsloww): Likewise.
49158         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49159
49160         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49161         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49162         MANTISSA_STORE_T to store computations on mantissa.  Use
49163         macros for rounding and division.
49164         (denorm): Likewise.
49165         (__dbl_mp): Likewise.
49166         (add_magnitudes): Likewise.
49167         (sub_magnitudes): Likewise.
49168         (__mul): Likewise.
49169         (__sqr): Likewise.
49170         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49171         powers of two in terms of TWOPOW macro.
49172         (mp_no): Make type of mantissa as MANTISSA_T.
49173         [!RADIXI]: Define RADIXI.
49174         [!TWO52]: Define TWO52.
49175         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49176
49177 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49178
49179         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49180         llroundl symbol when building for PPC32.
49181
49182 2013-03-24  Mark H Weaver  <mhw@netris.org>
49183
49184         * manual/arith.texi (Normalization Functions): Fix prototypes for
49185         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49186
49187 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49188
49189         [BZ #13889]
49190         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49191         high value to check if expl overflow.
49192         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49193         to check for underflow and overflow.
49194         * math/libm-test.inc: Add exp test.
49195
49196 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49197
49198         [BZ #11120]
49199         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49200         with NOT_IN_libc.
49201
49202 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49203
49204         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49205         symbol.
49206
49207 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49208
49209         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49210         wrap blocks consisting of several statements.
49211
49212         * sysdeps/generic/math-tests.h: New file.
49213         * sysdeps/i386/fpu/math-tests.h: Likewise.
49214         * math/test-snan.c: Include it.
49215         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49216
49217 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49218
49219         [BZ #15285]
49220         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49221         (__ieee754_j0l): Do not improve calculations using cos of twice
49222         input for inputs above LDBL_MAX / 2.0L.
49223         (__ieee754_y0l): Likewise.
49224         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49225         (__ieee754_j1l): Do not improve calculations using cos of twice
49226         input for inputs above LDBL_MAX / 2.0L.
49227         (__ieee754_y1l): Likewise.
49228         * math/libm-test.inc (j0_test): Add another test.
49229         (j1_test): Likewise.
49230         (y0_test): Likewise.
49231         (y1_test): Likewise.
49232         * sysdeps/i386/fpu/libm-test-ulps: Update.
49233
49234 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49235
49236         * Rules ($(objpfx)bench-%.c): Include code from a C source
49237         file.
49238
49239 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49240
49241         [BZ #15287]
49242         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49243         imaginary part 1.0 and real part less than 0.5 specially.
49244         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49245         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49246         * math/libm-test.inc (cacos_test): Add more tests.
49247         (casin_test): Likewise.
49248         (casinh_test): Likewise.
49249         * sysdeps/i386/fpu/libm-test-ulps: Update.
49250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49251
49252 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49253
49254         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49255         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49256
49257 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49258
49259         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49260         * config.make.in (config-cflags-sse4): Remove variable.
49261         (config-cflags-avx): Likewise.
49262         (config-cflags-sse2avx): Likewise.
49263         (config-cflags-novzeroupper): Likewise.
49264         (config-asflags-i686): Likewise.
49265         (have-mfma4): Likewise.
49266         (have-as-vis3): Likewise.
49267         (MIG): Likewise.
49268         * configure.in (MIG): Do not AC_SUBST.
49269         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49270         (libc_cv_cc_sse4): Do not AC_SUBST.
49271         (libc_cv_cc_avx): Likewise.
49272         (libc_cv_cc_sse2avx): Likewise.
49273         (libc_cv_cc_novzeroupper): Likewise.
49274         (libc_cv_cc_fma4): Likewise.
49275         (libc_cv_as_i686): Likewise.
49276         (libc_cv_sparc_as_vis3): Likewise.
49277         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49278         LIBC_CONFIG_VAR.
49279         (config-asflags-i686): Likewise.
49280         (config-cflags-avx): Likewise.
49281         (config-cflags-sse2avx): Likewise.
49282         (have-mfma4): Likewise.
49283         (config-cflags-novzeroupper): Likewise.
49284         * sysdeps/mach/configure.in (MIG): Likewise.
49285         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49286         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49287         LIBC_CONFIG_VAR.
49288         (config-cflags-avx): Likewise.
49289         (config-cflags-sse2avx): Likewise.
49290         (have-mfma4): Likewise.
49291         (config-cflags-novzeroupper): Likewise.
49292         * configure: Regenerated.
49293         * sysdeps/i386/configure: Likewise.
49294         * sysdeps/mach/configure: Likewise.
49295         * sysdeps/sparc/configure: Likewise.
49296         * sysdeps/x86_64/configure: Likewise.
49297
49298 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49299
49300         [BZ #14812]
49301         * locale/programs/localedef.c (options): Put N_ translation marker
49302         on argument names, not just descriptions.
49303
49304 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49305
49306         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49307
49308 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49309
49310         [BZ #14176]
49311         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49312
49313 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49314
49315         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49316         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49317         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49318         [!BEFORE_ABORT] (before_abort): New function.
49319         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49320         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49321         (writev_for_fatal): New function.
49322         (WRITEV_FOR_FATAL): New macro; call that.
49323         (backtrace_and_maps): New function.
49324         (BEFORE_ABORT): New macro; call that.
49325         (struct str_list): Type removed.
49326         (__libc_message, __libc_fatal): Functions removed.
49327         Include <sysdeps/posix/libc_fatal.c> instead.
49328
49329 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49330
49331         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49332         constants.
49333         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49334         double constants.
49335
49336 2013-03-19  Andreas Schwab  <schwab@suse.de>
49337
49338         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49339         * sysdeps/gnu/configure: Regenerate.
49340
49341         * configure.in: Substitute libc_cv_rtlddir.
49342         * configure: Regenerate.
49343         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49344         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49345         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49346         * elf/Makefile (install-others, CFLAGS-interp.c)
49347         (ldso_install, common-ldd-rewrite): Likewise.
49348         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49349         $(inst_slibdir)/$(rtld-installed-name).
49350         * scripts/rellns-sh: Add -p option.
49351         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49352         for source.
49353
49354 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49355
49356         * manual/nptl.texi: Renamed to ...
49357         * manual/threads.texi: ... this.
49358         * manual/Makefile (chapters): Update.
49359
49360 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49361
49362         [BZ #14812]
49363         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49364         on argument names, not just descriptions.
49365         * malloc/memusagestat.c (options): Likewise.
49366         * nss/getent.c (options): Likewise.
49367
49368 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49369
49370         [BZ #14812]
49371         * iconv/iconv_prog.c (options): Put N_ translation marker
49372         on argument names, not just descriptions.
49373         * iconv/iconvconfig.c (options): Likewise.
49374
49375 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49376
49377         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49378         implementation which is faster on all x86_64 architectures.
49379         Tested on AMD, Intel Nehalem, SNB, IVB.
49380         * sysdeps/x86_64/strnlen.S: Likewise.
49381
49382         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49383         Remove all multiarch strlen and strnlen versions.
49384         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49385         Remove strlen and strnlen related parts.
49386
49387         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49388         Inline strlen part.
49389         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49390
49391         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49392         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49393         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49394         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49395         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49396         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49397
49398 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49399
49400         * manual/memory.texi (Malloc Tunable Parameters):
49401         Sort parameters alphabetically. Add comments for missing entries.
49402
49403 2013-03-17  David S. Miller  <davem@davemloft.net>
49404
49405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49406
49407 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49408
49409         [BZ #15283]
49410         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49411         for arguments at most half maximum finite value.
49412         * math/libm-test.inc (j0_test): Add more tests.
49413         (j1_test): Likewise.
49414         (y0_test): Likewise.
49415         (y1_test): Likewise.
49416         * sysdeps/i386/fpu/libm-test-ulps: Update.
49417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49418
49419         [BZ #14155]
49420         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49421         1 / x and functions P and Q for arguments above 0x1p256L.
49422         (__ieee754_y0l): Likewise.
49423         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49424         (__ieee754_y1l): Likewise.
49425         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49426         (j1_test): Likewise.
49427         (y0_test): Likewise.
49428         (y1_test): Likewise.
49429
49430 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49431
49432         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49433         variable.
49434
49435 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49436
49437         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49438         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49439         zero since it's initialized to EXEC_PAGESIZE.
49440
49441         * sysdeps/unix/sysv/linux/ldsodefs.h
49442         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49443         * sysdeps/generic/ldsodefs.h: ... here.
49444
49445 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49446
49447         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49448
49449         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49450         math/test-snan.c.
49451         * math/test-snan.c: Renamed from
49452         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49453         * math/Makefile (tests): Add test-snan.
49454         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49455         test-powerpc-snan.
49456
49457         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49458         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49459         functions.
49460         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49461         __builtin_nan family of functions.
49462         * math/libm-test.inc (initialize): Initialize qnan_value with
49463         __builtin_nan family of functions.
49464         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49465         Remove variables.
49466         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49467         Remove functions.
49468         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49469         storage class.  Initialize qNaN_var and sNaN_var with
49470         __builtin_nan and __builtin_nans families of functions,
49471         respectively.
49472
49473         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49474         (sqrt_test): Remove duplicate test with qNaN input.
49475         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49476         (round_test, signbit_test, significand_test): Note missing +/-Inf
49477         as well as qNaN tests.
49478
49479         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49480         qNaN_var.  Fix a few strings, too.
49481         * math/libm-test.inc (nan_value): Rename to qnan_value.
49482         * math/gen-libm-test.pl (%beautify): Adjust to that.
49483         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49484         * math/test-misc.c (main): Likewise.
49485         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49486         to __qnan_bytes, and __qnan_union, respectively.
49487         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49488         Likewise.
49489         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49490         and lqnanval, respectively.
49491         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49492         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49493         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49494         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49495
49496         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49497         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49498         doubles.
49499
49500         * math/test-misc.c (main): Fix copy'n'pastos.
49501         * misc/tst-efgcvt.c (special): Likewise.
49502
49503         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49504         Remove declarations.
49505
49506 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49507
49508         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49509         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49510         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49511         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49512
49513 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49514
49515         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49516         macro to return vdso values correctly in IFUNC implementations.
49517         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49518         Optimization by using IFUNC.
49519
49520 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49521             Richard Henderson  <rth@redhat.com>
49522             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49523
49524         * Makefile.in (bench): New target.
49525         * NEWS: Mention the benchmark framework.
49526         * Rules (bench): Likewise.
49527         (binaries-bench): Generate binaries for functions to
49528         benchmark.
49529         * benchtests/Makefile: New makefile for benchmark tests.
49530         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49531         programs.
49532         * benchtests/exp-inputs: New input file for EXP function.
49533         * benchtests/pow-inputs: New input file for POW function.
49534         * scripts/bench.pl: New script to generate source files for
49535         benchmark programs.
49536
49537 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49538
49539         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49540         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49541         computations on mantissa.  Use macros for rounding and
49542         division.
49543         (denorm): Likewise.
49544         (__dbl_mp): Likewise.
49545         (add_magnitudes): Likewise.
49546         (sub_magnitudes): Likewise.
49547         (__mul): Likewise.
49548         (__sqr): Likewise.
49549         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49550         powers of two in terms of TWOPOW macro.
49551         (mp_no): Make type of mantissa as MANTISSA_T.
49552         [!RADIXI]: Define RADIXI.
49553         [!TWO52]: Define TWO52.
49554         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49555
49556         * manual/nptl.texi (cindex): Modify threads to pthreads.
49557
49558 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
49559
49560         * sysdeps/x86_64/preconfigure: Regenerated.
49561
49562 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
49563
49564         [BZ #14155]
49565         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
49566         0x1p28 and above.
49567         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
49568         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
49569         0x1p28 and above.
49570         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
49571         * math/libm-test.inc (j0_test): Do not allow one spurious
49572         underflow exception.
49573         (y1_test): Likewise.
49574
49575 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
49576
49577         * manual/Makefile (chapters): Add nptl.
49578         * manual/debug.texi (Debugging Support): Add link to Threads
49579         chapter.
49580         * manual/nptl.texi: New file.
49581
49582         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
49583
49584 2013-03-14  Petr Baudis  <pasky@ucw.cz>
49585
49586         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
49587         for non-NULL pointer before the memory validity test. Pointed
49588         out by Holger Brunck <holger.brunck@keymile.com>.
49589
49590 2013-03-13  Andreas Schwab  <schwab@suse.de>
49591
49592         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
49593         instead of .os.
49594
49595 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
49596
49597         * timezone/zic.c: Update from tzcode 2013b.
49598
49599 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
49600
49601         * manual/install.texi (Configuring and compiling):
49602         Mention i686 and i586.
49603         * INSTALL: Regenerate.
49604
49605 2013-03-12  Roland McGrath  <roland@hack.frob.com>
49606
49607         * sysdeps/init_array/elf-init.c: New file.
49608         * csu/elf-init.c
49609         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
49610         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
49611
49612         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
49613         __gmon_start__ as global, but as static with a .preinit_array pointer.
49614         * sysdeps/init_array/gmon-start.c: New file.  Use that.
49615         * sysdeps/init_array/crti.S: New file, empty except for comments.
49616         * sysdeps/init_array/crtn.S: Likewise.
49617
49618 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
49619
49620         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
49621         definining bcopy.
49622         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
49623         Remove Prefer_SSE_for_memop.
49624         * sysdeps/x86_64/multiarch/init-arch.h: Remove
49625         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
49626         HAS_PREFER_SSE_FOR_MEMOP.
49627         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
49628         memset-x86-64.
49629         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
49630         Remove bzero, memset ifunc support.
49631         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
49632         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
49633         * sysdeps/x86_64/multiarch/memset.S: Likewise.
49634         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
49635
49636 2013-03-11  Andreas Schwab  <schwab@suse.de>
49637
49638         [BZ #15234]
49639         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
49640         by SHLIB_COMPAT.
49641         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
49642         (GLIBC_2.16): Remove pthread_atfork.
49643
49644 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
49645
49646         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
49647         (ptestcases.h): Likewise.
49648
49649 2013-03-08  Roland McGrath  <roland@hack.frob.com>
49650
49651         * Makeconfig ($(common-objpfx)config.status): Depend on
49652         sysdeps/*/preconfigure{,.in} too.
49653
49654 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
49655
49656         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
49657         (__free_hook): Use void * instead of __malloc_ptr_t.
49658         (__malloc_hook): Likewise.
49659         (__realloc_hook): Likewise.
49660         (__memalign_hook): Likewise.
49661         (__after_morecore_hook): Likewise.
49662         * malloc/arena.c (save_malloc_hook): Likewise.
49663         (save_free_hook): Likewise.
49664         * malloc/hooks.c (malloc_hook_ini): Likewise.
49665         (realloc_hook_ini): Likewise.
49666         (memalign_hook_ini): Likewise.
49667         * malloc/malloc.c (malloc_hook_ini): Likewise.
49668         (realloc_hook_ini): Likewise.
49669         (memalign_hook_ini): Likewise.
49670         (__free_hook): Likewise.
49671         (__malloc_hook): Likewise.
49672         (__realloc_hook): Likewise.
49673         (__memalign_hook): Likewise.
49674         (__libc_malloc): Likewise.
49675         (__libc_free): Likewise.
49676         (__libc_realloc): Likewise.
49677         (__libc_memalign): Likewise.
49678         (__libc_valloc): Likewise.
49679         (__libc_pvalloc): Likewise.
49680         (__libc_calloc): Likewise.
49681         (__posix_memalign): Likewise.
49682         * malloc/morecore.c (__sbrk): Likewise.
49683         (__default_morecore): Likewise.
49684
49685         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
49686
49687         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
49688         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
49689         __malloc_ptrdiff_t.
49690
49691         * malloc/malloc.h (__malloc_size_t): Remove macro.
49692         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
49693         __malloc_size_t.
49694         (old_memalign_hook): Likewise.
49695         (old_realloc_hook): Likewise.
49696         (struct hdr): Likewise.
49697         (flood): Likewise.
49698         (mallochook): Likewise.
49699         (memalignhook): Likewise.
49700         (reallochook): Likewise.
49701         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
49702         (tr_old_realloc_hook): Likewise.
49703         (tr_old_memalign_hook): Likewise.
49704         (tr_mallochook): Likewise.
49705         (tr_reallochook): Likewise.
49706         (tr_memalignhook): Likewise.
49707
49708 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49709
49710         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
49711         default_ldbl_pack and using as default implementation.
49712         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
49713         implementation.
49714         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
49715         redundant definition.
49716         (ldbl_insert_mantissa): Likewise.
49717         (ldbl_canonicalize): Likewise.
49718         (ldbl_nearbyint): Likewise.
49719         (ldbl_pack): Rename to ldbl_pack_ppc.
49720         (ldbl_unpack): Rename to ldbl_unpack_ppc.
49721         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
49722         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
49723
49724 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49725
49726         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
49727         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
49728         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
49729         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
49730         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
49731         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
49732         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
49733         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
49734
49735 2013-03-07  Andreas Jaeger  <aj@suse.de>
49736
49737         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
49738         bits/mman-linux.h.
49739
49740 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49741
49742         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
49743         Include mpa.h and declare __MPEXP.
49744         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
49745         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49746         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49747         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
49748         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49749         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49750         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
49751
49752         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
49753         (__slowpow): Use long double EXPL and LOGL functions to
49754         compute POW.
49755         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49756         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49757         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
49758         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49759         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49760         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
49761
49762         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
49763         intermediate variable to calculate exponent.
49764         (__sqr): Likewise.
49765         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
49766         Likewise.
49767         (__sqr): Likewise.
49768
49769         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
49770         [!NO__SQR]: Define __sqr.
49771         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
49772         and NO__SQR.  Remove all code except __mul and __sqr.  Include
49773         sysdeps/ieee754/dbl-64/mpa.c.
49774         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
49775
49776         [BZ #12723]
49777         * posix/Makefile (tests): Add tst-pathconf.
49778         * posix/tst-pathconf.c: New test case.
49779         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
49780         _PC_PIPE_BUF.
49781         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
49782
49783 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
49784
49785         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
49786
49787 2013-03-06  Andreas Jaeger  <aj@suse.de>
49788
49789         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
49790         definition via __MAP_ANONYMOUS.
49791
49792         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
49793         it's not part of Linux headers.
49794
49795         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
49796         (MAP_HUGE_MASK): Define.
49797
49798         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49799         Define.
49800         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49801         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49802         Define.
49803         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49804         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49805         Define.
49806         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49807         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
49808         Define.
49809         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49810
49811         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
49812         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
49813         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
49814         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
49815         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
49816         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
49817
49818         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
49819         Handle f2fs.
49820
49821         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
49822         Handle f2fs and efivarfs.
49823
49824         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
49825         f2fs.
49826
49827         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
49828         (EFIVARFS_MAGIC): Add.
49829         (F2FS_LINK_MAX): Add.
49830
49831 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
49832
49833         * stdio-common/vfprintf.c: Replace __builtin_expect with
49834         __glibc_unlikely.
49835
49836 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
49837
49838         [BZ #13550]
49839         * sysdeps/generic/bp-sym.h: Remove file.
49840         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
49841         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
49842         <bp-sym.h> and <bp-asm.h>.
49843         (__longjmp): Don't use BP_SYM.
49844         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
49845         and <bp-asm.h>.
49846         (memcpy): Don't use BP_SYM.
49847         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
49848         <bp-sym.h> and <bp-asm.h>.
49849         (memcpy): Don't use BP_SYM.
49850         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
49851         <bp-asm.h>.
49852         (memcpy): Don't use BP_SYM.
49853         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
49854         <bp-asm.h>.
49855         (memset): Don't use BP_SYM.
49856         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49857         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49858         (__bzero): Don't use BP_SYM.
49859         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49860         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49861         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
49862         <bp-sym.h> and <bp-asm.h>.
49863         (memcmp): Don't use BP_SYM.  Remove comment about bounded
49864         pointers.
49865         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
49866         <bp-sym.h> and <bp-asm.h>.
49867         (memcpy): Don't use BP_SYM.
49868         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
49869         <bp-sym.h> and <bp-asm.h>.
49870         (memset): Don't use BP_SYM.
49871         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49872         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49873         (__bzero): Don't use BP_SYM.
49874         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49875         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49876         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
49877         <bp-sym.h> and <bp-asm.h>.
49878         (strncmp): Don't use BP_SYM.  Remove comment about bounded
49879         pointers.
49880         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
49881         <bp-sym.h> and <bp-asm.h>.
49882         (memcpy): Don't use BP_SYM.
49883         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
49884         <bp-sym.h> and <bp-asm.h>.
49885         (memset): Don't use BP_SYM.
49886         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49887         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49888         (__bzero): Don't use BP_SYM.
49889         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49890         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49891         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
49892         <bp-sym.h> and <bp-asm.h>.
49893         (__memchr): Don't use BP_SYM.
49894         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
49895         <bp-sym.h> and <bp-asm.h>.
49896         (memcmp): Don't use BP_SYM.  Remove comment about bounded
49897         pointers.
49898         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
49899         <bp-sym.h> and <bp-asm.h>.
49900         (memcpy): Don't use BP_SYM.
49901         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
49902         <bp-sym.h> and <bp-asm.h>.
49903         (__mempcpy): Don't use BP_SYM.
49904         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
49905         <bp-sym.h> and <bp-asm.h>.
49906         (__memrchr): Don't use BP_SYM.
49907         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
49908         <bp-sym.h> and <bp-asm.h>.
49909         (memset): Don't use BP_SYM.
49910         (__bzero): Likewise.
49911         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
49912         <bp-sym.h> and <bp-asm.h>.
49913         (__rawmemchr): Don't use BP_SYM.
49914         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
49915         <bp-sym.h> and <bp-asm.h>.
49916         (__STRCMP): Don't use BP_SYM.
49917         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
49918         <bp-sym.h> and <bp-asm.h>.
49919         (strchr): Don't use BP_SYM.
49920         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
49921         <bp-sym.h> and <bp-asm.h>.
49922         (__strchrnul): Don't use BP_SYM.
49923         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
49924         <bp-sym.h> and <bp-asm.h>.
49925         (strlen): Don't use BP_SYM.
49926         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
49927         <bp-sym.h> and <bp-asm.h>.
49928         (strncmp): Don't use BP_SYM.  Remove comment about bounded
49929         pointers.
49930         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
49931         <bp-sym.h> and <bp-asm.h>.
49932         (__strnlen): Don't use BP_SYM.
49933         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
49934         <bp-sym.h> and <bp-asm.h>.
49935         (__GI__setjmp): Don't use BP_SYM.
49936         (_setjmp): Likewise.
49937         (__sigsetjmp): Likewise.
49938         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
49939         (L(start_addresses)): Don't use BP_SYM.
49940         (_start): Likewise.
49941         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
49942         <bp-asm.h>.
49943         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
49944         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
49945         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
49946         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
49947         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
49948         <bp-asm.h>.
49949         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
49950         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
49951         about bounded pointers.
49952         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
49953         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
49954         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
49955         <bp-asm.h>.
49956         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
49957         about bounded pointers.  Remove GKM FIXME comments.
49958         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
49959         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
49960         <bp-asm.h>.
49961         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
49962         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
49963         Remove GKM FIXME comments.
49964         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
49965         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
49966         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
49967         <bp-asm.h>.
49968         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
49969         about bounded pointers.  Remove GKM FIXME comment.
49970         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
49971         and <bp-asm.h>.
49972         (strncmp): Don't use BP_SYM.  Remove comment about bounded
49973         pointers.
49974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
49975         <bp-sym.h> and <bp-asm.h>.
49976         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
49977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
49978         <bp-sym.h> and <bp-asm.h>.
49979         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
49980         comment.
49981
49982 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
49983
49984         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
49985         call free(NULL).
49986
49987 2013-03-05  David S. Miller  <davem@davemloft.net>
49988
49989         * po/es.po: Update from translation team.
49990
49991 2013-03-05  Andreas Jaeger  <aj@suse.de>
49992
49993         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
49994         <bits/mman-linux.h>.
49995         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
49996         is fine.
49997         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
49998         <bits/mman-linux.h> to end of file.
49999         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50000         is fine.
50001         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50002         <bits/mman-linux.h> to end of file.
50003         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50004         is fine.
50005         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50006         <bits/mman-linux.h> to end of file.
50007
50008         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50009         (MCL_CURRENT, MCL_FUTURE): Define here.
50010
50011 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50012
50013         [BZ #15232]
50014         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50015         attribute_hidden.
50016         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50017
50018 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50019
50020         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50021         fourth parameter needed for rt_sigprocmask syscall.
50022         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50023         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50024         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50025         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50026         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50027         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50028
50029 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50030
50031         [BZ #13550]
50032         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50033         comment about bounded pointers.
50034         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50035         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50036
50037 2013-03-04  Andreas Jaeger  <aj@suse.de>
50038
50039         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50040         common definitions.
50041
50042         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50043         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50044         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50045         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50046         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50047         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50048
50049 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50050
50051         [BZ #15055]
50052         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50053         __ieee754_sqrl instead of __sqrl.
50054
50055 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50056
50057         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50058         * sysdeps/powerpc/fpu_control.h: ... here.
50059         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50060         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50061         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50062         * sysdeps/powerpc/bits/mathinline.h: ... here.
50063
50064 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50065
50066         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50067         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50068         to just [NEED_DL_SYSINFO_DSO].
50069         * elf/dl-support.c: Likewise.
50070         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50071         * elf/rtld.c (dl_main): Likewise.
50072         * elf/setup-vdso.h (setup_vdso): Likewise.
50073         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50074         * sysdeps/unix/sysv/linux/dl-sysdep.c
50075         (_dl_discover_osversion): Likewise.
50076
50077 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50078
50079         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50080         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50081
50082 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50083
50084         * NEWS: Mention libm performance improvements and non-x86 PI
50085         futex support.
50086
50087         * csu/libc-start.c (__pthread_initialize_minimal): Change
50088         function arguments.
50089         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50090
50091 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50092
50093         [BZ #13550]
50094         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50095         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50096         <bp-sym.h> and <bp-asm.h>.
50097         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50098         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50099         and <bp-asm.h>.
50100         (memcpy): Don't use BP_SYM.
50101         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50102         <bp-asm.h>.
50103         (__mpn_add_n): Don't use BP_SYM.
50104         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50105         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50106         and <bp-asm.h>.
50107         (__mpn_addmul_1): Don't use BP_SYM.
50108         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50109         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50110         <bp-sym.h>.
50111         (_setjmp): Don't use BP_SYM.
50112         (__novmx_setjmp): Likewise.
50113         (__GI__setjmp): Likewise.
50114         (__vmx_setjmp): Likewise.
50115         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50116         <bp-sym.h>.
50117         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50118         (__bzero): Don't use BP_SYM.
50119         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50120         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50121         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50122         <bp-sym.h> and <bp-asm.h>.
50123         (memcpy): Don't use BP_SYM.
50124         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50125         <bp-sym.h> and <bp-asm.h>.
50126         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50127         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50128         <bp-sym.h> and <bp-asm.h>.
50129         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50130         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50131         <bp-asm.h>.
50132         (__mpn_lshift): Don't use BP_SYM.
50133         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50134         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50135         <bp-asm.h>.
50136         (memset): Don't use BP_SYM.
50137         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50138         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50139         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50140         <bp-asm.h>.
50141         (__mpn_mul_1): Don't use BP_SYM.
50142         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50143         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50144         <bp-sym.h> and <bp-asm.h>.
50145         (memcmp): Don't use BP_SYM.
50146         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50147         <bp-sym.h> and <bp-asm.h>.
50148         (memcpy): Don't use BP_SYM.
50149         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50150         <bp-sym.h> and <bp-asm.h>.
50151         (memset): Don't use BP_SYM.
50152         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50153         <bp-sym.h> and <bp-asm.h>.
50154         (strncmp): Don't use BP_SYM.
50155         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50156         <bp-sym.h> and <bp-asm.h>.
50157         (memcpy): Don't use BP_SYM.
50158         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50159         <bp-sym.h> and <bp-asm.h>.
50160         (memset): Don't use BP_SYM.
50161         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50162         <bp-sym.h> and <bp-asm.h>.
50163         (__memchr): Don't use BP_SYM.
50164         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50165         <bp-sym.h> and <bp-asm.h>.
50166         (memcmp): Don't use BP_SYM.
50167         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50168         <bp-sym.h> and <bp-asm.h>.
50169         (memcpy): Don't use BP_SYM.
50170         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50171         <bp-sym.h> and <bp-asm.h>.
50172         (__mempcpy): Don't use BP_SYM.
50173         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50174         <bp-sym.h> and <bp-asm.h>.
50175         (__memrchr): Don't use BP_SYM.
50176         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50177         <bp-sym.h> and <bp-asm.h>.
50178         (memset): Don't use BP_SYM.
50179         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50180         <bp-sym.h> and <bp-asm.h>.
50181         (__rawmemchr): Don't use BP_SYM.
50182         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50183         <bp-sym.h> and <bp-asm.h>.
50184         (__STRCMP): Don't use BP_SYM.
50185         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50186         <bp-sym.h> and <bp-asm.h>.
50187         (strchr): Don't use BP_SYM.
50188         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50189         <bp-sym.h> and <bp-asm.h>.
50190         (__strchrnul): Don't use BP_SYM.
50191         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50192         <bp-sym.h> and <bp-asm.h>.
50193         (strlen): Don't use BP_SYM.
50194         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50195         <bp-sym.h> and <bp-asm.h>.
50196         (strncmp): Don't use BP_SYM.
50197         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50198         <bp-sym.h> and <bp-asm.h>.
50199         (__strnlen): Don't use BP_SYM.
50200         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50201         <bp-asm.h>.
50202         (__mpn_rshift): Don't use BP_SYM.
50203         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50204         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50205         <bp-sym.h> and <bp-asm.h>.
50206         (__sigsetjmp): Don't use BP_SYM.
50207         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50208         (L(start_addresses)): Don't use BP_SYM.
50209         (_start): Likewise.
50210         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50211         <bp-asm.h>.
50212         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50213         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50214         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50215         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50216         <bp-asm.h>.
50217         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50218         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50219         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50220         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50221         <bp-asm.h>.
50222         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50223         comments.
50224         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50225         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50226         <bp-asm.h>.
50227         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50228         FIXME comments.
50229         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50230         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50231         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50232         <bp-asm.h>.
50233         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50234         comment.
50235         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50236         and <bp-asm.h>.
50237         (strncmp): Don't use BP_SYM,
50238         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50239         <bp-asm.h>.
50240         (__mpn_sub_n): Don't use BP_SYM.
50241         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50242         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50243         and <bp-asm.h>.
50244         (__mpn_submul_1): Don't use BP_SYM.
50245         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50247         <bp-sym.h> and <bp-asm.h>.
50248         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50250         <bp-sym.h> and <bp-asm.h>.
50251         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50252         comment.
50253
50254 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50255
50256         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50257         Use ZK to minimize writes to Z.
50258         (sub_magnitudes): Simplify code a bit.
50259         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50260         Use ZK to minimize writes to Z.
50261         (sub_magnitudes): Simplify code a bit.
50262
50263 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50264
50265         * csu/gmon-start.c: Add special exception to license text.
50266
50267 2013-02-27  Richard Henderson  <rth@redhat.com>
50268
50269         * scripts/config.guess: Update from config.git.
50270         * scripts/config.sub: Likewise.
50271
50272 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50273
50274         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50275
50276         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50277
50278         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50279
50280         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50281
50282         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50283
50284 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50285
50286         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50287         [$(build-shared = yes].
50288
50289 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50290
50291         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50292         (__mul): Reduce iterations for calculating mantissa.
50293
50294         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50295         MPTWO.
50296         (__mpranred): Likewise.
50297
50298         [BZ #15160]
50299         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50300         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50301
50302 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50303
50304         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50305         Define __attribute__.
50306
50307 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50308
50309         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50310         unused.
50311         * posix/regex_internal.h (__attribute): Remove.
50312         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50313         (re_string_context_at): Likewise.
50314         (bitset_not): Use __attribute__ and mark function as possibly
50315         unused.
50316         (bitset_merge): Likewise.
50317         (bitset_mask): Likewise.
50318         (re_string_char_size_at): Likewise.
50319         (re_string_wchar_at): Likewise.
50320         (re_string_elem_size_at): Likewise.
50321
50322 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50323
50324         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50325         code.
50326         (cc32): Likewise.
50327
50328         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50329         (__acr): Likewise.
50330         (__cpy): Likewise.
50331         (norm): Likewise.
50332         (denorm): Likewise.
50333         (__dbl_mp): Likewise.
50334         (add_magnitudes): Likewise.
50335         (sub_magnitudes): Likewise.
50336         (__mul): Likewise.
50337         (__inv): Likewise.
50338
50339         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50340         style.
50341
50342         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50343         style.
50344
50345         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50346         code.
50347
50348         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50349         up changes with default code.
50350         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50351         Likewise.
50352
50353 2013-02-24  Allan McRae  <allan@archlinux.org>
50354
50355         * manual/socket.texi (The Internet Namespace): Order menu items
50356         to match that in the file.
50357
50358         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50359         node listing of the info page menu.
50360
50361 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50362
50363         [BZ #13550]
50364         * sysdeps/i386/bp-asm.h: Remove file.
50365         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50366         (PARMS): Do not use macros from bp-asm.h.
50367         (S1): Likewise.
50368         (S2): Likewise.
50369         (SIZE): Likewise.
50370         (__mpn_add_n): Do not use BP_SYM
50371         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50372         "bp-asm.h".
50373         (PARMS): Do not use macros from bp-asm.h.
50374         (S1): Likewise.
50375         (SIZE): Likewise.
50376         (__mpn_addmul_1): Do not use BP_SYM
50377         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50378         "bp-asm.h".
50379         (PARMS): Do not use macros from bp-asm.h.
50380         (SIGMSK): Likewise.
50381         (_setjmp): Likewise.  Do not use BP_SYM.
50382         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50383         "bp-asm.h".
50384         (PARMS): Do not use macros from bp-asm.h.
50385         (SIGMSK): Likewise.
50386         (setjmp): Likewise.  Do not use BP_SYM.
50387         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50388         "bp-asm.h".
50389         (PARMS): Do not use macros from bp-asm.h.
50390         (__frexp): Do not use BP_SYM.
50391         (frexp): Likewise.
50392         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50393         "bp-asm.h".
50394         (PARMS): Do not use macros from bp-asm.h.
50395         (__frexpf): Do not use BP_SYM.
50396         (frexpf): Likewise.
50397         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50398         "bp-asm.h".
50399         (PARMS): Do not use macros from bp-asm.h.
50400         (__frexpl): Do not use BP_SYM.
50401         (frexpl): Likewise.
50402         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50403         "bp-asm.h".
50404         (PARMS): Do not use macros from bp-asm.h.
50405         (__remquo): Do not use BP_SYM.
50406         (remquo): Likewise.
50407         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50408         "bp-asm.h".
50409         (PARMS): Do not use macros from bp-asm.h.
50410         (__remquof): Do not use BP_SYM.
50411         (remquof): Likewise.
50412         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50413         "bp-asm.h".
50414         (PARMS): Do not use macros from bp-asm.h.
50415         (__remquol): Do not use BP_SYM.
50416         (remquol): Likewise.
50417         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50418         "bp-asm.h".
50419         (PARMS): Do not use macros from bp-asm.h.
50420         (DEST): Likewise.
50421         (SRC): Likewise.
50422         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50423         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50424         "bp-asm.h".
50425         (PARMS): Do not use macros from bp-asm.h.
50426         (strlen): Do not use BP_SYM.
50427         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50428         "bp-asm.h".
50429         (PARMS): Do not use macros from bp-asm.h.
50430         (S1): Likewise.
50431         (S2): Likewise.
50432         (SIZE): Likewise.
50433         (__mpn_add_n): Do not use BP_SYM.
50434         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50435         "bp-asm.h".
50436         (PARMS): Do not use macros from bp-asm.h.
50437         (S1): Likewise.
50438         (SIZE): Likewise.
50439         (__mpn_addmul_1): Do not use BP_SYM.
50440         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50441         weak_alias.
50442         (bzero): Likewise.
50443         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50444         "bp-asm.h".
50445         (PARMS): Do not use macros from bp-asm.h.
50446         (S): Likewise.
50447         (SIZE): Likewise.
50448         (__mpn_lshift): Do not use BP_SYM.
50449         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50450         "bp-asm.h".
50451         (PARMS): Do not use macros from bp-asm.h.
50452         (DEST): Likewise.
50453         (SRC): Likewise.
50454         (LEN): Likewise.
50455         (memcpy): Likewise.  Do not use BP_SYM.
50456         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50457         libc_hidden_def and weak_alias.
50458         (mempcpy): Do not use BP_SYM in weak_alias.
50459         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50460         "bp-asm.h".
50461         (PARMS): Do not use macros from bp-asm.h.
50462         (DEST): Likewise.
50463         (LEN): Likewise.
50464         [!BZERO_P] (CHR): Likewise.
50465         (memset): Likewise.  Do not use BP_SYM.
50466         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50467         "bp-asm.h".
50468         (PARMS): Do not use macros from bp-asm.h.
50469         (S1): Likewise.
50470         (SIZE): Likewise.
50471         (__mpn_mul_1): Do not use BP_SYM.
50472         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50473         "bp-asm.h".
50474         (PARMS): Do not use macros from bp-asm.h.
50475         (S): Likewise.
50476         (SIZE): Likewise.
50477         (__mpn_rshift): Do not use BP_SYM.
50478         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50479         "bp-asm.h".
50480         (PARMS): Do not use macros from bp-asm.h.
50481         (STR): Likewise.
50482         (CHR): Likewise.
50483         (strchr): Likewise.  Do not use BP_SYM.
50484         (index): Do not use BP_SYM in weak_alias.
50485         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50486         "bp-asm.h".
50487         (PARMS): Do not use macros from bp-asm.h.
50488         (DEST): Likewise.
50489         (SRC): Likewise.
50490         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50491         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50492         "bp-asm.h".
50493         (PARMS): Do not use macros from bp-asm.h.
50494         (strlen): Do not use BP_SYM.
50495         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50496         "bp-asm.h".
50497         (PARMS): Do not use macros from bp-asm.h.
50498         (S1): Likewise.
50499         (S2): Likewise.
50500         (SIZE): Likewise.
50501         (__mpn_sub_n): Do not use BP_SYM.
50502         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
50503         "bp-asm.h".
50504         (PARMS): Do not use macros from bp-asm.h.
50505         (S1): Likewise.
50506         (SIZE): Likewise.
50507         (__mpn_submul_1): Do not use BP_SYM.
50508         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50509         "bp-asm.h".
50510         (PARMS): Do not use macros from bp-asm.h.
50511         (S1): Likewise.
50512         (S2): Likewise.
50513         (SIZE): Likewise.
50514         (__mpn_add_n): Do not use BP_SYM.
50515         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50516         weak_alias.
50517         (bzero): Likewise.
50518         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50519         "bp-asm.h".
50520         (PARMS): Do not use macros from bp-asm.h.
50521         (BLK2): Likewise.
50522         (LEN): Likewise.
50523         (memcmp): Do not use BP_SYM.
50524         (bcmp): Do not use BP_SYM in weak_alias.
50525         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
50526         "bp-asm.h".
50527         (PARMS): Do not use macros from bp-asm.h.
50528         (DEST): Likewise.
50529         (SRC): Likewise.
50530         (LEN): Likewise.
50531         (memcpy): Likewise.  Do not use BP_SYM.
50532         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
50533         "bp-asm.h".
50534         (PARMS): Do not use macros from bp-asm.h.
50535         (DEST): Likewise.
50536         (SRC): Likewise.
50537         (LEN): Likewise.
50538         (memmove): Likewise.  Do not use BP_SYM.
50539         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50540         "bp-asm.h".
50541         (PARMS): Do not use macros from bp-asm.h.
50542         (DEST): Likewise.
50543         (SRC): Likewise.
50544         (LEN): Likewise.
50545         (__mempcpy): Likewise.  Do not use BP_SYM.
50546         (mempcpy): Do not use BP_SYM in weak_alias.
50547         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
50548         "bp-asm.h".
50549         (PARMS): Do not use macros from bp-asm.h.
50550         (DEST): Likewise.
50551         (LEN): Likewise.
50552         [!BZERO_P] (CHR): Likewise.
50553         (memset): Likewise.  Do not use BP_SYM.
50554         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
50555         "bp-asm.h".
50556         (PARMS): Do not use macros from bp-asm.h.
50557         (STR2): Likewise.
50558         (strcmp): Do not use BP_SYM.
50559         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
50560         "bp-asm.h".
50561         (PARMS): Do not use macros from bp-asm.h.
50562         (STR): Likewise.
50563         (DELIM): Likewise.
50564         [USE_AS_STRTOK_R] (SAVE): Likewise.
50565         (FUNCTION): Likewise.  Do not use BP_SYM.
50566         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
50567         aliases.
50568         (strtok_r): Likewise.
50569         (__GI___strtok_r): Likewise.
50570         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50571         (PARMS): Do not use macros from bp-asm.h.
50572         (S): Likewise.
50573         (SIZE): Likewise.
50574         (__mpn_lshift): Do not use BP_SYM.
50575         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50576         (PARMS): Do not use macros from bp-asm.h.
50577         (STR): Likewise.
50578         (CHR): Likewise.
50579         (__memchr): Do not use BP_SYM.
50580         (memchr): Do not use BP_SYM in weak_alias.
50581         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50582         (PARMS): Do not use macros from bp-asm.h.
50583         (BLK2): Likewise.
50584         (LEN): Likewise.
50585         (memcmp): Do not use BP_SYM.
50586         (bcmp): Do not use BP_SYM in weak_alias.
50587         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
50588         (PARMS): Do not use macros from bp-asm.h.
50589         (S1): Likewise.
50590         (SIZE): Likewise.
50591         (__mpn_mul_1): Do not use BP_SYM.
50592         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
50593         "bp-asm.h".
50594         (PARMS): Do not use macros from bp-asm.h.
50595         (STR): Likewise.
50596         (CHR): Likewise.
50597         (__rawmemchr): Do not use BP_SYM.
50598         (rawmemchr): Do not use BP_SYM in weak_alias.
50599         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50600         (PARMS): Do not use macros from bp-asm.h.
50601         (S): Likewise.
50602         (SIZE): Likewise.
50603         (__mpn_rshift): Do not use BP_SYM.
50604         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50605         (PARMS): Do not use macros from bp-asm.h.
50606         (SIGMSK): Likewise.
50607         (__sigsetjmp): Likewise.  Do not use BP_SYM.
50608         * sysdeps/i386/start.S: Do not include "bp-sym.h".
50609         (_start): Do not use BP_SYM.
50610         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
50611         (PARMS): Do not use macros from bp-asm.h.
50612         (DEST): Likewise.
50613         (SRC): Likewise.
50614         (__stpcpy): Likewise.  Do not use BP_SYM.
50615         (stpcpy): Do not use BP_SYM in weak_alias.
50616         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
50617         "bp-asm.h".
50618         (PARMS): Do not use macros from bp-asm.h.
50619         (DEST): Likewise.
50620         (SRC): Likewise.
50621         (LEN): Likewise.
50622         (__stpncpy): Likewise.  Do not use BP_SYM.
50623         (stpncpy): Do not use BP_SYM in weak_alias.
50624         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50625         (PARMS): Do not use macros from bp-asm.h.
50626         (STR): Likewise.
50627         (CHR): Likewise.
50628         (strchr): Likewise.  Do not use BP_SYM.
50629         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
50630         "bp-asm.h".
50631         (PARMS): Do not use macros from bp-asm.h.
50632         (STR): Likewise.
50633         (CHR): Likewise.
50634         (__strchrnul): Likewise.  Do not use BP_SYM.
50635         (strchrnul): Do not use BP_SYM in weak_alias.
50636         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
50637         "bp-asm.h".
50638         (PARMS): Do not use macros from bp-asm.h.
50639         (STOP): Likewise.
50640         (strcspn): Do not use BP_SYM.
50641         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
50642         "bp-asm.h".
50643         (PARMS): Do not use macros from bp-asm.h.
50644         (STR): Likewise.
50645         (STOP): Likewise.
50646         (strpbrk): Likewise.  Do not use BP_SYM.
50647         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
50648         "bp-asm.h".
50649         (PARMS): Do not use macros from bp-asm.h.
50650         (STR): Likewise.
50651         (CHR): Likewise.
50652         (strrchr): Likewise.  Do not use BP_SYM.
50653         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
50654         (PARMS): Do not use macros from bp-asm.h.
50655         (SKIP): Likewise.
50656         (strspn): Do not use BP_SYM.
50657         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
50658         (PARMS): Do not use macros from bp-asm.h.
50659         (STR): Likewise.
50660         (DELIM): Likewise.
50661         (SAVE): Likewise.
50662         (FUNCTION): Likewise.  Do not use BP_SYM.
50663         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
50664         aliases.
50665         (strtok_r): Likewise.
50666         (__GI___strtok_r): Likewise.
50667         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50668         (PARMS): Do not use macros from bp-asm.h.
50669         (S1): Likewise.
50670         (S2): Likewise.
50671         (SIZE): Likewise.
50672         (__mpn_sub_n): Do not use BP_SYM.
50673         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
50674         "bp-asm.h".
50675         (PARMS): Do not use macros from bp-asm.h.
50676         (S1): Likewise.
50677         (SIZE): Likewise.
50678         (__mpn_submul_1): Do not use BP_SYM.
50679         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
50680         <bp-sym.h>.
50681         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
50682         and <bp-asm.h>.
50683         (PARMS): Do not use macros from bp-asm.h.
50684         (FLAGS): Likewise.
50685         (PTID): Likewise.
50686         (TLS): Likewise.
50687         (CTID): Likewise.
50688         (__clone): Do not use BP_SYM.
50689         (clone): Do not use BP_SYM in weak_alias.
50690         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
50691         and <bp-asm.h>.
50692         (PARMS): Do not use macros from bp-asm.h.
50693         (LEN): Likewise.
50694         (__mmap64): Do not use BP_SYM.
50695         (mmap64): Do not use BP_SYM in weak_alias.
50696         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
50697         <bp-sym.h> and <bp-asm.h>.
50698         (PARMS): Do not use macros from bp-asm.h.
50699         (__posix_fadvise64_l64): Do not use BP_SYM.
50700         * sysdeps/unix/sysv/linux/i386/semtimedop.S
50701         (PARMS): Do not use macros from bp-asm.h.
50702         (NSOPS): Likewise.
50703         (semtimedop): Do not use BP_SYM.
50704         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
50705         and <bp-asm.h>.
50706
50707 2013-02-21  Allan McRae  <allan@archlinux.org>
50708
50709         * manual/message.texi (Charset conversion in gettext):
50710         Move @end statement to beginning of line.
50711
50712 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50713
50714         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
50715         static.
50716         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
50717         Likewise.
50718
50719         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
50720         (denorm): Likewise.
50721         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
50722         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
50723
50724 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50725
50726         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
50727         tail-call to the resolved function if pltexit isn't needed.
50728
50729 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50730
50731         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
50732         or Y being zero as being unlikely.
50733         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50734         Likewise.
50735
50736 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
50737
50738         * manual/nss.texi (System Databases and Name Service Switch):
50739         Remove frobnicate @pxref.
50740
50741 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50742
50743         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50744         __attribute__ ((unused)) to __attribute__ ((__unused__)).
50745
50746 2013-02-20  Petr Machata  <pmachata@redhat.com>
50747
50748         * elf/elf.h (R_ARM_TARGET1): New macro.
50749         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
50750         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
50751         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
50752         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
50753         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
50754         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
50755         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
50756         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
50757         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
50758         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
50759         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
50760         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
50761         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
50762         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
50763         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
50764         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
50765         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
50766         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
50767         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
50768         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
50769         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
50770         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
50771         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
50772         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
50773         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
50774         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
50775         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
50776         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
50777         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
50778         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
50779         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
50780         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
50781         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
50782         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
50783         (R_ARM_THM_GOT_BREL12): Likewise.
50784         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
50785         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
50786         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
50787         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
50788         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
50789         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
50790         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
50791         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
50792         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
50793
50794 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50795
50796         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50797         __attribute_used__ to __attribute__ ((unused)).
50798
50799 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
50800
50801         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
50802         powerpc mpa.c.
50803         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
50804         comment formatting.
50805         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
50806
50807 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
50808
50809         [BZ #13550]
50810         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
50811         Remove macro.
50812         (ENTER): Remove both macro definitions.
50813         (LEAVE): Likewise.
50814         (CHECK_BOUNDS_LOW): Likewise.
50815         (CHECK_BOUNDS_HIGH): Likewise.
50816         (CHECK_BOUNDS_BOTH): Likewise.
50817         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
50818         (RETURN_BOUNDED_POINTER): Likewise.
50819         (RETURN_NULL_BOUNDED_POINTER): Likewise.
50820         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
50821         (POP_ERRNO_LOCATION_RETURN): Likewise.
50822         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
50823         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50824         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
50825         macros.
50826         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50827         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
50828         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
50829         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
50830         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
50831         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
50832         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
50833         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
50834         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
50835         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
50836         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
50837         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
50838         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50839         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
50840         removed macros.
50841         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50842         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
50843         macros.
50844         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50845         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
50846         * sysdeps/i386/i586/memset.S (memset): Likewise.
50847         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
50848         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50849         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
50850         macros.
50851         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50852         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
50853         Change uses of L(2) to L(out).
50854         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
50855         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
50856         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
50857         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50858         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
50859         removed macros.
50860         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50861         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
50862         macros.
50863         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50864         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
50865         (RETURN): Do not use macro LEAVE.
50866         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
50867         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
50868         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
50869         * sysdeps/i386/i686/memset.S (memset): Likewise.
50870         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
50871         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
50872         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50873         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
50874         Likewise.
50875         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50876         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
50877         L(1_2) and L(1_3) into L(1).
50878         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
50879         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
50880         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50881         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
50882         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50883         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
50884         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
50885         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50886         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
50887         macros.
50888         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
50889         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50890         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
50891         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
50892         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
50893         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50894         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
50895         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
50896         * sysdeps/i386/strcspn.S (strcspn): Likewise.
50897         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
50898         * sysdeps/i386/strrchr.S (strrchr): Likewise.
50899         * sysdeps/i386/strspn.S (strspn): Likewise.
50900         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
50901         conditional code.
50902         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50903         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
50904         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
50905         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
50906         L(1_3) into L(1_1).
50907         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
50908         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50909         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
50910         macros.
50911         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50912
50913 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
50914
50915         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
50916         macro.
50917
50918 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50919
50920         * math/atest-exp.c (exp_mpn): Remove ROUND.
50921         * math/atest-exp2.c (exp_mpn): Likewise.
50922         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
50923
50924         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
50925         * stdlib/tst-tls-atexit-lib.c: Likewise.
50926         * stdlib/tst-tls-atexit.c: Likewise.
50927
50928 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
50929
50930         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
50931         and __attribute_alloc_size__.
50932
50933 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
50934
50935         * include/programs/xmalloc.h: Change __attribute_alloc_size to
50936         __attribute_alloc_size__.
50937         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
50938         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
50939
50940 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
50941
50942         * include/programs/xmalloc.h: New file.
50943         * catgets/gencat.c: Include it.
50944         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
50945         * elf/pldd.c: Likewise.
50946         * iconv/iconv_charmap.c: Likewise.
50947         * iconv/iconvconfig.c: Likewise.
50948         * iconv/strtab.c: Likewise.
50949         * locale/programs/locale.c: Likewise.
50950         * locale/programs/localedef.h: Likewise.
50951         * locale/programs/simple-hash.c: Likewise.
50952         * nscd/nscd.h: Likewise.
50953         * nss/makedb.c: Likewise.
50954         * sysdeps/generic/ldconfig.h: Likewise.
50955
50956 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
50957
50958         * Versions.def: Add GLIBC_2.18.
50959         * include/link.h (struct link_map): New member l_tls_dtor_count.
50960         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
50961         (__call_tls_dtors): Likewise.
50962         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
50963         __cxa_thread_atexit_impl.
50964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
50965         Likewise.
50966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
50967         Likewise.
50968         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
50969         Likewise.
50970         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
50971         Likewise.
50972         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
50973         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
50974         Likewise.
50975         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
50976         Likewise.
50977         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
50978         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
50979         Likewise.
50980         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
50981         (tests): Add test case tst-tls-atexit.
50982         (modules-names): Add shared library for tst-tls-atexit.
50983         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
50984         (GLIBC_PRIVATE): Add __call_tls_dtors.
50985         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
50986         for libstdc++.
50987         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
50988         * stdlib/tst-tls-atexit.c: New test case.
50989         * stdlib/tst-tls-atexit-lib.c: New test case.
50990
50991         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
50992
50993         * elf/Versions (ld): Add _dl_find_dso_for_object.
50994         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
50995         * elf/dl-open.c (_dl_find_dso_for_object): New function.
50996         (dl_open_worker): Use _dl_find_dso_for_object.
50997         * elf/dl-sym.c (do_sym): Likewise.
50998         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
50999
51000 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51001
51002         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51003         Syntactic changes only.
51004         (_dl_runtime_profile): Do a tail-call to the resolved function.
51005
51006 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51007
51008         [BZ #13550]
51009         * sysdeps/x86_64/bp-asm.h: Remove file.
51010         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51011         <bp-sym.h> and <bp-asm.h>.
51012         (__clone): Do not use BP_SYM.
51013         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51014         <bp-sym.h> and <bp-asm.h>.
51015         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51016         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51017         "bp-asm.h".
51018         (_setjmp): Do not use BP_SYM.
51019         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51020         "bp-asm.h".
51021         (setjmp): Do not use BP_SYM.
51022         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51023         libc_hidden_def.
51024         (mempcpy): Do not use BP_SYM in weak_alias.
51025         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51026         "bp-asm.h".
51027         (strchr): Do not use BP_SYM.
51028         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51029         "bp-asm.h".
51030         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51031         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51032         (_start): Do not use BP_SYM.
51033         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51034         "bp-asm.h".
51035         (strcat): Do not use BP_SYM.
51036         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51037         "bp-asm.h".
51038         (STRCMP): Do not use BP_SYM.
51039         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51040         "bp-asm.h".
51041         (STRCPY): Do not use BP_SYM.
51042         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51043         "bp-asm.h".
51044         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51045         "bp-asm.h".
51046         (FUNCTION): Do not use BP_SYM.
51047         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51048         weak_alias.
51049         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51050
51051 2013-02-17  Andreas Jaeger  <aj@suse.de>
51052
51053         * time/Versions: Sort entries.
51054         * string/Versions: Likewise.
51055         * resolv/Versions: Likewise.
51056         * posix/Versions: Likewise.
51057         * iconv/Versions: Likewise.
51058         * elf/Versions: Likewise.
51059         * wcsmbs/Versions: Likewise.
51060
51061 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51062
51063         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51064         loop termination condition.
51065
51066         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51067         variable to calculate EZ.
51068         (__sqr): Likewise.
51069
51070         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51071         the lower precision input.
51072
51073 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51074
51075         [BZ #13550]
51076         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51077         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51078         (run-via-rtld-prefix): Do not handle %-bp tests.
51079         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51080         (all-object-suffixes): Remove .ob.
51081         (bppfx): Remove variable.
51082         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51083         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51084         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51085         [$(build-bounded) = yes] (libtype.ob): Likewise.
51086         * Makerules (elide-routines.ob): Remove variable.
51087         (do-tests-clean): Do not handle *-bp.out.
51088         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51089         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51090         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51091         (tests): Do not include $(tests-bp.out).
51092         (xtests): Do not include $(xtests-bp.out).
51093         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51094         [$(build-bounded) = yes] ($(addprefix
51095         $(objpfx),$(binaries-bounded))): Remove rule.
51096         ($(objpfx)%-bp.out): Remove rule.
51097         * config.make.in (build-bounded): Remove variable.
51098         * crypt/Makefile [$(build-bounded) = yes]
51099         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51100         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51101         append to variable.
51102         [$(build-bounded) = yes] (install-lib): Likewise.
51103         [$(build-bounded) = yes] (generated): Likewise.
51104         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51105         Remove rule.
51106         * intl/Makefile [$(build-bounded) = yes]
51107         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51108         * math/Makefile [$(build-bounded) = yes]
51109         ($(tests:%=$(objpfx)%-bp): Likewise.
51110         * misc/Makefile [$(build-bounded) = yes]
51111         ($(objpfx)tst-tsearch-bp): Likewise.
51112         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51113         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51114         Remove dependency.
51115         * string/Makefile (o-objects.ob): Remove variable.
51116         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51117         (CFLAGS-.ob): Remove variable.
51118         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51119         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51120         both definitions of variable.
51121         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51122         (ASFLAGS-.ob): Remove variable.
51123
51124 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51125
51126         [BZ #13550]
51127         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51128         Remove __BOUNDED_POINTERS__ from condition.
51129         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51130         * string/bits/string2.h [!__NO_STRING_INLINES &&
51131         !__BOUNDED_POINTERS__]: Likewise.
51132         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51133         Likewise.
51134         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51135         Remove conditional code.
51136         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51137         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51138         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51139         condition.
51140
51141         [BZ #13550]
51142         * csu/libc-start.c: Do not include <bp-sym.h>.
51143         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51144         * elf/dl-open.c: Do not include <bp-sym.h>.
51145         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51146         * math/fegetenv.c: Do not include <bp-sym.h>.
51147         (fegetenv): Do not use BP_SYM in versioned symbols.
51148         * nptl/sysdeps/pthread/bits/libc-lockP.h
51149         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51150         <bp-sym.h>.
51151         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51152         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51153         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51154         (__pthread_mutex_destroy): Likewise.
51155         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51156         (__pthread_mutex_lock): Likewise.
51157         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51158         (__pthread_mutex_trylock): Likewise.
51159         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51160         (__pthread_mutex_unlock): Likewise.
51161         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51162         (__pthread_mutexattr_init): Likewise.
51163         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51164         (__pthread_mutexattr_destroy): Likewise.
51165         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51166         (__pthread_mutexattr_settype): Likewise.
51167         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51168         (__pthread_rwlock_init): Likewise.
51169         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51170         (__pthread_rwlock_destroy): Likewise.
51171         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51172         (__pthread_rwlock_rdlock): Likewise.
51173         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51174         (__pthread_rwlock_tryrdlock): Likewise.
51175         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51176         (__pthread_rwlock_wrlock): Likewise.
51177         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51178         (__pthread_rwlock_trywrlock): Likewise.
51179         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51180         (__pthread_rwlock_unlock): Likewise.
51181         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51182         (__pthread_key_create): Likewise.
51183         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51184         (__pthread_setspecific): Likewise.
51185         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51186         (__pthread_getspecific): Likewise.
51187         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51188         Likewise.
51189         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51190         (_pthread_cleanup_push_defer): Likewise.
51191         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51192         (_pthread_cleanup_pop_restore): Likewise.
51193         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51194         (pthread_setcancelstate): Likewise.
51195         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51196         <bp-sym.h>.
51197         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51198         (memchr): Do not use BP_SYM in weak_alias.
51199         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51200         (fegetenv): Do not use BP_SYM in versioned symbols.
51201         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51202         (fesetenv): Do not use BP_SYM in versioned symbols.
51203         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51204         (feupdateenv): Do not use BP_SYM in versioned symbols.
51205         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51206         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51207         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51208         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51209         (open64): Do not use BP_SYM in weak_alias.
51210         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51211         (fegetenv): Do not use BP_SYM in versioned symbols.
51212         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51213         (fesetenv): Do not use BP_SYM in versioned symbols.
51214         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51215         (feupdateenv): Do not use BP_SYM in versioned symbols.
51216         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51217         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51218         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51219         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51220         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51221         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51222         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51223         <bp-sym.h>.
51224         (__libc_start_main): Do not use BP_SYM.
51225
51226 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51227
51228         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51229         redundant return line.
51230         (norm): Likewise.
51231         (denorm): Likewise.
51232         (dbl_mp): Likewise.
51233         (sub_magnitudes): Likewise.
51234         (__add): Likewise.
51235         (__sub): Likewise.
51236         (__mul): Likewise.
51237         (__inv): Likewise.
51238         (__dvd): Likewise.
51239         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51240         (norm): Likewise.
51241         (denorm): Likewise.
51242         (dbl_mp): Likewise.
51243         (sub_magnitudes): Likewise.
51244         (__add): Likewise.
51245         (__sub): Likewise.
51246         (__mul): Likewise.
51247         (__inv): Likewise.
51248         (__dvd): Likewise.
51249
51250         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51251         instead of __mul.
51252         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51253         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51254         (cc32): Likewise.
51255
51256         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51257         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51258         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51259         of __mul for squares.
51260         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51261         function
51262         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51263         Likewise.
51264         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51265         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51266
51267 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51268
51269         [BZ #13550]
51270         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51271         code.
51272         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51273         prototype or function definition.  Rename ubp_* variables and
51274         parameters.  Remove argv definitions conditional on
51275         [__BOUNDED_POINTERS__].
51276         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51277         * elf/dl-runtime.c (_dl_fixup): Likewise.
51278         * include/set-hooks.h (RUN_HOOK): Likewise.
51279         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51280         definition.
51281         * string/strcpy.c (strcpy): Do not use __unbounded.
51282         * sysdeps/generic/frame.h (struct layout): Likewise.
51283         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51284         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51285         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51286         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51287         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51288         (__backtrace): Likewise.
51289         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51290         use __ptrvalue.
51291         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51292         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51293         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51294         Likewise.
51295         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51296         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51297         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51298         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51299         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51300         Do not use __unbounded.
51301         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51302         Rename __unboundedrlimits parameter to rlimits in prototype.
51303         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51304         Do not use __unbounded.
51305         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51306         not use __ptrvalue.
51307         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51308         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51309         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51310         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51311         __ptrvalue or __unbounded.
51312         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51313         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51314         use __unbounded.
51315         (__new_msgctl): Do not use __ptrvalue.
51316         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51317         __unbounded.
51318         (__libc_msgrcv): Do not use __ptrvalue.
51319         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51320         startup_info): Do not use __unbounded.
51321         (__libc_start_main): Likewise.  Rename ubp_* variables and
51322         parameters.  Remove argv definitions conditional on
51323         [__BOUNDED_POINTERS__].
51324         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51325         __ptrvalue.
51326         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51327         use __unbounded.
51328         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51329         or __ptrvalue.
51330         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51331         use __unbounded.
51332         (__new_shmctl): Do not use __ptrvalue.
51333         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51334         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51335         Likewise.
51336         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51337         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51338         (__libc_sigaction): Likewise.
51339         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51340         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51341         Likewise.
51342         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51343
51344 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51345
51346         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51347
51348         * string/mempcpy.c: Implement by calling memcpy.
51349
51350 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51351
51352         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51353
51354         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51355         evaluation.
51356
51357         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51358         values in the mantissa.
51359
51360         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51361         minimize writes to Z.
51362         (sub_magnitudes): Simplify code a bit.
51363
51364 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51365
51366         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51367         from the message.  The linker prefixes all warnings with that already.
51368
51369 2013-02-12  Andreas Schwab  <schwab@suse.de>
51370
51371         [BZ #15078]
51372         * posix/regexec.c (extend_buffers): Add parameter min_len.
51373         (check_matching): Pass minimum needed length.
51374         (clean_state_log_if_needed): Likewise.
51375         (get_subexp): Likewise.
51376         * posix/Makefile (tests): Add bug-regex34.
51377         (bug-regex34-ENV): Define.
51378         * posix/bug-regex34.c: New file.
51379
51380         [BZ #11561]
51381         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51382         elements compare against the byte sequence of it, not its name.
51383         * posix/Makefile (tests): Add bug-regex35.
51384         (bug-regex35-ENV): Define.
51385         * posix/bug-regex35.c: New file.
51386
51387 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51388
51389         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51390         comment.
51391         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51392         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51393         (CHECK_EOL): Add undef.
51394
51395 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51396
51397         * bits/stdlib-bsearch.h: New file.
51398         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51399         * stdlib/stdlib.h: Likewise.
51400
51401 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51402
51403         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51404         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51405         declaration.
51406         * manual/search.texi (Array Search Function): Add missing const in
51407         lfind prototype.
51408         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51409         declaration to use rlim_t.
51410         (Basic Scheduling Functions): Remove erroneous const from
51411         sched_getparam prototype.  Remove erroneous * from
51412         sched_get_priority_max and sched_get_priority_min prototypes.
51413         (Resource Usage): Fix summary @comment on vtimes to refer to
51414         sys/vtimes.h rather than vtimes.h.
51415         Add missing *s in vtimes prototype.
51416         (Limits on Resources): Fix ulimit prototype to return long int.
51417         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51418         prototypes to use long int rather than double.
51419         (BSD Random): Fix initstate and setstate to use char *, not void *.
51420         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51421         prototype to make second argument 'struct aiocb64 *const[]'.
51422         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51423         (Status of AIO Operations): Remove erroneous const in aio_return and
51424         aio_return64 prototypes.
51425         (Synchronizing I/O): Fix sync prototype to return void.
51426         * manual/startup.texi (Suboptions): Remove an erroneous const in
51427         getsubopt prototype.
51428         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51429         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51430         use size_t rather than int.
51431         (Scanning All Users): Likewise for getpwent_r.
51432         (Setting Groups): Add missing const to setgroups prototype.
51433         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51434         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51435         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51436         'const void *' rather than 'const char *'.
51437         (Host Address Functions): Likewise for inet_ntop.
51438         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51439         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51440         ssize_t for return value.
51441         (Sending Data): Likewise for send, sendto, sendmsg.
51442         (Socket Option Functions): Add a missing const in setsockopt prototype.
51443         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51444         use wchar_t for the argument.
51445         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51446         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51447         take no arguments.
51448         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51449         double/float/long double for second argument.
51450         Fix return types of significand, significandf, significandl.
51451         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51452         argument in fchmod prototype.
51453         (File Owner): Use uid_t and gid_t in fchown prototype.
51454         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51455         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51456         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51457         use 'const struct dirent **' as argument types to CMP function pointer
51458         argument.
51459         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51460         (File Times): Fix summary magic @comment for struct utimbuf and utime
51461         to refer to utime.h, not time.h.
51462         * manual/string.texi (Argz Functions): Add missing const in
51463         argz_extract and argz_next prototypes.
51464         (Finding Tokens in a String): Likewise for basename.
51465         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51466         (Copying and Concatenation): Fix typo in wmemmove prototype.
51467         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51468         (Signal Stack): Remove erroneous const in sigstack prototype.
51469         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51470         prototype.
51471         (Simple Calendar Time): Likewise for stime.
51472         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51473         prototype.
51474         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51475         say sys/sysctl.h instead.
51476         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51477         and vsyslog prototypes.
51478
51479 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51480
51481         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51482         Remove.
51483
51484 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51485
51486         * misc/sys/mman.h: Fix typo in mremap comment.
51487
51488 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51489
51490         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51491         the '\0' terminator.
51492
51493 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51494
51495         [BZ #13550]
51496         * debug/segfault.c: Don't include <bp-checks.h>.
51497         * sysdeps/generic/bp-checks.h: Remove file.
51498         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51499         (__GETDENTS): Don't use CHECK_N.
51500         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51501         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51502         (__getgroups): Don't use CHECK_N.
51503         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51504         (setgroups): Don't use CHECK_N.
51505         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51506         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51507         (__libc_msgrcv): Don't use CHECK_N.
51508         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51509         (__libc_msgsnd): Don't use CHECK_N.
51510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51511         <bp-checks.h>.
51512         (__libc_pread): Don't use CHECK_N.
51513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51514         include <bp-checks.h>.
51515         (__libc_pread64): Don't use CHECK_N.
51516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51517         include <bp-checks.h>.
51518         (__libc_pwrite): Don't use CHECK_N.
51519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51520         include <bp-checks.h>.
51521         (__libc_pwrite64): Don't use CHECK_N.
51522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51523         <bp-checks.h>.
51524         (__libc_pread): Don't use CHECK_N.
51525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51526         include <bp-checks.h>.
51527         (__libc_pread64): Don't use CHECK_N.
51528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51529         include <bp-checks.h>.
51530         (__libc_pwrite): Don't use CHECK_N.
51531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51532         include <bp-checks.h>.
51533         (__libc_pwrite64): Don't use CHECK_N.
51534         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51535         (do_pread): Don't use CHECK_N.
51536         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51537         (do_pread64): Don't use CHECK_N.
51538         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51539         (do_pwrite): Don't use CHECK_N.
51540         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51541         (do_pwrite64): Don't use CHECK_N.
51542         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51543         (__libc_readv): Don't use CHECK_N.
51544         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51545         (semop): Don't use CHECK_N.
51546         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51547         <bp-checks.h>.
51548         (semtimedop): Don't use CHECK_N.
51549         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51550         (__libc_pread): Don't use CHECK_N.
51551         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
51552         <bp-checks.h>.
51553         (__libc_pread64): Don't use CHECK_N.
51554         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
51555         <bp-checks.h>.
51556         (__libc_pwrite): Don't use CHECK_N.
51557         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
51558         <bp-checks.h>.
51559         (__libc_pwrite64): Don't use CHECK_N.
51560         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
51561         <bp-checks.h>.
51562         (__libc_msgrcv): Don't use CHECK_N.
51563         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
51564         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
51565         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
51566         (__libc_writev): Don't use CHECK_N.
51567
51568 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51569
51570         * string/strcpy.c: Removed unused variable.
51571
51572         * Makeconfig (+sysdep-includes): Define with := rather than =.
51573         Use an existing include/ subdir of each sysdeps dir before it.
51574
51575 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51576
51577         * nscd/connection.c (register_traced_file): Comment function.
51578         [HAVE_INOTIFY] (union __inev): Define.
51579         [HAVE_INOTIFY] (inotify_check_files): New function.
51580         [HAVE_INOTIFY] (clear_db_cache): Likewise.
51581         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
51582         clear_db_cache.
51583         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
51584
51585 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51586
51587         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
51588         loaded if not already and that a failure is permanent.
51589
51590 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51591
51592         [BZ #15006]
51593         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
51594         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
51595
51596 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51597
51598         [BZ #13550]
51599         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
51600         (CHECK_1_NULL_OK): Likewise.
51601         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
51602         (__fxstat): Do not use CHECK_1.
51603         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
51604         <bp-checks.h>.
51605         (___fxstat64): Do not use CHECK_1.
51606         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
51607         <bp-checks.h>.
51608         (__fxstatat): Do not use CHECK_1.
51609         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
51610         <bp-checks.h>.
51611         (__fxstatat64): Do not use CHECK_1.
51612         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
51613         <bp-checks.h>.
51614         (__fxstat): Do not use CHECK_1.
51615         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
51616         <bp-checks.h>.
51617         (__fxstatat): Do not use CHECK_1.
51618         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
51619         <bp-checks.h>.
51620         (__getresgid): Do not use CHECK_1.
51621         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
51622         <bp-checks.h>.
51623         (__getresuid): Do not use CHECK_1.
51624         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
51625         <bp-checks.h>.
51626         (__lxstat): Do not use CHECK_1.
51627         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
51628         <bp-checks.h>.
51629         (__old_msgctl): Do not use CHECK_1.
51630         (__new_msgctl): Likewise.
51631         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
51632         <bp-checks.h>.
51633         (__new_setrlimit): Do not use CHECK_1.
51634         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
51635         <bp-checks.h>.
51636         (__old_shmctl): Do not use CHECK_1.
51637         (__new_shmctl): Likewise.
51638         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
51639         <bp-checks.h>.
51640         (__xstat): Do not use CHECK_1.
51641         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
51642         (__lxstat): Do not use CHECK_1.
51643         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
51644         <bp-checks.h>.
51645         (___lxstat64): Do not use CHECK_1.
51646         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
51647         (__old_msgctl): Do not use CHECK_1.
51648         (__new_msgctl): Likewise.
51649         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
51650         <bp-checks.h>.
51651         (__gettimeofday): Do not use CHECK_1.
51652         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
51653         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
51654         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
51655         <bp-checks.h>.
51656         (__gettimeofday): Do not use CHECK_1.
51657         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
51658         (__old_shmctl): Do not use CHECK_1_NULL_OK.
51659         (__new_shmctl): Do not use CHECK_1.
51660         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
51661         <bp-checks.h>.
51662         (do_sigtimedwait): Do not use CHECK_1.
51663         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
51664         <bp-checks.h>.
51665         (do_sigwaitinfo): Do not use CHECK_1.
51666         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
51667         <bp-checks.h>.
51668         (msgctl): Do not use CHECK_1.
51669         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
51670         <bp-checks.h>.
51671         (shmctl): Do not use CHECK_1.
51672         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
51673         (ustat): Do not use CHECK_1.
51674         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
51675         <bp-checks.h>.
51676         (__fxstat): Do not use CHECK_1.
51677         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
51678         <bp-checks.h>.
51679         (__fxstatat): Do not use CHECK_1.
51680         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
51681         <bp-checks.h>.
51682         (__lxstat): Do not use CHECK_1.
51683         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
51684         <bp-checks.h>.
51685         (__xstat): Do not use CHECK_1.
51686         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
51687         (__xstat): Do not use CHECK_1.
51688         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
51689         (___xstat64): Do not use CHECK_1.
51690
51691         [BZ #13550]
51692         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
51693         definitions.
51694         (CHECK_BOUNDS_HIGH): Likewise.
51695         * string/strcpy.c: Do not include <bp-checks.h>.
51696         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
51697
51698 2013-02-07  Roland McGrath  <roland@hack.frob.com>
51699
51700         * nscd/nscd-client.h (__nscd_drop_map_ref):
51701         Add __attribute__ ((unused)).
51702         * nis/nss-nisplus.h (niserr2nss): Likewise.
51703
51704         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
51705         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
51706
51707         * csu/libc-tls.c (init_static_tls, init_slotinfo):
51708         Remove inline keyword.
51709         * include/rounding-mode.h (round_away): Likewise.
51710         * libio/wfileops.c (adjust_wide_data): Likewise.
51711         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
51712         (__m128i_strloadu_tolower): Likewise.
51713         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
51714         (__m128i_strloadu_tolower): Likewise.
51715         * time/mktime.c (ydhms_diff): Likewise.
51716         * locale/elem-hash.h (elem_hash): Likewise.
51717         * locale/setlocale.c (setdata): Likewise.
51718         * posix/regex_internal.h (re_string_char_size_at): Likewise.
51719         (re_string_wchar_at): Likewise.
51720         (bitset_not, bitset_merge, bitset_mask): Likewise.
51721         [!(__GNUC__ > 3)] (inline): Remove macro.
51722         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
51723         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
51724         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
51725         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
51726         * string/memcmp.c (memcmp_bytes): Likewise.
51727         * locale/programs/locarchive.c (compute_hashval): Likewise.
51728         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
51729         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
51730         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
51731         * nss/getent.c (print_rpc, print_protocols): Likewise.
51732         (print_passwd, print_group, print_aliases): Likewise.
51733         * nis/nss-nisplus.h (niserr2nss): Likewise.
51734         * nscd/connections.c (restart_p): Likewise.
51735         Change return type to bool.
51736
51737 2013-02-05  Roland McGrath  <roland@hack.frob.com>
51738
51739         * Makeconfig (all-Depend-files): Add existing
51740         $(sorted-subdirs:=/Depend) files.
51741         (all-subdirs): Remove nss.
51742         * sysdeps/unix/inet/Subdirs: Add it here instead.
51743         * hesiod/Depend: New file.
51744
51745         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
51746         instead of calling alloca.
51747
51748         * io/lseek.c (__lseek): Rename to __libc_lseek.
51749         Define __lseek as an alias.
51750
51751         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
51752
51753 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
51754
51755         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
51756         else clause and remove check for non-standard endianness.
51757
51758 2013-02-04  David S. Miller  <davem@davemloft.net>
51759
51760         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51761
51762 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
51763
51764         [BZ #13550]
51765         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
51766         (__ubp_memchr): Remove prototype.
51767         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
51768         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51769         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
51770         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51771         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
51772         Remove alias.
51773         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
51774         (__ubp_memchr): Likewise.
51775         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
51776         (__ubp_memchr): Likewise.
51777         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
51778         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
51779         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
51780         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
51781         CHECK_STRING.
51782         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51783         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
51784         (__getcwd): Do not use CHECK_STRING.
51785         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
51786         <bp-checks.h>.
51787         (__real_chown): Do not use CHECK_STRING.
51788         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
51789         <bp-checks.h>.
51790         (fchownat): Do not use CHECK_STRING.
51791         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
51792         CHECK_STRING.
51793         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
51794         <bp-checks.h>.
51795         (__lchown): Do not use CHECK_STRING.
51796         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51797         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51798         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51799         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
51800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
51801         include <bp-checks.h>.
51802         (truncate64): Do not use CHECK_STRING.
51803         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
51804         <bp-checks.h>.
51805         (__real_chown): Do not use CHECK_STRING.
51806         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
51807         <bp-checks.h>.
51808         (__lchown): Do not use CHECK_STRING.
51809         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
51810         <bp-checks.h>.
51811         (__chown): Do not use CHECK_STRING.
51812         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
51813         <bp-checks.h>.
51814         (truncate64): Do not use CHECK_STRING.
51815         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
51816         Likewise.
51817         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
51818         (__xmknod): Do not use CHECK_STRING.
51819         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
51820         <bp-checks.h>.
51821         (__xmknodat): Do not use CHECK_STRING.
51822         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51823         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
51824
51825 2013-02-04  Andreas Schwab  <schwab@suse.de>
51826
51827         [BZ #14142]
51828         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
51829         * include/netdb.h: Likewise for h_errno.
51830         * elf/tst-stackguard1.c: Include <tls.h>.
51831
51832 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
51833
51834         * elf/link.h (struct link_map): Extend the l_addr comment.
51835         * include/link.h (struct link_map): Likewise.
51836
51837 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
51838
51839         [BZ #13550]
51840         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
51841         (BOUNDED_1): Remove macro.
51842         * debug/backtrace.c: Don't include <bp-checks.h>.
51843         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
51844         (__backtrace): Likewise.
51845         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
51846         <bp-checks.h>.
51847         (__backtrace): Don't use BOUNDED_1.
51848         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
51849         <bp-checks.h>.
51850         (__backtrace): Don't use BOUNDED_1.
51851         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
51852         (__backtrace): Don't use BOUNDED_1.
51853         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
51854         (shmat): Don't use BOUNDED_N.
51855
51856 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
51857
51858         [BZ #13550]
51859         * sysdeps/generic/bp-start.h: Remove file.
51860         * csu/libc-start.c: Don't include <bp-start.h>.
51861         (LIBC_START_MAIN): Set up __environ directly instead of using
51862         INIT_ARGV_and_ENVIRON.
51863         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
51864         <bp-start.h>.
51865
51866         [BZ #13550]
51867         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
51868         definitions.
51869         (CHECK_FCNTL): Likewise.
51870         (CHECK_N_PAGES): Likewise.
51871
51872         [BZ #13550]
51873         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
51874         definitions.
51875         (CHECK_SIGSET_NULL_OK): Likewise.
51876         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
51877         <bp-checks.h>.
51878         (sigpending): Don't use CHECK_SIGSET.
51879         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
51880         <bp-checks.h>.
51881         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51882         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
51883         <bp-checks.h>.
51884         (do_sigsuspend): Don't use CHECK_SIGSET.
51885         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
51886         use CHECK_SIGSET.
51887         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
51888         (do_sigwait): Don't use CHECK_SIGSET.
51889         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
51890         use CHECK_SIGSET.
51891         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
51892         include <bp-checks.h>.
51893         (sigpending): Don't use CHECK_SIGSET.
51894         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
51895         include <bp-checks.h>.
51896         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51897         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
51898         <bp-checks.h>.
51899         (sigpending): Don't use CHECK_SIGSET.
51900         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
51901         <bp-checks.h>.
51902         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51903
51904         [BZ #13550]
51905         * sysdeps/generic/bp-semctl.h: Remove file.
51906         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
51907         <bp-checks.h> and <bp-semctl.h>.
51908         (__old_semctl): Don't use CHECK_SEMCTL.
51909         (__new_semctl): Likewise.
51910         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
51911         and <bp-semctl.h>.
51912         (__old_semctl): Don't use CHECK_SEMCTL.
51913         (__new_semctl): Likewise.
51914         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
51915         <bp-checks.h> and <bp-semctl.h>.
51916         (__old_semctl): Don't use CHECK_SEMCTL.
51917         (__new_semctl): Likewise.
51918         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
51919         <bp-checks.h> and <bp-semctl.h>.
51920         (semctl): Don't use CHECK_SEMCTL.
51921
51922         [BZ #13550]
51923         * Makerules (elide-bp-thunks): Remove variable.
51924         (elide-routines.oS): Don't use $(elide-bp-thunks).
51925         (elide-routines.os): Likewise.
51926         (elide-routines.o): Likewise.
51927         (elide-routines.op): Likewise.
51928         (elide-routines.og): Likewise.
51929         (objects): Don't use $(bp-thunks).
51930         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
51931         include.
51932         (common-generated): Do not add s-proto-bp.d.
51933         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
51934         (int): Likewise.
51935         (typ): Likewise.
51936         Do not generate makefile rules for bounded-pointer thunks.
51937         * sysdeps/generic/bp-thunks.h: Remove file.
51938         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
51939         * sysdeps/unix/s-proto-bp.S: Likewise.
51940
51941         [BZ #15062]
51942         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
51943         parts of result separately when argument is not close to line from
51944         -i to i and one part of argument is small.
51945         * math/k_casinhf.c (__kernel_casinhf): Likewise.
51946         * math/k_casinhl.c (__kernel_casinhl): Likewise.
51947         * math/libm-test.inc (cacos_test): Add more tests.
51948         (casin_test): Likewise.
51949         (casinh_test): Likewise.
51950         * sysdeps/i386/fpu/libm-test-ulps: Update.
51951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51952
51953 2013-01-31  David S. Miller  <davem@davemloft.net>
51954
51955         * po/de.po: Update from translation team.
51956
51957 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
51958
51959         * time/tzfile.c: Include stdint.h for SIZE_MAX.
51960
51961 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
51962
51963         * configure.in (_AC_PROG_CC_C89): New definition.
51964         * configure: Regenerate.
51965
51966         * configure.in (AC_PROG_CPP): New definition.
51967         * configure: Regenerate.
51968
51969 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
51970
51971         * debug/tst-backtrace.h: New file.
51972         * debug/tst-backtrace2.c: Include tst-backtrace.h.
51973         (ret): Remove variable.
51974         (x): Likewise.
51975         (FAIL): Remove macro.
51976         (NO_INLINE): Likewise.
51977         (fn1): Use match function instead of strstr.
51978         * debug/tst-backtrace3.c: Include tst-backtrace.h.
51979         (ret): Remove variable.
51980         (x): Likewise.
51981         (FAIL): Remove macro.
51982         (NO_INLINE): Likewise.
51983         (fn): Use match function instead of strstr.
51984         * debug/tst-backtrace4.c: Include tst-backtrace.h.
51985         (ret): Remove variable.
51986         (x): Likewise.
51987         (FAIL): Remove macro.
51988         (NO_INLINE): Likewise.
51989         (handle_signal): Use match function instead of strstr.
51990         * debug/tst-backtrace5.c: Include tst-backtrace.h.
51991         (ret): Remove variable.
51992         (x): Likewise.
51993         (FAIL): Remove macro.
51994         (NO_INLINE): Likewise.
51995         (handle_signal): Use match function instead of strstr.
51996
51997 2013-01-23  Roland McGrath  <roland@hack.frob.com>
51998
51999         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52000
52001 2013-01-23  David S. Miller  <davem@davemloft.net>
52002
52003         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52004         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52005         argument of CAS if possible.
52006         * sysdeps/sparc/sparc64/bits/atomic.h
52007         (__arch_compare_and_exchange_val_32_acq): Likewise.
52008         (__arch_compare_and_exchange_val_64_acq): Likewise.
52009
52010 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52011
52012         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52013         * sysdeps/posix/ulimit.c: ... this.
52014         Include <limits.h>.
52015         * sysdeps/unix/bsd/ulimit.c: Remove file.
52016
52017 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52018
52019         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52020         (LDFLAGS-tst-array5): Likewise.
52021
52022 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52023
52024         [BZ #15036]
52025         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52026         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52027         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52028         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52029
52030 2013-01-21  David S. Miller  <davem@davemloft.net>
52031
52032         * sysdeps/sparc/backtrace.c: New file.
52033         * sysdeps/sparc/sparc32/backtrace.h: New file.
52034         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52035         * sysdeps/sparc/sparc64/backtrace.h: New file.
52036         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52037         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52038         -funwind-tables.
52039
52040 2013-01-21  Andreas Schwab  <schwab@suse.de>
52041
52042         [BZ #15020]
52043         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52044         closed its stdout.
52045
52046 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52047
52048         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52049         "mpa2.h".
52050         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52051
52052 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52053             Mark Mitchell  <mark@codesourcery.com>
52054             Tom de Vries  <tom@codesourcery.com>
52055             Paul Pluzhnikov  <ppluzhnikov@google.com>
52056
52057         * debug/tst-backtrace2.c: New file.
52058         * debug/tst-backtrace3.c: Likewise.
52059         * debug/tst-backtrace4.c: Likewise.
52060         * debug/tst-backtrace5.c: Likewise.
52061         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52062         (CFLAGS-tst-backtrace3.c): Likewise.
52063         (CFLAGS-tst-backtrace4.c): Likewise.
52064         (CFLAGS-tst-backtrace5.c): Likewise.
52065         (LDFLAGS-tst-backtrace2): Likewise.
52066         (LDFLAGS-tst-backtrace3): Likewise.
52067         (LDFLAGS-tst-backtrace4): Likewise.
52068         (LDFLAGS-tst-backtrace5): Likewise.
52069         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52070         tst-backtrace4 and tst-backtrace5.
52071
52072 2013-01-18  Anton Blanchard  <anton@samba.org>
52073             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52074
52075         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52076         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52077         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52078         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52080         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52081         "+r" and remove output regs list as redundant.  Add explicit inline
52082         asm to specify register of return val to work around compiler codegen
52083         bug.  Remove (int) cast on return value.  Add return type parameter to
52084         use in macro so that this macro does not truncate return value for
52085         64-bit values.
52086         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52087         pass to INTERNAL_VSYSCALL_NCS.
52088         (INLINE_VSYSCALL): Add 'long int' as return type to
52089         INTERNAL_VSYSCALL_NCS macro invocation.
52090         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52091         INTERNAL_VSYSCALL_NCS macro invocation.
52092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52093
52094 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52095
52096         [BZ #14496]
52097         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52098         Fix application of SIMD FP exception mask.
52099
52100         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52101         mp_no from a power of two.
52102         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52103         __mpexp_twomm1.  Use __pow_mp.
52104
52105         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52106         multiplication.
52107
52108 2013-01-17  David S. Miller  <davem@davemloft.net>
52109
52110         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52111
52112 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52113
52114         [BZ #15023]
52115         * include/complex.h: Condition contents on [!_COMPLEX_H].
52116         (__kernel_casinhf): New prototype.
52117         (__kernel_casinh): Likewise.
52118         (__kernel_casinhl): Likewise.
52119         * math/Makefile (libm_calls): Add k_casinh.
52120         * math/k_casinh.c: New file.
52121         * math/k_casinhf.c: Likewise.
52122         * math/k_casinhl.c: Likewise.
52123         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52124         finite nonzero arguments.
52125         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52126         finite nonzero arguments.
52127         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52128         finite nonzero arguments.
52129         * math/s_casinh.c: Do not include <float.h>.
52130         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52131         * math/s_casinhf.c: Do not include <float.h>.
52132         (__casinhf): Move code for finite nonzero arguments to
52133         k_casinhf.c.
52134         * math/s_casinhl.c: Do not include <float.h>.
52135         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52136         redefine.
52137         (__casinhl): Move code for finite nonzero arguments to
52138         k_casinhl.c.
52139         * math/libm-test.inc (cacos_test): Add more tests.
52140         * sysdeps/i386/fpu/libm-test-ulps: Update.
52141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52142
52143 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52144
52145         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52146         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52147         [!HAVE_MREMAP]: Remove [defined linux] case.
52148         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52149
52150 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52151
52152         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52153
52154 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52155
52156         * elf/elf.h (R_386_SIZE32): New relocation.
52157         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52158         R_386_SIZE32.
52159         (elf_machine_rela): Likewise.
52160         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52161         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52162
52163 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52164
52165         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52166         (FP_FAST_FMA): Do not define.
52167         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52168         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52169         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52170         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52171         !_SOFT_FLOAT]: Likewise.
52172         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52173         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52174         value.
52175         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52176         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52177         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52178         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52179         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52180         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52181         file.
52182
52183 2013-01-16  Andreas Schwab  <schwab@suse.de>
52184
52185         [BZ #14327]
52186         * include/stdlib.h (__mktemp): Add declaration.
52187         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52188         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52189
52190 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52191
52192         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52193         definitions.
52194         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52195         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52196         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52197         definitions here.
52198         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52199         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52200         definitions.
52201         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52202         and ONE.
52203         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52204         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52205         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52206         definitions.
52207         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52208         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52209         definitions.
52210         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52211
52212         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52213
52214 2013-01-15  David S. Miller  <davem@davemloft.net>
52215
52216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52217         trunc{,f} to libm-sysdep_routes.
52218         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52220         file.
52221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52223         file.
52224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52225         file.
52226         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52227         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52228         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52229         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52230         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52231         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52232         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52233         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52234
52235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52236         nearbyint{,f} to libm-sysdep_routes.
52237         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52239         New file.
52240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52241         file.
52242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52243         New file.
52244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52245         file.
52246         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52247         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52248         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52249         file.
52250         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52251         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52252         file.
52253         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52254         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52255         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52256
52257         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52258         libc_feholdexcept and libc_fesetenv.
52259
52260 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52261
52262         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52263
52264 2013-01-14  David S. Miller  <davem@davemloft.net>
52265
52266         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52267         (SPARC_ASM_VIS2_IFUNC): Likewise.
52268         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52270         use of 'siam' instruction.
52271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52272         Likewise.
52273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52274         Likewise.
52275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52276         Likewise.
52277         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52278         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52279         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52280         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52282         file.
52283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52284         file.
52285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52286         file.
52287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52288         file.
52289         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52290         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52291         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52292         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52294         new VIS2 routines.
52295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52298         Likewise.
52299         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52300         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52301         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52302         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52304         routines to libm-sysdep_routines.
52305         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52306
52307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52308         fdim/fdimf to libm-sysdep_routines.
52309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52310         file.
52311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52313         file.
52314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52315         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52316         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52317         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52318         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52319         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52320         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52321
52322 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52323
52324         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52325         to optimize copies.
52326
52327         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52328         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52329         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52330
52331         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52332         local variable MPTWO.
52333         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52334         Likewise.
52335
52336 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52337
52338         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52339         GLOB_NOESCAPE.
52340
52341 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52342
52343         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52344
52345 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52346
52347         * manual/pattern.texi (glob_t): Document gl_flags.
52348         (glob64_t): Likewise.
52349
52350 2013-01-11  David S. Miller  <davem@davemloft.net>
52351
52352         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52353         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52354         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52355         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52356         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52357         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52358         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52359         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52360         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52361         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52362         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52363         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52364         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52365
52366         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52367         sparc V9 rather than using V8 code.
52368         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52369         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52370
52371         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52372         Move to...
52373         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52374         Here.
52375
52376 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52377
52378         [BZ #14941]
52379         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52380         not in the main loop.
52381         * configure: Regenerated.
52382
52383 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52384
52385         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52386         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52387         to just #else.
52388         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52389         [!__GLIBC_HAVE_LONG_LONG] case.
52390         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52391         condition to just #else.
52392         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52393         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52394         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52395         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52396         unconditional.
52397         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52398         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52399         #elif condition to just #else.
52400         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52401         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52402         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52403         #elif condition to just #else.
52404
52405 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52406
52407         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52408         (EF_MIPS_ARCH_64): Fix value.
52409         (EF_MIPS_ARCH_32R2): New.
52410         (EF_MIPS_ARCH_64R2): New.
52411
52412 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52413
52414         * Makeconfig (+link-pie-before-libc): New.
52415         (+link-pie-after-libc): Likewise.
52416         (+link-pie-tests): Likewise.
52417         (+link-pie): Rewritten.
52418         (link-before-libc): Remove $(config-LDFLAGS).
52419         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52420         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52421         (config-LDFLAGS): Renamed to ...
52422         (rtld-LDFLAGS): This.
52423         (rtld-tests-LDFLAGS): New macro.
52424         (link-libc-rpath-link): Likewise.
52425         (link-libc-tests-rpath-link): Likewise.
52426         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52427         (link-libc): Prepand $(link-libc-rpath-link).
52428         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52429         (test-program-prefix): New macro.
52430         (test-via-rtld-prefix): Likewise.
52431         (test-program-cmd): Likewise.
52432         (host-test-program-cmd): Likewise.
52433         * Makefile ($(common-objpfx)testrun.sh): Replace
52434         $(run-program-prefix) with $(test-program-prefix).
52435         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52436         $(rtld-LDFLAGS).
52437         ($(common-objpfx)shlib.lds): Likewise.
52438         (build-module-helper): Likewise.
52439         ($(common-objpfx)format.lds): Likewise.
52440         * Rules (binaries-pie-tests): New.
52441         (binaries-pie-notests): Likewise.
52442         (binaries-pie): Rewritten.
52443         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52444         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52445         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52446         (make-test-out): Replace $(host-built-program-cmd) with
52447         $(host-test-program-cmd).
52448         * config.make.in (build-hardcoded-path-in-tests): New variable.
52449         * configure.in (--enable-hardcoded-path-in-tests): New configure
52450         option.
52451         (hardcoded_path_in_tests): New AC_SUBST.
52452         * configure: Regenerated.
52453         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52454         $(built-program-cmd) with $(test-program-cmd).
52455         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52456         (test_program_cmd): This.
52457         * elf/Makefile ($(objpfx)order.out): Run test with
52458         $(test-program-prefix).
52459         ($(objpfx)order2.out): Likewise.
52460         ($(objpfx)tst-initorder.out): Likewise.
52461         ($(objpfx)tst-initorder2.out): Likewise.
52462         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52463         $(test-program-cmd).
52464         ($(objpfx)tst-array1-static.out): Likewise.
52465         ($(objpfx)tst-array2.out): Likewise.
52466         ($(objpfx)tst-array3.out): Likewise.
52467         ($(objpfx)tst-array4.out): Likewise.
52468         ($(objpfx)tst-array5.out): Likewise.
52469         ($(objpfx)tst-array5-static.out): Likewise.
52470         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52471         $(test-program-cmd).
52472         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52473         $(run-program-prefix) with $(test-program-prefix).
52474         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52475         (test_program_prefix): This.
52476         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52477         $(run-program-prefix) with $(test-program-prefix).
52478         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52479         (test_program_prefix): This.
52480         * iconvdata/tst-tables.sh: Likewise.
52481         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52482         $(run-program-prefix) with $(test-program-prefix).
52483         ($(objpfx)tst-translit.out): Likewise.
52484         ($(objpfx)tst-gettext2.out): Likewise.
52485         ($(objpfx)tst-gettext4.out): Likewise.
52486         ($(objpfx)tst-gettext6.out): Likewise.
52487         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52488         (test_program_prefix): This.
52489         * intl/tst-gettext2.sh: Likewise.
52490         * intl/tst-gettext4.sh  Likewise.
52491         * intl/tst-gettext6.sh: Likewise.
52492         * intl/tst-translit.sh: Likewise.
52493         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52494         with $(test-program-cmd).
52495         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52496         $(run-program-prefix) with $(test-program-prefix).
52497         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52498         (test_program_prefix): This.
52499         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52500         $(run-program-prefix) with $(test-program-prefix).
52501         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52502         (test_program_prefix): This.
52503         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52504         * posix/Makefile ($(objpfx)globtest.out): Replace
52505         $(run-via-rtld-prefix) and $(test-wrapper) with
52506         $(test-program-prefix) and $(test-via-rtld-prefix).
52507         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52508         $(test-program-prefix).
52509         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52510         $(host-test-program-cmd).
52511         (tst-spawn-ARGS): Likewise.
52512         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52513         $(test-program-prefix).
52514         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52515         (test_via_rtld_prefix): This.
52516         (test_wrapper): Renamed to ...
52517         (test_program_prefix): This.
52518         (run_program_prefix): Replaced by test_program_prefix.
52519         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52520         (test_program_prefix): This.
52521         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52522         with $(host-test-program-cmd).
52523         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52524         $(run-program-prefix) with $(test-program-prefix).
52525         ($(objpfx)tst-printf.out): Likewise.
52526         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52527         $(test-program-cmd).
52528         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52529         (test_program_prefix): This.
52530         * stdio-common/tst-unbputc.sh: Likewise.
52531         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52532         $(run-program-prefix) with $(test-program-prefix).
52533         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52534         (test_program_prefix): This.
52535         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52536         $(built-program-cmd) with $(test-program-cmd).
52537
52538 2013-01-11  Andreas Jaeger  <aj@suse.de>
52539
52540         [BZ #15003]
52541         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52542         value. Sync with Linux 3.7.
52543
52544 2013-01-10  David S. Miller  <davem@davemloft.net>
52545
52546         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52547         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52548         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52549
52550 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52551
52552         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
52553         never set.
52554         * configure: Regenerated.
52555
52556 2013-01-10  David S. Miller  <davem@davemloft.net>
52557
52558         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52559         sparc V9 rather than using V8 code.
52560         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52561         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52562
52563 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52564
52565         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
52566         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
52567         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
52568         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
52569         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
52570         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
52571         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
52572         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
52573         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
52574         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
52575         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
52576         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
52577         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
52578         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
52579         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
52580         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
52581         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
52582         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
52583         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
52584         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
52585         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
52586         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
52587         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
52588         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
52589         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
52590         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
52591         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
52592
52593 2013-01-10  David S. Miller  <davem@davemloft.net>
52594
52595         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52596
52597 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52598
52599         * posix/Makefile (tests-static): New variable.
52600         (tests): Add $(tests-static).
52601         (tst-exec-static-ARGS): New variable.
52602         (tst-spawn-static-ARGS): Likewise.
52603         * posix/tst-exec-static.c: New file.
52604         * posix/tst-spawn-static.c: Likewise.
52605         * posix/tst-exec.c: Support run directly.
52606         * posix/tst-spawn.c: Likewise.
52607
52608 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
52609
52610         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
52611         long.
52612         * math/bits/mathcalls.h (llrint): Likewise.
52613         (llround): Likewise.
52614         * stdlib/stdlib.h (struct drand48_data): Likewise.
52615         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
52616         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
52617         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
52618         Likewise.
52619         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
52620         Likewise.
52621         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
52622         (elf_greg_t): Likewise.
52623         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
52624         (__jmp_buf): Likewise.
52625         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
52626         definitions.
52627         (llrint): Likewise, for all definitions.
52628         (llrintl): Likewise.
52629
52630         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
52631         Remove [__GNUC__] condition.
52632         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
52633         condition to just [__USE_ISOC99].
52634         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
52635
52636 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52637
52638         [BZ #14200]
52639         * sysdeps/unix/sysv/linux/x86/bits/environments.h
52640         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
52641         defined.
52642         (_POSIX_V6_ILP32_OFF32): Likewise.
52643         (_XBS5_ILP32_OFF32): Likewise.
52644         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
52645         (__ILP32_OFFBIG_LDFLAGS): Likewise.
52646
52647 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52648
52649         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
52650
52651         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
52652         doubles __mpexp_twomm1.  Adjust usage.
52653         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
52654         Remove.
52655
52656 2013-01-10  Andreas Schwab  <schwab@suse.de>
52657
52658         [BZ #14964]
52659         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
52660         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
52661
52662 2013-01-09  David S. Miller  <davem@davemloft.net>
52663
52664         [BZ #15003]
52665         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
52666         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
52667         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
52668         (TCP_FASTOPEN): Define.
52669         (tcp_repair_opt): New structure.
52670         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
52671         enum values.
52672         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
52673         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
52674         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
52675         (tcp_cookie_transactions): New structure.
52676
52677 2013-01-09  Anton Blanchard  <anton@samba.org>
52678
52679         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
52680         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
52681         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
52682         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
52683
52684 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
52685
52686         * include/features.h (__USE_ANSI): Remove.
52687
52688 2013-01-09  Roland McGrath  <roland@hack.frob.com>
52689
52690         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
52691
52692         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
52693
52694 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
52695
52696         * sysdeps/s390/fpu/libm-test-ulps: Update.
52697
52698         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52699
52700         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
52701         (__acr): Likewise.
52702         (__cpy): Likewise.
52703         (norm): Likewise.
52704         (denorm): Likewise.
52705         (__mp_dbl): Likewise.
52706         (__dbl_mp): Likewise.
52707         (add_magnitudes): Likewise.
52708         (sub_magnitudes): Likewise.
52709         (__add): Likewise.
52710         (__sub): Likewise.
52711         (__mul): Likewise.
52712         (__inv): Likewise.
52713         (__dvd): Likewise.
52714         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
52715         (__acr): Likewise.
52716         (__cpy): Likewise.
52717         (norm): Likewise.
52718         (denorm): Likewise.
52719         (__mp_dbl): Likewise.
52720         (__dbl_mp): Likewise.
52721         (add_magnitudes): Likewise.
52722         (sub_magnitudes): Likewise.
52723         (__add): Likewise.
52724         (__sub): Likewise.
52725         (__mul): Likewise.
52726         (__inv): Likewise.
52727         (__dvd): Likewise.
52728         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
52729         (__acr): Likewise.
52730         (__cpy): Likewise.
52731         (norm): Likewise.
52732         (denorm): Likewise.
52733         (__mp_dbl): Likewise.
52734         (__dbl_mp): Likewise.
52735         (add_magnitudes): Likewise.
52736         (sub_magnitudes): Likewise.
52737         (__add): Likewise.
52738         (__sub): Likewise.
52739         (__mul): Likewise.
52740         (__inv): Likewise.
52741         (__dvd): Likewise.
52742
52743 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
52744
52745         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
52746         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
52747         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
52748         2 && __USE_EXTERN_INLINES]: Likewise.
52749
52750 2013-01-08  Andreas Jaeger  <aj@suse.de>
52751
52752         [BZ# 14985]
52753         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
52754         Remove.
52755         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52756         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52757
52758 2013-01-07  Anton Blanchard  <anton@samba.org>
52759
52760         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
52761         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52762         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
52763         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52764         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
52765         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52766         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
52767         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
52768         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52769         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
52770         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52771         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52772         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
52773         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52774         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
52775         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52776         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52777         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52778         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
52779         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
52780         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
52781         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
52782         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
52783         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
52784         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
52785         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
52786         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
52787         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52788         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
52789         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
52790         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
52791         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52792         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
52793         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52794         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52795         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
52796         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52797         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
52798         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
52799         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
52800         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
52801         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
52802         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52803
52804 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
52805
52806         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
52807         (__MALLOC_PMT): Likewise.
52808         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
52809         [__GNUC__], only on [_LIBC].
52810         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52811         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
52812         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52813         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
52814         forward declaration.
52815         (realloc_hook_ini): Likewise.
52816         (memalign_hook_ini): Likewise.
52817         (__libc_memalign): Do not use __MALLOC_PMT in variable
52818         declaration.
52819         (__libc_valloc): Likewise.
52820         (__libc_pvalloc): Likewise.
52821         (__libc_calloc): Likewise.
52822         (__posix_memalign): Likewise.
52823
52824         [BZ #14996]
52825         * math/s_casinh.c: Include <float.h>.
52826         (__casinh): Do not do computation with squaring and square root
52827         for large arguments.
52828         * math/s_casinhf.c: Include <float.h>.
52829         (__casinhf): Do not do computation with squaring and square root
52830         for large arguments.
52831         * math/s_casinhl.c: Include <float.h>.
52832         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
52833         (__casinhl): Do not do computation with squaring and square root
52834         for large arguments.
52835         * math/libm-test.inc (casin_test): Add more tests.
52836         (casinh_test): Likewise.
52837         * sysdeps/i386/fpu/libm-test-ulps: Update.
52838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52839
52840 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
52841
52842         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
52843         (__x86_64_raw_data_cache_size): Likewise.
52844         (__x86_64_data_cache_size_half): Likewise.
52845         (__x86_64_raw_data_cache_size_half): Likewise.
52846         (__x86_64_shared_cache_size): Likewise.
52847         (__x86_64_raw_shared_cache_size): Likewise.
52848         (__x86_64_shared_cache_size_half): Likewise.
52849         (__x86_64_raw_shared_cache_size_half): Likewise.
52850         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
52851         to ...
52852         (__x86_data_cache_size): This.
52853         (__x86_64_raw_data_cache_size): Renamed to ...
52854         (__x86_raw_data_cache_size): This.
52855         (__x86_64_data_cache_size_half): Renamed to ...
52856         (__x86_data_cache_size_half): This.
52857         (__x86_64_raw_data_cache_size_half): Renamed to ...
52858         (__x86_raw_data_cache_size_half): This.
52859         (__x86_64_shared_cache_size): Renamed to ...
52860         (__x86_shared_cache_size): This.
52861         (__x86_64_raw_shared_cache_size): Renamed to ...
52862         (__x86_raw_shared_cache_size): This.
52863         (__x86_64_shared_cache_size_half): Renamed to ...
52864         (__x86_shared_cache_size_half): This.
52865         (__x86_64_raw_shared_cache_size_half): Renamed to ...
52866         (__x86_raw_shared_cache_size_half): This.
52867         * sysdeps/x86_64/memcpy.S: Updated.
52868         * sysdeps/x86_64/memset.S: Likewise.
52869         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
52870         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
52871         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
52872
52873 2013-01-04  David S. Miller  <davem@davemloft.net>
52874
52875         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52876
52877 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
52878
52879         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
52880         1 to avoid redefinition warning.
52881         (__USE_GNU): Don't define.
52882         (init_signaling_nan): Protoize.
52883
52884         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52885
52886 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
52887
52888         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
52889         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
52890         (__cpymn): Likewise.
52891         (norm): Remove commented code.
52892         (denorm): Likewise.
52893         (__mp_dbl): Likewise.
52894         (__inv): Likewise.
52895         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
52896         (__cpymn): Likewise.
52897         (norm): Remove commented code.
52898         (denorm): Likewise.
52899         (__mp_dbl): Likewise.
52900         (__inv): Likewise.
52901
52902         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
52903         mp_no value for 1.0 and 2.0.
52904         (norm): Use RADIXI instead of radixi.d.
52905         (denorm): Likewise.
52906         (__mul): Use 0.0 instead of zero.d.
52907         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
52908         mp_no value for 1.0 and 2.0.
52909         (norm): Use RADIXI instead of radixi.d.
52910         (denorm): Likewise.
52911         (__mul): Use 0.0 instead of zero.d.
52912
52913 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
52914
52915         [BZ #14994]
52916         * math/s_casinh.c (__casinh): Reduce finite argument to first
52917         quadrant then set signs of results at the end.
52918         * math/s_casinhf.c (__casinhf): Likewise.
52919         * math/s_casinhl.c (__casinhl): Likewise.
52920         * math/libm-test.inc (casin_test): Add more tests.
52921         (casinh_test): Likewise.
52922         * sysdeps/i386/fpu/libm-test-ulps: Update.
52923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52924
52925 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
52926
52927         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
52928
52929         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
52930
52931         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
52932         declarations.
52933         (denorm): Likewise.
52934         (__mp_dbl): Likewise.
52935         (__inv): Likewise.
52936
52937         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
52938         and adjust the header comment.
52939
52940         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
52941         variable name from declaration.
52942
52943 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
52944
52945         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
52946         Initialize COMMON_CPUID_INDEX_7 element.
52947         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
52948         (CPUID_RTM): Likewise.
52949         (HAS_RTM): Likewise.
52950         (COMMON_CPUID_INDEX_7): New enum.
52951
52952 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
52953
52954         [BZ #14981]
52955         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
52956         size is zero, record memory as freed.
52957
52958 2013-01-03  Andreas Jaeger  <aj@suse.de>
52959
52960         * po/ia.po: Add new Interlingua translation.
52961
52962 2012-01-03  Allan McRae  <allan@archlinux.org>
52963
52964         * locale/programs/localedef.c: Fix description of '--posix' flag.
52965
52966 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
52967
52968         * NEWS: Update dates in second copyright notice.
52969         * README: Update copyright dates in example.
52970         * manual/libc.texinfo: Update copyright dates.
52971         * scripts/test-installation.pl: Update copyright date in --version
52972         output.
52973
52974         * hurd/ctty-input.c: Fix copyright notice formatting.
52975         * hurd/ctty-output.c: Likewise.
52976         * hurd/dtable.c: Likewise.
52977         * hurd/hurd-raise.c: Likewise.
52978         * hurd/hurdprio.c: Likewise.
52979         * hurd/msgportdemux.c: Likewise.
52980         * misc/sys/file.h: Likewise.
52981         * misc/sys/ioctl.h: Likewise.
52982         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
52983         * sysdeps/mach/hurd/chdir.c: Likewise.
52984         * sysdeps/mach/hurd/fchdir.c: Likewise.
52985         * sysdeps/mach/hurd/rename.c: Likewise.
52986         * sysdeps/mach/hurd/rmdir.c: Likewise.
52987         * sysdeps/mach/hurd/seekdir.c: Likewise.
52988         * sysdeps/mach/hurd/setsid.c: Likewise.
52989         * sysdeps/posix/wait3.c: Likewise.
52990
52991         * All files with FSF copyright notices: Update copyright dates
52992         using scripts/update-copyrights.
52993         * intl/plural.c: Regenerated.
52994         * locale/programs/charmap-kw.h: Likewise.
52995         * locale/programs/locfile-kw.h: Likewise.
52996
52997 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
52998
52999         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53000         four values.
53001
53002         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53003         calculation loop and add branch prediction.
53004
53005         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53006         check access beyond bounds of m1np.
53007
53008         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53009         MPTWO.
53010         (__inv): Remove local variable MPTWO to use the global
53011         constant.
53012         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53013         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53014         variable MPTWO.
53015         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53016         MP3HALFS static const.
53017
53018 2013-01-01  David S. Miller  <davem@davemloft.net>
53019
53020         * po/ca.po: Update from translation team.
53021
53022 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53023
53024         * scripts/update-copyrights: New file.
53025         * Makeconfig: Reformat copyright notice.
53026         * ctype/ctype.h: Likewise.
53027         * debug/swprintf_chk.c: Likewise.
53028         * elf/dl-cache.c: Likewise.
53029         * elf/dl-debug.c: Likewise.
53030         * elf/dl-object.c: Likewise.
53031         * grp/initgroups.c: Likewise.
53032         * hurd/Makefile: Likewise.
53033         * hurd/hurd/signal.h: Likewise.
53034         * hurd/hurdfault.c: Likewise.
53035         * hurd/hurdioctl.c: Likewise.
53036         * hurd/hurdlookup.c: Likewise.
53037         * hurd/intr-msg.c: Likewise.
53038         * iconv/gconv_open.c: Likewise.
53039         * libio/swprintf.c: Likewise.
53040         * locale/lc-ctype.c: Likewise.
53041         * locale/nl_langinfo.c: Likewise.
53042         * mach/Machrules: Likewise.
53043         * mach/Makefile: Likewise.
53044         * malloc/obstack.h: Likewise.
53045         * manual/Makefile: Likewise.
53046         * manual/tsort.awk: Likewise.
53047         * misc/bits/stab.def: Likewise.
53048         * nis/nis_print_group_entry.c: Likewise.
53049         * nis/nis_table.c: Likewise.
53050         * nis/nss_compat/compat-pwd.c: Likewise.
53051         * nis/nss_compat/compat-spwd.c: Likewise.
53052         * po/Makefile: Likewise.
53053         * posix/fnmatch.c: Likewise.
53054         * posix/regex.h: Likewise.
53055         * resolv/Makefile: Likewise.
53056         * resolv/nss_dns/dns-network.c: Likewise.
53057         * resolv/res_hconf.c: Likewise.
53058         * scripts/gen-sorted.awk: Likewise.
53059         * soft-fp/soft-fp.h: Likewise.
53060         * stdio-common/printf.h: Likewise.
53061         * stdlib/monetary.h: Likewise.
53062         * stdlib/random.c: Likewise.
53063         * stdlib/random_r.c: Likewise.
53064         * sysdeps/generic/Makefile: Likewise.
53065         * sysdeps/gnu/Makefile: Likewise.
53066         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53067         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53068         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53069         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53070         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53071         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53072         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53073         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53074         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53075         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53076         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53077         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53078         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53079         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53080         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53081         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53082         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53083         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53084         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53085         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53086         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53087         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53088         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53089         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53090         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53091         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53092         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53093         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53094         * sysdeps/mach/hurd/errnos.awk: Likewise.
53095         * sysdeps/mach/hurd/fork.c: Likewise.
53096         * sysdeps/mach/hurd/getcwd.c: Likewise.
53097         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53098         * sysdeps/mach/hurd/mmap.c: Likewise.
53099         * sysdeps/mach/hurd/utimes.c: Likewise.
53100         * sysdeps/mach/hurd/xmknod.c: Likewise.
53101         * sysdeps/posix/profil.c: Likewise.
53102         * sysdeps/posix/readdir_r.c: Likewise.
53103         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53104         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53105         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53106         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53107         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53108         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53109         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53110         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53111         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53112         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53113         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53114         * sysdeps/pthread/lio_listio.c: Likewise.
53115         * sysdeps/sparc/dl-procinfo.h: Likewise.
53116         * sysdeps/unix/i386/sysdep.S: Likewise.
53117         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53118         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53119         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53120         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53122         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53123         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53124         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53125         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53126         * sysdeps/wordsize-32/divdi3.c: Likewise.
53127         * time/sys/time.h: Likewise.
53128         * wcsmbs/Makefile: Likewise.
53129
53130 2013-01-01  David S. Miller  <davem@davemloft.net>
53131
53132         * po/fr.po: Update from translation team.
53133
53134         * catgets/gencat.c: Update copyright year.
53135         * csu/version.c: Likewise.
53136         * debug/catchsegv.sh: Likewise.
53137         * debug/pcprofiledump.c: Likewise.
53138         * debug/xtrace.sh: Likewise.
53139         * elf/ldconfig.c: Likewise.
53140         * elf/ldd.bash.in: Likewise.
53141         * elf/pldd.c: Likewise.
53142         * elf/sotruss.ksh: Likewise.
53143         * elf/sprof.c: Likewise.
53144         * iconv/iconv_prog.c: Likewise.
53145         * iconv/iconvconfig.c: Likewise.
53146         * locale/programs/locale.c: Likewise.
53147         * locale/programs/localedef.c: Likewise.
53148         * login/programs/pt_chown.c: Likewise.
53149         * malloc/memusage.sh: Likewise.
53150         * malloc/memusagestat.c: Likewise.
53151         * malloc/mtrace.pl: Likewise.
53152         * nscd/nscd.c: Likewise.
53153         * nss/getent.c: Likewise.
53154         * nss/makedb.c: Likewise.
53155         * posix/getconf.c: Likewise.
53156
53157 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53158
53159         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53160         numbers.
53161
53162 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53163
53164         * math/bits/mathcalls.h (modf): Use __nonnull.
53165
53166 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53167
53168         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53169         (split): Use macro CN instead of the bare value.
53170         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53171         could be used.
53172         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53173         instead of the bare value.
53174         (power1): Likewise.
53175
53176 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53177
53178         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53179         __ATAN_TWOM.
53180         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53181
53182         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53183         their values.
53184         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53185         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53186         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53187         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53188
53189 2012-12-28  Andreas Jaeger  <aj@suse.de>
53190
53191         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53192         values are from Linux 3.7.
53193
53194         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53195         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53196
53197 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53198
53199         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53200         TRUE case.
53201
53202         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53203         (norm): Likewise.
53204         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53205         variables with preprocessor constants.
53206         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53207         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53208         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53209
53210 2012-12-27  Bruno Haible  <bruno@clisp.org>
53211
53212         [BZ #14317]
53213         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53214         only if needed.
53215
53216 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53217
53218         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53219         and use variable directly.
53220         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53221
53222         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53223         MPONE.
53224         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53225         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53226         variable MPONE.
53227         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53228         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53229         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53230         include directive.  Remove local variable MPONE.
53231         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53232         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53233         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53234
53235 2012-12-25  David S. Miller  <davem@davemloft.net>
53236
53237         * version.h (RELEASE): Set to "development".
53238         (VERSION): Set to "2.17.90".
53239         * NEWS: Add 2.18 section.
53240
53241 2012-12-21  David S. Miller  <davem@davemloft.net>
53242
53243         * po/hr.po: Update from translation team.
53244
53245 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53246
53247         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53248
53249 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53250
53251         * NEWS:  Mention new memcpy for MIPS.
53252
53253 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53254
53255         * manual/contrib.texi (Contributors): Spelling correction.
53256
53257 2012-12-15  David S. Miller  <davem@davemloft.net>
53258
53259         * po/ru.po: Update from translation team.
53260
53261 2012-12-13  David S. Miller  <davem@davemloft.net>
53262
53263         * NEWS: Mention IFUNC testsuite enhancements.
53264
53265         * po/pl.po: Update from translation team.
53266         * po/bg.po: Likewise.
53267
53268         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53269         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53270
53271 2012-12-11  David S. Miller  <davem@davemloft.net>
53272
53273         * po/sv.po: Update from translation team.
53274
53275         * po/vi.po: Update from translation team.
53276
53277         * po/cs.po: Update from translation team.
53278
53279         * po/de.po: Update from translation team.
53280         * po/eo.po: Likewise.
53281         * po/nl.po: Likewise.
53282
53283 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53284
53285         [BZ #14246]
53286         * manual/argp.texi (Argp Helper Functions): Move node to follow
53287         Argp Parsing State.
53288
53289         [BZ #14872]
53290         * manual/conf.texi (Limits on File System Capacity): Mention if
53291         terminating null is included in the max size.
53292
53293 2012-12-10  Andreas Jaeger  <aj@suse.de>
53294
53295         * po/cs.po: Update from translation team.
53296
53297 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53298
53299         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53300         void pointer and cast to uintptr_t.
53301         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53302         path.
53303         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53304         * sysdeps/s390/s390-64/memset.S: Likewise.
53305
53306 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53307
53308         [BZ #14833]
53309         * menual/message.texi (Message Translation): Fix typos.
53310         (Helper programs for gettext): Likewise.
53311
53312 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53313
53314         [BZ #14898]
53315         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53316         Change to -1.
53317
53318 2012-12-07  David S. Miller  <davem@davemloft.net>
53319
53320         * po/libc.pot: Update.
53321
53322 2012-12-07  Richard Henderson  <rth@redhat.com>
53323
53324         [BZ #10114]
53325         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53326         normal/normal case to before the switch.
53327         (_FP_DIV): Likewise.
53328
53329 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53330             Mike Frysinger  <vapier@gentoo.org>
53331
53332         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53333         check for __NR_fadvise64_64.
53334
53335 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53336
53337         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53338         0, not just to plain "0" as a statement.
53339         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53340         with cw.
53341
53342 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53343
53344         * NEWS: Use sourceware.org in Bugzilla URL.
53345
53346 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53347
53348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53349         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53350
53351         * stdio-common/tst-put-error.c (do_test): Add newline to the
53352         padded test to ensure flush.
53353
53354 2012-12-05  Jeff Law  <law@redhat.com>
53355
53356         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53357
53358 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53359
53360         * README: Don't refer to ports add-on as distributed separately.
53361         Mention AArch64 in list of systems supported in the ports add-on.
53362
53363         * LICENSES: Add more non-FSF copyright and license notices.
53364
53365         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53366         ((unused)).
53367
53368         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53369
53370         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53371         10000 as width of padded output.
53372
53373 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53374
53375         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53376
53377         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53378         variable LX with __attribute__ ((unused)).
53379         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53380         Likewise.
53381         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53382         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53383         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53384         with __attribute__ ((unused)).
53385
53386 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53387
53388         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53389
53390 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53391
53392         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53393         (CFLAGS-nldbl-acos.c): New variable.
53394         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53395         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53396         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53397         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53398         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53399         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53400         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53401         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53402         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53403         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53404         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53405         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53406         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53407         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53408         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53409         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53410         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53411         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53412         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53413         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53414         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53415         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53416         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53417         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53418         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53419         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53420         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53421         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53422         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53423         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53424         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53425         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53426         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53427         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53428         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53429         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53430         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53431         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53432         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53433         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53434         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53435         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53436         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53437         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53438         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53439         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53440         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53441         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53442         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53443         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53444         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53445         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53446         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53447         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53448         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53449         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53450         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53451         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53452         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53453         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53454         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53455         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53456         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53457         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53458         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53459         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53460         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53461         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53462         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53463         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53464         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53465         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53466         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53467         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53468         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53469         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53470         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53471         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53472         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53473         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53474         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53475         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53476         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53477         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53478         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53479         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53480         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53481         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53482         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53483         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53484         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53485         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53486         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53487         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53488         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53489         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53490         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53491
53492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53493         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53494
53495         [BZ #14914]
53496         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53497         whole low double instead of just low 47 bits when splitting values
53498         into two parts.
53499
53500 2012-12-03  Allan McRae  <allan@archlinux.org>
53501
53502         * manual/stdio.texi (Predefined Printf Handlers): Remove
53503         @hsep and @vsep usage.
53504
53505 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53506
53507         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53508         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53509
53510 2012-12-03  Jeff Law  <law@redhat.com>
53511
53512         * time/sys/time.h (settimeofday): Do not mark TV argument
53513         as __nonnull.
53514
53515 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53516
53517         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53518         when currently writing and seek to current position when not.
53519         * libio/Makefile (tests): Remove bug-fclose1.
53520         * libio/bug-fclose1.c: Delete.
53521
53522 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53523
53524         * manual/arith.texi (feenableexcept): Fix typo.
53525         (fedisableexcept): Likewise.
53526
53527 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53528
53529         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53530         second, differently-typed declaration, rather than a cast.
53531
53532 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53533
53534         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53535         * include/rpc/svc.h: ... here.
53536
53537 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53538
53539         [BZ #13013]
53540         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53541         depending n and resplen2 to catch cases where answer
53542         equals answerp2.
53543
53544 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53545
53546         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53547         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53548
53549 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53550
53551         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
53552
53553 2012-11-29  Roland McGrath  <roland@hack.frob.com>
53554
53555         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
53556
53557 2012-11-28  Jeff Law  <law@redhat.com>
53558
53559         [BZ #13761]
53560         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
53561         dataset_temporary.  Track alloca usage into alloca_used.
53562         If dataset is large allocate and release it via malloc/free.
53563
53564 2012-06-04  Florian Weimer  <fweimer@redhat.com>
53565
53566         [BZ #14197]
53567         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
53568
53569 2012-11-28  David S. Miller  <davem@davemloft.net>
53570
53571         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53572
53573 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53574
53575         [BZ #14803]
53576         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
53577         of pi/2 rounded to nearest to 64 bits.
53578         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
53579         nearest to 64 bits.
53580         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
53581         bits.
53582
53583 2012-11-28  Jeff Law <law@redhat.com>
53584             Martin Osvald <mosvald@redhat.com>
53585
53586         [BZ #14889]
53587         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
53588         * sunrpc/svc.c: Include time.h.
53589         (__svc_accept_failed): New function.
53590         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
53591         any reason other than EINTR, call __svc_accept_failed.
53592         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
53593         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
53594
53595 2012-11-28  Andreas Schwab  <schwab@suse.de>
53596
53597         * scripts/abilist.awk: Also handle indirect functions in .opd
53598         section.
53599
53600 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53601
53602         [BZ #13881]
53603         * sysdeps/x86/fpu/powl_helper.c: New file.
53604         * sysdeps/x86/fpu/Makefile: Likewise.
53605         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
53606         (p3): New object.
53607         (__ieee754_powl): Use __powl_helper for finite arguments except
53608         integer exponents below 8.
53609         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
53610         (p3): New object.
53611         (__ieee754_powl): Use __powl_helper for finite arguments except
53612         integer exponents below 8.
53613         * math/libm-test.inc (pow_test): Add more tests and enable some
53614         previously disabled tests.
53615         * sysdeps/i386/fpu/libm-test-ulps: Update.
53616         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53617
53618 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53619             Carlos O'Donell  <carlos_odonell@mentor.com>
53620
53621         * nss/makedb.c (is_prime): Assert that input is odd and greater
53622         than 4.  Note that fact in a comment too.
53623         (next_prime): Add 4 to input.
53624
53625 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53626
53627         [BZ #11741]
53628         * libio/Makefile (tests): Add test case tst-fwrite-error.
53629         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
53630         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
53631         * libio/tst-fwrite-error.c: New test case.
53632
53633 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
53634
53635         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
53636         before casting to void *.
53637         * include/libc-internal.h (__pointer_type): New macro.
53638         (__integer_if_pointer_type_sub): Likewise.
53639         (__integer_if_pointer_type): Likewise.
53640         (cast_to_integer): Likewise.
53641         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
53642         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
53643         before casting to atomic64_t.
53644         (atomic_exchange_acq): Likewise.
53645         (__arch_exchange_and_add_body): Likewise.
53646         (__arch_add_body): Likewise.
53647         (atomic_add_negative): Likewise.
53648         (atomic_add_zero): Likewise.
53649
53650 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
53651
53652         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
53653         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
53654         (add_fdes): Likewise.
53655         (linear_search_fdes): Likewise.
53656         (binary_search_unencoded_fdes): Likewise.
53657
53658 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
53659
53660         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
53661
53662 2012-11-24  Adam Conrad  <adconrad@0c3.net>
53663
53664         * configure.in: Autodetect C++ header directories.
53665         * configure: Regenerated.
53666
53667 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
53668
53669         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
53670
53671 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
53672
53673         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53674
53675 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
53676
53677         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
53678         LDBL_MANT_DIG == 106]: Disable some tests.
53679         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53680         Likewise.
53681         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53682         Likewise.
53683
53684         [BZ #14871]
53685         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
53686         input for small inputs.  Return +/- pi/2 for large inputs.
53687         * math/libm-test.inc (atan_test): Add more tests.
53688
53689         * sysdeps/generic/unwind-dw2-fde-glibc.c
53690         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
53691         __attribute__ ((unused)).
53692
53693         [BZ #14645]
53694         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
53695         x * y if x and y are nonzero and z is zero.
53696
53697         [BZ #14811]
53698         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
53699         nonzero exponents with absolute value below 0x1p-117 to +/-
53700         0x1p-117.
53701
53702         [BZ #14869]
53703         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
53704         up arguments below 2**-450, not just those below 2**-500.
53705         * math/libm-test.inc (hypot_test): Add another test.
53706
53707         [BZ #14868]
53708         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
53709         Return a+b for ratio over 2**120, not 2**60.
53710         * math/libm-test.inc (hypot_test): Add another test.
53711
53712         * math/libm-test.inc (clog_test): Use
53713         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
53714         (clog10_test): Likewise.
53715
53716         [BZ #6778]
53717         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
53718
53719 2012-11-22  Andreas Schwab  <schwab@suse.de>
53720
53721         * sysdeps/i386/fpu/libm-test-ulps: Update.
53722
53723 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
53724
53725         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
53726         printf output with newline.
53727
53728 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
53729
53730         [BZ #14865]
53731         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
53732         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
53733         -z nodlopen, -z initfirst and -z execstack support.
53734         * configure: Regenerated.
53735
53736         * elf/elf.h (DF_1_NODIRECT): New macro.
53737         (DF_1_IGNMULDEF): Likewise.
53738         (DF_1_NOKSYMS): Likewise.
53739         (DF_1_NOHDR): Likewise.
53740         (DF_1_EDITED): Likewise.
53741         (DF_1_NORELOC): Likewise.
53742         (DF_1_SYMINTPOSE): Likewise.
53743         (DF_1_GLOBAUDIT): Likewise.
53744         (DF_1_SINGLETON): Likewise.
53745         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
53746         DT_1_SUPPORTED_MASK bits.
53747         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
53748
53749 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
53750
53751         * sysdeps/unix/make-syscalls.sh: Document prefixes.
53752
53753 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
53754
53755         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
53756         macro.
53757
53758         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
53759         (sendmmsg): Move declarations...
53760         * socket/sys/socket.h: ... here.
53761         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
53762         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
53763         include it from...
53764         * socket/recvmmsg.c: ... this new file.
53765         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
53766         (sendmmsg): Rename to __sendmmsg, create weak alias and make
53767         definition of __sendmmsg hidden.
53768         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
53769         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
53770         Move ENOSYS stub into and include it from...
53771         * socket/sendmmsg.c: ... this new file.
53772         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
53773         (sysdep_routines): Move recvmmsg and sendmmsg...
53774         * socket/Makefile (routines): ... here.
53775         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
53776         (GLIBC_PRIVATE): Add __sendmmsg.
53777         * include/sys/socket.h (__sendmmsg): Add declarations.
53778         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
53779         sendmmsg.
53780
53781 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
53782
53783         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
53784         variable I1 with __attribute__ ((unused)).
53785         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
53786
53787 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53788
53789         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
53790         DUMMY variables with __attribute__ ((unused)).
53791
53792         * bits/byteswap.h: Include <bits/types.h>.
53793         (__bswap_64): Use __uint64_t instead of unsigned long long int.
53794
53795 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
53796
53797         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
53798         string_t.  Do not manually set errno.
53799         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
53800         length with __strnlen.  Make sure to both set errno and return it on
53801         failure.
53802
53803 2012-11-19  David S. Miller  <davem@davemloft.net>
53804
53805         With help from Joseph Myers.
53806         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
53807         very large arguments properly.
53808         * math/libm-test.inc (atan_test): New tests.
53809         (atan2_test): New tests.
53810         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53811         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53812
53813 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53814
53815         [BZ #14856]
53816         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
53817         Define to 3.
53818
53819         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
53820         [POSIX] (EADDRNOTAVAIL): Likewise.
53821         [POSIX] (EAFNOSUPPORT): Likewise.
53822         [POSIX] (EALREADY): Likewise.
53823         [POSIX] (ECONNABORTED): Likewise.
53824         [POSIX] (ECONNREFUSED): Likewise.
53825         [POSIX] (ECONNRESET): Likewise.
53826         [POSIX] (EDESTADDRREQ): Likewise.
53827         [POSIX] (EDQUOT): Likewise.
53828         [POSIX] (EHOSTUNREACH): Likewise.
53829         [POSIX] (EIDRM): Likewise.
53830         [POSIX] (EISCONN): Likewise.
53831         [POSIX] (ELOOP): Likewise.
53832         [POSIX] (EMULTIHOP): Likewise.
53833         [POSIX] (ENETDOWN): Likewise.
53834         [POSIX] (ENETUNREACH): Likewise.
53835         [POSIX] (ENOBUFS): Likewise.
53836         [POSIX] (ENODATA): Likewise.
53837         [POSIX] (ENOLINK): Likewise.
53838         [POSIX] (ENOMSG): Likewise.
53839         [POSIX] (ENOPROTOOPT): Likewise.
53840         [POSIX] (ENOSR): Likewise.
53841         [POSIX] (ENOSTR): Likewise.
53842         [POSIX] (ENOTCONN): Likewise.
53843         [POSIX] (ENOTSOCK): Likewise.
53844         [POSIX] (EOPNOTSUPP): Likewise.
53845         [POSIX] (EOVERFLOW): Likewise.
53846         [POSIX] (EPROTO): Likewise.
53847         [POSIX] (EPROTONOSUPPORT): Likewise.
53848         [POSIX] (EPROTOTYPE): Likewise.
53849         [POSIX] (ESTALE): Likewise.
53850         [POSIX] (ETIME): Likewise.
53851         [POSIX] (ETXTBSY): Likewise.
53852         [POSIX] (EWOULDBLOCK): Likewise.
53853         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
53854         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
53855         [POSIX] (SEEK_CUR): Likewise.
53856         [POSIX] (SEEK_END): Likewise.
53857         [POSIX || UNIX98] (mode_t): Do not require.
53858         [POSIX] (off_t): Likewise.
53859         [POSIX] (pid_t): Likewise.
53860         [POSIX] (sys/stat.h): Do not allow header.
53861         [POSIX] (unistd.h): Likewise.
53862         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
53863         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
53864         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
53865         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
53866         require.
53867         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
53868         sigevent): Specify elements.
53869         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
53870         entry.
53871         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
53872         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
53873
53874         * conform/data/cpio.h-data [POSIX]: Disable whole file.
53875         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
53876         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
53877         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
53878         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
53879         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
53880         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
53881         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
53882         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
53883         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
53884         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
53885         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
53886         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
53887         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
53888         Likewise.
53889         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
53890         Likewise.
53891         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
53892         Likewise.
53893         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
53894         Likewise.
53895         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
53896         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
53897         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
53898         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
53899         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
53900         Specify lower bound on value.
53901         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
53902         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
53903         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
53904         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
53905         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
53906         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
53907         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
53908         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
53909         value.
53910         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
53911         as optional.
53912         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
53913         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
53914         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
53915         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
53916         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
53917         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
53918         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
53919         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
53920         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
53921         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
53922         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
53923         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
53924         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
53925         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
53926         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
53927         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
53928         entry.
53929         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
53930         optional.
53931         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
53932         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
53933         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
53934         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
53935         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
53936         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
53937         Likewise.
53938         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
53939         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
53940         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
53941         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
53942         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
53943         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
53944         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
53945         as optional.
53946         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
53947         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
53948         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
53949         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
53950         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
53951         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
53952         specify as optional.
53953         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
53954         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
53955         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
53956         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
53957         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
53958         [XPG3] (NL_LANGMAX): Likewise.
53959         [POSIX || XPG3] (NL_MSGMAX): Likewise.
53960         [POSIX || XPG3] (NL_NMAX): Likewise.
53961         [POSIX || XPG3] (NL_SETMAX): Likewise.
53962         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
53963         [XPG3] (NZERO): Likewise.
53964         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
53965         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
53966         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
53967         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
53968         (REG_ERANGE): Expect.
53969         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
53970         optional-constant.
53971         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
53972         Use (void) in prototype.
53973         [POSIX] (*_t): Allow.
53974         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
53975         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
53976         (WRDE_BADVAL): Expect.
53977
53978         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
53979         expect.
53980         [XPG3 || XPG4] (O_RSYNC): Likewise.
53981         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
53982         Likewise.
53983         [XPG3 || XPG4] (pthread_sigmask): Likewise.
53984         [XPG3 || XPG4] (sigqueue): Likewise.
53985         [XPG3 || XPG4] (sigtimedwait): Likewise.
53986         [XPG3 || XPG4] (sigwaitinfo): Likewise.
53987         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
53988         [XPG3 || XPG4] (vsnprintf): Likewise.
53989         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
53990         Likewise.
53991         [XPG3 || XPG4] (blksize_t): Likewise.
53992         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
53993         Likewise.
53994         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
53995         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
53996         [XPG3 || XPG4] (struct itimerspec): Likewise.
53997         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
53998         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
53999         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54000         [XPG3 || XPG4] (clockid_t): Likewise.
54001         [XPG3 || XPG4] (timer_t): Likewise.
54002         [XPG3 || XPG4] (clock_getres): Likewise.
54003         [XPG3 || XPG4] (clock_gettime): Likewise.
54004         [XPG3 || XPG4] (clock_settime): Likewise.
54005         [XPG3 || XPG4] (nanosleep): Likewise.
54006         [XPG3 || XPG4] (timer_create): Likewise.
54007         [XPG3 || XPG4] (timer_delete): Likewise.
54008         [XPG3 || XPG4] (timer_gettime): Likewise.
54009         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54010         [XPG3 || XPG4] (timer_settime): Likewise.
54011         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54012         [XPG3 || XPG4] (getlogin_r): Likewise.
54013         [XPG3 || XPG4] (pread): Likewise.
54014         [XPG3 || XPG4] (pthread_atfork): Likewise.
54015         [XPG3 || XPG4] (pwrite): Likewise.
54016
54017         [BZ #14835]
54018         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54019         <bits/siginfo.h>.
54020
54021 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54022
54023         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54024         finalizing MALLSTREAM.
54025
54026         * sysdeps/mach/hurd/syncfs.c: New file.
54027
54028 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54029
54030         [BZ #14719]
54031         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54032         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54033         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54034         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54035         (_nss_dns_gethostbyname4_r): Likewise.
54036         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54037         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54038
54039 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54040
54041         [BZ #13763]
54042         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54043
54044 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54045
54046         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54047         * elf/cache.c (print_entry): Print ",AArch64" for
54048         FLAG_AARCH64_LIB64
54049
54050         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54051         * elf/cache.c (print_entry): Print ",hard-float" for
54052         FLAG_ARM_LIBHF.
54053
54054 2012-11-18  David S. Miller  <davem@davemloft.net>
54055
54056         With help from Joseph Myers.
54057         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54058         cutoff to 2**-13.
54059         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54060         cutoff to 2**-25.
54061         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54062         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54063         small.
54064         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54065         * math/libm-test.inc (y0_test): New tests.
54066         (y1_test): New tests.
54067         * sysdeps/i386/fpu/libm-test-ulps: Update.
54068         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54069         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54070
54071 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54072
54073         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54074         64-bit targets.
54075         * configure: Regenerated.
54076
54077 2012-11-17  David S. Miller  <davem@davemloft.net>
54078
54079         [BZ #14811]
54080         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54081         nonzero exponents with absolute value below 0x1p-128 to +/-
54082         0x1p-128.
54083
54084 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54085
54086         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54087
54088         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54089
54090         * posix/getconf-speclist.c: New file.
54091         * posix/posix-envs.def: Likewise.
54092         * posix/confstr.c (START_ENV_GROUP): New macro.
54093         (END_ENV_GROUP): Likewise.
54094         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54095         (KNOWN_PRESENT_ENV_STRING): Likewise.
54096         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54097         (UNKNOWN_ENVIRONMENT): Likewise.
54098         (confstr): Include posix-envs.def instead of handling
54099         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54100         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54101         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54102         (END_ENV_GROUP): Likewise.
54103         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54104         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54105         (UNKNOWN_ENVIRONMENT): Likewise.
54106         (__sysconf): Include posix-envs.def instead of handling associated
54107         cases directly here.
54108         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54109         preprocessing getconf-speclist.c rather than running getconf or
54110         generating empty file.
54111
54112 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54113
54114         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54115
54116 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54117
54118         [BZ #14672]
54119         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54120
54121 2012-11-16  David S. Miller  <davem@davemloft.net>
54122
54123         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54124         smaller than LDBL_EPSILON/2.0L, just return xm1.
54125
54126 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54127
54128         * elf/tst-array1.c (init): Set constructor priority to 1000.
54129         (fini): Set destructor priority to 1000.
54130         * elf/tst-array2dep.c: Likewise.
54131
54132 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54133
54134         [BZ #11741]
54135         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54136         (_IO_new_file_xsputn): Also return EOF if none of the input
54137         data was written when overflow failed.
54138         * libio/iopadn.c (_IO_padn): Likewise.
54139         * libio/iowpadn.c (_IO_wpadn): Likewise.
54140         * stdio-common/tst-put-error.c: Add copyright notice.
54141         (do_test): Add case for printing padded string.
54142         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54143         _IO_padn returned error.
54144         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54145         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54146         return EOF.
54147
54148 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54149
54150         * libio/libioP.h: Add comment note that the references to C++
54151         bits are now obsolete.
54152
54153 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54154
54155         * math/libm-test.inc (check_complex): Use asprintf.
54156
54157 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54158
54159         * debug/pcprofiledump.c (print_version): Update copyright year.
54160         * malloc/memusagestat.c (print_version): Likewise.
54161
54162 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54163
54164         [BZ #14831]
54165         * elf/Makefile (tests): Add tst-audit8.
54166         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54167         ($(objpfx)tst-audit8.out): New target.
54168         (tst-audit8-ENV): New variable.
54169         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54170         audit if l_reloc_result is NULL.
54171         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54172         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54173         * elf/tst-audit8.c: New file.
54174
54175 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54176
54177         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54178         * misc/Makefile (CFLAGS-select.c): Define.
54179         * posix/Makefile (CFLAGS-pause.c): Define.
54180
54181 2012-11-13  David S. Miller  <davem@davemloft.net>
54182
54183         * crypt/Makefile: Move test targets after toplevel Rules
54184         inclusion.  Grab any necessary sysdep routines when linking.
54185         * crypt/md5.c (md5_process_block): Remove define, we will always
54186         name it __md5_process_block.
54187         (md5_finish_ctx): Update md5_process_block call.
54188         (md5_stream): Likewise.
54189         (md5_process_bytes): Likewise.
54190         (md5_process_block): Rename to __md5_process_block and move to ...
54191         * crypt/md5-block.c: ... here.
54192         * crypt/sha256.c (sha256_process_block): Move to ...
54193         * crypt/sha256-block.c: ... here.
54194         * crypt/sha512.c (sha512_process_block): Move to ...
54195         * crypt/sha512-block.c: ... here.
54196         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54197         path.
54198         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54199         * sysdeps/sparc/sparc64/multiarch/Makefile
54200         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54201         crypt subdir.
54202         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54203         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54204         multiarch changes.
54205         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54206         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54207         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54208         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54209         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54210         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54211         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54212         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54213         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54214         file.
54215         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54216         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54217         file.
54218         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54219
54220 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54221
54222         * timezone/tzselect.ksh: Update from tzcode git revision
54223         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54224         * timezone/zdump.c: Likewise.
54225         * timezone/zic.c: Likewise.
54226         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54227         in TZVERSION setting, not $(PKGVERSION).
54228         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54229         REPORT_BUGS_TO settings.
54230
54231         [BZ #14838]
54232         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54233         macro.
54234
54235 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54236
54237         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54238         detection to immediately after _FP_ROUND().
54239         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54240         bits are 0.
54241
54242 2012-11-11  David S. Miller  <davem@davemloft.net>
54243
54244         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54245         inttypes.h
54246         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54247         __close rather than their public counterparts.
54248
54249 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54250
54251         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54252         file.
54253         [UNIX98] (sem_timedwait): Do not expect.
54254         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54255         [XPG4 || UNIX98] (sockatmark): Do not expect.
54256         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54257         (clock_getcpuclockid): Do not expect.
54258         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54259         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54260         Do not expect.
54261         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54262         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54263         [UNIX98] (vwscanf): Likewise.
54264         [UNIX98] (vswscanf): Likewise.
54265
54266 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54267
54268         * timezone/version.h: Remove file.
54269         * timezone/README: Do not refer to version.h.
54270         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54271         $(objpfx)version.h.
54272         ($(objpfx)zdump.o): Likewise.
54273         ($(objpfx)version.h): New target.
54274
54275         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54276         2012i.
54277         * timezone/README: Don't mention modification to tzselect.ksh.
54278         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54279         work on unmodified tzselect.ksh.  Substitute version numbers in
54280         tzselect.ksh.
54281
54282         * Makefile (format-me): Remove.
54283         (INSTALL): Adjust indentation.  Use commands directly instead of
54284         using $(format-me).
54285
54286         * aclocal.m4 (ACX_PKGVERSION): New macro.
54287         (ACX_BUGURL): Likewise.
54288         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54289         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54290         (REPORT_BUGS_TO): Likewise.
54291         * configure: Regenerated.
54292         * config.h.in (PKGVERSION): New macro.
54293         (REPORT_BUGS_TO): Likewise.
54294         * config.make.in (PKGVERSION): New variable.
54295         (PKGVERSION_TEXI): Likewise.
54296         (REPORT_BUGS_TO): Likewise.
54297         (REPORT_BUGS_TEXI): Likewise.
54298         * Makefile (format-me): Use -I$(common-objpfx)manual.
54299         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54300         ($(common-objpfx)manual/%): New target.
54301         (manual/%): Remove target.
54302         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54303         (print_version): Use PKGVERSION.
54304         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54305         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54306         and REPORT_BUGS_TO.
54307         ($(objpfx)xtrace): Likewise.
54308         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54309         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54310         (print_version): Use PKGVERSION.
54311         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54312         (do_version): Use PKGVERSION.
54313         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54314         REPORT_BUGS_TO.
54315         (common-ldd-rewrite): Likewise.
54316         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54317         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54318         (print_version): Use PKGVERSION.
54319         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54320         * elf/pldd.c (argp_program_bug_address): Remove variable.
54321         (more_help): New function.
54322         (argp): Use more_help.
54323         (print_version): Use PKGVERSION.
54324         * elf/sln.c (main): Use PKGVERSION.
54325         (usage): Use REPORT_BUGS_TO.
54326         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54327         (top level): Use PKGVERSION.
54328         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54329         (print_version): Use PKGVERSION.
54330         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54331         (print_version): Use PKGVERSION.
54332         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54333         (print_version): Use PKGVERSION.
54334         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54335         (print_version): Use PKGVERSION.
54336         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54337         (print_version): Use PKGVERSION.
54338         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54339         (print_version): Use PKGVERSION.
54340         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54341         and BUGURL.
54342         ($(objpfx)memusage): Likewise.
54343         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54344         (do_version): Use PKGVERSION.
54345         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54346         (print_version): Use PKGVERSION.
54347         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54348         ($PKGVERSION): New variable.
54349         ($REPORT_BUGS_TO): Likewise.
54350         (usage): Use $REPORT_BUGS_TO.
54351         (top level): Use $PKGVERSION.
54352         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54353         ($(objpfx)pkgvers.texi): New rule.
54354         ($(objpfx)stamp-pkgvers): Likewise.
54355         * manual/install.texi: Include pkgvers.texi.
54356         (--with-pkgversion): Document new configure option.
54357         (--with-bugurl): Likewise.
54358         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54359         than necessarily for this particular distribution.  Use
54360         REPORT_BUGS_TO for where to report bugs.
54361         * INSTALL: Regenerated.
54362         * manual/libc.texinfo: Include pkgvers.texi.
54363         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54364         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54365         (print_version): Use PKGVERSION.
54366         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54367         (print_version): Use PKGVERSION.
54368         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54369         (print_version): Use PKGVERSION.
54370         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54371         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54372         macro.
54373         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54374         (print_version): Use PKGVERSION.
54375         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54376         (print_version): Use PKGVERSION.
54377         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54378         and PKGVERSION.
54379
54380         * timezone/checktab.awk: Update from tzcode 2012i.
54381         * timezone/ialloc.c: Likewise.
54382         * timezone/private.h: Likewise.
54383         * timezone/scheck.c: Likewise.
54384         * timezone/tzfile.h: Likewise.
54385         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54386         (TZVERSION): Hardcode tzcode version number.
54387         * timezone/zdump.c: Update from tzcode 2012i.
54388         * timezone/zic.c: Likewise.
54389         * timezone/version.h: New file.
54390         * timezone/README: Describe version.h.  Update upstream location.
54391
54392         [BZ #14824]
54393         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54394         (mktemp): Enable declaration.
54395         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54396         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54397         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54398         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54399         Likewise.
54400         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54401         Likewise.
54402         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54403         Likewise.
54404         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54405         Likewise.
54406         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54407         Likewise.
54408         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54409         Likewise.
54410
54411         [BZ #14821]
54412         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54413         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54414         for copies of such integer values.
54415         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54416         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54417
54418 2012-11-09  Andreas Jaeger  <aj@suse.de>
54419
54420         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54421         definitions and declarations that are provided by
54422         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54423
54424 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54425
54426         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54427         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54428         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54429         definition.
54430
54431 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54432
54433         * elf/elf.h: Update comment before AArch64 relocations.
54434
54435 2012-11-07  David S. Miller  <davem@davemloft.net>
54436
54437         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54438         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54439         (__start_context): Declare.
54440         (__makecontext_ret): Delete.
54441         (__makecontext): Hook up __start_context instead of
54442         __makecontext_ret.
54443         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54444         (sysdep_routines): Add __start_context when in stdlib.
54445
54446 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54447
54448         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54449         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54450         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54451         hardcoded "nm".
54452         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54453         (READELF): New variable.  Use it instead of hardcoded "readelf".
54454
54455 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54456
54457         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54458         * sysdeps/x86/Makefile: Here.
54459         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54460         * sysdeps/x86/tst-xmmymm.sh: This.
54461
54462 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54463
54464         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54465         expectations.
54466         [UNIX98] (pthread_barrier_t): Do not expect.
54467         [UNIX98] (pthread_barrierattr_t): Likewise.
54468         [UNIX98] (pthread_spinlock_t): Likewise.
54469         [UNIX98] (pthread_barrier_destroy): Likewise.
54470         [UNIX98] (pthread_barrier_init): Likewise.
54471         [UNIX98] (pthread_barrier_wait): Likewise.
54472         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54473         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54474         [UNIX98] (pthread_barrierattr_init): Likewise.
54475         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54476         [UNIX98] (pthread_getcpuclockid): Likewise.
54477         [UNIX98] (pthread_mutex_timedlock): Likewise.
54478         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54479         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54480         [UNIX98] (pthread_sigmask): Likewise.
54481         [UNIX98] (pthread_spin_destroy): Likewise.
54482         [UNIX98] (pthread_spin_init): Likewise.
54483         [UNIX98] (pthread_spin_lock): Likewise.
54484         [UNIX98] (pthread_spin_trylock): Likewise.
54485         [UNIX98] (pthread_spin_unlock): Likewise.
54486         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54487         Do not expect.
54488         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54489         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54490         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54491         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54492         [XPG3 || XPG4] (pthread_key_t): Likewise.
54493         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54494         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54495         [XPG3 || XPG4] (pthread_once_t): Likewise.
54496         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54497         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54498         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54499         [XPG3 || XPG4] (pthread_t): Likewise.
54500
54501         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54502         not expect.
54503         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54504
54505         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54506         Change function return type to int.
54507
54508         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54509         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54510         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54511         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54512         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54513         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54514         [!POSIX] (posix_madvise): Likewise.
54515         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54516         && !UNIX98].
54517         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54518         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54519         (mode_t): Likewise.
54520         (posix_mem_offset): Likewise.
54521         (posix_typed_mem_get_info): Likewise.
54522         (posix_typed_mem_open): Likewise.
54523
54524         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54525         Change condition to [XOPEN2K8].
54526
54527         * conform/conformtest.pl: Preprocess allow-header data with -x c
54528         instead of from stdin.
54529         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54530         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54531         [C99-based standards] (cerfc): Likewise.
54532         [C99-based standards] (cexp2): Likewise.
54533         [C99-based standards] (cexpm1): Likewise.
54534         [C99-based standards] (clog10): Likewise.
54535         [C99-based standards] (clog1p): Likewise.
54536         [C99-based standards] (clog2): Likewise.
54537         [C99-based standards] (clgamma): Likewise.
54538         [C99-based standards] (ctgamma): Likewise.
54539         [C99-based standards] (cerff): Likewise.
54540         [C99-based standards] (cerfcf): Likewise.
54541         [C99-based standards] (cexp2f): Likewise.
54542         [C99-based standards] (cexpm1f): Likewise.
54543         [C99-based standards] (clog10f): Likewise.
54544         [C99-based standards] (clog1pf): Likewise.
54545         [C99-based standards] (clog2f): Likewise.
54546         [C99-based standards] (clgammaf): Likewise.
54547         [C99-based standards] (ctgammaf): Likewise.
54548         [C99-based standards] (cerfl): Likewise.
54549         [C99-based standards] (cerfcl): Likewise.
54550         [C99-based standards] (cexp2l): Likewise.
54551         [C99-based standards] (cexpm1l): Likewise.
54552         [C99-based standards] (clog10l): Likewise.
54553         [C99-based standards] (clog1pl): Likewise.
54554         [C99-based standards] (clog2l): Likewise.
54555         [C99-based standards] (clgammal): Likewise.
54556         [C99-based standards] (ctgammal): Likewise.
54557         * conform/data/inttypes.h-data [C99-based standards]: Include
54558         stdint.h-data.  Remove all expectations for stdint.h contents.
54559         [C99-based standards] (PRI*): Do not allow.
54560         [C99-based standards] (SCN*): Likewise.
54561         [C99-based standards] (*_t): Likewise.
54562         [C99-based-standards] (PRId8): Expect macro.
54563         [C99-based-standards] (PRIi8): Likewise.
54564         [C99-based-standards] (PRIo8): Likewise.
54565         [C99-based-standards] (PRIu8): Likewise.
54566         [C99-based-standards] (PRIx8): Likewise.
54567         [C99-based-standards] (PRIX8): Likewise.
54568         [C99-based-standards] (SCNd8): Likewise.
54569         [C99-based-standards] (SCNi8): Likewise.
54570         [C99-based-standards] (SCNo8): Likewise.
54571         [C99-based-standards] (SCNu8): Likewise.
54572         [C99-based-standards] (SCNx8): Likewise.
54573         [C99-based-standards] (PRIdLEAST8): Likewise.
54574         [C99-based-standards] (PRIiLEAST8): Likewise.
54575         [C99-based-standards] (PRIoLEAST8): Likewise.
54576         [C99-based-standards] (PRIuLEAST8): Likewise.
54577         [C99-based-standards] (PRIxLEAST8): Likewise.
54578         [C99-based-standards] (PRIXLEAST8): Likewise.
54579         [C99-based-standards] (SCNdLEAST8): Likewise.
54580         [C99-based-standards] (SCNiLEAST8): Likewise.
54581         [C99-based-standards] (SCNoLEAST8): Likewise.
54582         [C99-based-standards] (SCNuLEAST8): Likewise.
54583         [C99-based-standards] (SCNxLEAST8): Likewise.
54584         [C99-based-standards] (PRIdFAST8): Likewise.
54585         [C99-based-standards] (PRIiFAST8): Likewise.
54586         [C99-based-standards] (PRIoFAST8): Likewise.
54587         [C99-based-standards] (PRIuFAST8): Likewise.
54588         [C99-based-standards] (PRIxFAST8): Likewise.
54589         [C99-based-standards] (PRIXFAST8): Likewise.
54590         [C99-based-standards] (SCNdFAST8): Likewise.
54591         [C99-based-standards] (SCNiFAST8): Likewise.
54592         [C99-based-standards] (SCNoFAST8): Likewise.
54593         [C99-based-standards] (SCNuFAST8): Likewise.
54594         [C99-based-standards] (SCNxFAST8): Likewise.
54595         [C99-based-standards] (PRId16): Likewise.
54596         [C99-based-standards] (PRIi16): Likewise.
54597         [C99-based-standards] (PRIo16): Likewise.
54598         [C99-based-standards] (PRIu16): Likewise.
54599         [C99-based-standards] (PRIx16): Likewise.
54600         [C99-based-standards] (PRIX16): Likewise.
54601         [C99-based-standards] (SCNd16): Likewise.
54602         [C99-based-standards] (SCNi16): Likewise.
54603         [C99-based-standards] (SCNo16): Likewise.
54604         [C99-based-standards] (SCNu16): Likewise.
54605         [C99-based-standards] (SCNx16): Likewise.
54606         [C99-based-standards] (PRIdLEAST16): Likewise.
54607         [C99-based-standards] (PRIiLEAST16): Likewise.
54608         [C99-based-standards] (PRIoLEAST16): Likewise.
54609         [C99-based-standards] (PRIuLEAST16): Likewise.
54610         [C99-based-standards] (PRIxLEAST16): Likewise.
54611         [C99-based-standards] (PRIXLEAST16): Likewise.
54612         [C99-based-standards] (SCNdLEAST16): Likewise.
54613         [C99-based-standards] (SCNiLEAST16): Likewise.
54614         [C99-based-standards] (SCNoLEAST16): Likewise.
54615         [C99-based-standards] (SCNuLEAST16): Likewise.
54616         [C99-based-standards] (SCNxLEAST16): Likewise.
54617         [C99-based-standards] (PRIdFAST16): Likewise.
54618         [C99-based-standards] (PRIiFAST16): Likewise.
54619         [C99-based-standards] (PRIoFAST16): Likewise.
54620         [C99-based-standards] (PRIuFAST16): Likewise.
54621         [C99-based-standards] (PRIxFAST16): Likewise.
54622         [C99-based-standards] (PRIXFAST16): Likewise.
54623         [C99-based-standards] (SCNdFAST16): Likewise.
54624         [C99-based-standards] (SCNiFAST16): Likewise.
54625         [C99-based-standards] (SCNoFAST16): Likewise.
54626         [C99-based-standards] (SCNuFAST16): Likewise.
54627         [C99-based-standards] (SCNxFAST16): Likewise.
54628         [C99-based-standards] (PRId32): Likewise.
54629         [C99-based-standards] (PRIi32): Likewise.
54630         [C99-based-standards] (PRIo32): Likewise.
54631         [C99-based-standards] (PRIu32): Likewise.
54632         [C99-based-standards] (PRIx32): Likewise.
54633         [C99-based-standards] (PRIX32): Likewise.
54634         [C99-based-standards] (SCNd32): Likewise.
54635         [C99-based-standards] (SCNi32): Likewise.
54636         [C99-based-standards] (SCNo32): Likewise.
54637         [C99-based-standards] (SCNu32): Likewise.
54638         [C99-based-standards] (SCNx32): Likewise.
54639         [C99-based-standards] (PRIdLEAST32): Likewise.
54640         [C99-based-standards] (PRIiLEAST32): Likewise.
54641         [C99-based-standards] (PRIoLEAST32): Likewise.
54642         [C99-based-standards] (PRIuLEAST32): Likewise.
54643         [C99-based-standards] (PRIxLEAST32): Likewise.
54644         [C99-based-standards] (PRIXLEAST32): Likewise.
54645         [C99-based-standards] (SCNdLEAST32): Likewise.
54646         [C99-based-standards] (SCNiLEAST32): Likewise.
54647         [C99-based-standards] (SCNoLEAST32): Likewise.
54648         [C99-based-standards] (SCNuLEAST32): Likewise.
54649         [C99-based-standards] (SCNxLEAST32): Likewise.
54650         [C99-based-standards] (PRIdFAST32): Likewise.
54651         [C99-based-standards] (PRIiFAST32): Likewise.
54652         [C99-based-standards] (PRIoFAST32): Likewise.
54653         [C99-based-standards] (PRIuFAST32): Likewise.
54654         [C99-based-standards] (PRIxFAST32): Likewise.
54655         [C99-based-standards] (PRIXFAST32): Likewise.
54656         [C99-based-standards] (SCNdFAST32): Likewise.
54657         [C99-based-standards] (SCNiFAST32): Likewise.
54658         [C99-based-standards] (SCNoFAST32): Likewise.
54659         [C99-based-standards] (SCNuFAST32): Likewise.
54660         [C99-based-standards] (SCNxFAST32): Likewise.
54661         [C99-based-standards] (PRId64): Likewise.
54662         [C99-based-standards] (PRIi64): Likewise.
54663         [C99-based-standards] (PRIo64): Likewise.
54664         [C99-based-standards] (PRIu64): Likewise.
54665         [C99-based-standards] (PRIx64): Likewise.
54666         [C99-based-standards] (PRIX64): Likewise.
54667         [C99-based-standards] (SCNd64): Likewise.
54668         [C99-based-standards] (SCNi64): Likewise.
54669         [C99-based-standards] (SCNo64): Likewise.
54670         [C99-based-standards] (SCNu64): Likewise.
54671         [C99-based-standards] (SCNx64): Likewise.
54672         [C99-based-standards] (PRIdLEAST64): Likewise.
54673         [C99-based-standards] (PRIiLEAST64): Likewise.
54674         [C99-based-standards] (PRIoLEAST64): Likewise.
54675         [C99-based-standards] (PRIuLEAST64): Likewise.
54676         [C99-based-standards] (PRIxLEAST64): Likewise.
54677         [C99-based-standards] (PRIXLEAST64): Likewise.
54678         [C99-based-standards] (SCNdLEAST64): Likewise.
54679         [C99-based-standards] (SCNiLEAST64): Likewise.
54680         [C99-based-standards] (SCNoLEAST64): Likewise.
54681         [C99-based-standards] (SCNuLEAST64): Likewise.
54682         [C99-based-standards] (SCNxLEAST64): Likewise.
54683         [C99-based-standards] (PRIdFAST64): Likewise.
54684         [C99-based-standards] (PRIiFAST64): Likewise.
54685         [C99-based-standards] (PRIoFAST64): Likewise.
54686         [C99-based-standards] (PRIuFAST64): Likewise.
54687         [C99-based-standards] (PRIxFAST64): Likewise.
54688         [C99-based-standards] (PRIXFAST64): Likewise.
54689         [C99-based-standards] (SCNdFAST64): Likewise.
54690         [C99-based-standards] (SCNiFAST64): Likewise.
54691         [C99-based-standards] (SCNoFAST64): Likewise.
54692         [C99-based-standards] (SCNuFAST64): Likewise.
54693         [C99-based-standards] (SCNxFAST64): Likewise.
54694         [C99-based-standards] (PRIdMAX): Likewise.
54695         [C99-based-standards] (PRIiMAX): Likewise.
54696         [C99-based-standards] (PRIoMAX): Likewise.
54697         [C99-based-standards] (PRIuMAX): Likewise.
54698         [C99-based-standards] (PRIxMAX): Likewise.
54699         [C99-based-standards] (PRIXMAX): Likewise.
54700         [C99-based-standards] (SCNdMAX): Likewise.
54701         [C99-based-standards] (SCNiMAX): Likewise.
54702         [C99-based-standards] (SCNoMAX): Likewise.
54703         [C99-based-standards] (SCNuMAX): Likewise.
54704         [C99-based-standards] (SCNxMAX): Likewise.
54705         [C99-based-standards] (PRIdPTR): Likewise.
54706         [C99-based-standards] (PRIiPTR): Likewise.
54707         [C99-based-standards] (PRIoPTR): Likewise.
54708         [C99-based-standards] (PRIuPTR): Likewise.
54709         [C99-based-standards] (PRIxPTR): Likewise.
54710         [C99-based-standards] (PRIXPTR): Likewise.
54711         [C99-based-standards] (SCNdPTR): Likewise.
54712         [C99-based-standards] (SCNiPTR): Likewise.
54713         [C99-based-standards] (SCNoPTR): Likewise.
54714         [C99-based-standards] (SCNuPTR): Likewise.
54715         [C99-based-standards] (SCNxPTR): Likewise.
54716         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
54717         allow.
54718         * conform/data/stdint.h-data: Update comments to clarify
54719         requirements.
54720         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
54721         type.
54722         [C99-based standards] (INT8_MAX): Likewise.
54723         [C99-based standards] (INT16_MIN): Likewise.
54724         [C99-based standards] (INT16_MAX): Likewise.
54725         [C99-based standards] (INT32_MIN): Likewise.
54726         [C99-based standards] (INT32_MAX): Likewise.
54727         [C99-based standards] (INT64_MIN): Likewise.
54728         [C99-based standards] (INT64_MAX): Likewise.
54729         [C99-based standards] (UINT8_MAX): Likewise.
54730         [C99-based standards] (UINT16_MAX): Likewise.
54731         [C99-based standards] (UINT32_MAX): Likewise.
54732         [C99-based standards] (UINT64_MAX): Likewise.
54733         [C99-based standards] (INT_LEAST8_MIN): Likewise.
54734         [C99-based standards] (INT_LEAST8_MAX): Likewise.
54735         [C99-based standards] (INT_LEAST16_MIN): Likewise.
54736         [C99-based standards] (INT_LEAST16_MAX): Likewise.
54737         [C99-based standards] (INT_LEAST32_MIN): Likewise.
54738         [C99-based standards] (INT_LEAST32_MAX): Likewise.
54739         [C99-based standards] (INT_LEAST64_MIN): Likewise.
54740         [C99-based standards] (INT_LEAST64_MAX): Likewise.
54741         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
54742         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
54743         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
54744         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
54745         [C99-based standards] (INT_FAST8_MIN): Likewise.
54746         [C99-based standards] (INT_FAST8_MAX): Likewise.
54747         [C99-based standards] (INT_FAST16_MIN): Likewise.
54748         [C99-based standards] (INT_FAST16_MAX): Likewise.
54749         [C99-based standards] (INT_FAST32_MIN): Likewise.
54750         [C99-based standards] (INT_FAST32_MAX): Likewise.
54751         [C99-based standards] (INT_FAST64_MIN): Likewise.
54752         [C99-based standards] (INT_FAST64_MAX): Likewise.
54753         [C99-based standards] (UINT_FAST8_MAX): Likewise.
54754         [C99-based standards] (UINT_FAST16_MAX): Likewise.
54755         [C99-based standards] (UINT_FAST32_MAX): Likewise.
54756         [C99-based standards] (UINT_FAST64_MAX): Likewise.
54757         [C99-based standards] (INTPTR_MIN): Likewise.
54758         [C99-based standards] (INTPTR_MAX): Likewise.
54759         [C99-based standards] (UINTPTR_MAX): Likewise.
54760         [C99-based standards] (INTMAX_MIN): Likewise.
54761         [C99-based standards] (INTMAX_MAX): Likewise.
54762         [C99-based standards] (UINTMAX_MAX): Likewise.
54763         [C99-based standards] (PTRDIFF_MIN): Likewise.
54764         [C99-based standards] (PTRDIFF_MAX): Likewise.
54765         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
54766         [C99-based standards] (SIZE_MAX): Likewise.
54767         [C99-based standards] (WCHAR_MAX): Likewise.
54768         [C99-based standards] (WINT_MAX): Likewise.
54769         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
54770         constraint on value.
54771         [C99-based standards] (WCHAR_MIN): Likewise.
54772         [C99-based standards] (WINT_MIN): Likewise.
54773         [C99-based standards] (*_t): Allow.
54774         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
54775         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
54776         Include math.h-data and complex.h-data.  Remove all expectations
54777         of math.h and complex.h contents.
54778         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
54779         at end of line.
54780         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
54781         (struct tm): Expect tag.
54782         [C99-based-standards] (wcstof): Expect function.
54783         [C99-based-standards] (wcstold): Likewise.
54784         [C99-based-standards] (wcstoll): Likewise.
54785         [C99-based-standards] (wcstoull): Likewise.
54786         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
54787         macro-int-constant.  Specify type.
54788         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
54789         constraint on value.
54790         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54791         Specify type.
54792         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
54793         Specify value.
54794         [ISO C standards]: Do not allow headers.
54795         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
54796         wcs[abcdefghijklmnopqrstuvwxyz]*.
54797         [ISO C standards] (*_t): Do not allow.
54798         * conform/data/wctype.h-data [C99-based standards] (iswblank):
54799         Expect function.
54800         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
54801         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54802         Specify type.
54803         [ISO C standards]: Do not allow headers.
54804         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
54805         is[abcdefghijklmnopqrstuvwxyz]*.
54806         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
54807         to[abcdefghijklmnopqrstuvwxyz]*.
54808         [ISO C standards] (*_t): Do not allow.
54809         * conform/data/stdalign.h-data: New file.
54810         * conform/data/stdbool.h-data: Likewise.
54811         * conform/data/stdnoreturn.h-data: Likewise.
54812
54813 2012-11-07  Roland McGrath  <roland@hack.frob.com>
54814
54815         [BZ #14815]
54816         * manual/filesys.texi (Directory Entries): Typo fix.
54817         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
54818
54819 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54820
54821         * elf/elf.h (EM_AARCH64): New macro.
54822         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
54823         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
54824         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
54825         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
54826         (R_AARCH64_TLSDESC): Likewise.
54827         (NT_ARM_TLS): Likewise.
54828         (NT_ARM_HW_BREAK): Likewise.
54829         (NT_ARM_HW_WATCH): Likewise.
54830
54831 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54832
54833         [BZ #14811]
54834         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
54835         (__ieee754_powl): Saturate nonzero exponents with absolute value
54836         below 0x1p-79 to +/- 0x1p-79.
54837         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
54838         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
54839         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
54840         nonzero exponents with absolute value below 0x1p-32 to +/-
54841         0x1p-32.
54842         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
54843         (__ieee754_powl): Saturate nonzero exponents with absolute value
54844         below 0x1p-79 to +/- 0x1p-79.
54845         * math/libm-test.inc (pow_test): Add more tests.
54846
54847 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54848
54849         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
54850         _dl_s390_cap_flags with kernel. Increase string length.
54851         (_dl_s390_platforms): Add z196 and zEC12.
54852
54853 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54854
54855         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
54856         Change XOPEN21K to XOPEN2K.
54857
54858 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
54859
54860         * string/memmove.c: Use memcpy when possible.
54861
54862 2012-11-06  Andreas Jaeger  <aj@suse.de>
54863
54864         * po/eo.po: Update from translation team.
54865
54866 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
54867
54868         [BZ #14793]
54869         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
54870         exponent and small x and y exponents, scale x or y up.  Increase
54871         by 2 the exponent used in scaling up.
54872         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
54873         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
54874         * math/libm-test.inc (fma_test): Add more tests.
54875         (fma_test_towardzero): Likewise.
54876         (fma_test_downward): Likewise.
54877         (fma_test_upward): Likewise.
54878
54879 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
54880
54881         [BZ #14805]
54882         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
54883         fenv_t *.
54884
54885         [BZ #14801]
54886         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
54887         namespace for names of struct fields.
54888         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
54889         fenv_t fields.
54890         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
54891         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
54892
54893 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
54894
54895         [BZ #3665]
54896         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
54897
54898 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
54899
54900         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
54901         PTR_DEMANGLE.
54902
54903         [BZ #5246]
54904         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
54905         PTR_DEMANGLE.
54906
54907 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
54908
54909         [BZ #14797]
54910         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
54911         definitely overflow as x * y not x * y + z.
54912         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
54913         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
54914         * math/libm-test.inc (fma_test): Add more tests.
54915         (fma_test_towardzero): Likewise.
54916         (fma_test_downward): Likewise.
54917         (fma_test_upward): Likewise.
54918
54919 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
54920
54921         [BZ #157]
54922
54923         * include/stub-tag.h: Remove file.
54924         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
54925         '#include' of it.
54926         * manual/maint.texi (Porting): Don't reference it.
54927         * Makerules ($(objpfx)stubs): Likewise.
54928         * dirent/closedir.c: Don't include <stub-tag.h>.
54929         * dirent/dirfd.c: Likewise.
54930         * dirent/fdopendir.c: Likewise.
54931         * dirent/getdents.c: Likewise.
54932         * dirent/getdents64.c: Likewise.
54933         * dirent/opendir.c: Likewise.
54934         * dirent/readdir.c: Likewise.
54935         * dirent/readdir64.c: Likewise.
54936         * dirent/readdir64_r.c: Likewise.
54937         * dirent/readdir_r.c: Likewise.
54938         * dirent/rewinddir.c: Likewise.
54939         * dirent/seekdir.c: Likewise.
54940         * dirent/telldir.c: Likewise.
54941         * gmon/profil.c: Likewise.
54942         * grp/setgroups.c: Likewise.
54943         * inet/if_index.c: Likewise.
54944         * io/access.c: Likewise.
54945         * io/chdir.c: Likewise.
54946         * io/chmod.c: Likewise.
54947         * io/chown.c: Likewise.
54948         * io/close.c: Likewise.
54949         * io/dup.c: Likewise.
54950         * io/dup2.c: Likewise.
54951         * io/dup3.c: Likewise.
54952         * io/euidaccess.c: Likewise.
54953         * io/faccessat.c: Likewise.
54954         * io/fchdir.c: Likewise.
54955         * io/fchmod.c: Likewise.
54956         * io/fchmodat.c: Likewise.
54957         * io/fchown.c: Likewise.
54958         * io/fchownat.c: Likewise.
54959         * io/fcntl.c: Likewise.
54960         * io/flock.c: Likewise.
54961         * io/fstatfs.c: Likewise.
54962         * io/fstatfs64.c: Likewise.
54963         * io/fstatvfs.c: Likewise.
54964         * io/fstatvfs64.c: Likewise.
54965         * io/futimens.c: Likewise.
54966         * io/fxstat.c: Likewise.
54967         * io/fxstat64.c: Likewise.
54968         * io/fxstatat.c: Likewise.
54969         * io/fxstatat64.c: Likewise.
54970         * io/getcwd.c: Likewise.
54971         * io/isatty.c: Likewise.
54972         * io/lchmod.c: Likewise.
54973         * io/lchown.c: Likewise.
54974         * io/link.c: Likewise.
54975         * io/linkat.c: Likewise.
54976         * io/lseek.c: Likewise.
54977         * io/lseek64.c: Likewise.
54978         * io/lxstat64.c: Likewise.
54979         * io/mkdir.c: Likewise.
54980         * io/mkdirat.c: Likewise.
54981         * io/mkfifo.c: Likewise.
54982         * io/mkfifoat.c: Likewise.
54983         * io/open.c: Likewise.
54984         * io/open64.c: Likewise.
54985         * io/openat.c: Likewise.
54986         * io/openat64.c: Likewise.
54987         * io/pipe.c: Likewise.
54988         * io/pipe2.c: Likewise.
54989         * io/poll.c: Likewise.
54990         * io/posix_fadvise.c: Likewise.
54991         * io/posix_fadvise64.c: Likewise.
54992         * io/posix_fallocate.c: Likewise.
54993         * io/posix_fallocate64.c: Likewise.
54994         * io/read.c: Likewise.
54995         * io/readlink.c: Likewise.
54996         * io/readlinkat.c: Likewise.
54997         * io/rmdir.c: Likewise.
54998         * io/sendfile.c: Likewise.
54999         * io/sendfile64.c: Likewise.
55000         * io/statfs.c: Likewise.
55001         * io/statfs64.c: Likewise.
55002         * io/statvfs.c: Likewise.
55003         * io/statvfs64.c: Likewise.
55004         * io/symlink.c: Likewise.
55005         * io/symlinkat.c: Likewise.
55006         * io/ttyname.c: Likewise.
55007         * io/ttyname_r.c: Likewise.
55008         * io/umask.c: Likewise.
55009         * io/unlink.c: Likewise.
55010         * io/unlinkat.c: Likewise.
55011         * io/utime.c: Likewise.
55012         * io/utimensat.c: Likewise.
55013         * io/write.c: Likewise.
55014         * io/xmknod.c: Likewise.
55015         * io/xmknodat.c: Likewise.
55016         * io/xstat.c: Likewise.
55017         * io/xstat64.c: Likewise.
55018         * login/getpt.c: Likewise.
55019         * login/grantpt.c: Likewise.
55020         * login/unlockpt.c: Likewise.
55021         * math/e_acoshl.c: Likewise.
55022         * math/e_acosl.c: Likewise.
55023         * math/e_asinl.c: Likewise.
55024         * math/e_atan2l.c: Likewise.
55025         * math/e_atanhl.c: Likewise.
55026         * math/e_coshl.c: Likewise.
55027         * math/e_expl.c: Likewise.
55028         * math/e_fmodl.c: Likewise.
55029         * math/e_gammal_r.c: Likewise.
55030         * math/e_hypotl.c: Likewise.
55031         * math/e_j0l.c: Likewise.
55032         * math/e_j1l.c: Likewise.
55033         * math/e_jnl.c: Likewise.
55034         * math/e_lgammal_r.c: Likewise.
55035         * math/e_log10l.c: Likewise.
55036         * math/e_log2l.c: Likewise.
55037         * math/e_logl.c: Likewise.
55038         * math/e_powl.c: Likewise.
55039         * math/e_rem_pio2l.c: Likewise.
55040         * math/e_sinhl.c: Likewise.
55041         * math/e_sqrtl.c: Likewise.
55042         * math/fclrexcpt.c: Likewise.
55043         * math/fedisblxcpt.c: Likewise.
55044         * math/feenablxcpt.c: Likewise.
55045         * math/fegetenv.c: Likewise.
55046         * math/fegetexcept.c: Likewise.
55047         * math/fegetround.c: Likewise.
55048         * math/feholdexcpt.c: Likewise.
55049         * math/fesetenv.c: Likewise.
55050         * math/fesetround.c: Likewise.
55051         * math/feupdateenv.c: Likewise.
55052         * math/fgetexcptflg.c: Likewise.
55053         * math/fraiseexcpt.c: Likewise.
55054         * math/fsetexcptflg.c: Likewise.
55055         * math/ftestexcept.c: Likewise.
55056         * math/k_cosl.c: Likewise.
55057         * math/k_rem_pio2l.c: Likewise.
55058         * math/k_sinl.c: Likewise.
55059         * math/k_tanl.c: Likewise.
55060         * math/s_asinhl.c: Likewise.
55061         * math/s_atanl.c: Likewise.
55062         * math/s_cbrtl.c: Likewise.
55063         * math/s_erfl.c: Likewise.
55064         * math/s_expm1l.c: Likewise.
55065         * math/s_log1pl.c: Likewise.
55066         * math/s_tanhl.c: Likewise.
55067         * misc/acct.c: Likewise.
55068         * misc/brk.c: Likewise.
55069         * misc/chflags.c: Likewise.
55070         * misc/chroot.c: Likewise.
55071         * misc/fchflags.c: Likewise.
55072         * misc/fgetxattr.c: Likewise.
55073         * misc/flistxattr.c: Likewise.
55074         * misc/fremovexattr.c: Likewise.
55075         * misc/fsetxattr.c: Likewise.
55076         * misc/fsync.c: Likewise.
55077         * misc/ftruncate.c: Likewise.
55078         * misc/futimes.c: Likewise.
55079         * misc/futimesat.c: Likewise.
55080         * misc/getdomain.c: Likewise.
55081         * misc/getdtsz.c: Likewise.
55082         * misc/gethostid.c: Likewise.
55083         * misc/gethostname.c: Likewise.
55084         * misc/getloadavg.c: Likewise.
55085         * misc/getpagesize.c: Likewise.
55086         * misc/getsysstats.c: Likewise.
55087         * misc/getxattr.c: Likewise.
55088         * misc/gtty.c: Likewise.
55089         * misc/ioctl.c: Likewise.
55090         * misc/lgetxattr.c: Likewise.
55091         * misc/listxattr.c: Likewise.
55092         * misc/llistxattr.c: Likewise.
55093         * misc/lremovexattr.c: Likewise.
55094         * misc/lsetxattr.c: Likewise.
55095         * misc/lutimes.c: Likewise.
55096         * misc/madvise.c: Likewise.
55097         * misc/mincore.c: Likewise.
55098         * misc/mlock.c: Likewise.
55099         * misc/mlockall.c: Likewise.
55100         * misc/mmap.c: Likewise.
55101         * misc/mprotect.c: Likewise.
55102         * misc/msync.c: Likewise.
55103         * misc/munlock.c: Likewise.
55104         * misc/munlockall.c: Likewise.
55105         * misc/munmap.c: Likewise.
55106         * misc/preadv.c: Likewise.
55107         * misc/preadv64.c: Likewise.
55108         * misc/ptrace.c: Likewise.
55109         * misc/pwritev.c: Likewise.
55110         * misc/pwritev64.c: Likewise.
55111         * misc/readv.c: Likewise.
55112         * misc/reboot.c: Likewise.
55113         * misc/remap_file_pages.c: Likewise.
55114         * misc/removexattr.c: Likewise.
55115         * misc/revoke.c: Likewise.
55116         * misc/select.c: Likewise.
55117         * misc/setdomain.c: Likewise.
55118         * misc/setegid.c: Likewise.
55119         * misc/seteuid.c: Likewise.
55120         * misc/sethostid.c: Likewise.
55121         * misc/sethostname.c: Likewise.
55122         * misc/setregid.c: Likewise.
55123         * misc/setreuid.c: Likewise.
55124         * misc/setxattr.c: Likewise.
55125         * misc/sstk.c: Likewise.
55126         * misc/stty.c: Likewise.
55127         * misc/swapoff.c: Likewise.
55128         * misc/swapon.c: Likewise.
55129         * misc/sync.c: Likewise.
55130         * misc/syncfs.c: Likewise.
55131         * misc/syscall.c: Likewise.
55132         * misc/truncate.c: Likewise.
55133         * misc/ualarm.c: Likewise.
55134         * misc/usleep.c: Likewise.
55135         * misc/ustat.c: Likewise.
55136         * misc/utimes.c: Likewise.
55137         * misc/vhangup.c: Likewise.
55138         * misc/writev.c: Likewise.
55139         * posix/_exit.c: Likewise.
55140         * posix/alarm.c: Likewise.
55141         * posix/execve.c: Likewise.
55142         * posix/fexecve.c: Likewise.
55143         * posix/fork.c: Likewise.
55144         * posix/fpathconf.c: Likewise.
55145         * posix/getaddrinfo.c: Likewise.
55146         * posix/getegid.c: Likewise.
55147         * posix/geteuid.c: Likewise.
55148         * posix/getgid.c: Likewise.
55149         * posix/getgroups.c: Likewise.
55150         * posix/getlogin.c: Likewise.
55151         * posix/getlogin_r.c: Likewise.
55152         * posix/getpgid.c: Likewise.
55153         * posix/getpid.c: Likewise.
55154         * posix/getppid.c: Likewise.
55155         * posix/getresgid.c: Likewise.
55156         * posix/getresuid.c: Likewise.
55157         * posix/getsid.c: Likewise.
55158         * posix/getuid.c: Likewise.
55159         * posix/glob64.c: Likewise.
55160         * posix/nanosleep.c: Likewise.
55161         * posix/pathconf.c: Likewise.
55162         * posix/pause.c: Likewise.
55163         * posix/posix_madvise.c: Likewise.
55164         * posix/pread.c: Likewise.
55165         * posix/pread64.c: Likewise.
55166         * posix/pwrite.c: Likewise.
55167         * posix/pwrite64.c: Likewise.
55168         * posix/sched_getaffinity.c: Likewise.
55169         * posix/sched_getp.c: Likewise.
55170         * posix/sched_gets.c: Likewise.
55171         * posix/sched_primax.c: Likewise.
55172         * posix/sched_primin.c: Likewise.
55173         * posix/sched_rr_gi.c: Likewise.
55174         * posix/sched_setaffinity.c: Likewise.
55175         * posix/sched_setp.c: Likewise.
55176         * posix/sched_sets.c: Likewise.
55177         * posix/sched_yield.c: Likewise.
55178         * posix/setgid.c: Likewise.
55179         * posix/setlogin.c: Likewise.
55180         * posix/setpgid.c: Likewise.
55181         * posix/setresgid.c: Likewise.
55182         * posix/setresuid.c: Likewise.
55183         * posix/setsid.c: Likewise.
55184         * posix/setuid.c: Likewise.
55185         * posix/sleep.c: Likewise.
55186         * posix/spawni.c: Likewise.
55187         * posix/sysconf.c: Likewise.
55188         * posix/times.c: Likewise.
55189         * posix/wait.c: Likewise.
55190         * posix/wait3.c: Likewise.
55191         * posix/wait4.c: Likewise.
55192         * posix/waitpid.c: Likewise.
55193         * resolv/gai_sigqueue.c: Likewise.
55194         * resource/getpriority.c: Likewise.
55195         * resource/getrlimit.c: Likewise.
55196         * resource/getrusage.c: Likewise.
55197         * resource/nice.c: Likewise.
55198         * resource/setpriority.c: Likewise.
55199         * resource/setrlimit.c: Likewise.
55200         * resource/ulimit.c: Likewise.
55201         * rt/aio_cancel.c: Likewise.
55202         * rt/aio_fsync.c: Likewise.
55203         * rt/aio_read.c: Likewise.
55204         * rt/aio_sigqueue.c: Likewise.
55205         * rt/aio_suspend.c: Likewise.
55206         * rt/aio_write.c: Likewise.
55207         * rt/clock_getres.c: Likewise.
55208         * rt/clock_gettime.c: Likewise.
55209         * rt/clock_nanosleep.c: Likewise.
55210         * rt/clock_settime.c: Likewise.
55211         * rt/lio_listio.c: Likewise.
55212         * rt/mq_close.c: Likewise.
55213         * rt/mq_getattr.c: Likewise.
55214         * rt/mq_notify.c: Likewise.
55215         * rt/mq_open.c: Likewise.
55216         * rt/mq_receive.c: Likewise.
55217         * rt/mq_send.c: Likewise.
55218         * rt/mq_setattr.c: Likewise.
55219         * rt/mq_timedreceive.c: Likewise.
55220         * rt/mq_timedsend.c: Likewise.
55221         * rt/mq_unlink.c: Likewise.
55222         * rt/shm_open.c: Likewise.
55223         * rt/shm_unlink.c: Likewise.
55224         * rt/timer_create.c: Likewise.
55225         * rt/timer_delete.c: Likewise.
55226         * rt/timer_getoverr.c: Likewise.
55227         * rt/timer_gettime.c: Likewise.
55228         * rt/timer_settime.c: Likewise.
55229         * setjmp/__longjmp.c: Likewise.
55230         * setjmp/setjmp.c: Likewise.
55231         * signal/kill.c: Likewise.
55232         * signal/killpg.c: Likewise.
55233         * signal/raise.c: Likewise.
55234         * signal/sigaction.c: Likewise.
55235         * signal/sigaltstack.c: Likewise.
55236         * signal/sigblock.c: Likewise.
55237         * signal/sigignore.c: Likewise.
55238         * signal/sigintr.c: Likewise.
55239         * signal/signal.c: Likewise.
55240         * signal/sigpause.c: Likewise.
55241         * signal/sigpending.c: Likewise.
55242         * signal/sigqueue.c: Likewise.
55243         * signal/sigreturn.c: Likewise.
55244         * signal/sigset.c: Likewise.
55245         * signal/sigsetmask.c: Likewise.
55246         * signal/sigstack.c: Likewise.
55247         * signal/sigsuspend.c: Likewise.
55248         * signal/sigtimedwait.c: Likewise.
55249         * signal/sigvec.c: Likewise.
55250         * signal/sigwait.c: Likewise.
55251         * signal/sigwaitinfo.c: Likewise.
55252         * signal/sysv_signal.c: Likewise.
55253         * socket/accept.c: Likewise.
55254         * socket/accept4.c: Likewise.
55255         * socket/bind.c: Likewise.
55256         * socket/connect.c: Likewise.
55257         * socket/getpeername.c: Likewise.
55258         * socket/getsockname.c: Likewise.
55259         * socket/getsockopt.c: Likewise.
55260         * socket/isfdtype.c: Likewise.
55261         * socket/listen.c: Likewise.
55262         * socket/recv.c: Likewise.
55263         * socket/recvfrom.c: Likewise.
55264         * socket/recvmsg.c: Likewise.
55265         * socket/send.c: Likewise.
55266         * socket/sendmsg.c: Likewise.
55267         * socket/sendto.c: Likewise.
55268         * socket/setsockopt.c: Likewise.
55269         * socket/shutdown.c: Likewise.
55270         * socket/sockatmark.c: Likewise.
55271         * socket/socket.c: Likewise.
55272         * socket/socketpair.c: Likewise.
55273         * stdio-common/ctermid.c: Likewise.
55274         * stdio-common/cuserid.c: Likewise.
55275         * stdio-common/remove.c: Likewise.
55276         * stdio-common/rename.c: Likewise.
55277         * stdio-common/renameat.c: Likewise.
55278         * stdio-common/tempname.c: Likewise.
55279         * stdlib/getcontext.c: Likewise.
55280         * stdlib/makecontext.c: Likewise.
55281         * stdlib/setcontext.c: Likewise.
55282         * stdlib/swapcontext.c: Likewise.
55283         * stdlib/system.c: Likewise.
55284         * streams/fattach.c: Likewise.
55285         * streams/fdetach.c: Likewise.
55286         * streams/getmsg.c: Likewise.
55287         * streams/getpmsg.c: Likewise.
55288         * streams/putmsg.c: Likewise.
55289         * streams/putpmsg.c: Likewise.
55290         * sysdeps/unix/bsd/getpt.c: Likewise.
55291         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55292         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55293         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55295         Likewise.
55296         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55297         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55298         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55299         * sysvipc/msgctl.c: Likewise.
55300         * sysvipc/msgget.c: Likewise.
55301         * sysvipc/msgrcv.c: Likewise.
55302         * sysvipc/msgsnd.c: Likewise.
55303         * sysvipc/semctl.c: Likewise.
55304         * sysvipc/semget.c: Likewise.
55305         * sysvipc/semop.c: Likewise.
55306         * sysvipc/semtimedop.c: Likewise.
55307         * sysvipc/shmat.c: Likewise.
55308         * sysvipc/shmctl.c: Likewise.
55309         * sysvipc/shmdt.c: Likewise.
55310         * sysvipc/shmget.c: Likewise.
55311         * termios/tcdrain.c: Likewise.
55312         * termios/tcflow.c: Likewise.
55313         * termios/tcflush.c: Likewise.
55314         * termios/tcgetattr.c: Likewise.
55315         * termios/tcgetpgrp.c: Likewise.
55316         * termios/tcsendbrk.c: Likewise.
55317         * termios/tcsetattr.c: Likewise.
55318         * termios/tcsetpgrp.c: Likewise.
55319         * time/adjtime.c: Likewise.
55320         * time/clock.c: Likewise.
55321         * time/getitimer.c: Likewise.
55322         * time/gettimeofday.c: Likewise.
55323         * time/setitimer.c: Likewise.
55324         * time/settimeofday.c: Likewise.
55325         * time/stime.c: Likewise.
55326         * time/time.c: Likewise.
55327
55328 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55329
55330         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55331         /usr/old/bin.
55332
55333         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55334         instead of spaces.
55335         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55336
55337 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55338
55339         [BZ #14796]
55340         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55341         FE_TONEAREST before applying Dekker multiplication and Knuth
55342         addition.  Clear inexact exceptions and check for exact zero
55343         results afterwards.
55344         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55345         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55346         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55347         * math/libm-test.inc (fma_test): Add more tests.
55348         (fma_test_towardzero): Likewise.
55349         (fma_test_downward): Likewise.
55350         (fma_test_upward): Likewise.
55351         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55352         function.
55353         (libc_fesetround): New macro.
55354         (libc_fesetroundf): Likewise.
55355         (libc_fesetroundl): Likewise.
55356         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55357         function.
55358         (libc_fesetround_387): Likewise.
55359         (libc_fesetroundf): New macro.
55360         (libc_fesetround): Likewise.
55361         (libc_fesetroundl): Likewise.
55362         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55363         function.
55364         (libc_fesetroundf): New macro.
55365         (libc_fesetround): Likewise.
55366         (libc_fesetroundl): Likewise.
55367         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55368         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55369         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55370         libm_hidden_ver.
55371         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55372         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55373         libm_hidden_def.
55374         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55375         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55376         libm_hidden_ver.
55377         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55378         libm_hidden_def.
55379
55380         [BZ #3439]
55381         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55382         integer constant usable in #if and use that to give value to enum
55383         constant.
55384         (FE_DIVBYZERO): Likewise.
55385         (FE_UNDERFLOW): Likewise.
55386         (FE_OVERFLOW): Likewise.
55387         (FE_INVALID): Likewise.
55388         (FE_INVALID_SNAN): Likewise.
55389         (FE_INVALID_ISI): Likewise.
55390         (FE_INVALID_IDI): Likewise.
55391         (FE_INVALID_ZDZ): Likewise.
55392         (FE_INVALID_IMZ): Likewise.
55393         (FE_INVALID_COMPARE): Likewise.
55394         (FE_INVALID_SOFTWARE): Likewise.
55395         (FE_INVALID_SQRT): Likewise.
55396         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55397         (FE_TONEAREST): Likewise.
55398         (FE_TOWARDZERO): Likewise.
55399         (FE_UPWARD): Likewise.
55400         (FE_DOWNWARD): Likewise.
55401         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55402         (FE_DIVBYZERO): Likewise.
55403         (FE_OVERFLOW): Likewise.
55404         (FE_UNDERFLOW): Likewise.
55405         (FE_INEXACT): Likewise.
55406         (FE_TONEAREST): Likewise.
55407         (FE_DOWNWARD): Likewise.
55408         (FE_UPWARD): Likewise.
55409         (FE_TOWARDZERO): Likewise.
55410         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55411         (FE_UNDERFLOW): Likewise.
55412         (FE_OVERFLOW): Likewise.
55413         (FE_DIVBYZERO): Likewise.
55414         (FE_INVALID): Likewise.
55415         (FE_TONEAREST): Likewise.
55416         (FE_TOWARDZERO): Likewise.
55417         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55418         (FE_OVERFLOW): Likewise.
55419         (FE_UNDERFLOW): Likewise.
55420         (FE_DIVBYZERO): Likewise.
55421         (FE_INEXACT): Likewise.
55422         (FE_TONEAREST): Likewise.
55423         (FE_TOWARDZERO): Likewise.
55424         (FE_UPWARD): Likewise.
55425         (FE_DOWNWARD): Likewise.
55426         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55427         (FE_DIVBYZERO): Likewise.
55428         (FE_OVERFLOW): Likewise.
55429         (FE_UNDERFLOW): Likewise.
55430         (FE_INEXACT): Likewise.
55431         (FE_TONEAREST): Likewise.
55432         (FE_DOWNWARD): Likewise.
55433         (FE_UPWARD): Likewise.
55434         (FE_TOWARDZERO): Likewise.
55435
55436 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55437
55438         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55439
55440 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55441
55442         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55443         commands.  Quote $PWD.
55444         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55445         -x" by "export".
55446         (remove_newlines): Remove.
55447
55448 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55449
55450         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55451         * stdlib/stdlib.h (atof): Moved to ...
55452         * include/bits/stdlib-float.h: Here.  New file.
55453         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55454         * stdlib/bits/stdlib-float.h: New file.
55455         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55456         -mno-sse -mno-mmx.
55457         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55458         <xmmintrin.h>.
55459
55460 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55461
55462         * conform/conformtest.pl (@headers): Add fenv.h.
55463         * conform/data/fenv.h-data: New file.
55464         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55465         include of <math/fenv.h>.
55466
55467         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55468         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55469         && !UNIX98].  Enables tests for XOPEN2K8.
55470         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55471         POSIX2008]: Likewise.
55472
55473         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55474         (struct rusage): Do not expect type or its members.
55475
55476         [BZ #3439]
55477         * math/math.h (FP_NAN): Define macro to integer constant usable in
55478         #if and use that to give value to enum constant.
55479         (FP_INFINITE): Likewise.
55480         (FP_ZERO): Likewise.
55481         (FP_SUBNORMAL): Likewise.
55482         (FP_NORMAL): Likewise.
55483
55484 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55485
55486         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55487         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55488         arguments.
55489
55490 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55491
55492         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55493         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55494         autoconf-time if not.
55495         * configure.in: Remove AC_PREREQ.
55496
55497 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55498
55499         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55500         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55501         of the internal implementation.
55502
55503 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55504
55505         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55506         except include of <misc/sys/syslog.h>.
55507
55508 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55509
55510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55511         function returns with a NULL context exit with zero.
55512
55513 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55514
55515         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55516
55517 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55518
55519         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55520         (run_program_cmd): This.
55521         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55522         (tst_langinfo): New variable.  Use it.
55523
55524 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55525
55526         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55527         floating point opcodes.
55528
55529 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55530
55531         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55532         variable.
55533
55534         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55535
55536         * sysdeps/mach/hurd/powerpc: Remove directory.
55537         * sysdeps/mach/powerpc: Likewise.
55538
55539 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55540
55541         * scripts/check-local-headers.sh: Ignore c++ headers.
55542
55543 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55544
55545         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55546         __libc_cleanup_region_start argument.
55547
55548 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55549
55550         [BZ #14784]
55551         [BZ #14785]
55552         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
55553         x * y using scaling, not as x * y + z.
55554         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55555         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55556         * math/libm-test.inc (fma_test): Add more tests.
55557         (fma_test_towardzero): Likewise.
55558         (fma_test_downward): Likewise.
55559         (fma_test_upward): Likewise.
55560
55561 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55562
55563         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
55564
55565 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55566
55567         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
55568         New variable.
55569
55570 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
55571
55572         * rt/tst-shm.c (worker): Correct checking for mmap failure.
55573
55574 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55575
55576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55577         Fix sort order.
55578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55579         Likewise.
55580
55581 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55582
55583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55584         Fix the order of the list for glibc 2.17.
55585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55586         Likewise.
55587
55588 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55589
55590         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55591
55592 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55593
55594         [BZ #14610]
55595         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
55596         for low part of x being zero before using __atanl (y).
55597         * math/libm-test.inc (atan2_test): Add another test.
55598
55599         * manual/install.texi (Configuring and compiling): Document
55600         general use of test-wrapper and test-wrapper-env.
55601         * INSTALL: Regenerated.
55602
55603         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
55604         (__fma): Do not extract and scale down low bits on after-rounding
55605         systems when result rounded to normal precision would have normal
55606         exponent.
55607         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
55608         (__fmal): Do not extract and scale down low bits on after-rounding
55609         systems when result rounded to normal precision would have normal
55610         exponent.
55611         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
55612         (__fmal): Do not extract and scale down low bits on after-rounding
55613         systems when result rounded to normal precision would have normal
55614         exponent.
55615         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
55616         macro.
55617         (fma_test): Add more tests.
55618         (fma_test_towardzero): Likewise.
55619         (fma_test_downward): Likewise.
55620         (fma_test_upward): Likewise.
55621
55622 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
55623
55624         * sysdeps/i386/tininess.h: Renamed to ...
55625         * sysdeps/x86/tininess.h: This.
55626         * sysdeps/x86_64/tininess.h: Removed.
55627
55628 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55629
55630         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
55631         input.  Use $(build-program-cmd).
55632         ($(objpfx)tst-array1-static.out): Likewise.
55633         ($(objpfx)tst-array2.out): Likewise.
55634         ($(objpfx)tst-array3.out): Likewise.
55635         ($(objpfx)tst-array4.out): Likewise.
55636         ($(objpfx)tst-array5.out): Likewise.
55637         ($(objpfx)tst-array5-static.out): Likewise.
55638
55639 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
55640
55641         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
55642         if defined.
55643
55644         * nss/nsswitch.h (nss_interface_function): Provide new
55645         macro for use with NSS functions.
55646         * grp/initgroups.c: Use new macro.
55647         * nss/getXXbyYY.c: Likewise.
55648         * nss/getXXbyYY_r.c: Likewise.
55649         * nss/getXXent.c: Likewise.
55650         * nss/getXXent_r.c: Likewise.
55651         * sysdeps/posix/getaddrinfo.c: Likewise.
55652
55653 2012-10-30  Andreas Jaeger  <aj@suse.de>
55654
55655         * po/ru.po: Update Russion translation from translation project.
55656
55657 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55658
55659         [BZ #14152]
55660         [BZ #14783]
55661         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
55662         result and shift together with sticky bit instead of replicating
55663         round-to-nearest rounding.
55664         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55665         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55666         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
55667         missing underflow exceptions.
55668         (fma_test_towardzero): Add more tests.
55669         (fma_test_downward): Likewise.
55670         (fma_test_upward): Likewise.
55671
55672         [BZ #14047]
55673         * sysdeps/generic/tininess.h: New file.
55674         * sysdeps/i386/tininess.h: Likewise.
55675         * sysdeps/sh/tininess.h: Likewise.
55676         * sysdeps/x86_64/tininess.h: Likewise.
55677         * stdlib/tst-strtod-underflow.c: Likewise.
55678         * stdlib/tst-tininess.c: Likewise.
55679         * stdlib/strtod_l.c: Include <tininess.h>.
55680         (round_and_return): Do not set errno for exact underflow cases.
55681         Force an underflow exception when setting errno for underflow.
55682         Determine underflow based on rounding to normal precision if
55683         TININESS_AFTER_ROUNDING.
55684         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
55685         ERANGE for exact underflow cases.
55686         * stdlib/Makefile (tests): Add tst-tininess and
55687         tst-strtod-underflow.
55688         ($(objpfx)tst-tininess): Use $(link-libm).
55689         ($(objpfx)tst-strtod-underflow): Likewise.
55690
55691 2012-10-30  Andreas Jaeger  <aj@suse.de>
55692
55693         [BZ#14767]
55694         * elf/Makefile (tests): Remove conditional for have-initfini-array
55695         since this is now always required and the variable does not exist
55696         anymore.
55697         (tests-static): Likewise.
55698         (modules-names): Likewise.
55699
55700         * po/eo.po: Add Esperanto translation from translation project.
55701
55702         * elf/tst-array1.c (fini_array): Make writeable so that it can be
55703         merged with constructor/destructor.
55704         (init_array): Likewise.
55705         * elf/tst-array2dep.c (fini_array): Likewise.
55706         (init_array): Likewise.
55707
55708 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
55709
55710         * manual/message.texi: Delete @cartouche tags.
55711
55712 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
55713
55714         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
55715         EOPNOTSUPP.
55716         * sysdeps/mach/hurd/fsync.c: Likewise.
55717
55718         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
55719         [_POSIX_REALTIME_SIGNALS]: Change condition to
55720         [_POSIX_REALTIME_SIGNALS > 0].
55721
55722 2012-10-27  Andreas Jaeger  <aj@suse.de>
55723
55724         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
55725         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
55726         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
55727         [__WORDSIZE != 64]: Likewise.
55728
55729 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
55730
55731         *  iconvdata/tst-table.sh: Remove ${SHELL}.
55732         *  iconvdata/tst-tables.sh: Likewise.
55733
55734 2012-10-25  David S. Miller  <davem@davemloft.net>
55735
55736         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55737         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
55738         of strtoull.
55739
55740         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
55741         ifunc-impl-list.c
55742         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
55743         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
55744         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
55745         file.
55746
55747 2012-10-25  Roland McGrath  <roland@hack.frob.com>
55748
55749         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55750         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
55751         __getdirentries.
55752
55753 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55754             Jim Blandy  <jimb@codesourcery.com>
55755
55756         * scripts/cross-test-ssh.sh: New file.
55757         * manual/install.texi (Configuring and compiling): Document use of
55758         cross-test-ssh.sh.
55759         * INSTALL: Regenerated.
55760
55761 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
55762
55763         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
55764         EOPNOTSUPP.
55765
55766 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55767
55768         * Makeconfig (run-program-prefix): Fix comment.
55769
55770 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55771             Jim Blandy  <jimb@codesourcery.com>
55772
55773         * Makeconfig (test-wrapper): New variable,
55774         (test-wrapper-env): Likewise.
55775         [$(cross-compiling) = yes && $(test-wrapper) != ""]
55776         (run-built-tests): Define to yes.
55777         (run-program-prefix): Use $(test-wrapper).
55778         (built-program-cmd): Likewise.
55779         * Rules (make-test-out): Use $(test-wrapper-env) and
55780         $(host-built-program-cmd).
55781         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
55782         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
55783         tst-pathopt.sh.
55784         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
55785         $(test-wrapper-env) to tst-rtld-load-self.sh.
55786         ($(objpfx)order2.out): Use $(test-wrapper).
55787         ($(objpfx)tst-initorder.out): Likewise.
55788         ($(objpfx)tst-initorder2.out): Likewise.
55789         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
55790         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
55791         (test_wrapper_env): New variable.  Use it to run ld.so.
55792         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
55793         Use it to run ld.so.
55794         (test_wrapper_env): Likewise.
55795         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
55796         $(test-wrapper) to run-iconv-test.sh.
55797         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
55798         (ICONV): Use $test_wrapper.
55799         * posix/Makefile ($(objpfx)globtest.out): Pass
55800         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
55801         globtest.sh, not $(run-program-prefix).
55802         * posix/globtest.sh (run_via_rtld_prefix): New variable.
55803         (test_wrapper): Likewise.
55804         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
55805         set together with run_via_rtld_prefix.
55806         (run_program_prefix): Define in terms of test_wrapper and
55807         run_via_rtld_prefix.
55808
55809 2012-10-24  Roland McGrath  <roland@hack.frob.com>
55810
55811         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
55812         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
55813         Targets removed.
55814
55815         [BZ #14743]
55816         * include/time.h: Remove librt_hidden_proto (clock_gettime).
55817         Declare __clock_getres, __clock_gettime, __clock_settime,
55818         __clock_nanosleep, and __clock_getcpuclockid.
55819         * rt/clock_gettime.c: Define __clock_gettime as an alias.
55820         Remove librt_hidden_def (clock_gettime).
55821         * sysdeps/unix/clock_gettime.c: Likewise.
55822         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
55823         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
55824         * rt/clock_getres.c: Define __clock_getres as an alias.
55825         * sysdeps/posix/clock_getres.c: Likewise.
55826         * rt/clock_settime.c: Define __clock_settime as an alias.
55827         * sysdeps/unix/clock_settime.c: Likewise.
55828         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
55829         * sysdeps/unix/clock_nanosleep.c: Likewise.
55830         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
55831         * rt/clock-compat.c: New file.
55832         * rt/Makefile (librt-routines): Add clock-compat and move
55833         $(clock-routines) to ...
55834         (routines): ... here, new variable.
55835         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
55836         Don't add get_clockfreq here.
55837         * rt/Versions (libc: GLIBC_2.17): New version set.
55838         Add clock_* symbols here.
55839         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
55840         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
55841         (GLIBC_2.17): Add clock_* symbols.
55842         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
55843         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
55844         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
55845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55846         Likewise.
55847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55848         Likewise.
55849         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
55850         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
55851         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
55852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
55853         * NEWS: Mention the move.
55854
55855         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
55856         Use __open, __read, __close rather than their public counterparts.
55857         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55858         (__get_clockfreq_via_cpuinfo): Likewise.
55859         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
55860         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
55861
55862         * config.h.in (HAVE_IFUNC): New #undef.
55863         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
55864         was successful.
55865         * configure: Regenerated.
55866
55867 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
55868
55869         * configure.in: Move READELF check to start of file.
55870         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
55871         libc_cv_asm_gnu_indirect_function in the process.
55872         * configure: Regenerated.
55873
55874 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
55875
55876         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
55877         send the output to /dev/null.
55878         (libc_cv_cc_with_libunwind): Likewise.
55879         (libc_cv_as_noexecstack): Likewise.
55880         * configure: Regenerate.
55881
55882 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55883
55884         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
55885
55886         * posix/globtest.sh (TMPDIR): Do not set.
55887         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
55888         (testout): Likewise.
55889
55890 2012-10-24  Andreas Jaeger  <aj@suse.de>
55891
55892         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
55893         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
55894         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
55895         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
55896         posix_fadvise64, posix_fallocate64.
55897
55898         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
55899         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
55900         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
55901         Likewise.
55902         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
55903         Likewise.
55904         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
55905
55906         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
55907         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
55908         <bits/fcntl-linux.h>.
55909         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
55910
55911         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
55912         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
55913         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
55914         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
55915         [__WORDSIZE != 64]: Likewise.
55916
55917 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
55918
55919         * Makeconfig (run-built-tests): New variable.
55920         * Rules [$(cross-compiling) = yes]: Change condition to
55921         [$(run-built-tests) = no].
55922         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
55923         to [$(run-built-tests) = yes].
55924         * elf/Makefile [$(cross-compiling) = no]: Likewise.
55925         * grp/Makefile [$(cross-compiling) = no]: Likewise.
55926         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
55927         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
55928         * intl/Makefile [$(cross-compiling) = no]: Likewise.
55929         * io/Makefile [$(cross-compiling) = no]: Likewise.
55930         * libio/Makefile [$(cross-compiling) = no]: Likewise.
55931         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
55932         * misc/Makefile [$(cross-compiling) = no]: Likewise.
55933         * posix/Makefile [$(cross-compiling) = no]: Likewise.
55934         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
55935         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
55936         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
55937         * string/Makefile [$(cross-compiling) = no]: Likewise.
55938
55939         * posix/Makefile ($(objpfx)globtest.out): Pass
55940         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
55941         $(rtld-installed-name).
55942         * posix/globtest.sh (elf_objpfx): Remove variable.
55943         (rtld_installed_name): Likewise.
55944         (library_path): Likewise.
55945         (run_program_prefix): New variable.  Use for running globtest
55946         binary.
55947
55948 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
55949             Joseph Myers  <joseph@codesourcery.com>
55950
55951         * Makeconfig (host-built-program-cmd): New variable.
55952         * elf/Makefile (tst-stackguard1-ARGS): Use
55953         $(host-built-program-cmd).
55954         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
55955         (tst-spawn-ARGS): Likewise.
55956         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
55957
55958 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
55959             Jim Blandy  <jimb@codesourcery.com>
55960
55961         * Makeconfig (run-via-rtld-prefix): New variable.
55962         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
55963         (built-program-cmd): Likewise.
55964
55965 2012-10-22  Andreas Jaeger  <aj@suse.de>
55966
55967         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
55968         __O_RSYNC if it exists, otherwise to O_SYNC.
55969
55970 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
55971             Joseph Myers  <joseph@codesourcery.com>
55972
55973         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
55974         /dev/null.
55975         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
55976         from /dev/null
55977         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
55978         /dev/null.
55979
55980 2012-10-22  Andreas Jaeger  <aj@suse.de>
55981
55982         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
55983         Define always.
55984         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
55985
55986         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
55987         bits/fcntl-linux.h.
55988
55989         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
55990         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
55991
55992         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
55993         to __O_LARGEFILE.
55994         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
55995         to __O_LARGEFILE.
55996
55997 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
55998             Joseph Myers  <joseph@codesourcery.com>
55999
56000         * config.make.in (NM): New variable.
56001
56002 2012-10-21  Andreas Jaeger  <aj@suse.de>
56003
56004         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56005         definitions and declarations that are provided by
56006         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56007
56008 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56009
56010         [BZ #14683]
56011         * elf/Makefile (tests-static): Add tst-leaks1-static.
56012         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56013         ($(objpfx)tst-leaks1-static): New rule.
56014         ($(objpfx)tst-leaks1-static-mem): Likewise.
56015         (tst-leaks1-static-ENV): New macro.
56016         * elf/dl-open.c (dl_open_worker): Check the main application
56017         only if SHARED is defined.
56018         * elf/tst-leaks1-static.c: New file.
56019
56020 2012-10-20  Andreas Jaeger  <aj@suse.de>
56021
56022         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56023         generic values for Linux.
56024         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56025         and declarations that are provided by <bits/fcntl-linux.h> and
56026         include <bits/fcntl-linux.h>.
56027         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56028         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56029
56030 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56031
56032         * io/fcntl.h: Move include of <bits/types.h> to the top and
56033         include it unconditionally.
56034
56035 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56036
56037         * wcsmbs/Makefile (tests-ifunc): New variable.
56038         (tests): Add $(tests-ifunc).
56039         * wcsmbs/test-wcschr-ifunc.c: New file.
56040         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56041         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56042         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56043         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56044         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56045
56046         * string/Makefile (tests-ifunc): New variable.
56047         (tests): Add $(tests-ifunc).
56048         * string/test-memccpy.c (TEST_NAME): New macro.
56049         * string/test-memchr.c (TEST_NAME): Likewise.
56050         * string/test-memcmp.c (TEST_NAME): Likewise.
56051         * string/test-memcpy.c (TEST_NAME): Likewise.
56052         * string/test-memmem.c (TEST_NAME): Likewise.
56053         * string/test-memmove.c (TEST_NAME): Likewise.
56054         * string/test-memset.c (TEST_NAME): Likewise.
56055         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56056         * string/test-stpcpy.c (TEST_NAME): Likewise.
56057         * string/test-stpncpy.c (TEST_NAME): Likewise.
56058         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56059         * string/test-strcasestr.c (TEST_NAME): Likewise.
56060         * string/test-strcat.c (TEST_NAME): Likewise.
56061         * string/test-strchr.c (TEST_NAME): Likewise.
56062         * string/test-strcmp.c(TEST_NAME): Likewise.
56063         * string/test-strcpy.c (TEST_NAME): Likewise.
56064         * string/test-strcspn.c (TEST_NAME): Likewise.
56065         * string/test-strlen.c (TEST_NAME): Likewise.
56066         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56067         * string/test-strncmp.c (TEST_NAME): Likewise.
56068         * string/test-strncpy.c (TEST_NAME): Likewise.
56069         * string/test-strnlen.c (TEST_NAME): Likewise.
56070         * string/test-strpbrk.c (TEST_NAME): Likewise.
56071         * string/test-strrchr.c (TEST_NAME): Likewise.
56072         * string/test-strspn.c (TEST_NAME): Likewise.
56073         * string/test-strstr.c (TEST_NAME): Likewise.
56074         * string/test-bcopy-ifunc.c: New file.
56075         * string/test-bzero-ifunc.c: Likewise.
56076         * string/test-memccpy-ifunc.c: Likewise.
56077         * string/test-memchr-ifunc.c: Likewise.
56078         * string/test-memcmp-ifunc.c: Likewise.
56079         * string/test-memcpy-ifunc.c: Likewise.
56080         * string/test-memmem-ifunc.c: Likewise.
56081         * string/test-memmove-ifunc.c: Likewise.
56082         * string/test-mempcpy-ifunc.c: Likewise.
56083         * string/test-memset-ifunc.c: Likewise.
56084         * string/test-rawmemchr-ifunc.c: Likewise.
56085         * string/test-stpcpy-ifunc.c: Likewise.
56086         * string/test-stpncpy-ifunc.c: Likewise.
56087         * string/test-strcasecmp-ifunc.c: Likewise.
56088         * string/test-strcasestr-ifunc.c: Likewise.
56089         * string/test-strcat-ifunc.c: Likewise.
56090         * string/test-strchr-ifunc.c: Likewise.
56091         * string/test-strchrnul-ifunc.c: Likewise.
56092         * string/test-strcmp-ifunc.c: Likewise.
56093         * string/test-strcpy-ifunc.c: Likewise.
56094         * string/test-strcspn-ifunc.c: Likewise.
56095         * string/test-strlen-ifunc.c: Likewise.
56096         * string/test-strncasecmp-ifunc.c: Likewise.
56097         * string/test-strncat-ifunc.c: Likewise.
56098         * string/test-strncmp-ifunc.c: Likewise.
56099         * string/test-strncpy-ifunc.c: Likewise.
56100         * string/test-strnlen-ifunc.c: Likewise.
56101         * string/test-strpbrk-ifunc.c: Likewise.
56102         * string/test-strrchr-ifunc.c: Likewise.
56103         * string/test-strspn-ifunc.c: Likewise.
56104         * string/test-strstr-ifunc.c: Likewise.
56105
56106         * debug/Makefile (tests-ifunc): New variable.
56107         (tests): Add $(tests-ifunc).
56108         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56109         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56110         * debug/test-stpcpy_chk-ifunc.c: New file.
56111         * debug/test-strcpy_chk-ifunc.c: Likewise.
56112
56113 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56114
56115         [BZ #13601]
56116         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56117         header is not read in.
56118
56119 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56120
56121         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56122         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56123         directly.  Pass built executable to script as
56124         $(built-program-cmd).
56125         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56126         $testprogram without using LD_LIBRARY_PATH and $ldso.
56127
56128         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56129         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56130         $(rtld-installed-name).
56131         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56132         (rtld_installed_name): Likewise.
56133         (library_path): Likewise.
56134         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56135         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56136         $(run-program-prefix) to tst-tables.sh.
56137         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56138         it to run tst-table-from and tst-table-to.
56139         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56140         Pass it to tst-table.sh.
56141         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56142         $(run-program-prefix) to tst-gettext.sh.
56143         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56144         tst-translit.sh.
56145         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56146         tst-gettext2.sh.
56147         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56148         to run tst-gettext.
56149         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56150         to run tst-gettext2.
56151         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56152         to run tst-translit.
56153         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56154         $(run-program-prefix) to tst-mtrace.sh.
56155         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56156         to run tst-mtrace.
56157         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56158         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56159         $(rtld-installed-name).
56160         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56161         (rtld_installed_name): Likewise.
56162         (run_program_prefix): New variable.  Use it to run wordexp-test.
56163
56164         * Makeconfig (ARCH): Remove all definitions.
56165         (machine): Likewise.
56166         [ARCH]: Remove conditional code.
56167         [!objdir]: Give error.
56168         [!objdir] (objpfx): Remove.
56169         [!objdir] (common-objpfx): Likewise.
56170         [!objdir] (common-objdir): Likewise.
56171         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56172         AC_CONFIG_FILES call.
56173         * configure: Regenerated.
56174
56175         [BZ #13888]
56176         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56177         or TMPDIR.
56178         (testout): Likewise.
56179
56180         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56181         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56182         $(rtld-installed-name).
56183         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56184         (rtld_installed_name): Likwise.
56185         (runit): Remove function.
56186         (run_getconf): New variable,  Use it for running getconf binary.
56187
56188 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56189
56190         [BZ #14716]
56191         * string/test-memmem.c (check_result): New function.
56192         (do_one_test): Use it.
56193         (check1): New function.
56194         (test_main): Use it.
56195
56196 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56197
56198         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56199
56200 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56201
56202         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56203         (_G_LSEEK64): Likewise.
56204         (_G_MMAP64): Likewise.
56205         (_G_FSTAT64): Likewise.
56206         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56207         (_G_LSEEK64): Likewise.
56208         (_G_MMAP64): Likewise.
56209         (_G_FSTAT64): Likewise.
56210         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56211         unconditional.  Call __mmap64 directly.
56212         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56213         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56214         __lseek64 directly.
56215         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56216         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56217         __mmap64 directly.
56218         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56219         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56220         __lseek64 directly.
56221         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56222         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56223         __lseek64 directly.
56224         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56225         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56226         __lseek64 directly.
56227         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56228         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56229         __fxstat64 directly.
56230         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56231         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56232         unconditional.
56233         (freopen64) [!_G_OPEN64]: Remove conditional code.
56234         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56235         unconditional.
56236         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56237         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56238         unconditional.
56239         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56240         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56241         unconditional.
56242         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56243         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56244         unconditional.
56245         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56246         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56247         unconditional.
56248         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56249         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56250         unconditional.
56251         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56252         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56253         unconditional.
56254         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56255
56256 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56257
56258         [BZ #12140]
56259         * manual/memory.texi (Malloc Tunable Parameters): Add note
56260         about free list pointers overwriting some perturb bytes.
56261         Wording suggested by Roland McGrath.
56262
56263 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56264
56265         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56266         (lgamma_test): Likewise.
56267         (tgamma_test): Likewise.
56268
56269 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56270
56271         [BZ #14700]
56272         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56273         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56274
56275 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56276
56277         * NEWS: Mention BZ #14716.
56278         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56279         when removing AVAILABLE1_USES_J macro.
56280
56281 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56282
56283         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56284         (__bswap_64): __uint64_t for unsigned 64-bit int.
56285
56286 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56287
56288         * include/string.h (memmem): Declare libc hidden alias.
56289         * string/memmem.c (memmem): Define libc hidden alias.
56290         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56291         __read, __close instead of open, read, close.
56292
56293 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56294
56295         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56296         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56297         global and hidden.
56298         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56299         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56300         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56301         Likewise.
56302         (__rawmemchr_sse2): Likewise.
56303         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56304         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56305         (__strchr_sse2): Likewise.
56306         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56307         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56308         (__strcasecmp_sse2): Likewise.
56309         (__strncasecmp_sse2): Likewise.
56310         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56311         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56312         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56313         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56314         (__strrchr_sse2): Likewise.
56315         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56316         ifunc-impl-list.c.
56317         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56318         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56319         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56320         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56321         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56322         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56323         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56324         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56325         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56326         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56327         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56328         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56329         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56330         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56331         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56332         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56333         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56334         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56335         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56336         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56337         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56338         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56339         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56340         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56341         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56342         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56343         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56344         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56345         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56346         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56347
56348         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56349         global and hidden.
56350         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56351         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56352         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56353         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56354         Likewise.
56355         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56356         Likewise.
56357         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56358         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56359         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56360         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56361         ifunc-impl-list.c.
56362         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56363         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56364         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56365         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56366         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56367         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56368         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56369         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56370         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56371         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56372         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56373         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56374         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56375         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56376         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56377         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56378         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56379         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56380         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56381         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56382         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56383         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56384         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56385         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56386         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56387         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56388         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56389         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56390         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56391         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56392         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56393         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56394         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56395         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56396         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56397         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56398         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56399         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56400         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56401         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56402         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56403
56404         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56405         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56406         * include/ifunc-impl-list.h: New file.
56407         * misc/ifunc-impl-list.c: Likewise.
56408         * misc/Makefile (routines): Add ifunc-impl-list.
56409         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56410         * string/test-string.h: Include <ifunc-impl-list.h>.
56411         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56412         TEST_NAME]: New variables.
56413         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56414         are defined.
56415         (test_init): Call __libc_ifunc_impl_list to initialize
56416         func_list if TEST_IFUNC and TEST_NAME are defined.
56417
56418         * string/Makefile (strop-tests): Add bcopy and bzero.
56419         * string/test-bcopy.c: New file.
56420         * string/test-bzero.c: Likewise.
56421         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56422         defined.
56423         * string/test-memset.c: Support bzero test if TEST_BZERO is
56424         defined.
56425         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56426         __libc_memmove.
56427         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56428         __libc_memset.
56429         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56430         of memset.
56431
56432 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56433
56434         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56435         * configure: Regenerated.
56436
56437         * Makeconfig (+link-static-before-libc): Don't include
56438         $(link-static-libc).
56439
56440         * libio/libio.h (_IO_pos_t): Remove.
56441
56442 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56443
56444         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56445         McGrath.
56446
56447 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56448
56449         * crypt/crypt-entry.c: Include fips-private.h.
56450         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56451         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56452         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56453         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56454
56455 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56456
56457         * crypt/crypt-private.h: Include stdbool.h.
56458         (_ufc_setup_salt_r): Return bool.
56459         * crypt/crypt-entry.c: Include errno.h.
56460         (__crypt_r): Return NULL with EINVAL for bad salt.
56461         * crypt/crypt_util.c (bad_for_salt): New.
56462         (_ufc_setup_salt_r): Check that salt is long enough and within
56463         the specified alphabet.
56464         * crypt/badsalttest.c: New file.
56465         * crypt/Makefile (tests): Add it.
56466         ($(objpfx)badsalttest): New.
56467
56468 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56469
56470         * NEWS: Add entry for BZ #14602.
56471
56472 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56473
56474         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56475         type-generic.
56476         * math/libm-test.inc: Update comment listing what functions and
56477         macros are tested.
56478         (isgreater_test): New function.
56479         (isgreaterequal_test): Likewise.
56480         (isless_test): Likewise.
56481         (islessequal_test): Likewise.
56482         (islessgreater_test): Likewise.
56483         (isunordered_test): Likewise.
56484         (main): Call the new functions.
56485
56486 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56487
56488         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56489         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56490         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56491         * sysdeps/i386/configure: Regenerated.
56492         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56493         * sysdeps/mach/configure: Regenerated.
56494         * sysdeps/mach/hurd/configure: Regenerated.
56495         * sysdeps/powerpc/configure: Regenerated.
56496         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56497         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56498         * sysdeps/s390/s390-32/configure: Regenerated.
56499         * sysdeps/s390/s390-64/configure: Regenerated.
56500         * sysdeps/sh/configure: Regenerated.
56501         * sysdeps/sparc/configure: Regenerated.
56502         * sysdeps/unix/sysv/linux/configure: Regenerated.
56503         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56504         * sysdeps/x86_64/configure: Regenerated.
56505
56506         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56507         defined.  Don't check if MAP is NULL.
56508
56509 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56510
56511         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56512         (_G_stat64): Likewise.
56513         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56514         (_G_stat64): Likewise.
56515         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56516         instead of struct _G_stat64.
56517         * libio/fileops.c (mmap_remap_check): Likewise.
56518         (decide_maybe_mmap): Likewise.
56519         (_IO_new_file_seekoff): Likewise.
56520         (_IO_file_stat): Likewise.
56521         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56522         _G_off64_t.
56523         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56524         instead of struct _G_stat64.
56525         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56526
56527 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56528
56529         [BZ #14602]
56530         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56531         Replace with ...
56532         (CHECK_EOL): New macro.
56533         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56534         CHECK_EOL.
56535         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56536         Replace with CHECK_EOL.
56537         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56538         Replace with CHECK_EOL.
56539
56540 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56541
56542         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56543         type-generic.
56544         * math/libm-test.inc: Update comment listing what functions and
56545         macros are tested.
56546         (finite_test): New function.
56547         (isinf_test): Likewise.
56548         (isnan_test): Likewise.
56549         (fpclassify_test): Test subnormal input.
56550         (isfinite_test): Likewise.
56551         (isnormal_test): Likewise.
56552         (main): Call the new functions.
56553
56554 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
56555
56556         [BZ #14660]
56557         * Makerules (%.dynsym): Force C locale when running
56558         $(OBJDUMP) --dynamic-syms.
56559
56560 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
56561
56562         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
56563         <stdint.h>.
56564
56565 2012-10-06  David S. Miller  <davem@davemloft.net>
56566
56567         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
56568         upper 32-bits of the length value in %o2 since we use branch-on-register
56569         tests which consider the entire 64-bit register.
56570
56571 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
56572
56573         * string/test-strstr.c (check2): Add a test for page boundary.
56574
56575 2012-10-05  David S. Miller  <davem@davemloft.net>
56576
56577         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
56578         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
56579         file.
56580         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56581         sysdep_routines.
56582         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56583         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
56584         and bzero when HWCAP_SPARC_CRYPTO is present.
56585
56586 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
56587
56588         [BZ #14602]
56589         * string/test-strstr.c (check2): New function.
56590         (test_main): Call check2.
56591
56592         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
56593         and bug-strchr1.
56594         * string/bug-strcasestr1.c (do_test): Moved to ...
56595         * string/test-strcasestr.c (check1): Here.  New function.
56596         (do_one_test): Break out result checking code into ...
56597         (check_result): This.  New function.
56598         (do_one_test): Call check_result.
56599         (test_main): Call check1.
56600         * string/bug-strchr1.c (do_test): Moved to ...
56601         * string/test-strchr.c (check1): Here.  New function.
56602         (do_one_test): Break out result checking code into ...
56603         (check_result): This.  New function.
56604         (do_one_test): Call check_result.
56605         (test_main): Call check1.
56606         * string/bug-strstr1.c (main): Moved to ...
56607         * string/test-strstr.c (check1): Here.  New function.
56608         (do_one_test): Break out result checking code into ...
56609         (check_result): This.  New function.
56610         (do_one_test): Call check_result.
56611         (test_main): Call check1.
56612         * string/bug-strcasestr1.c: Removed.
56613         * string/bug-strchr1.c: Likewise.
56614         * string/bug-strstr1.c: Likewise.
56615
56616         * elf/Makefile (dl-routines): Add hwcaps.
56617         * elf/dl-support.c (_dl_important_hwcaps): Removed.
56618         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
56619         (_dl_important_hwcaps): Moved to ...
56620         * elf/dl-hwcaps.c: Here.  New file.
56621         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
56622
56623         [BZ #14557]
56624         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
56625         if IS_IN_rtld isn't defined.
56626
56627         * elf/dl-support.c (_dl_sysinfo_map): New.
56628         Include "get-dynamic-info.h" and "setup-vdso.h".
56629         (_dl_non_dynamic_init): Call setup_vdso.
56630         * elf/dynamic-link.h: Don't include <assert.h>.
56631         (elf_get_dynamic_info): Moved to ...
56632         * elf/get-dynamic-info.h: Here.  New file.
56633         * elf/dynamic-link.h: Include "get-dynamic-info.h".
56634         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
56635         * elf/setup-vdso.h: Here.  New file.
56636         * elf/rtld.c: Include "setup-vdso.h".
56637         (dl_main): Call setup_vdso.
56638
56639 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
56640
56641         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
56642         creal in comment listing functions tested.  List finite, isinf,
56643         isnan, isless, islessequal, isgreater, isgreaterequal,
56644         islessgreater, isunordered, lgamma_r and pow10 as functions and
56645         macros not tested.  Mention which functions not tested are aliases
56646         for other functions.  Fix typo.  Note that signs of NaNs are not
56647         tested.
56648
56649         * scripts/config.guess: Update from config.git.
56650         * scripts/config.sub: Likewise.
56651
56652 2012-10-04  Roland McGrath  <roland@hack.frob.com>
56653
56654         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
56655         * misc/madvise.c (madvise): Renamed to __madvise.
56656         Make madvise a weak alias.
56657         * include/sys/mman.h: Declare __madvise.
56658         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
56659         * sysdeps/unix/syscalls.list
56660         (madvise): Make __madvise the strong name, and madvise a weak alias.
56661         * sysdeps/unix/sysv/linux/syscalls.list
56662         (madvise, mmap): Remove redundant entries.
56663         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
56664         * malloc/malloc.c (mtrim): Likewise.
56665         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
56666
56667 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56668
56669         * sysdeps/mach/hurd/dl-cache.c: File removed.
56670         * config.h.in (USE_LDCONFIG): New #undef.
56671         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
56672         * configure: Regenerated.
56673         * elf/Makefile (dl-routines): Add dl-cache only under
56674         [$(use-ldconfig) = yes].
56675         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
56676         cache on [USE_LDCONFIG].
56677         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
56678         [USE_LDCONFIG].
56679         * elf/rtld.c (dl_main): Likewise.
56680
56681 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
56682
56683         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
56684         _SC_LEVEL4_CACHE_LINESIZE.
56685
56686 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56687
56688         * sysdeps/unix/bsd/confstr.h: File removed.
56689
56690 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
56691
56692         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
56693         sys/sdt-config.h.
56694
56695 2012-10-02  Roland McGrath  <roland@hack.frob.com>
56696
56697         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
56698         Make 'mapoff' field ElfW(Off) rather than off_t.
56699
56700 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56701
56702         * nscd/Makefile: Remove nscd-cflags and all its users.
56703         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
56704         (CFLAGS-nonlib): Add compiler flags for nscd modules.
56705
56706         [BZ #10631]
56707         * malloc.c (malloc_printerr): Clarify error message.
56708
56709 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
56710
56711         [BZ #14648]
56712         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56713         Set bit_FMA_Usable if FMA is supported.
56714         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
56715         macro.
56716         (bit_FMA4_Usable): Updated.
56717         (index_FMA_Usable): New macro.
56718         (CPUID_FMA): Likewise.
56719         (HAS_FMA): Defined with bit_FMA_Usable.
56720
56721 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56722
56723         * bits/types.h (__swblk_t): Type removed.
56724         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
56725         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
56726         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
56727         (__SWBLK_T_TYPE): Likewise.
56728         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
56729         (__SWBLK_T_TYPE): Likewise.
56730         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
56731         (__SWBLK_T_TYPE): Likewise.
56732         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
56733         (__SWBLK_T_TYPE): Likewise.
56734
56735 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
56736             Honza Horak <hhorak@redhat.com>
56737
56738         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
56739         (xdr_mapname): Use YPMAXMAP as maxsize.
56740         (xdr_peername): Use YPMAXPEER as maxsize.
56741         (xdr_keydat): Use YPAXRECORD as maxsize.
56742         (xdr_valdat): Use YPMAXRECORD as maxsize.
56743
56744 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56745
56746         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
56747
56748         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
56749         * csu/init-first.c: ... here.
56750         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
56751         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
56752         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
56753         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
56754         * sysdeps/i386/init-first.c: File removed.
56755         * sysdeps/sh/init-first.c: File removed.
56756
56757 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
56758
56759         [BZ #14645]
56760         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
56761         if x * y might underflow to zero and z is zero.
56762         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56763         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56764         * math/libm-test.inc (min_subnorm_value): New variable.
56765         (fma_test): Add more tests.
56766         (fma_test_towardzero): Likewise.
56767         (fma_test_downward): Likewise.
56768         (fma_test_upward): Likewise.
56769         (initialize): Set min_subnorm_value.
56770
56771 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
56772
56773         [BZ #14638]
56774         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
56775         0 + 0.
56776         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
56777         mode for addition resulting in exact zero.
56778         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
56779         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
56780         exact 0 + 0.
56781         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56782         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56783         * math/libm-test.inc (fma_test): Add more tests.
56784         (fma_test_towardzero): New function.
56785         (fma_test_downward): Likewise.
56786         (fma_test_upward): Likewise.
56787         (main): Call the new functions.
56788
56789 2012-09-28  David S. Miller  <davem@davemloft.net>
56790
56791         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
56792
56793 2012-09-28  Roland McGrath  <roland@hack.frob.com>
56794
56795         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
56796         instead of SIGALRM.
56797
56798         * sysdeps/gnu/_G_config.h: Moved to ...
56799         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
56800         * sysdeps/mach/hurd/_G_config.h: Moved to ...
56801         * sysdeps/generic/_G_config.h: ... here.
56802
56803         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
56804
56805         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
56806
56807         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
56808         Conditionalize target on [libnss_test1.so-version].
56809
56810         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
56811
56812         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
56813         (elfobjdir): Move out of conditionals.
56814
56815         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
56816         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
56817         (__nss_lookup_function): Conditionalize label remove_from_tree on
56818         [!DO_STATIC_NSS || SHARED], matching its only use.
56819
56820 2012-09-28  David S. Miller  <davem@davemloft.net>
56821
56822         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
56823         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
56824         file.
56825         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56826         sysdep_routines.
56827         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56828         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
56829         when HWCAP_SPARC_CRYPTO is present.
56830
56831 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56832
56833         * io/tst-mknodat.c: Create a FIFO instead of a socket.
56834
56835 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
56836
56837         [BZ #6530]
56838         * stdio-common/vfprintf.c (process_string_arg): Revert
56839         2000-07-22 change.
56840
56841 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
56842
56843         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
56844         for testcase.
56845         * stdio-common/tst-sprintf.c: Include <locale.h>
56846         (main): Test sprintf's handling of incomplete multibyte
56847         characters.
56848
56849 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
56850
56851         * elf/dl-runtime.c (VERSYMIDX): Removed.
56852         * elf/dl-version.c (VERSYMIDX): Likewise.
56853         * elf/do-rel.h (VERSYMIDX): Likewise.
56854         (VALIDX): Likewise.
56855         * elf/dynamic-link.h (VERSYMIDX): Likewise.
56856         * elf/rtld.c (VALIDX): Likewise.
56857         (ADDRIDX): Likewise.
56858         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
56859         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
56860         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
56861         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
56862         (VALIDX): Likewise.
56863         (ADDRIDX): Likewise.
56864
56865 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56866
56867         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
56868
56869 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
56870
56871         [BZ #11438]
56872         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
56873         to global scope.
56874         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
56875         addresses are in the same scope as 192.0.2/24.
56876         * posix/gai.conf: Document new scope table defaults.
56877
56878 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56879
56880         [BZ #5298]
56881         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
56882         for ftell.  Compute offsets from write pointers instead.
56883         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56884
56885 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56886
56887         [BZ #14543]
56888         * libio/Makefile (tests): New test case tst-fseek.
56889         * libio/tst-fseek.c: New test case to verify that fseek/ftell
56890         combination works in wide mode.
56891         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
56892         state when the external buffer state changes.
56893
56894 2012-09-27  David S. Miller  <davem@davemloft.net>
56895
56896         [BZ #14376]
56897         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
56898         pass reloc->r_addend in as the 'high' argument to
56899         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
56900
56901         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56902
56903 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56904
56905         * rt/tst-aio2.c: Include <pthread.h>.
56906         * rt/tst-aio3.c: Likewise.
56907
56908 2012-09-27  Steve Ellcey  <sellcey@mips.com>
56909
56910         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
56911
56912 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
56913
56914         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
56915         contents on [SHARED].
56916
56917 2012-09-26  Marek Polacek  <polacek@redhat.com>
56918
56919         [BZ #14530]
56920         [BZ #13741]
56921         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
56922         for C++ and GCC <4.3 as well as for non GCC compilers.
56923
56924 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
56925
56926         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
56927
56928 2012-09-25  Roland McGrath  <roland@hack.frob.com>
56929
56930         * Makefile.in (all, install): Declare with .PHONY.
56931         Reported by Michael Hope <michael.hope@linaro.org>.
56932
56933 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56934
56935         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
56936         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
56937         system header.
56938         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
56939         Likewise.
56940         (sydep_routines): Add the new and the internal functions.
56941         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
56942         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
56943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
56944         (GLIBC_2.17): Add the new function.
56945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
56946         (GLIBC_2.17): Likewise.
56947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
56948         (GLIBC_2.17): Likewise.
56949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
56950         (GLIBC_2.17): Likewise.
56951         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
56952
56953 2012-09-25  Alan Modra  <amodra@gmail.com>
56954
56955         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
56956         Add release barrier before setting once_control to say
56957         initialisation is done.  Add hints on lwarx.  Use macro in
56958         place of isync.
56959         (clear_once_control): Add release barrier.
56960
56961 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
56962
56963         [BZ #13629]
56964         * math/s_clog.c (__clog): Handle more values close to |z| = 1
56965         specially.
56966         * math/s_clog10.c (__clog10): Likewise.
56967         * math/s_clog10f.c (__clog10f): Likewise.
56968         * math/s_clog10l.c (__clog10l): Likewise.
56969         * math/s_clogf.c (__clogf): Likewise.
56970         * math/s_clogl.c (__clogl): Likewise.
56971         * math/Makefile (libm-calls): Add x2y2m1.
56972         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
56973         (__x2y2m1): Likewise.
56974         (__x2y2m1l): Likewise.
56975         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
56976         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
56977         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
56978         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
56979         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
56980         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
56981         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
56982         * sysdeps/i386/fpu/libm-test-ulps: Update.
56983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56984
56985         [BZ #14621]
56986         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
56987         int as type of variable DEPTH.
56988         (glob): Use size_t instead of int as type of variables NEWCOUNT
56989         and OLD_PATHC.
56990
56991 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
56992
56993         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
56994         Add s_sincosf-sse2.
56995         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
56996         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
56997         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
56998         macros for using routine as __sincosf_ia32.
56999         Use macro for function declaration and weak_alias.
57000         * sysdeps/i386/fpu/libm-test-ulps: Update.
57001
57002         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57003         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57004
57005         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57006         subnormal argument.
57007         * math/s_cexpf.c (__cexpf): Likewise.
57008         * math/s_csinf.c (__csinf): Likewise.
57009         * math/s_csinhf.c (__csinhf): Likewise.
57010         * math/s_ctanf.c (__ctanf): Likewise.
57011         * math/s_ctanhf.c (__ctanhf): Likewise.
57012         * math/s_ccosh.c (__ccoshf): Likewise.
57013         * math/s_cexp.c (__cexpl): Likewise.
57014         * math/s_csin.c (__csin): Likewise.
57015         * math/s_csinh.c (__csinh): Likewise.
57016         * math/s_ctan.c (__ctan): Likewise.
57017         * math/s_ctanh.c (ctanh): Likewise.
57018         * math/s_ccoshl.c (__ccoshl): Likewise.
57019         * math/s_cexpl.c (__cexpl): Likewise.
57020         * math/s_csinl.c (__csinl): Likewise.
57021         * math/s_csinhl.c (__csinhl): Likewise.
57022         * math/s_ctanl.c (__ctanl): Likewise.
57023         * math/s_ctanhl.c (__ctanhl): Likewise.
57024
57025 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57026
57027         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57028         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57029         (_IO_off_t): Define to __off_t, not _G_off_t.
57030         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57031         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57032         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57033         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57034         type of __dummy and __dummy2 fields.
57035         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57036         (_G_ssize_t): Likewise.
57037         (_G_off_t): Likewise.
57038         (_G_pid_t): Likewise.
57039         (_G_uid_t): Likewise.
57040         (_G_wchar_t): Likewise.
57041         (_G_wint_t): Likewise.
57042         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57043         (_G_ssize_t): Likewise.
57044         (_G_off_t): Likewise.
57045         (_G_pid_t): Likewise.
57046         (_G_uid_t): Likewise.
57047         (_G_wchar_t): Likewise.
57048         (_G_wint_t): Likewise.
57049         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57050         (_G_ssize_t): Likewise.
57051         (_G_off_t): Likewise.
57052         (_G_pid_t): Likewise.
57053         (_G_uid_t): Likewise.
57054         (_G_wchar_t): Likewise.
57055         (_G_wint_t): Likewise.
57056
57057 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57058
57059         * malloc/arena.c: Include malloc-sysdep.h.
57060         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57061         is sufficient to shrink the heap or an unmap is needed.
57062         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57063         new function check_may_shrink_heap.
57064         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57065         new function check_may_shrink_heap.
57066
57067 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57068
57069         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57070         comments.
57071
57072 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57073
57074         * catgets/test-gencat.sh: Add "set -e".
57075         * elf/tst-pathopt.sh: Likewise.
57076         * grp/tst_fgetgrent.sh: Likewise.
57077         * iconvdata/run-iconv-test.sh: Likewise.
57078         * intl/tst-gettext.sh: Likewise.
57079         * intl/tst-gettext2.sh: Likewise.
57080         * intl/tst-gettext4.sh: Likewise.
57081         * intl/tst-gettext6.sh: Likewise.
57082         * intl/tst-translit.sh: Likewise.
57083         * io/ftwtest-sh: Likewise.
57084         * libio/test-freopen.sh: Likewise.
57085         * malloc/tst-mtrace.sh: Likewise.
57086         * posix/globtest.sh: Likewise.
57087         * posix/tst-getconf.sh: Likewise.
57088         * posix/wordexp-tst.sh: Likewise.
57089         * stdio-common/tst-printf.sh: Likewise.
57090         * stdio-common/tst-unbputc.sh: Likewise.
57091         * stdlib/tst-fmtmsg.sh: Likewise.
57092         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57093         * catgets/Makefile: Do not specify -e option when running
57094         testsuite shell scripts.
57095         * elf/Makefile: Likewise.
57096         * grp/Makefile: Likewise.
57097         * iconvdata/Makefile: Likewise.
57098         * intl/Makefile: Likewise.
57099         * io/Makefile: Likewise.
57100         * libio/Makefile: Likewise.
57101         * malloc/Makefile: Likewise.
57102         * posix/Makefile: Likewise.
57103         * stdio-common/Makefile: Likewise.
57104         * stdlib/Makefile: Likewise.
57105         * sysdeps/x86_64/Makefile: Likewise.
57106
57107         * io/ftwtest-sh: Add copyright header.
57108         * posix/globtest.sh: Likewise.
57109         * posix/tst-getconf.sh: Likewise.
57110         * posix/wordexp-tst.sh: Likewise.
57111         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57112
57113 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57114
57115         [BZ #13679]
57116         * Makeconfig (+link): Defined as $(+link-static) if
57117         $(build-shared) isn't yes.
57118         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57119         isn't yes.
57120         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57121
57122         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57123
57124         [BZ #14562]
57125         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57126         new chunk size with MALLOC_ALIGN_MASK.
57127
57128 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57129
57130         [BZ #5044]
57131         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57132         <rounding-mode.h>.
57133         (__printf_fphex): Determine rounding using get_rounding_mode and
57134         round_away.
57135         * stdio-common/tst-printf-round.c (struct hex_test): New
57136         structure.
57137         (hex_tests): New variable.
57138         (test_hex_in_one_mode): New function.
57139         (do_test): Also run tests for hex float output.
57140
57141 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57142
57143         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57144         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57145         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57146         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57147         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57148         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57149         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57150         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57151
57152 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57153
57154         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57155         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57156         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57157         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57158
57159 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57160
57161         [BZ #14579]
57162         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57163         mode only.
57164         * elf/tst-rtld-load-self.sh: New test.
57165         * elf/Makefile: Run it.
57166
57167 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57168
57169         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57170         (tst-writev-ENV): Remove.
57171         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57172
57173 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57174
57175         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57176
57177 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57178
57179         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57180         unconditional.
57181         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57182         Likewise.
57183         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57184         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57185         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57186         Likewise.
57187
57188 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57189
57190         [BZ #14587]
57191         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57192         * config.make.in (have-cpp-asm-debuginfo): Removed.
57193         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57194         * configure: Regenerated.
57195
57196 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57197
57198         [BZ #5044]
57199         * stdio-common/printf_fp.c: Include <stdbool.h> and
57200         <rounding-mode.h>.
57201         (___printf_fp): Determine rounding using get_rounding_mode and
57202         round_away.
57203         * stdio-common/tst-printf-round.c: New file.
57204         * stdio-common/Makefile (tests): Add tst-printf-round.
57205         (link-libm): New variable.
57206         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57207
57208 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57209
57210         [BZ #14576]
57211         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57212         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57213         Likewise.
57214         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57215         Likewise.
57216
57217 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57218
57219         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57220         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57221         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57222         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57223
57224 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57225
57226         [BZ #14518]
57227         * include/rounding-mode.h: New file.
57228         * sysdeps/generic/get-rounding-mode.h: Likewise.
57229         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57230         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57231         (MAX_VALUE): New macro.
57232         (MIN_VALUE): Likewise.
57233         (overflow_value): New function.
57234         (underflow_value): Likewise.
57235         (round_and_return): Use overflow_value and underflow_value to
57236         determine return values in overflow and underflow cases.  Use
57237         round_away to determine rounding depending on rounding mode.
57238         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57239         determine return values in overflow and underflow cases.
57240         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57241         (struct test_results): New structure.
57242         (struct test): Use struct test_results to store expected results
57243         for all rounding modes.
57244         (TEST): Include expected results for all rounding modes.
57245         (test_in_one_mode): New function.
57246         (do_test): Use test_in_one_mode to compute and check results.
57247         Check results for all rounding modes.
57248         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57249         $(link-libm).
57250
57251 2012-12-09  Allan McRae  <allan@archlinux.org>
57252
57253         * sysdeps/i386/fpu/libm-test-ulps: Update
57254
57255 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57256
57257         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57258         (_G_int32_t): Likewise.
57259         (_G_uint16_t): Likewise.
57260         (_G_uint32_t): Likewise.
57261         (_G_HAVE_BOOL): Likewise.
57262         (_G_HAVE_ATEXIT): Likewise.
57263         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57264         (_G_HAVE_IO_FILE_OPEN): Likewise.
57265         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57266         (_G_int32_t): Likewise.
57267         (_G_uint16_t): Likewise.
57268         (_G_uint32_t): Likewise.
57269         (_G_HAVE_BOOL): Likewise.
57270         (_G_HAVE_ATEXIT): Likewise.
57271         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57272         (_G_HAVE_IO_FILE_OPEN): Likewise.
57273         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57274         (_G_int32_t): Likewise.
57275         (_G_uint16_t): Likewise.
57276         (_G_uint32_t): Likewise.
57277         (_G_HAVE_BOOL): Likewise.
57278         (_G_HAVE_ATEXIT): Likewise.
57279         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57280         (_G_HAVE_IO_FILE_OPEN): Likewise.
57281
57282 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57283
57284         * csu/libc-tls.c: Update copyright years.
57285
57286 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57287
57288         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57289         [!_G_USING_THUNKS]: Remove conditional code.
57290         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57291         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57292
57293         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57294         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57295         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57296         (_G_VTABLE_LABEL_PREFIX): Likewise.
57297         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57298         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57299         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57300         (_G_VTABLE_LABEL_PREFIX): Likewise.
57301         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57302         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57303         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57304         (_G_VTABLE_LABEL_PREFIX): Likewise.
57305         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57306
57307 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57308
57309         * libio/Makefile: Include ../Makeconfig before tests.
57310         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57311         only if $(build-shared) is yes.
57312
57313         * iconv/gconv_db.c: Update copyright years.
57314
57315 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57316
57317         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57318         unwind info if defined PIC. Fix special cases description.
57319         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57320
57321         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57322         DP_HI_MASK entry.
57323         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57324
57325 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57326
57327         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57328
57329         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57330         is NULL.
57331
57332         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57333         (LDLIBS-tst-chk4): This.
57334         (LDFLAGS-tst-chk5): Renamed to ...
57335         (LDLIBS-tst-chk5): This.
57336         (LDFLAGS-tst-chk6): Renamed to ...
57337         (LDLIBS-tst-chk6): This.
57338         (LDFLAGS-tst-lfschk4): Renamed to ...
57339         (LDLIBS-tst-lfschk4): This.
57340         (LDFLAGS-tst-lfschk5): Renamed to ...
57341         (LDLIBS-tst-lfschk5): This.
57342         (LDFLAGS-tst-lfschk6): Renamed to ...
57343         (LDLIBS-tst-lfschk6): This.
57344
57345         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57346         on $(common-objpfx)soversions.mk.
57347
57348 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57349
57350         [BZ #10014]
57351         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57352         example host name.
57353
57354 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57355
57356         * malloc/arena.c (arena_get_retry): New function that gets
57357         another arena for the caller to try its request on.
57358         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57359         current arena cannot fulfill the request.
57360         (__libc_memalign): Likewise.
57361         (__libc_memalign): Likewise.
57362         (__libc_pvalloc): Likewise.
57363         (__libc_calloc): Likewise.
57364
57365 2012-09-05  John Tobey  <john.tobey@gmail.com>
57366
57367         [BZ #13542]
57368         * manual/arith.texi (Operations on Complex): Fix description
57369         of carg branch cut.
57370
57371 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57372
57373         [BZ #10014]
57374         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57375         host name.
57376
57377         [BZ #10038]
57378         * manual/memory.texi (Memory): Make order of menu items match
57379         order of sections.
57380
57381 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57382
57383         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57384         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57385         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57386
57387 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57388
57389         * csu/libc-tls.c (static_dtv): Renamed to ...
57390         (_dl_static_dtv): This.  Make it global.
57391         (_dl_initial_dtv): Removed.
57392         (__libc_setup_tls): Updated.
57393         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57394         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57395         DL_INITIAL_DTV.
57396
57397 2012-09-06  Petr Machata  <pmachata@redhat.com>
57398
57399         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57400         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57401         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57402         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57403
57404 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57405
57406         [BZ #14545]
57407         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57408         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57409         freeing dtv[-1].
57410
57411 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57412
57413         [BZ #14544]
57414         * Makeconfig (link-static-before-libc): Replace $(+prector)
57415         with $(+prectorT).
57416         (link-static-after-libc): Replace $(+postctor) with
57417         $(+postctorT).
57418         (link-bounded): Replace $(+prector)/$(+postctor) with
57419         $(+prectorT)/$(+postctorT).
57420         (+prectorT): New macro.
57421         (+postctorT): Likewise.
57422
57423 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57424
57425         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57426         (round_str): Handle values above the maximum for IBM long double
57427         as inexact.
57428         * stdlib/tst-strtod-round.c (tests): Regenerated.
57429
57430 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57431
57432         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57433         assembler flag.
57434         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57435         zarch_nohighgprs around the zarch optimized routines.
57436         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57437         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57438         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57439         for zarch.
57440
57441 2012-09-05  David S. Miller  <davem@davemloft.net>
57442
57443         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57444
57445         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57446         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57447         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57448         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57449         entries.
57450
57451 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57452
57453         * malloc/arena.c: Fold copyright years.
57454         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57455
57456 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57457
57458         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57459
57460 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57461
57462         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57463
57464 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57465
57466         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57467         change internal state upon failure.
57468
57469 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57470
57471         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57472         * malloc/memusage.c (mmap): Likewise.
57473         (mmap64, mremap): Likewise.  Adjust name in comment.
57474
57475 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57476
57477         * libio/fileops.c: Fix typos in comments.
57478         * libio/oldfileops.c: Likewise.
57479         * libio/wfileops.c: Likewise.
57480
57481 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57482
57483         [BZ #1349]
57484         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57485         (tst-malloc-usable-ENV): Set environment for test case.
57486         * malloc/hooks.c (malloc_check_get_size): New function to get
57487         requested size.
57488         * malloc/malloc.c (musable): Use malloc_check_get_size.
57489         * malloc/tst-malloc-usable.c: New test case.
57490
57491 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57492
57493         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57494
57495 2012-09-05  Allan McRae  <allan@archlinux.org>
57496
57497         [BZ #13966]
57498         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57499         determine header location.
57500         * configure: Regenerated.
57501
57502 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57503
57504         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57505         float format.
57506         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57507         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57508         format.
57509         (test): Regenerate.
57510
57511 2012-09-04  David S. Miller  <davem@davemloft.net>
57512
57513         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57514         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57515         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57516
57517 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57518
57519         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57520         failures.
57521
57522         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57523
57524 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57525
57526         [BZ #9914]
57527         * libio/iogetdelim.c: Include <limits.h>.
57528         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57529         + len + 1 would overflow.
57530
57531 2012-09-03  Andreas Jaeger  <aj@suse.de>
57532
57533         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57534         * sysdeps/i386/fpu/libm-test-ulps: Update.
57535
57536 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57537
57538         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57539         Add s_sinf-sse2, s_conf-sse2.
57540
57541         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57542         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57543         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57544         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57545
57546         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57547         for using routine as __sinf_ia32.
57548         Use macro for function declaration and weak_alias.
57549         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57550         for using routine as __cosf_ia32.
57551         Use macro for function declaration and weak_alias.
57552
57553         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
57554         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
57555
57556         * sysdeps/x86_64/fpu/s_sinf.S: New file.
57557         * sysdeps/x86_64/fpu/s_cosf.S: New file.
57558         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57559
57560         * math/libm-test.inc (cos_test): Add more test cases.
57561         (sin_test): Likewise.
57562         (sincos_test): Likewise.
57563
57564 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57565
57566         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57567         (IFUNC_RESOLVE): Make pointers to the specialized implementations
57568         hidden.
57569         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57570
57571 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
57572
57573         [BZ #14538]
57574         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
57575         first element of the GOT.
57576         (elf_machine_load_address): Return the difference between
57577         the runtime address of _DYNAMIC and elf_machine_dynamic ().
57578
57579 2012-09-01  Allan McRae  <allan@archlinux.org>
57580
57581         [BZ #13412]
57582         * configure.in (AWK): Require gawk version 3.0 or later.
57583         * configure: Regenerated.
57584
57585 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
57586
57587         * sysdeps/unix/sysv/linux/kernel-features.h
57588         (__ASSUME_POSIX_CPU_TIMERS): Remove.
57589         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
57590         [__NR_clock_getres]: Make code unconditional.
57591         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
57592         (clock_getcpuclockid): Remove code left unreachable by removal of
57593         conditionals.
57594         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
57595         code unconditional.
57596         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57597         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57598         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
57599         Make code unconditional.
57600         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57601         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57602         * sysdeps/unix/sysv/linux/clock_settime.c
57603         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
57604         conditional code.
57605         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
57606         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57607
57608 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
57609
57610         [BZ #14476]
57611         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
57612         scripts/test-installation.pl.
57613
57614         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
57615         and $ld_so_version if it is set.
57616
57617 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
57618
57619         [BZ #14516]
57620         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
57621         failure if reading from procfs failed.
57622         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
57623
57624 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57625
57626         * sysdeps/unix/sysv/linux/kernel-features.h
57627         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
57628         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57629         Remove conditional code.
57630         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57631         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
57632         Remove conditional code.
57633         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57634         * sysdeps/unix/sysv/linux/i386/fxstat.c
57635         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57636         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57637         * sysdeps/unix/sysv/linux/i386/fxstatat.c
57638         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57639         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57640         * sysdeps/unix/sysv/linux/i386/lxstat.c
57641         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57642         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57643         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
57644         Remove conditional code.
57645         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57646         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57647         Remove conditional code.
57648         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57649         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
57650         <kernel-features.h>.
57651         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
57652         Remove.
57653         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
57654         Remove conditional code.
57655         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57656         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
57657         Remove conditional.
57658
57659 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
57660
57661         [BZ #5400]
57662         * NEWS: Add fixed bug number.
57663
57664 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57665
57666         [BZ #14519]
57667         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
57668         underflowing exponent in case of negative sign.
57669         * stdlib/tst-strtod-round-data: Add more tests.
57670         * stdlib/tst-strtod-round.c (tests): Regenerated.
57671
57672         [BZ #3479]
57673         * stdlib/strtod_l.c (NDIG): Remove.
57674         (HEXNDIG): Likewise.
57675         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
57676         smallest representable value.
57677         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
57678         lie within an exact representation of 1/2 ulp of the result.
57679         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
57680         unconditionally.
57681         (TENS_P9_IDX): Define unconditionally.
57682         (TENS_P9_SIZE): Likewise.
57683         (TENS_P10_IDX): Likewise.
57684         (TENS_P10_SIZE): Likewise.
57685         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
57686         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
57687         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
57688         entries for 10^2^13 and 10^2^14.
57689         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
57690         (TENS_P13_IDX): Define.
57691         (TENS_P13_SIZE): Likewise.
57692         (TENS_P14_IDX): Likewise.
57693         (TENS_P14_SIZE): Likewise.
57694         (_fpioconst_pow10): Change array size to
57695         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
57696         unconditional.
57697         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
57698         1024]: Add entries for 10^2^13 and 10^2^14.
57699         [LAST_POW10 > _LAST_POW10]: Remove #error.
57700         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
57701         (_fpioconst_pow10): Change array size to
57702         FPIOCONST_POW10_ARRAY_SIZE.
57703         * stdlib/gen-fpioconst.c: New file.
57704         * stdlib/gen-tst-strtod-round.c: Likewise.
57705         * stdlib/tst-strtod-round-data: Likewise.
57706         * stdlib/tst-strtod-round.c: Likewise.
57707         * stdlib/Makefile (tests): Add tst-strtod-round.
57708
57709         [BZ #14459]
57710         * stdlib/strtod_l.c: Include <stdint.h>.
57711         (NDEBUG): Do not define.
57712         (round_and_return): Change EXPONENT parameter to type intmax_t.
57713         Rearrange calculations to avoid internal overflow possibilities.
57714         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
57715         Rearrange calculations to avoid internal overflow possibilities.
57716         Assert that number fits inside MPNSIZE limbs.
57717         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
57718         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
57719         calculations and add assertions to avoid internal overflow
57720         possibilities.  Add casts to avoid signed/unsigned operations.
57721         * stdlib/tst-strtod-overflow.c: New file.
57722         * stdlib/Makefile (tests): Add tst-strtod-overflow.
57723
57724 2012-08-25  Marek Polacek  <polacek@redhat.com>
57725
57726         * time/time.h: Fix some typos in comments.
57727
57728 2012-08-23  Roland McGrath  <roland@hack.frob.com>
57729
57730         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
57731         * posix/tst-rfc3484-2.c: Likewise.
57732         * posix/tst-rfc3484-3.c: Likewise.
57733
57734 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
57735
57736         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
57737         (EF_ARM_ABI_FLOAT_HARD): Likewise.
57738
57739 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
57740
57741         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
57742         #include of fxstatat64.c.
57743
57744 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57745
57746         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
57747         * shadow/getspent_r.c: Likewise.
57748         * shadow/getspnam.c: Likewise.
57749         * shadow/getspnam_r.c: Likewise.
57750         * gshadow/getsgent.c: Likewise.
57751         * gshadow/getsgent_r.c: Likewise.
57752         * gshadow/getsgnam.c: Likewise.
57753         * gshadow/getsgnam_r.c: Likewise.
57754         * inet/getnetbyad.c: Likewise.
57755         * inet/getnetbyad_r.c: Likewise.
57756         * inet/getnetbynm.c: Likewise.
57757         * inet/getnetbynm_r.c: Likewise.
57758         * inet/getnetent.c: Likewise.
57759         * inet/getnetent_r.c: Likewise.
57760         * inet/getproto.c: Likewise.
57761         * inet/getproto_r.c: Likewise.
57762         * inet/getprtent.c: Likewise.
57763         * inet/getprtent_r.c: Likewise.
57764         * inet/getprtname.c: Likewise.
57765         * inet/getprtname_r.c: Likewise.
57766         * inet/getrpcbyname.c: Likewise.
57767         * inet/getrpcbyname_r.c: Likewise.
57768         * inet/getrpcbynumber.c: Likewise.
57769         * inet/getrpcbynumber_r.c: Likewise.
57770         * inet/getrpcent.c: Likewise.
57771         * inet/getrpcent_r.c: Likewise.
57772         * inet/getaliasent.c: Likewise.
57773         * inet/getaliasent_r.c: Likewise.
57774         * inet/getaliasname.c: Likewise.
57775         * inet/getaliasname_r.c: Likewise.
57776         * nscd/getgrgid_r.c: Likewise.
57777         * nscd/getgrnam_r.c: Likewise.
57778         * nscd/gethstbyad_r.c: Likewise.
57779         * nscd/gethstbynm3_r.c: Likewise.
57780         * nscd/getpwnam_r.c: Likewise.
57781         * nscd/getpwuid_r.c: Likewise.
57782         * nscd/getsrvbynm_r.c: Likewise.
57783         * nscd/getsrvbypt_r.c: Likewise.
57784         * nscd/gai.c: Likewise.
57785
57786         * configure.in (build_nscd): New substituted variable, set
57787         by --disable-build-nscd and defaults to $use_nscd.
57788         * configure: Regenerated.
57789         * config.make.in (build-nscd): New substituted variable.
57790         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
57791         Change conditional to require [$(build-nscd) = yes] as well.
57792         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
57793
57794         [BZ# 13696]
57795         * configure.in (use_nscd): New substituted variable, set by
57796         --disable-nscd.  If enabled, define USE_NSCD.
57797         * configure: Regenerated.
57798         * config.h.in: Add USE_NSCD.
57799         * config.make.in (use-nscd): New substituted variable.
57800         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
57801         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
57802         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
57803         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
57804         (CFLAGS-getgrnam_r.c): Likewise.
57805         (CFLAGS-initgroups.c): Likewise.
57806         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
57807         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
57808         Variables removed.
57809         * inet/getnetgrent_r.c
57810         (nscd_setnetgrent): New function, broken out of ...
57811         (setnetgrent): ... here.  Call it.
57812         (innetgr): Conditionalize nscd bits on [USE_NSCD].
57813         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
57814         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
57815         * nscd/Makefile (routines, aux): Move definitions after include of
57816         Makeconfig.  Conditionalize on [$(use-nscd) != no].
57817         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
57818         Conditionalize on [USE_NSCD].
57819         (is_nscd, nscd_init_cb): Likewise.
57820         (nss_load_library): Conditionalize init callback on [USE_NSCD].
57821         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
57822         * nss/nss_db/db-init.c: Likewise.
57823         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
57824         [USE_NSCD].
57825         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
57826         (make_request): Use it.
57827         (cache_valid_p): New function.
57828         (__check_pf): Use it.
57829         * NEWS: Add item for --disable-nscd.
57830
57831 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
57832
57833         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
57834         to support sed >= 4.2.1-20-ga9bf076.
57835         * configure: Regenerated.
57836
57837 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57838
57839         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
57840         Conditionalize whole body on [IREL].
57841
57842 2012-08-22  Jeff Law <law@redhat.com>
57843
57844         [BZ #14505]
57845         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
57846         if the family is PF_UNSPEC.
57847
57848 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
57849
57850         * Makerules (lib-version): Rename from V.
57851         (install-lib-nosubdir): Change V to lib-version.
57852
57853 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
57854
57855         [BZ #14252]
57856         * powerpc32/power6/wcschr.c: New file.
57857         * powerpc32/power6/wcscpy.c: New file.
57858         * powerpc32/power6/wcsrchr.c: New file.
57859         * powerpc64/power6/wcschr.c: New file.
57860         * powerpc64/power6/wcscpy.c: New file.
57861         * powerpc64/power6/wcsrchr.c: New file.
57862
57863 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
57864
57865         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
57866         (two_way_short_needle): Use it.
57867         * string/strstr.c (AVAILABLE1_USES_J): Define.
57868         * string/strcasestr.c: Likewise.
57869
57870         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
57871         array references.
57872         * string/strcasestr.c (TOLOWER): Make side-effect safe.
57873
57874         [BZ #11607]
57875         * NEWS: Add an entry.
57876         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
57877         define their defaults.
57878         (two_way_short_needle): Detect end-of-string on-the-fly.
57879         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
57880         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
57881         * string/bug-strcasestr1.c: New test.
57882         * string/Makefile: Run it.
57883
57884 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
57885
57886         [BZ #11607]
57887         * string/str-two-way.h (two_way_short_needle): Optimize matching of
57888         the first character.
57889
57890 2012-08-21  Roland McGrath  <roland@hack.frob.com>
57891
57892         * csu/elf-init.c (__libc_csu_irel): Function removed.
57893         * csu/libc-start.c (apply_irel): New function.
57894         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
57895
57896 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
57897
57898         * sysdeps/unix/sysv/linux/kernel-features.h
57899         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
57900         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
57901         <kernel-features.h>.
57902         [__NR_fadvise64_64]: Make code unconditional.
57903         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
57904         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
57905         !__NR_fadvise64_64)]: Likewise.
57906         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
57907         !__NR_fadvise64_64))]: Likewise.
57908         [__NR_fadvise64]: Make code unconditional.
57909         [!__NR_fadvise64]: Remove conditional code.
57910         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
57911         <kernel-features.h>.
57912         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
57913         unconditional.
57914         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
57915         conditional code.
57916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
57917         not include <kernel-features.h>.
57918         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
57919         unconditional.
57920         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
57921         conditional code.
57922         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
57923         include <kernel-features.h>.
57924         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
57925         unconditional.
57926         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
57927         conditional code.
57928
57929 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
57930
57931         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
57932         slight instruction rearrangements per scrollpipe analysis.
57933         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
57934
57935 2012-08-20  Roland McGrath  <roland@hack.frob.com>
57936
57937         * manual/syslog.texi (syslog; vsyslog, closelog):
57938         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
57939         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
57940
57941         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
57942         DSOCAPS to match condition on defining it.
57943
57944 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
57945
57946         * sysdeps/unix/sysv/linux/kernel-features.h
57947         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
57948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
57949         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
57950         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
57951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
57952         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
57953         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
57954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
57955         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
57956         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
57957
57958         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
57959         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
57960
57961         * sysdeps/unix/sysv/linux/kernel-features.h
57962         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
57963         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
57964         unconditional.
57965         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
57966         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
57967         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
57968         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
57969         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
57970         Make code unconditional.
57971         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
57972         (__mmap64) [!__NR_mmap2]: Likewise.
57973         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
57974         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
57975         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
57976         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
57977         [__NR_mmap2]: Make code unconditional.
57978         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
57979         (__mmap64) [!__NR_mmap2]: Likewise.
57980
57981 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57982
57983         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
57984
57985 2012-08-18  Andreas Jaeger  <aj@suse.de>
57986
57987         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
57988
57989 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
57990
57991         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
57992         * include/unistd.h (__have_sock_cloexec): Likewise.
57993         (__have_pipe2): Likewise.
57994         (__have_dup3): Likewise.
57995
57996 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
57997
57998         [BZ #9685]
57999         * include/unistd.h (__have_pipe2): Change define into an extern int.
58000         (__have_dup3): Likewise.
58001         * socket/have_sock_cloexec.c: Include fcntl.h.
58002         (__have_pipe2): New variable.
58003         (__have_dup3): Likewise.
58004
58005 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58006
58007         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58008
58009 2012-08-17  Marek Polacek  <polacek@redhat.com>
58010
58011         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58012         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58013
58014 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58015
58016         * configure.in: Add AC_SUBST for sysheaders.
58017         * configure: Regenerated.
58018         * config.make.in (sysheaders): New substituted variable.
58019
58020         * sysdeps/unix/mkfifo.c: Moved ...
58021         * sysdeps/posix/mkfifo.c: ... here.
58022         * sysdeps/unix/mkfifoat.c: Moved ...
58023         * sysdeps/posix/mkfifoat.c: ... here.
58024
58025         * sysdeps/unix/utime.c: Moved ...
58026         * sysdeps/posix/utime.c: ... here.
58027
58028         * sysdeps/unix/time.c: Moved ...
58029         * sysdeps/posix/time.c: ... here.
58030         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58031         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58032
58033         * sysdeps/unix/nice.c: Moved ...
58034         * sysdeps/posix/nice.c: ... here.
58035
58036         * sysdeps/unix/alarm.c: Moved ...
58037         * sysdeps/posix/alarm.c: ... here.
58038
58039         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58040
58041 2012-08-17  Jeff Law <law@redhat.com>
58042
58043         * intl/Makefile (codeset_mo): New variable.
58044         ($(codeset_mo)): New target.
58045         (tst-codeset.out): Depend on that.  Remove explicit rule.
58046         (tst-gettext3.out, tst-gettext5.out): Likewise.
58047         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58048         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58049         * intl/tst-codeset.sh: Remove.
58050         * intl/tst-gettext3.sh: Likewise.
58051         * intl/tst-gettext5.sh: Likewise.
58052
58053 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58054
58055         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58056         * sysdeps/unix/syscalls.list: ... here.
58057
58058         * sysdeps/posix/getaddrinfo.c
58059         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58060         (gaiconf_init, gaiconf_reload): Use them.
58061         [!_STATBUF_ST_NSEC]
58062         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58063         Define using time_t rather than struct timespec.
58064
58065         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58066         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58067         Macros removed.
58068         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58069         [!NO_THREADS].
58070         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58071         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58072         Likewise.
58073
58074         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58075         __libc_cleanup_push argument.
58076
58077         * bits/param.h: New file.
58078         * misc/sys/param.h: New file.
58079         * include/sys/param.h: New file.
58080         * misc/Makefile (headers): Add bits/param.h.
58081         * sysdeps/generic/sys/param.h: File removed.
58082         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58083         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58084         * sysdeps/mach/hurd/bits/param.h: New file.
58085         * sysdeps/mach/hurd/sys/param.h: File removed.
58086
58087         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58088         last change.
58089
58090         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58091         [_IO_MTSAFE_IO].
58092         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58093         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58094         New macros.
58095
58096         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58097         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58098         rather than -D_IO_MTSAFE_IO conditionally.
58099         * stdio-common/Makefile (CPPFLAGS): Likewise.
58100         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58101         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58102         Use $(libio-mtsafe).
58103         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58104         of -D_IO_MTSAFE_IO.
58105         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58106         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58107         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58108         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58109         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58110         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58111         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58112         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58113         (CFLAGS-fread_u_chk.c): Likewise.
58114         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58115         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58116         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58117         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58118         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58119         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58120         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58121         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58122         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58123
58124         * libio/Makefile: Test [$(libc-reentrant) = yes]
58125         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58126
58127         * Makeconfig
58128         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58129         * sysdeps/pthread/configure: File removed.
58130         * sysdeps/pthread/Makeconfig: New file.
58131         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58132         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58133
58134 2012-08-16  Gary Benson  <gbenson@redhat.com>
58135
58136         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58137         unmapping the first object in a namespace.
58138
58139 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58140
58141         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58142         (__internal_setnetgrent): ... this.  Add internal_function to
58143         definition.  Add libc_hidden_def.
58144         (setnetgrent): Update caller.
58145         (internal_endnetgrent): Renamed to ...
58146         (__internal_endnetgrent): ... this.  Add internal_function to
58147         definition.  Add libc_hidden_def.
58148         (endnetgrent): Update caller.
58149         (internal_getnetgrent_r): Renamed to ...
58150         (__internal_getnetgrent_r): ... this.  Add internal_function to
58151         definition.  Add libc_hidden_def.
58152         (__getnetgrent_r): Update caller.
58153         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58154
58155 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58156
58157         * stdlib/longlong.h: Update from GCC.
58158
58159 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58160
58161         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58162         on _QL, which is set by umul_ppmm but never used.
58163         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58164         variables, which are set by GMP macros but never used.
58165         * stdio-common/_itowa.c (_itowa): Likewise.
58166         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58167         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58168
58169 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58170
58171         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58172         struct La_sh_regs is not constant.
58173         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58174         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58175         and struct La_sparc64_regs are not constant.
58176
58177 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58178
58179         * sysdeps/unix/sysv/linux/kernel-features.h
58180         (__ASSUME_POSIX_TIMERS): Remove.
58181         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58182         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58183         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58184         Make code unconditional.
58185         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58186         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58187         Make code unconditional.
58188         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58189         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58190         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58191         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58192         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58193         Make code unconditional.
58194         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58195         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58196         (__libc_missing_posix_timers): Remove.
58197
58198 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58199
58200         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58201         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58202
58203         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58204
58205         * elf/dl-sym.c: Include <stdlib.h>.
58206
58207         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58208         constants, which avoids warnings in 32-bit builds.
58209
58210         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58211         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58212
58213         * misc/lseek.c: File moved to ...
58214         * io/lseek.c: ... here.
58215
58216         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58217
58218         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58219         shifting LEN more than 31 bits at once.
58220
58221 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58222
58223         [BZ #14195]
58224         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58225         segmentation fault for a case of two empty input strings.
58226         * string/test-strncasecmp.c (check1): Renamed to...
58227         (bz12205): ...this.
58228         (bz14195): Add new testcase for two empty input strings and N > 0.
58229         (test_main): Call new testcase, adapt for renamed function.
58230
58231 2012-08-15  Andreas Jaeger  <aj@suse.de>
58232
58233         [BZ #14090]
58234         * crypt/md5test2.c: New test, based on test supplied by Serge
58235         Belyshev <belyshev@depni.sinp.msu.ru>.
58236         * crypt/Makefile (xtests): Add md5test-giant..
58237         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58238
58239 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         [BZ #14090]
58242         * crypt/md5.c (md5_process_block): Don't assume the buffer
58243         length is less than 2**32.
58244         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58245         length is less than 2**64.
58246
58247 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58248
58249         * string/str-two-way.h: Include <sys/param.h>.
58250         (MAX): Macro removed.
58251
58252         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58253         Move #define and #undef of memmove to just before and after
58254         including <string.h>.
58255
58256         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58257         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58258         and after including <string.h>.  Move declarations of
58259         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58260         to before #include "string/memmove.c".
58261
58262         * include/dirent.h: Declare __getdirentries.
58263
58264         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58265         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58266
58267 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58268
58269         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58270         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58271         * sysdeps/i386/configure: Regenerated.
58272         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58273         STABS_CURRENT_FILE, and STABS_FUN.
58274         (END): Remove call to STABS_FUN_END.
58275         (STABS_CURRENT_FILE1): Delete.
58276         (STABS_CURRENT_FILE): Likewise.
58277         (STABS_FUN): Likewise.
58278         (STABS_FUN_END): Likewise.
58279         (STABS_FUN2): Likewise.
58280         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58281         * sysdeps/x86_64/configure: Regenerated.
58282
58283 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58284
58285         * elf/dl-open.c: Include <atomic.h>.
58286         * elf/dl-lookup.c: Likewise.
58287
58288 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58289
58290         * sysdeps/unix/sysv/linux/kernel-features.h
58291         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58292         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58293         unconditionally.
58294         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58295         unconditionally.
58296         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58297         condition on __ASSUME_CLONE_THREAD_FLAGS.
58298
58299 2012-08-14  Andreas Jaeger  <aj@suse.de>
58300
58301         * sysdeps/i386/fpu/libm-test-ulps: Update.
58302
58303 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58304
58305         * include/atomic.h (atomic_exchange_and_add): Split into ...
58306         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58307         New atomic macros.
58308
58309 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58310
58311         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58312
58313 2012-08-13  Jeff Law <law@redhat.com>
58314
58315         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58316         null byte in the output string.
58317
58318 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58319
58320         * sysdeps/unix/sysv/linux/kernel-features.h
58321         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58322         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58323         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58324         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58325         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58326         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58327         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58328
58329 2012-08-09  Jeff Law <law@redhat.com>
58330
58331         [BZ #13939]
58332         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58333         When avoid_arena is set, don't retry in the that arena.  Pick the
58334         next one, whatever it might be.
58335         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58336         (arena_lock): Pass in new parameter to arena_get2.
58337         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58338         arena_get2.
58339         (__libc_malloc): Unify retrying after main arena failure with
58340         __libc_memalign version.
58341         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58342
58343 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58344
58345         [BZ #14166]
58346         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58347         to __redirect_strstr.
58348         (__strstr_sse42): Use typeof __redirect_strstr.
58349         (__strstr_ia32): Likewise.
58350         (__libc_strstr): New prototype.
58351         (strstr): Renamed to ...
58352         (__libc_strstr): This.
58353         (strstr): New strong alias of __libc_strstr.
58354         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58355         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58356         __redirect_time.
58357         Include <time.h>.
58358         (__libc_time): New prototype.
58359         (time_ifunc): Replace time with __libc_time.
58360         (time): New strong alias and hidden definition of __libc_time.
58361         (__GI_time): Remove strong alias.
58362         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58363         Include <stddef.h>.
58364         (memmove): Redefined to __redirect_memmove.
58365         (__memmove_sse2): Use typeof __redirect_memmove.
58366         (__memmove_ssse3): Likewise.
58367         (__memmove_ssse3_back): Likewise.
58368         (__libc_memmove): New prototype.
58369         (memmove): Renamed to ...
58370         (__libc_memmove): This.
58371         (memmove): New strong alias of __libc_memmove.
58372
58373 2012-08-08  Mark Salter  <msalter@redhat.com>
58374
58375         * elf/elf.h
58376         (R_MN10300_TLS_GD): Define.
58377         (R_MN10300_TLS_LD): Likewise.
58378         (R_MN10300_TLS_LDO): Likewise.
58379         (R_MN10300_TLS_GOTIE): Likewise.
58380         (R_MN10300_TLS_IE): Likewise.
58381         (R_MN10300_TLS_LE): Likewise.
58382         (R_MN10300_TLS_DTPMOD): Likewise.
58383         (R_MN10300_TLS_DTPOFF): Likewise.
58384         (R_MN10300_TLS_TPOFF): Likewise.
58385         (R_MN10300_SYM_DIFF): Likewise.
58386         (R_MN10300_ALIGN): Likewise.
58387         (R_MN10300_NUM): Update.
58388
58389 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58390
58391         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58392         Remove.
58393
58394 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58395
58396         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58397
58398         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58399         sysdeps/unix -> sysdeps/posix move.
58400         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58401
58402 2012-08-07      Allan McRae     <allan@archlinux.org>
58403
58404         [BZ #14303]
58405         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58406         (SUNOS_CPP): Likewise.
58407         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58408         not found.
58409         (open_input): Call CPP using execvp.
58410
58411 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58412
58413         * sysdeps/unix/sysv/linux/kernel-features.h
58414         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58415         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58416         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58417         (__ASSUME_WAITID_SYSCALL): Likewise.
58418         * sysdeps/unix/sysv/linux/dl-execstack.c
58419         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58420         code unconditional.
58421         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58422         conditional code.
58423         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58424         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58425         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58426         code.
58427         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58428         unconditional.
58429         [__ASSUME_WAITID_SYSCALL]: Likewise.
58430         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58431
58432 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58433
58434         * sysdeps/unix/closedir.c: Renamed to ...
58435         * sysdeps/posix/closedir.c: ... here.
58436         * sysdeps/unix/dirfd.c: Renamed to ...
58437         * sysdeps/posix/dirfd.c: ... here.
58438         * sysdeps/unix/dirstream.h: Renamed to ...
58439         * sysdeps/posix/dirstream.h: ... here.
58440         * sysdeps/unix/fdopendir.c: Renamed to ...
58441         * sysdeps/posix/fdopendir.c: ... here.
58442         * sysdeps/unix/opendir.c: Renamed to ...
58443         * sysdeps/posix/opendir.c: ... here.
58444         * sysdeps/unix/readdir.c: Renamed to ...
58445         * sysdeps/posix/readdir.c: ... here.
58446         * sysdeps/unix/readdir_r.c: Renamed to ...
58447         * sysdeps/posix/readdir_r.c: ... here.
58448         * sysdeps/unix/rewinddir.c: Renamed to ...
58449         * sysdeps/posix/rewinddir.c: ... here.
58450         * sysdeps/unix/seekdir.c: Renamed to ...
58451         * sysdeps/posix/seekdir.c: ... here.
58452         * sysdeps/unix/telldir.c: Renamed to ...
58453         * sysdeps/posix/telldir.c: ... here.
58454         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58455         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58456         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58457         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58458
58459         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58460         * bits/fcntl.h: ... here.
58461
58462         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58463         not 0.
58464         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58465         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58466         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58467         (struct flock): Move l_start, l_len to the beginning.
58468         Use __pid_t for l_pid.
58469         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58470         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58471         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58472         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58473         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58474         [__USE_LARGEFILE64] (struct flock64): New type.
58475         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58476
58477         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58478         * bits/dirent.h: ... here.
58479
58480         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58481         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58482
58483 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58484
58485         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58486         Change from 2.6.0 to 2.6.16.
58487         * sysdeps/unix/sysv/linux/configure: Regenerated.
58488         * sysdeps/unix/sysv/linux/kernel-features.h
58489         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58490         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58491         version.
58492         (__ASSUME_UTIMES): Likewise.
58493         (__ASSUME_CLONE_STOPPED): Remove.
58494         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58495         architectures, not kernel version.
58496         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58497         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58498         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58499         (__ASSUME_WAITID_SYSCALL): Likewise.
58500         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58501         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58502         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58503         refer to older versions.
58504
58505 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58506
58507         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58508         Define alphasort64 as an alias.
58509         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58510         Define versionsort64 as an alias.
58511         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58512         Define scandir64 as an alias.
58513         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58514         Define scandirat64 as an alias.
58515         * dirent/alphasort64.c (alphasort64):
58516         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58517         * dirent/versionsort64.c: Likewise.
58518         * dirent/scandir64.c: Likewise.
58519         * dirent/scandirat64.c: Likewise.
58520         * sysdeps/wordsize-64/alphasort.c: File removed.
58521         * sysdeps/wordsize-64/alphasort64.c: File removed.
58522         * sysdeps/wordsize-64/scandir.c: File removed.
58523         * sysdeps/wordsize-64/scandir64.c: File removed.
58524         * sysdeps/wordsize-64/scandirat.c: File removed.
58525         * sysdeps/wordsize-64/scandirat64.c: File removed.
58526         * sysdeps/wordsize-64/versionsort.c: File removed.
58527         * sysdeps/wordsize-64/versionsort64.c: File removed.
58528         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58529         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58530         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58531         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58532         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58533         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58534         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58535         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58536
58537         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58538         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58539         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58540         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58541         [defined __arch64__ || defined __sparcv9]
58542         (__INO_T_MATCHES_INO64_T): New macro.
58543         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58544         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58545         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58546         * sysdeps/unix/sysv/linux/bits/dirent.h
58547         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58548         (_DIRENT_MATCHES_DIRENT64): New macro.
58549
58550         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58551         Define lockf64 as an alias.
58552         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
58553         Define fseeko64 as an alias.
58554         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
58555         Define ftello64 as an alias.
58556         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
58557         Define _IO_fgetpos64 and fgetpos64 as aliases.
58558         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
58559         Define _IO_fsetpos64 and fsetpos64 as aliases.
58560         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
58561         Conditionalize body on this.
58562         * libio/fseeko64.c: Likewise.
58563         * libio/ftello64.c: Likewise.
58564         * libio/iofgetpos64.c: Likewise.
58565         * libio/iofsetpos64.c: Likewise.
58566         * sysdeps/wordsize-64/lockf.c: File removed.
58567         * sysdeps/wordsize-64/lockf64.c: File removed.
58568         * sysdeps/wordsize-64/fseeko.c: File removed.
58569         * sysdeps/wordsize-64/fseeko64.c: File removed.
58570         * sysdeps/wordsize-64/ftello.c: File removed.
58571         * sysdeps/wordsize-64/ftello64.c: File removed.
58572         * sysdeps/wordsize-64/iofgetpos.c: File removed.
58573         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
58574         * sysdeps/wordsize-64/iofsetpos.c: File removed.
58575         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
58576         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
58577         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
58578         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
58579         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
58580         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
58581         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
58582         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
58583         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
58584         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
58585         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
58586
58587         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58588         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58589         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
58590         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58591         [defined __arch64__ || defined __sparcv9]
58592         (__OFF_T_MATCHES_OFF64_T): New macro.
58593         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58594         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58595         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
58596         (__OFF_T_MATCHES_OFF64_T): New macro.
58597
58598 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58599
58600         * stdlib/secure-getenv.c (__secure_getenv): Replace
58601         GLIBC_2_16 with GLIBC_2_17.
58602
58603 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58604
58605         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
58606         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
58607
58608 2012-08-03  David S. Miller  <davem@davemloft.net>
58609
58610         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58611
58612 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58613
58614         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
58615         Remove.
58616         (__ASSUME_CORRECT_SI_PID): Likewise.
58617         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
58618         (__ASSUME_TMPFS_NAME): Likewise.
58619         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
58620         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
58621         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
58622         (HAVE_AUX_SECURE): Make definition unconditional.
58623         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
58624         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
58625
58626 2012-08-03  Roland McGrath  <roland@hack.frob.com>
58627
58628         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
58629         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
58630         * sysdeps/mach/hurd/eloop-threshold.h: New file.
58631         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
58632         __eloop_threshold instead of SYMLOOP_MAX.
58633
58634         * sysdeps/generic/eloop-threshold.h: New file.
58635         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
58636         of MAXSYMLINKS.
58637         * elf/chroot_canon.c (chroot_canon): Likewise.
58638
58639 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58640
58641         [BZ #13717]
58642         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58643         Change to 2.6.0 everywhere.
58644         * sysdeps/unix/sysv/linux/configure: Regenerated.
58645         * sysdeps/unix/sysv/linux/kernel-features.h
58646         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
58647         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
58648         kernel versions.
58649         (__ASSUME_POSIX_TIMERS): Define unconditionally.
58650         (__ASSUME_FUTEX_REQUEUE): Remove.
58651         (__ASSUME_STATFS64): Define unconditionally.
58652         (__ASSUME_AT_SECURE): Likewise.
58653         (__ASSUME_CORRECT_SI_PID): Likewise.
58654         (__ASSUME_TGKILL): Define without depending on kernel version for
58655         i386.
58656         (__ASSUME_UTIMES): Likewise.
58657         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
58658         kernel version.
58659         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
58660         (__ASSUME_TMPFS_NAME): Likewise.
58661         * README: Update reference to Linux kernel versions.
58662
58663 2012-08-02  Marek Polacek  <polacek@redhat.com>
58664
58665         [BZ# 14150]
58666         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
58667         libc_cv_asm_type_prefix with %.
58668         * configure: Regenerated.
58669         * include/libc-symbols.h: Remove comment about
58670         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58671         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
58672         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
58673         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
58674         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
58675         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58676         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
58677         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
58678         * elf/tst-unique2mod1.c: Likewise.
58679         * elf/tst-unique1mod2.c: Likewise.
58680         * elf/tst-unique1mod1.c: Likewise.
58681         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
58682         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
58683         Replace ASM_TYPE_DIRECTIVE with .type.
58684         * sysdeps/s390/s390-64/sysdep.h: Likewise.
58685         * sysdeps/i386/sysdep.h: Likewise.
58686         * sysdeps/x86_64/sysdep.h: Likewise.
58687         * sysdeps/sh/sysdep.h: Likewise.
58688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
58689         Do not define ASM_TYPE_DIRECTIVE.
58690         * sysdeps/powerpc/sysdep.h: Likewise.
58691         * sysdeps/powerpc/powerpc32/sysdep.h:
58692         Replace ASM_TYPE_DIRECTIVE with .type.
58693         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
58694         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
58695         * sysdeps/i386/fpu/e_powf.S: Likewise.
58696         * sysdeps/i386/fpu/e_expl.S: Likewise.
58697         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
58698         * sysdeps/i386/fpu/e_acosh.S: Likewise.
58699         * sysdeps/i386/fpu/e_pow.S: Likewise.
58700         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
58701         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
58702         * sysdeps/i386/fpu/s_expm1.S: Likewise.
58703         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
58704         * sysdeps/i386/fpu/e_log2.S: Likewise.
58705         * sysdeps/i386/fpu/e_log2l.S: Likewise.
58706         * sysdeps/i386/fpu/e_scalb.S: Likewise.
58707         * sysdeps/i386/fpu/e_powl.S: Likewise.
58708         * sysdeps/i386/fpu/e_log10f.S: Likewise.
58709         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
58710         * sysdeps/i386/fpu/e_logl.S: Likewise.
58711         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
58712         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
58713         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
58714         * sysdeps/i386/fpu/e_log2f.S: Likewise.
58715         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
58716         * sysdeps/i386/fpu/e_log.S: Likewise.
58717         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
58718         * sysdeps/i386/fpu/e_logf.S: Likewise.
58719         * sysdeps/i386/fpu/e_log10l.S: Likewise.
58720         * sysdeps/i386/fpu/e_atanh.S: Likewise.
58721         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
58722         * sysdeps/i386/fpu/e_log10.S: Likewise.
58723         * sysdeps/i386/fpu/s_frexp.S: Likewise.
58724         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
58725         * sysdeps/i386/fpu/s_asinh.S: Likewise.
58726         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
58727         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
58728         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
58729         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
58730         * sysdeps/i386/i686/strtok.S: Likewise.
58731         * sysdeps/i386/i386-mcount.S: Likewise.
58732         * sysdeps/i386/strtok.S: Likewise.
58733         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
58734         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
58735         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
58736         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
58737         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
58738         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
58739         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
58740         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
58741         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
58742         * sysdeps/x86_64/_mcount.S: Likewise.
58743         * sysdeps/x86_64/strtok.S: Likewise.
58744         * sysdeps/sh/_mcount.S: Likewise.
58745
58746 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58747
58748         * libio/iofopen.c: Include <fcntl.h>.
58749         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
58750         (_IO_fopen64, fopen64): Define as aliases.
58751         * libio/iofopen64.c: Include <fcntl.h>.
58752         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
58753         Conditionalize body on this.
58754         * sysdeps/wordsize-64/iofopen.c: File removed.
58755         * sysdeps/wordsize-64/iofopen64.c: File removed.
58756
58757 2012-08-01  Marek Polacek  <polacek@redhat.com>
58758
58759         * libc/Makeconfig: Use elf in place of binfmt-subdir.
58760         Use dlfcn directly instead of a variable.
58761         (binfmt-subdir): Do not define.
58762         (dlfcn): Likewise.
58763
58764 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
58765
58766         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
58767         Remove all definitions.
58768         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
58769         <kernel-features.h>.
58770         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58771         (miss_F_GETOWN_EX): Remove all definitions.
58772         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
58773         macro definition.
58774         [!__ASSUME_FCNTL64]: Remove conditional code.
58775         [__ASSUME_FCNTL64]: Make code unconditional.
58776         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
58777         <kernel-features.h>.
58778         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58779         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
58780         (lockf64) [__NR_fcntl64]: Make code unconditional.
58781         (lockf64) [__ASSUME_FCNTL64]: Likewise.
58782
58783         * sysdeps/unix/sysv/linux/kernel-features.h
58784         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
58785         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
58786         Make code unconditional.
58787         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58788         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
58790         [__NR_vfork]: Make code unconditional.
58791         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58792         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
58794         [__NR_vfork]: Make code unconditional.
58795         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58796         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58797
58798 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58799
58800         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
58801         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
58802
58803         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58804         Define mkstemp64 as an alias.
58805         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58806         Define mkstemps64 as an alias.
58807         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58808         Define mkostemp64 as an alias.
58809         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58810         Define mkostemps64 as an alias.
58811         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
58812         Conditionalize body on this.
58813         * misc/mkostemp64.c: Likewise.
58814         * misc/mkostemps64.c: Likewise.
58815         * misc/mkstemps64.c: Likewise.
58816         * sysdeps/wordsize-64/mkstemp64.c: File removed.
58817         * sysdeps/wordsize-64/mkostemp64.c: File removed.
58818         * sysdeps/wordsize-64/mkostemp.c: File removed.
58819         * sysdeps/wordsize-64/mkstemp.c: File removed.
58820         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
58821         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
58822         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
58823         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
58824
58825         [BZ #14138]
58826         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
58827         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
58828         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
58829         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
58830
58831         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
58832         compat_symbol macros from <shlib-compat.h> rather than the underlying
58833         default_symbol_version and symbol_version macros, so that DEFAULT
58834         lines in shlib-versions are respected.
58835         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
58836
58837 2012-08-01  Florian Weimer  <fweimer@redhat.com>
58838
58839         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
58840         Declare with warn_unused_result.
58841         (setgid, setregid, setegid, setresgid): Likewise.
58842         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
58843         Likewise.
58844         * WUR-REPORT: Remove set*id functions.
58845
58846 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
58847
58848         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
58849
58850 2012-07-31  Roland McGrath  <roland@hack.frob.com>
58851
58852         [BZ #10191]
58853         * include/sys/socket.h (__libc_accept, __libc_accept4):
58854         Add attribute_hidden.
58855         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
58856
58857         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
58858         use of PTR_MANGLE.
58859         * inet/getnetgrent_r.c (setup): Likewise.
58860
58861         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
58862
58863 2012-07-31  David S. Miller  <davem@davemloft.net>
58864
58865         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58866
58867 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
58868
58869         [BZ #13629]
58870         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
58871         value between 1.0 and 2.0 and smaller part has absolute value less
58872         than 1.0.
58873         * math/s_clog10.c (__clog10): Likewise.
58874         * math/s_clog10f.c (__clog10f): Likewise.
58875         * math/s_clog10l.c (__clog10l): Likewise.
58876         * math/s_clogf.c (__clogf): Likewise.
58877         * math/s_clogl.c (__clogl): Likewise.
58878         * math/libm-test.inc (clog_test): Add more tests.
58879         (clog10_test): Likewise.
58880         * sysdeps/i386/fpu/libm-test-ulps: Update.
58881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58882
58883 2012-07-31  Florian Weimer  <fweimer@redhat.com>
58884
58885         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
58886         Exit with zero in case no suitable GID is found, and write a
58887         message to standard error.
58888
58889 2012-07-30  Roland McGrath  <roland@hack.frob.com>
58890
58891         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
58892         rather than to 1.
58893         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
58894         (MAXPATHLEN): Removed.
58895         (NOGROUP, NODEV): New macros.
58896         (setbit, clrbit, isset, isclr): New macros.
58897         (howmany, roundup, powerof2): New macros.
58898         (DEV_BSIZE): New macro.
58899
58900         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
58901         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
58902
58903         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
58904         definition on [!__NO_LONG_DOUBLE_MATH].
58905
58906         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
58907         PTR_MANGLE and PTR_DEMANGLE.
58908
58909         * socket/accept4.c (accept4): Rename to __libc_accept4.
58910         Define accept4 as a weak alias.
58911
58912         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
58913         on [_DIRENT_HAVE_D_TYPE].
58914         * io/ftw.c (ftw_dir): Likewise.
58915
58916         * io/xmknod.c (__xmknod): Don't check PATH for being null.
58917
58918         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
58919
58920         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
58921         Use the BSD numbers rather than the arbitrary ones we had.
58922         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
58923         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
58924         (SIGXCPU, SIGXFSZ): New macros.
58925         (_NSIG): Now 32.
58926
58927         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
58928         initializer on [_LIBC_REENTRANT].
58929
58930         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
58931         definitions inside [_POSIX_MAPPED_FILES].
58932
58933         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
58934
58935         * dirent/opendir.c: Include <fcntl.h>.
58936
58937         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
58938         (__libc_getspecific): Likewise.
58939         (__libc_key_create): Likewise.
58940
58941         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
58942         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
58943         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
58944         (tmpfile64): Define as alias.
58945         * sysdeps/wordsize-64/tmpfile.c: File removed.
58946         * sysdeps/wordsize-64/tmpfile64.c: File removed.
58947         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
58948         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
58949
58950         * stdio-common/vfscanf.c: Include <stdbool.h>.
58951         * nss/makedb.c: Likewise.
58952         * stdio-common/_i18n_number.h: Likewise.
58953         * argp/argp-help.c: Likewise.
58954         * posix/wordexp.c: Likewise.
58955         * sysdeps/posix/spawni.c: Likewise.
58956         * nss/nss_files/files-initgroups.c: Likewise.
58957         * stdio-common/reg-modifier.c: Include <stdlib.h>.
58958         * nss/nss_files/files-initgroups.c: Likewise.
58959         * nss/nss_db/db-netgrp.c: Likewise.
58960         * nss/nss_db/db-initgroups.c: Likewise.
58961         * io/fchmodat.c: Include <sys/stat.h>.
58962
58963         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
58964         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
58965
58966         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
58967         [HAVE_MMAP].
58968
58969         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
58970         Add multiple inclusion protection.
58971
58972 2012-07-27  David S. Miller  <davem@davemloft.net>
58973
58974         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58975
58976 2012-07-27  Gary Benson  <gbenson@redhat.com>
58977
58978         [BZ #14298]
58979         * elf/rtld.c: Include <stap-probe.h>.
58980         (dl_main): Added static probes "init_start" and "init_complete".
58981         * elf/dl-load.c: Include <stap-probe.h>.
58982         (lose): Take new parameter "nsid".
58983         Added static probe "map_failed".
58984         (_dl_map_object_from_fd): Pass namespace id to lose.
58985         Added static probe "map_start".
58986         (open_verify): Pass namespace id to lose.
58987         * elf/dl-open.c: Include <stap-probe.h>.
58988         (dl_open_worker) Added static probes "map_complete", "reloc_start"
58989         and "reloc_complete".
58990         * elf/dl-close.c: Include <stap-probe.h>.
58991         (_dl_close_worker): Added static probes "unmap_start" and
58992         "unmap_complete".
58993         * elf/rtld-debugger-interface.txt: New file documenting the above.
58994
58995 2012-07-26  Roland McGrath  <roland@hack.frob.com>
58996
58997         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
58998         rather than a string variable.
58999         * sunrpc/rpc_main.c (h_output): Likewise.
59000         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59001
59002 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59003
59004         * inet/check_native.c: New file.
59005
59006 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59007
59008         [BZ #13629]
59009         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59010         if larger part has absolute value 1.0.
59011         * math/s_clog10.c (__clog10): Likewise.
59012         * math/s_clog10f.c (__clog10f): Likewise.
59013         * math/s_clog10l.c (__clog10l): Likewise.
59014         * math/s_clogf.c (__clogf): Likewise.
59015         * math/s_clogl.c (__clogl): Likewise.
59016         * math/libm-test.inc (clog_test): Add more tests.
59017         (clog10_test): Likewise.
59018         * sysdeps/i386/fpu/libm-test-ulps: Update.
59019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59020
59021         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59022         (pltexit): Likewise.
59023         (La_regs): Likewise.
59024         (La_retval): Likewise.
59025         (int_retval): Likewise.
59026         Update #error for removed macros to refer only to definitions in
59027         tst-audit.h.
59028         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59029         macro.
59030         (pltexit): Likewise.
59031         (La_regs): Likewise.
59032         (La_retval): Likewise.
59033         (int_retval): Likewise.
59034         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59035         macro.
59036         (pltexit): Likewise.
59037         (La_regs): Likewise.
59038         (La_retval): Likewise.
59039         (int_retval): Likewise.
59040         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59041         macro.
59042         (pltexit): Likewise.
59043         (La_regs): Likewise.
59044         (La_retval): Likewise.
59045         (int_retval): Likewise.
59046         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59047         macro.
59048         (pltexit): Likewise.
59049         (La_regs): Likewise.
59050         (La_retval): Likewise.
59051         (int_retval): Likewise.
59052         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59053         macro.
59054         (pltexit): Likewise.
59055         (La_regs): Likewise.
59056         (La_retval): Likewise.
59057         (int_retval): Likewise.
59058         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59059         macro.
59060         (pltexit): Likewise.
59061         (La_regs): Likewise.
59062         (La_retval): Likewise.
59063         (int_retval): Likewise.
59064         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59065         macro definitions in tst-audit.h.
59066         * sysdeps/i386/tst-audit.h: New file.
59067         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59068         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59069         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59070         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59071         * sysdeps/sh/tst-audit.h: Likewise.
59072         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59073         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59074         * sysdeps/x86_64/tst-audit.h: Likewise.
59075
59076 2012-07-26  Andreas Jaeger  <aj@suse.de>
59077
59078         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59079         ptrace.
59080
59081         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59082         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59083         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59084         PTRACE_O_MASK.
59085         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59086         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59087         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59088
59089         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59090         value.
59091
59092         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59093         _sigsys.
59094         (si_call_addr, si_syscall, si_arch): Define new macro.
59095         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59096         _sigsys.
59097         (si_call_addr, si_syscall, si_arch): Define new marcro.
59098         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59099         _sigsys.
59100         (si_call_addr, si_syscall, si_arch): Define new macro.
59101         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59102         _sigsys.
59103         (si_call_addr, si_syscall, si_arch): Define new macro.
59104
59105 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59106
59107         [BZ #13717]
59108         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59109         Change to 2.4.21 where previously 2.4.1.
59110         * sysdeps/unix/sysv/linux/configure: Regenerated.
59111         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59112         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59113         Linux kernel version.
59114         (__ASSUME_STD_AUXV): Remove.
59115         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59116         kernel version.
59117         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59118         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59119         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59120         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59121         (__ASSUME_NETLINK_SUPPORT): Likewise.
59122         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59123         (__no_netlink_support): Remove conditional definition.
59124         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59125         Remove.
59126         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59127         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59128         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59129         (if_nameindex_ioctl): Remove.
59130         (if_nameindex_netlink): Do not handle __no_netlink_support.
59131         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59132         code.
59133         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59134         Remove conditional code.
59135         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59136         code.
59137         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59138         unconditional.
59139         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59140         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59141         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59142         Remove.
59143         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59144         [!__ASSUME_STD_AUXV]: Remove conditional code.
59145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59146         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59147         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59149         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59150         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59151         code.
59152         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59154         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59155         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59156         conditional code.
59157         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59159         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59160         code.
59161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59162         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59163         conditional code.
59164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59165         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59166         code unconditional.
59167         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59168         conditional code.
59169         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59170         unconditional.
59171         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59172         conditional code.
59173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59174         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59175         unconditional.
59176         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59177         conditional code.
59178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59179         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59180         code unconditional.
59181         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59182         conditional code.
59183         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59184         unconditional.
59185         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59186         conditional code.
59187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59188         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59189         code unconditional.
59190         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59191         conditional code.
59192         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59193         unconditional.
59194         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59195         conditional code.
59196
59197 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59198
59199         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59200         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59201         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59202         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59203         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59204         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59205         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59206         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59207         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59208         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59209         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59210         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59211         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59212         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59213         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59214         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59215         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59216         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59217         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59218         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59219         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59220         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59221         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59222
59223 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59224
59225         * Versions.def: Add GLIBC_2.17.
59226         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59227         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59228         Introduce __libc_secure_getenv.
59229         * stdlib/Versions (2.17): Add secure_getenv
59230         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59231         * stdlib/secure-getenv.c: Rename __secure_getenv to
59232         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59233         symbol __secure_getenv for GLIBC_2.0.
59234         * stdlib/tst-secure-getenv.c: New.
59235         * stdlib/Makefile (tests): Add testcase.
59236         * manual/startup.texi (Environment Access): Document
59237         secure_getenv.
59238         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59239         __libc_secure_getenv.
59240         * inet/ruserpass.c (ruserpass): Likewise.
59241         * malloc/mtrace.c (mtrace): Likewise.
59242         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59243         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59244         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59245         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59246         HAVE_SECURE_GETENV.
59247         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59248         __secure_getenv to __libc_secure_getenv.
59249         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59251         Likewise.
59252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59253         Likewise.
59254         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59255         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59256         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59257         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59258         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59259         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59260         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59261
59262 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59263
59264         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59265         (struct La_i86_retval): Likewise.
59266         (struct La_x86_64_regs): Likewise.
59267         (struct La_x86_64_retval): Likewise.
59268         (struct La_x32_regs): Likewise.
59269         (struct La_x32_retval): Likewise.
59270         (struct La_ppc32_regs): Likewise.
59271         (struct La_ppc32_retval): Likewise.
59272         (struct La_ppc64_regs): Likewise.
59273         (struct La_ppc64_retval): Likewise.
59274         (struct La_sh_regs): Likewise.
59275         (struct La_sh_retval): Likewise.
59276         (struct La_s390_32_regs): Likewise.
59277         (struct La_s390_32_retval): Likewise.
59278         (struct La_s390_64_regs): Likewise.
59279         (struct La_s390_64_retval): Likewise.
59280         (struct La_sparc32_regs): Likewise.
59281         (struct La_sparc32_retval): Likewise.
59282         (struct La_sparc64_regs): Likewise.
59283         (struct La_sparc64_retval): Likewise.
59284         (struct audit_ifaces): Remove architecture-specific pltenter and
59285         pltexit members.
59286         * sysdeps/i386/ldsodefs.h: New file.
59287         * sysdeps/powerpc/ldsodefs.h: Likewise.
59288         * sysdeps/s390/ldsodefs.h: Likewise.
59289         * sysdeps/sh/ldsodefs.h: Likewise.
59290         * sysdeps/sparc/ldsodefs.h: Likewise.
59291         * sysdeps/x86_64/ldsodefs.h: Likewise.
59292
59293 2012-07-25  Marek Polacek  <polacek@redhat.com>
59294
59295         [BZ #6808]
59296         * math/libm-test.inc (yn_test): Add another test.
59297         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59298         to ERANGE when the result is +-Inf.
59299         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59300         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59301         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59302         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59303
59304 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59305
59306         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59307         equal to 0.
59308         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59309         clock_t.
59310         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59311
59312 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59313
59314         * configure.in <sysdeps resolving>: Correct printing
59315         Implies_before.
59316         * configure: Regenerate.
59317
59318 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59319
59320         * math/w_ilogb.c: Include <limits.h>.
59321         * math/w_ilogbl.c: Likewise.
59322
59323 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59324
59325         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59326         va_copy.  Document allowing for unavailable va_copy only as
59327         pre-C99 compatibility.
59328         * manual/string.texi (Copying and Concatenation): Use va_copy
59329         instead of __va_copy in concat example.
59330
59331 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59332
59333         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59334         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59335         it if not null.
59336
59337         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59338         with O_NOLINK passed to __file_name_lookup.
59339
59340         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59341         with O_NOLINK passed to __file_name_lookup.
59342
59343         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59344         negative N or less than NGIDS.
59345
59346         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59347         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59348         enough.  Use memcpy instead of strncpy.
59349
59350 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59351
59352         * elf/Makefile (check-data): Remove.
59353         (localplt.data): New vpath directive.
59354         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59355         instead of $(check-data).
59356         * scripts/data/localplt-generic.data: Move to ...
59357         * sysdeps/generic/localplt.data: ... here.
59358         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59359         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59360         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59362         ... here.
59363         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59365         ... here.
59366         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59367         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59368         ... here.
59369         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59370         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59371         ... here.
59372         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59373         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59374         ... here.
59375         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59376         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59377         ... here.
59378
59379 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59380
59381         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59382         PPC32 and PPC64 files.
59383         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59384         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59385
59386 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59387
59388         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59389         __makecontext_ret to ...
59390         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59391         ... here and call exit if uc_link is NULL.  New file.
59392         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59393         __makecontext_ret.S.
59394         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59395         __makecontext_ret to ...
59396         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59397         ... here and call exit if uc_link is NULL.  New file.
59398         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59399         __makecontext_ret.S.
59400
59401 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59402
59403         * elf/elf.h (R_390_IRELATIVE): New definition.
59404         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59405         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59406         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59407         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59408         (elf_machine_lazy_rel): Likewise.
59409         * sysdeps/s390/dl-irel.h: New file.
59410         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59411         * sysdeps/s390/s390-64/memset.S: New asm code.
59412         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59413         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59414         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59415         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59416         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59417         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59418         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59419         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59420         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59421         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59422         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59423         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59424         * sysdeps/s390/s390-32/memset.S: New asm code.
59425         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59426
59427 2012-07-17  Marek Polacek  <polacek@redhat.com>
59428
59429         [BZ #14349]
59430         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59431         * sysdeps/s390/s390-64/configure.in: Likewise.
59432         * sysdeps/sparc/configure.in: Likewise.
59433         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59434         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59435         * sysdeps/i386/configure.in: Likewise.
59436         * sysdeps/x86_64/configure.in: Likewise.
59437         * sysdeps/sh/configure.in: Likewise.
59438         * sysdeps/s390/s390-32/configure: Regenerated.
59439         * sysdeps/s390/s390-64/configure: Likewise.
59440         * sysdeps/x86_64/configure: Likewise.
59441         * sysdeps/sh/configure: Likewise.
59442         * sysdeps/powerpc/powerpc64/configure: Likewise.
59443         * sysdeps/powerpc/powerpc32/configure: Likewise.
59444         * sysdeps/sparc/configure: Likwise.
59445         * sysdeps/i386/configure: Likewise.
59446
59447         * elf/dl-open.c: Comment fixes.
59448
59449 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59450
59451         * Makefile [CXX] (check-data): Remove.
59452         [CXX] (c++-types.data): New vpath directive.
59453         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59454         vpath.  Do not allow for C++ type data being missing.
59455         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59456         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59457         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59458         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59459         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59460         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59461         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59463         ... here.
59464         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59466         ... here.
59467         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59468         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59469         ... here.
59470         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59471         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59472         ... here.
59473         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59474         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59475         ... here.
59476         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59477         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59478         ... here.
59479         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59480         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59481         ... here.
59482         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59483         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59484
59485         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59486         definitions to architecture-specific files.
59487         (TLS_IE): Likewise.
59488         (TLS_LD): Likewise.
59489         (TLS_GD): Likewise.
59490         * sysdeps/i386/tls-macros.h: New file.
59491         * sysdeps/powerpc/tls-macros.h: Likewise.
59492         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59493         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59494         * sysdeps/sh/tls-macros.h: Likewise.
59495         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59496         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59497         * sysdeps/x86_64/tls-macros.h: Likewise.
59498
59499 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59500
59501         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59502         zero value for regular exit case.
59503
59504         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59505         (__start_context): Preserve zero value for regular exit case.
59506
59507 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59508             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59509
59510         * manual/setjmp.texi (setcontext): Clarify normal process
59511         termination when uc_link is the null pointer.
59512         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59513         exit call.
59514
59515 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59516
59517         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59518         preprocessor.  Test for each exception mask separately.
59519
59520 2012-07-16  Andreas Jaeger  <aj@suse.de>
59521
59522         * po/ru.po: Update from translation team.
59523
59524 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59525
59526         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59527         equal to 0.
59528         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59529         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59530         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59531         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59532         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59533
59534 2012-07-13  Andreas Jaeger  <aj@suse.de>
59535
59536         * po/fr.po: Update from translation team.
59537
59538 2012-07-12  Marek Polacek  <polacek@redhat.com>
59539
59540         [BZ #14173]
59541         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59542         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59543         loop condition.
59544
59545 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59546
59547         [BZ #13717]
59548         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59549         Change to 2.4.1 where previously 2.4.0.
59550         * sysdeps/unix/sysv/linux/configure: Regenerated.
59551         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
59552         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
59553         version.
59554         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
59555         (__ASSUME_AT_CLKTCK): Remove.
59556         (__ASSUME_AT_PAGESIZE): Likewise.
59557         (__ASSUME_AT_XID): Likewise.
59558         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
59559         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
59560         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
59561         unconditionally.
59562         (HAVE_AUX_PAGESIZE): Likewise.
59563         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
59564         [__ASSUME_AT_CLKTCK]: Make code unconditional.
59565         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
59566
59567 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
59568
59569         [BZ #14307]
59570         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
59571         the temporary buffer used to invoke __gethostbyname2_r,
59572         __gethostbyaddr_r and gethostbyname4_r to make room for struct
59573         host_data / struct gaih_addrtuple.
59574         * resolv/nss_dns/dns-host.c (global scope): Move definition of
59575         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
59576         header file nss/nsswitch.h.
59577         * nss/nsswitch.h (global scope): Add definition of implementation
59578         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
59579         resolv/nss_dns/dns-host.c).
59580
59581 2012-07-11  Andreas Jaeger  <aj@suse.de>
59582
59583         * po/fr.po: Update from translation team.
59584
59585         * po/sv.po: Update from translation team
59586         * po/fr.po: Another update from translation team.
59587
59588 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59589
59590         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
59591         for subnormals or multiply small sinh result by itself.
59592         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
59593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59594
59595 2012-07-11  David S. Miller  <davem@davemloft.net>
59596
59597         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59598
59599 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
59600
59601         [BZ #14347]
59602         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
59603         (INTERNAL_MARK): Shift it here.
59604
59605 2012-07-10  Marek Polacek  <polacek@redhat.com>
59606
59607         [BZ #14151]
59608         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
59609         libc_cv_asm_global_directive with .globl.
59610         * configure: Regenerated.
59611         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
59612         with .globl.
59613         * sysdeps/i386/configure: Regenerated.
59614         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
59615         with .globl.
59616         * sysdeps/x86_64/configure: Regenerated.
59617         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
59618         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
59619         * elf/tst-unique2mod2.c: Likewise.
59620         * elf/tst-unique2mod1.c: Likewise.
59621         * elf/tst-unique1mod2.c: Likewise.
59622         * elf/tst-unique1mod1.c: Likewise.
59623         * sysdeps/s390/s390-32/sysdep.h: Likewise.
59624         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59625         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59626         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59627         * sysdeps/mach/sysdep.h: Likewise.
59628         * sysdeps/i386/sysdep.h: Likewise.
59629         * sysdeps/i386/i386-mcount.S: Likewise.
59630         * sysdeps/x86_64/_mcount.S: Likewise.
59631         * sysdeps/x86_64/sysdep.h: Likewise.
59632         * sysdeps/sh/_mcount.S: Likewise.
59633         * sysdeps/sh/sysdep.h: Likewise.
59634         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
59635         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
59636         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
59637         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59638         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
59639         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
59640         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
59641         * locale/localeinfo.h: Likewise.
59642         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
59643         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
59644
59645 2012-07-09  Roland McGrath  <roland@hack.frob.com>
59646
59647         [BZ #14336]
59648         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
59649         system".
59650         * manual/message.texi (The Uniforum approach): Likewise.
59651         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
59652         (glibc iconv Implementation): Likewise.
59653
59654 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
59655
59656         [BZ #14337]
59657         * math/s_clog.c (__clog): Avoid scaling a value down where that
59658         could result in underflow.
59659         * math/s_clog10.c (__clog10): Likewise.
59660         * math/s_clog10f.c (__clog10f): Likewise.
59661         * math/s_clog10l.c (__clog10l): Likewise.
59662         * math/s_clogf.c (__clogf): Likewise.
59663         * math/s_clogl.c (__clogl): Likewise.
59664         * math/libm-test.inc (clog_test): Add more tests.
59665         (clog10_test): Likewise.
59666         * sysdeps/i386/fpu/libm-test-ulps: Update.
59667         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59668
59669 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
59670
59671         [BZ #14283]
59672         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
59673         by 7 not 8 to examine high bit of fractional part.
59674
59675         [BZ #14042]
59676         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
59677         for call to __mcount_internal.
59678         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
59679         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
59680         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
59681
59682 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
59683
59684         [BZ #14154]
59685         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
59686         approximation for values within 0x1p-13f of an odd multiple of
59687         pi/4.
59688         * math/libm-test.inc (tan_test): Do not allow spurious underflow
59689         exception.  Add more tests.
59690         * sysdeps/i386/fpu/libm-test-ulps: Update.
59691
59692         [BZ #6778]
59693         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
59694         inputs and return -1 for them.  Do not check for +Inf in case not
59695         reachable for +Inf.
59696         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
59697         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
59698         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59699         and return -1 for them.  Do not check for +Inf in case not
59700         reachable for +Inf.
59701         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
59702         define.
59703         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59704         and return -1 for them.  Do not check for +Inf in case not
59705         reachable for +Inf.
59706         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
59707         spurious underflow.
59708         * sysdeps/i386/fpu/libm-test-ulps: Update.
59709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59710
59711 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
59712
59713         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
59714
59715 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
59716
59717         [BZ #14157]
59718         [BZ #14331]
59719         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
59720         could result in spurious underflow.  Scale down values above
59721         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
59722         * math/s_csqrtf.c (__csqrtf): Likewise.
59723         * math/s_csqrtl.c (__csqrtl): Likewise.
59724         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
59725         spurious underflow.
59726         * sysdeps/i386/fpu/libm-test-ulps: Update.
59727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59728
59729 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
59730
59731         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
59732         xopen-msg.sed.
59733         * catgets/xopen-msg.awk: New file.
59734         * catgets/xopen-msg.sed: Removed.
59735
59736         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
59737         po2text.sed.
59738         * intl/po2test.awk: New file.
59739         * intl/po2test.sed: Removed.
59740
59741 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
59742
59743         [BZ #14328]
59744         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
59745         or multiply small sinh result by itself.
59746         * math/s_ctanf.c (__ctanf): Likewise.
59747         * math/s_ctanh.c (__ctanh): Likewise.
59748         * math/s_ctanhf.c (__ctanhf): Likewise.
59749         * math/s_ctanhl.c (__ctanhl): Likewise.
59750         * math/s_ctanl.c (__ctanl): Likewise.
59751         * math/libm-test.inc (ctan_test_tonearest): New function.
59752         (ctan_test_towardzero): Likewise.
59753         (ctan_test_downward): Likewise.
59754         (ctan_test_upward): Likewise.
59755         (ctanh_test_tonearest): Likewise.
59756         (ctanh_test_towardzero): Likewise.
59757         (ctanh_test_downward): Likewise.
59758         (ctanh_test_upward): Likewise.
59759         (main): Call these new functions.
59760         * sysdeps/i386/fpu/libm-test-ulps: Update.
59761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59762
59763 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
59764
59765         * .gitignore: Delete /ports entry.
59766
59767 2012-07-03  Andreas Jaeger  <aj@suse.de>
59768
59769         * po/bg.po: Update from translation team.
59770         * po/cs.po: Likewise.
59771         * po/de.po: Likewise.
59772         * po/hr.po: Likewise.
59773         * po/nl.pl: Likewise.
59774         * po/pl.po: Likewise.
59775         * po/vi.po: Likewise.
59776
59777 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
59778
59779         * Makeconfig [!+link] (+link-before-libc): New variable.
59780         [!+link] (+link-after-libc): Likewise.
59781         [!+link] (+link-tests): Likewise.
59782         [!+link] (+link): Define in terms of $(+link-before-libc) and
59783         $(+link-after-libc).
59784         [!+link-static] (+link-static-before-libc): New variable.
59785         [!+link-static] (+link-static-after-libc): Likewise.
59786         [!+link-static] (+link-static-tests): Likewise.
59787         [!+link-static] (+link-static): Define in terms of
59788         $(+link-static-before-libc) and $(+link-static-after-libc).
59789         [build-shared] (link-libc-before-gnulib): New variable.
59790         [build-shared] (link-libc-tests): Likewise.
59791         [build-shared] (link-libc): Define in terms of
59792         $(link-libc-before-gnulib).
59793         [!build-shared] (link-libc-tests): New variable.
59794         (link-libc-static-tests): New variable.
59795         [!gnulib] (gnulib-arch): New variable.
59796         [!gnulib] (gnulib-tests): Likewise.
59797         [!gnulib] (static-gnulib-arch): Likewise.
59798         [!gnulib] (static-gnulib-tests): Likewise.
59799         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
59800         Define with "=" instead of ":=".
59801         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
59802         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
59803         * Rules (binaries-all-notests): New variable.
59804         (binaries-all-tests): Likewise.
59805         (binaries-static-notests): Likewise.
59806         (binaries-static-tests): Likewise.
59807         (binaries-all): Define using $(binaries-all-notests) and
59808         $(binaries-all-tests).
59809         (binaries-static): Define using $(binaries-static-notests) and
59810         $(binaries-static-tests).
59811         (binaries-shared-tests): New variable.
59812         (binaries-shared-notests): Likewise.
59813         (binaries-shared): Remove variable.
59814         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
59815         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
59816         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
59817         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
59818         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
59819         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
59820         * elf/Makefile (sln-modules): New variable.
59821         (extra-objs): Add $(sln-modules:=.o).
59822         (ldconfig-modules): Add static-stubs.
59823         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
59824         * elf/static-stubs.c: New file.
59825
59826         [BZ #14283]
59827         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
59828         by 7 not 8 to examine high bit of fractional part.  Use volatile
59829         variables when splitting into final array of floats if
59830         __FLT_EVAL_METHOD__ != 0.
59831         * math/libm-test.inc (cos_test): Add another test.
59832         (sin_test): Likewise.
59833         * sysdeps/i386/fpu/libm-test-ulps: Update.
59834
59835         [BZ #14273]
59836         * math/libm-test.inc (cosh_test): Add more tests.
59837
59838         * version.h (RELEASE): Set to "development".
59839         (VERSION): Set to "2.16.90".
59840
59841 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
59842
59843         * NEWS: Update copyright. Remove last-updated date.
59844         Mention math library bug fixes and timezone data changes.
59845         * README: Mention GNU/Hurd, x32, and HPPA support status.
59846
59847 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
59848
59849         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
59850
59851 2012-06-27  Andreas Jaeger  <aj@suse.de>
59852
59853         * manual/contrib.texi (Contributors): Add Samuel Thibault.
59854
59855 2012-06-25  Andreas Jaeger  <aj@suse.de>
59856
59857         * sysdeps/s390/fpu/libm-test-ulps: Update.
59858
59859 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
59860             Thomas Schwinge  <thomas@codesourcery.com>
59861
59862         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
59863         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
59864         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
59865         fanotify_mark.
59866
59867 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
59868
59869         * sysdeps/mach/start.c: Remove file.
59870         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
59871         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
59872         * sysdeps/sh/init-first.c: Likewise.
59873
59874         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
59875         registers for frame unwinding purposes, add CFI directives.
59876         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
59877         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
59878         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
59879         Likewise.
59880
59881         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
59882         __fortify_fail returning.
59883         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
59884
59885         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
59886         sysdeps/sh/____longjmp_chk.S.
59887         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
59888         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
59889         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
59890         (gen-as-const-headers): Append sigaltstack-offsets.sym.
59891
59892         * sysdeps/sh/abort-instr.h: New file.
59893         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
59894         process in case exit returns.
59895
59896         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
59897         initialize the GOT register before use.
59898
59899         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
59900         calculation of ARGC > 4.
59901
59902         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
59903         meaningful names to some local labels.
59904
59905 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
59906             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59907
59908         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
59909         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
59910         (__arch_compare_and_exchange_val_16_acq): Likewise.
59911         (__arch_compare_and_exchange_val_32_acq): Likewise.
59912         (atomic_exchange_and_add): Fix gUSA sequence.
59913         (atomic_add): Likewise.
59914         (atomic_add_negative): Likewise.
59915         (atomic_add_zero): Likewise.
59916         (atomic_bit_test_set): Likewise.
59917
59918 2012-06-22  Andreas Schwab  <schwab@redhat.com>
59919
59920         [BZ #13579]
59921         * include/link.h (struct link_map): Add l_free_initfini.
59922         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
59923         l_initfini.
59924         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
59925         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
59926         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
59927         set.
59928
59929 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
59930
59931         * configure.in: Use AC_LANG_SOURCE.
59932         * configure: Regenerate.
59933
59934 2012-06-22  Roland McGrath  <roland@hack.frob.com>
59935
59936         * configure.in (libc_cv_localstatedir): New substituted variable.
59937         * configure: Regenerated.
59938         * config.make.in (localstatedir): New variable, substituted from
59939         libc_cv_localstatedir.
59940         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
59941         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
59942         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
59943         * sysdeps/gnu/configure: Regenerated.
59944
59945 2012-06-21  Jeff Law  <law@redhat.com>
59946
59947         [BZ #14277]
59948         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
59949         free.  Simplify list management for _LIBC case.
59950
59951 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
59952
59953         [BZ #14273]
59954         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
59955         Clear sign bit of 64-bit integer value before comparing against
59956         overflow value.
59957
59958         * sysdeps/mach/configure: Regenerated.
59959
59960 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
59961
59962         [BZ #14278]
59963         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
59964
59965 2012-06-21  Jeff Law  <law@redhat.com>
59966
59967         [BZ #13882]
59968         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
59969         uint16_t for elements in the "seen" array to avoid char overflows.
59970         * elf/dl-fini.c (_dl_sort_fini): Likewise.
59971         * elf/dl-open.c (dl_open_worker): Likewise.
59972
59973 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
59974
59975         * scripts/list-sources.sh: Scan PORTS for translations.
59976         * po/libc.pot: Regenerated.
59977
59978 2012-06-21  Andreas Jaeger  <aj@suse.de>
59979
59980         [BZ #12194]
59981         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
59982         warning.
59983         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
59984         * bits/byteswap-16.h (__bswap_16): Likewise.
59985         * bits/byteswap.h (__bswap_constant_16): Likewise.
59986
59987 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
59988
59989         [BZ #14117]
59990         * sysdeps/i386/fpu_control.h: Removed.
59991         * sysdeps/x86_64/fpu_control.h: Moved to ...
59992         * sysdeps/x86/fpu_control.h: Here.
59993
59994         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
59995         (_FPU_SETCW): Likewise.
59996
59997 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
59998
59999         [BZ #14117]
60000         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60001         * sysdeps/x86/fpu/bits/mathinline.h: This.
60002         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60003
60004         [BZ #14050]
60005         [BZ #14117]
60006         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60007         functions if __x86_64__ is defined.
60008
60009 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60010
60011         * string/endian.h: Add !__ASSEMBLER__ condition for including
60012         conversion interfaces.
60013
60014 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60015
60016         [BZ #14241]
60017         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60018         of ABS(x) in calculating zero to negative powers other than odd
60019         integers.
60020         * math/libm-test.inc (pow_test): Add more tests.
60021
60022 2012-06-15  Andreas Jaeger  <aj@suse.de>
60023
60024         * manual/contrib.texi (Contributors): Update entry of Liubov
60025         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60026         Machado Filho.
60027
60028 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60029
60030         * string/string.h: Add __wur to GNU version of strerror_r.
60031
60032 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60033
60034         [BZ #14229]
60035         * string/Makefile (tests): Add tst-strtok_r.
60036         * string/tst-strtok_r.c: New file.
60037         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60038         RAX_LP/RDX_LP on SAVE_PTR.
60039
60040 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60041
60042         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60043
60044 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60045
60046         * libm_test.inc (csqrt_test): Allow more spurious underflow
60047         exceptions.
60048         (j0_test): Likewise.
60049         (j1_test): Likewise.
60050         (y0_test): Likewise.
60051         (y1_test): Likewise.
60052
60053 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60054
60055         * po/Makefile (libc.pot): Use UTF-8 charset.
60056
60057 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60058
60059         [BZ #14210]
60060         Suppress sign-conversion warning from FD_SET.
60061         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60062         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60063         not unsigned long int.
60064         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60065
60066 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60067
60068         [BZ #14050]
60069         [BZ #14117]
60070         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60071         __extern_always_inline instead of __extern_inline.
60072         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60073         (__signbit): Likewise.
60074         (__signbitl): Support C++ namespace.
60075         (lrintf): New inline function.
60076         (lrint): Likewise.
60077         (llrintf): Likewise.
60078         (llrint): Likewise.
60079         (fmaxf): Likewise.
60080         (fmax): Likewise.
60081         (fminf): Likewise.
60082         (fmin): Likewise.
60083         (rint): Likewise.
60084         (rintf): Likewise.
60085         (ceil): Likewise.
60086         (ceilf): Likewise.
60087         (floor): Likewise.
60088         (floorf): Likewise.
60089         (nearbyint): Likewise.
60090         (nearbyintf): Likewise.
60091
60092 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60093
60094         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60095         non-default versions.
60096
60097 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60098
60099         [BZ #14218]
60100         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60101
60102 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60103
60104         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60105         (FE_UPWARD, FE_DOWNWARD): Don't define.
60106         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60107         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60108
60109         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60110         reading it.
60111         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60112         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60113
60114 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60115
60116         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60117         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60118         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60119         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60120
60121 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60122
60123         [BZ #14117]
60124         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60125         * sysdeps/i386/fpu/Implies: New file.
60126         * sysdeps/x86_64/fpu/Implies: Likewise.
60127         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60128         * sysdeps/x86/fpu/bits/fenv.h: This.
60129
60130         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60131         __SSE_MATH__.
60132
60133 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60134
60135         [BZ #14134]
60136         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60137         character 0xffff that matches the last element of the
60138         conversion table.
60139
60140 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60141
60142         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60143         fmodl commit.
60144
60145 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60146
60147         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60148         values higher than 25.6283.
60149
60150 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60151
60152         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60153         subnormal exponent extraction and add some __builtin_expect.
60154         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60155         Fix for subnormal mantissa calculation.
60156
60157 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60158
60159         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60160         cpu2 is -1 and errno is not ENOSYS.
60161
60162 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60163
60164         [BZ #14117]
60165         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60166         * sysdeps/x86/bits/string.h: This.
60167         * sysdeps/x86_64/bits/string.h: Removed.
60168
60169         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60170         if not compiling for x86-64, but compiling for >= i486.
60171
60172         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60173         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60174
60175         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60176         New macro from Linux kernel 3.4.0.
60177         (FP_XSTATE_MAGIC2): Likewise.
60178         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60179         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60180         (struct _fpx_sw_bytes): New struct.
60181         (struct _xsave_hdr): Likewise.
60182         (struct _ymmh_state): Likewise.
60183         (struct _xstate): Likewise.
60184
60185         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60186         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60187         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60188         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60189         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60190         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60191
60192         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60193         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60194         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60195         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60196         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60197         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60198
60199 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60200
60201         [BZ #13743]
60202         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60203         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60204         (sysdep_headers): Include sys/platform/ppc.h.
60205         * sysdeps/powerpc/test-gettimebase.c: Test for
60206         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60207         * manual/Makefile (appendices): Include platform.texi.
60208         * manual/contrib.texi (Contributors): Update @node pointers.
60209         * manual/maint.texi (Maintenance): Likewise.
60210         (Platform): New node.
60211         * manual/platform.texi: New file.  Document the new features.
60212
60213 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60214             Jakub Jelinek  <jakub@redhat.com>
60215
60216         [BZ #14188]
60217         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60218         where __builtin_expect is unavailable.
60219
60220 2012-06-03  David S. Miller  <davem@davemloft.net>
60221
60222         * stdlib/longlong.h: Updated from GCC.
60223
60224 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60225
60226         [BZ #14042]
60227         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60228         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60229         __mcount_internal.
60230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60231         (GLIBC_2.16): Likewise.
60232
60233 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60234
60235         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60236
60237 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60238
60239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60240         (default-abi): New variable.
60241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60242         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60243         variable.
60244         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60245         Likewise.
60246         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60247         Likewise.
60248         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60249         Likewise.
60250
60251         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60252         definition.  Document in comment.
60253
60254 2012-06-01  David S. Miller  <davem@davemloft.net>
60255
60256         * stdlib/longlong.h: Updated from GCC.
60257
60258 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60259
60260         [BZ #14117]
60261         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60262         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60263         sys/debugreg.h sys/io.h here.
60264         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60265         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60266         sys/io.h.
60267         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60268         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60269         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60270         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60271         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60272         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60273
60274         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60275         Define only if __x86_64__ is defined.
60276
60277 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60278
60279         [BZ #14048]
60280         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60281         Use int64_t for variable i.
60282         * math/libm-test.inc (fmod_test): Add more tests.
60283
60284         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60285         z computation is not scheduled after fetestexcept.
60286         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60287         Use math_force_eval instead of asm to ensure calculation scheduled
60288         before exception test.
60289         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60290         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60291
60292 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60293
60294         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60295         computation is not scheduled after fetestexcept.
60296
60297 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60298
60299         [BZ #14117]
60300         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60301         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60302
60303 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60304
60305         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60306         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60307
60308 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60309
60310         [BZ #14117]
60311         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60312         <bits/wordsize.h>.
60313         (__WCHAR_MIN): Support __WORDSIZE == 64.
60314         (__WCHAR_MAX): Likewise.
60315
60316         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60317         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60318
60319         [BZ #14183]
60320         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60321         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60322
60323         [BZ #14117]
60324         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60325         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60326
60327         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60328         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60329
60330         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60331         Defined to 1 if __x86_64__ isn't defined.
60332         (_STAT_VER_LINUX_OLD): New.
60333         (st_atime): Remove duplicate.
60334         (st_mtime): Likewise.
60335         (st_ctime): Likewise.
60336
60337 2012-05-31  David S. Miller  <davem@davemloft.net>
60338
60339         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60340         entries.
60341
60342 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60343
60344         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60345         gen-libm-test.pl.
60346
60347         [BZ #14132]
60348         * elf/dl-reloc.c: Include <_itoa.h>.
60349         (_dl_reloc_bad_type): Remove use of INTUSE.
60350         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60351         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60352         * stdio-common/psiginfo.c (psiginfo): Likewise.
60353         * stdio-common/psignal.c (psignal): Likewise.
60354         * string/strsignal.c (strsignal): Likewise.
60355         * include/signal.h (_sys_siglist): Declare hidden proto.
60356         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60357         INTVARDEF with libc_hidden_data_def.
60358         * stdio-common/itoa-udigits.c: Likewise.
60359         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60360         (_itoa_lower_digits_internal): Remove declaration.
60361         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60362         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60363         (_sys_sigabbrev_internal): Remove aliases.
60364         (_sys_siglist): Define hidden alias.
60365
60366 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60367
60368         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60369         bits/sysctl.h.
60370
60371 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60372
60373         [BZ #14117]
60374         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60375         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60376
60377         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60378         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60379         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60380         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60381         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60382         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60383
60384         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60385         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60386         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60387
60388         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60389         with __addr.
60390         (insw): Likewise.
60391         (insl): Likewise.
60392         (outsb): Likewise.
60393         (outsw): Likewise.
60394         (outsl): Likewise.
60395
60396         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60397         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60398         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60399
60400         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60401         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60402         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60403         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60404         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60405         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60406
60407         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60408         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60409
60410         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60411         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60412
60413         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60414         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60415         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60416
60417         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60418         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60419         to ...
60420         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60421
60422         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60423         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60424         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60425
60426         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60427         for x86-64.
60428         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60429
60430 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60431
60432         * math/math.h (M_El): Use two more decimal places.
60433         (M_LOG2El): Likewise.
60434         (M_LOG10El): Likewise.
60435         (M_LN2l): Likewise.
60436         (M_LN10l): Likewise.
60437         (M_PIl): Likewise.
60438         (M_PI_2l): Likewise.
60439         (M_PI_4l): Likewise.
60440         (M_1_PIl): Likewise.
60441         (M_2_PIl): Likewise.
60442         (M_2_SQRTPIl): Likewise.
60443         (M_SQRT2l): Likewise.
60444         (M_SQRT1_2l): Likewise.
60445
60446 2012-05-31  David S. Miller  <davem@davemloft.net>
60447
60448         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60449         values between float registers.
60450         * sysdeps/sparc/sparc64/memset.S: Likewise.
60451         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60452
60453 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60454
60455         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60456         -D_FORTIFY_SOURCE=1.
60457         (CPPFLAGS-tst-longjmp_chk.c): Define.
60458         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60459         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60460         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60461         CFLAGS-tst-wchar-h.c.
60462
60463 2012-05-31  Marek Polacek  <polacek@redhat.com>
60464
60465         [BZ #14132]
60466         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60467         __endmntent_internal): Remove declaration.
60468         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60469         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60470         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60471
60472 2012-05-30  David S. Miller  <davem@davemloft.net>
60473
60474         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60475         (___Q_simulate_exceptions): Use real FP ops rather than writing
60476         into the %fsr.
60477         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60478         Likewise.
60479
60480 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60481
60482         [BZ #14117]
60483         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60484         * sysdeps/x86/bits/xtitypes.h: This.
60485
60486         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60487         * sysdeps/x86/bits/wordsize.h: This.
60488
60489         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60490         * sysdeps/x86/bits/huge_vall.h: This.
60491
60492         * sysdeps/i386/bits/select.h: Removed.
60493         * sysdeps/x86_64/bits/select.h: Renamed to ...
60494         * sysdeps/x86/bits/select.h: This.
60495
60496         * sysdeps/i386/bits/setjmp.h: Removed.
60497         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60498         * sysdeps/x86/bits/setjmp.h: This.
60499
60500         * sysdeps/i386/bits/mathdef.h: Removed.
60501         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60502         * sysdeps/x86/bits/mathdef.h: This.
60503
60504 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60505
60506         [BZ #14132]
60507         * include/sys/socket.h (__connect_internal)
60508         (__libc_sa_len_internal): Remove declaration.
60509         (__connect, __libc_sa_len): Declare hidden_proto.
60510         (SA_LEN): Remove use of INTUSE.
60511         * socket/connect.c: Add libc_hidden_def.
60512         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60513         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60514         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60515         alias.
60516         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60517         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60518         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60519         of adding _internal alias.
60520
60521 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60522
60523         [BZ #14117]
60524         * sysdeps/i386/bits/link.h: Removed.
60525         * sysdeps/i386/bits/linkmap.h: Likewise.
60526         * sysdeps/x86_64/bits/link.h: Renamed to ...
60527         * sysdeps/x86/bits/link.h: This.
60528         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60529         * sysdeps/x86/bits/linkmap.h: This.
60530
60531         * sysdeps/i386/bits/endian.h: Removed.
60532         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60533         * sysdeps/x86/bits/endian.h: This.
60534
60535         * sysdeps/i386/bits/byteswap.h: Removed.
60536         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60537         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60538         * sysdeps/x86/bits/byteswap.h: This.
60539         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60540         * sysdeps/x86/bits/byteswap-16.h: This.
60541         * sysdeps/i386/Implies: Add x86.
60542         * sysdeps/x86_64/Implies: Likewise.
60543
60544 2012-05-30  David S. Miller  <davem@davemloft.net>
60545
60546         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60547         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60548         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60549         (FP_TRAPPING_EXCEPTIONS): Define.
60550         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60551         (FP_TRAPPING_EXCEPTIONS): Define.
60552         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
60553         subnormals only when inexact has been signalled or underflow
60554         exceptions are enabled.
60555         (_FP_PACK_CANONICAL): Likewise.
60556
60557 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60558
60559         [BZ #14183]
60560         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
60561         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
60562
60563 2012-05-30  Richard Henderson  <rth@twiddle.net>
60564
60565         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
60566         with #ifndef NOT_IN_libc.
60567
60568         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
60569         marked to avoid plt entry.
60570
60571 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60572
60573         [BZ #14112]
60574         * Makeconfig (default-abi): New macro.
60575         (abi-includes): Likewise.
60576         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
60577         $(abi-$(default-abi)-lib-soname) for soname if defined.
60578         ($(common-objpfx)gnu/lib-names.stmp): Generate from
60579         abi-variants.
60580         * Makefile (installed-stubs): Likewise.
60581         * include/stubs-biarch.h: Removed.
60582         * scripts/lib-names.awk: Only handle one library at a time.
60583         * scripts/soversions.awk: Remove WORDSIZE support.
60584         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
60585         entries.
60586         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
60587         Removed.
60588         (syscall-list-default-condition): Likewise.
60589         (syscall-list-default-condition): Likewise.
60590         (syscall-list-includes): Likewise.
60591         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
60592         syscall-list-* with abi-*.  Handle undefined abi-variants.
60593         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
60594         * sysdeps/unix/sysv/linux/i386/Implies: New file.
60595         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
60596         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
60597         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
60598         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
60599         Removed.
60600         (syscall-list-32-options): Likewise.
60601         (syscall-list-32-condition): Likewise.
60602         (syscall-list-64-options): Likewise.
60603         (syscall-list-64-condition): Likewise.
60604         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
60605         macro.
60606         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
60607         Renamed to ...
60608         (abi-*): This.
60609         (abi-64-ld-soname): New macro.
60610         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
60611         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
60612         Renamed to ...
60613         (abi-*): This.
60614         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
60615         * sysdeps/x86_64/x32/shlib-versions: Likewise.
60616
60617 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
60618
60619         * sysdeps/unix/sysv/linux/kernel-features.h
60620         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
60621         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
60622         include <kernel-features.h>.
60623         [!__NR_ftruncate64]: Remove conditional code.
60624         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60625         [__NR_ftruncate64]: Make code unconditional.
60626         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60627         * sysdeps/unix/sysv/linux/truncate64.c: Do not
60628         include <kernel-features.h>.
60629         [!__NR_ftruncate64]: Remove conditional code.
60630         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60631         [__NR_ftruncate64]: Make code unconditional.
60632         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
60634         include <kernel-features.h>.
60635         [!__NR_ftruncate64]: Remove conditional code.
60636         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60637         [__NR_ftruncate64]: Make code unconditional.
60638         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60639         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
60640         include <kernel-features.h>.
60641         [!__NR_ftruncate64]: Remove conditional code.
60642         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60643         [__NR_ftruncate64]: Make code unconditional.
60644         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60645
60646         * configure.in (libc_cv_fpie): Weaken to a compile test using
60647         LIBC_TRY_CC_OPTION.
60648         * configure: Regenerated.
60649
60650 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60651
60652         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
60653         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
60654         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
60655         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
60656         Refreshed.
60657         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
60658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
60659         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
60660         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
60661         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
60662         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
60663         Refreshed.
60664
60665 2012-05-27  David S. Miller  <davem@davemloft.net>
60666
60667         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
60668         (___Q_zero): New.
60669         (__Q_simulate_exceptions): Return void.  Change to simulate
60670         exceptions by writing into the %fsr.
60671         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
60672         (__Qp_handle_exceptions): Likewise.
60673         (numbers): Delete.
60674         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
60675         __Qp_handle_exceptions.
60676         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
60677         __Qp_handle_exceptions.
60678         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60679         as unused and give dummy FP_RND_NEAREST initializer.
60680         (FP_INHIBIT_RESULTS): Define.
60681         (___Q_simulate_exceptions): Update declaration.
60682         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
60683         formatting.
60684         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60685         as unused and give dummy FP_RND_NEAREST initializer.
60686         (__Qp_handle_exceptions): Update declaration.
60687         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
60688         formatting.
60689
60690 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
60691
60692         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
60693         the temporary FPU control word.
60694         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
60695         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
60696         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
60697         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60698         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
60699         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
60700         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
60701         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60702         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
60703         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
60704         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60705
60706 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60707
60708         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
60709         fields.
60710
60711 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
60712
60713         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
60714         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
60715         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
60716         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
60717         Likewise.
60718         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
60719         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
60720         Likewise.
60721
60722 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
60723
60724         * po/h.po: Update from translation team.
60725
60726 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
60727
60728         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
60729
60730         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
60731         handling of denormals.
60732         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
60733         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
60734         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
60735         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
60736         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60737         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
60738         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
60739         Likewise.
60740
60741 2012-05-26  Marek Polacek  <polacek@redhat.com>
60742
60743         [BZ #14152]
60744         * math/libm-test.inc (fma_test): Don't always expect underflow
60745         exception.
60746
60747 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
60748
60749         [BZ #12416]
60750         * elf/tst-execstack.c: Include stackinfo.h.
60751         (do_test): Adjust test case to ensure that pthread_getattr_np
60752         behaviour remains the same after marking stack executable.
60753
60754 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60755
60756         * sysdeps/unix/sysv/linux/kernel-features.h
60757         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
60758         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
60759         kernel-features.h.
60760         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60761         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60762         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
60763         kernel-features.h.
60764         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60765         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60766
60767 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
60768
60769         * configure.in: Define the default includes to being none.
60770         * configure: Regenerated.
60771
60772 2012-05-25  Roland McGrath  <roland@hack.frob.com>
60773
60774         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
60775         * sysdeps/x86_64/setjmp.S: Likewise.
60776         * sysdeps/i386/bsd-setjmp.S: Likewise.
60777         * sysdeps/i386/bsd-_setjmp.S: Likewise.
60778         * sysdeps/i386/setjmp.S: Likewise.
60779         * sysdeps/i386/__longjmp.S: Likewise.
60780         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
60781         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
60782
60783         * include/stap-probe.h: New file.
60784         * configure.in: Handle --enable-systemtap.
60785         * configure: Regenerated.
60786         * config.h.in (USE_STAP_PROBE): New #undef.
60787         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
60788         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
60789         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
60790
60791 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60792
60793         [BZ #13717]
60794         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
60795         to 2.4.0 where earlier.
60796         * sysdeps/unix/sysv/linux/configure: Regenerated.
60797         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
60798         <kernel-features.h>.
60799         [__ASSUME_32BITUIDS]: Make code unconditional.
60800         [!__ASSUME_32BITUIDS]: Remove conditional code.
60801         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
60802         <kernel-features.h>.
60803         [__ASSUME_32BITUIDS]: Make code unconditional.
60804         [!__ASSUME_32BITUIDS]: Remove conditional code.
60805         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
60806         [__ASSUME_32BITUIDS]: Make code unconditional.
60807         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
60808         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
60809         <kernel-features.h>.
60810         [__ASSUME_32BITUIDS]: Make code unconditional.
60811         [!__ASSUME_32BITUIDS]: Remove conditional code.
60812         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
60813         <kernel-features.h>.
60814         [__ASSUME_32BITUIDS]: Make code unconditional.
60815         [!__ASSUME_32BITUIDS]: Remove conditional code.
60816         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
60817         <kernel-features.h>.
60818         [__ASSUME_32BITUIDS]: Make code unconditional.
60819         [!__ASSUME_32BITUIDS]: Remove conditional code.
60820         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
60821         <kernel-features.h>.
60822         [__ASSUME_32BITUIDS]: Make code unconditional.
60823         [!__ASSUME_32BITUIDS]: Remove conditional code.
60824         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
60825         <kernel-features.h>.
60826         [__ASSUME_32BITUIDS]: Make code unconditional.
60827         [!__ASSUME_32BITUIDS]: Remove conditional code.
60828         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
60829         <kernel-features.h>.
60830         [__ASSUME_32BITUIDS]: Make code unconditional.
60831         [!__ASSUME_32BITUIDS]: Remove conditional code.
60832         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
60833         <kernel-features.h>.
60834         [__ASSUME_32BITUIDS]: Make code unconditional.
60835         [!__ASSUME_32BITUIDS]: Remove conditional code.
60836         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
60837         <kernel-features.h>.
60838         [__ASSUME_32BITUIDS]: Make code unconditional.
60839         [!__ASSUME_32BITUIDS]: Remove conditional code.
60840         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
60841         <kernel-features.h>.
60842         [__ASSUME_32BITUIDS]: Make code unconditional.
60843         [!__ASSUME_32BITUIDS]: Remove conditional code.
60844         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
60845         <kernel-features.h>.
60846         [__ASSUME_32BITUIDS]: Make code unconditional.
60847         [!__ASSUME_32BITUIDS]: Remove conditional code.
60848         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
60849         <kernel-features.h>.
60850         [__NR_setresgid] (__setresgid): Do not declare.
60851         [__ASSUME_32BITUIDS]: Make code unconditional.
60852         [!__ASSUME_32BITUIDS]: Remove conditional code.
60853         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
60854         <kernel-features.h>.
60855         [__NR_setresuid] (__setresuid): Do not declare.
60856         [__ASSUME_32BITUIDS]: Make code unconditional.
60857         [!__ASSUME_32BITUIDS]: Remove conditional code.
60858         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
60859         <kernel-features.h>.
60860         [__ASSUME_32BITUIDS]: Make code unconditional.
60861         [!__ASSUME_32BITUIDS]: Remove conditional code.
60862         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
60863         <kernel-features.h>.
60864         [__ASSUME_32BITUIDS]: Make code unconditional.
60865         [!__ASSUME_32BITUIDS]: Remove conditional code.
60866         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
60867         <kernel-features.h>.
60868         [__ASSUME_32BITUIDS]: Make code unconditional.
60869         [!__ASSUME_32BITUIDS]: Remove conditional code.
60870         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
60871         <kernel-features.h>.
60872         [__ASSUME_32BITUIDS]: Make code unconditional.
60873         [!__ASSUME_32BITUIDS]: Remove conditional code.
60874         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
60875         <kernel-features.h>.
60876         [__ASSUME_32BITUIDS]: Make code unconditional.
60877         [!__ASSUME_32BITUIDS]: Remove conditional code.
60878         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
60879         <kernel-features.h>.
60880         [__ASSUME_32BITUIDS]: Make code unconditional.
60881         [!__ASSUME_32BITUIDS]: Remove conditional code.
60882         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
60883         <kernel-features.h>.
60884         [__ASSUME_32BITUIDS]: Make code unconditional.
60885         [!__ASSUME_32BITUIDS]: Remove conditional code.
60886         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
60887         <kernel-features.h>.
60888         [__ASSUME_32BITUIDS]: Make code unconditional.
60889         [!__ASSUME_32BITUIDS]: Remove conditional code.
60890         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
60891         <kernel-features.h>.
60892         [__ASSUME_32BITUIDS]: Make code unconditional.
60893         [!__ASSUME_32BITUIDS]: Remove conditional code.
60894         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
60895         <kernel-features.h>.
60896         [__ASSUME_32BITUIDS]: Make code unconditional.
60897         [!__ASSUME_32BITUIDS]: Remove conditional code.
60898         * sysdeps/unix/sysv/linux/kernel-features.h
60899         (__ASSUME_SETRESUID_SYSCALL): Remove.
60900         (__ASSUME_SETRESGID_SYSCALL): Likewise.
60901         (__ASSUME_32BITUIDS): Likewise.
60902         (__ASSUME_LDT_WORKS): Likewise.
60903         (__ASSUME_O_DIRECTORY): Likewise.
60904         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
60905         architecture but not kernel version.
60906         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
60907         (__ASSUME_MMAP2_SYSCALL): Likewise.
60908         (__ASSUME_STAT64_SYSCALL): Likewise.
60909         (__ASSUME_IPC64): Likewise.
60910         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
60911         <kernel-features.h>.
60912         [__ASSUME_32BITUIDS]: Make code unconditional.
60913         [!__ASSUME_32BITUIDS]: Remove conditional code.
60914         * sysdeps/unix/sysv/linux/opendir.c: Do not include
60915         <kernel-features.h>.
60916         [__ASSUME_O_DIRECTORY]: Make code unconditional.
60917         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
60918         132096]: Remove conditional code.
60919         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
60920         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
60921         <kernel-features.h>.
60922         [__ASSUME_32BITUIDS]: Make code unconditional.
60923         [!__ASSUME_32BITUIDS]: Remove conditional code.
60924         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
60925         <kernel-features.h>.
60926         [__ASSUME_32BITUIDS]: Make code unconditional.
60927         [!__ASSUME_32BITUIDS]: Remove conditional code.
60928         * sysdeps/unix/sysv/linux/setegid.c: Do not include
60929         <kernel-features.h>.
60930         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
60931         unconditional.
60932         (__setresgid): Do not declare.
60933         [__ASSUME_32BITUIDS]: Make code unconditional.
60934         [!__ASSUME_32BITUIDS]: Remove conditional code.
60935         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
60936         <kernel-features.h>.
60937         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
60938         unconditional.
60939         (__setresuid): Do not declare.
60940         [__ASSUME_32BITUIDS]: Make code unconditional.
60941         [!__ASSUME_32BITUIDS]: Remove conditional code.
60942         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
60943         <kernel-features.h>.
60944         [__ASSUME_32BITUIDS]: Make code unconditional.
60945         [!__ASSUME_32BITUIDS]: Remove conditional code.
60946         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
60947         <kernel-features.h>.
60948         [__ASSUME_32BITUIDS]: Make code unconditional.
60949         [!__ASSUME_32BITUIDS]: Remove conditional code.
60950
60951 2012-05-25  Richard Henderson  <rth@twiddle.net>
60952
60953         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
60954         dl_hwcap to ifunc resolver.
60955         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
60956         elf_ifunc_invoke.
60957         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
60958         dl_hwcap to ifunc resolver.
60959         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
60960
60961 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
60962
60963         [BZ #14153]
60964         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
60965         for |x| <= 2**-26, not 2**-57.
60966         * math/libm-test.inc (acos_test): Do not allow spurious underflow
60967         exception.
60968
60969 2012-05-24  Jeff Law  <law@redhat.com>
60970
60971         * stdio-common/Makefile (tests): Add bug25.
60972         * stdio-common/bug25.c: New test.
60973
60974 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
60975
60976         [BZ #13576]
60977         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
60978         multiple of MALLOC_ALIGNMENT in size.
60979         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
60980
60981 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
60982
60983         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
60984         Require >= 256.
60985         (FILENAME_MAX): Use macro-int-constant.
60986         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
60987         (_IOFBF): Use macro-int-constant.
60988         (_IOLBF): Likewise.
60989         (_IONBF): Likewise.
60990         (SEEK_CUR): Likewise.
60991         (SEEK_END): Likewise.
60992         (SEEK_SET): Likewise.
60993         (TMP_MAX): Likewise.
60994         (EOF): Use macro-int-constant.  Require < 0.
60995         (NULL): Use macro-constant.  Require == 0.
60996         (stdin): Require type to be FILE *.
60997         (stdout): Likewise.
60998         (stderr): Likewise.
60999         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61000         macro-int-constant.
61001         (EXIT_SUCCESS): Likewise.
61002         (NULL): Use macro-constant.  Require == 0.
61003         (RAND_MAX): Use macro-int-constant.
61004         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61005         [C99-based standards] (strtof): Require function.
61006         [C99-based standards] (strtold): Likewise.
61007         [C99-based standards] (strtoll): Likewise.
61008         [C99-based standards] (strtoull): Likewise.
61009         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61010         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61011         [ISO || ISO99 || ISO11] (math.h): Likewise.
61012         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61013         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61014         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61015
61016 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61017
61018         [BZ #14132]
61019         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61020         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61021         * intl/dgettext.c (DCGETTEXT): Likewise.
61022         * intl/gettext.c (DCGETTEXT): Likewise.
61023         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61024         * posix/regex_internal.h (gettext): Likewise.
61025         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61026         Remove declaration.
61027         * include/argz.h (__argz_count_internal)
61028         (__argz_stringify_internal): Remove declaration.
61029         (__argz_count, __argz_stringify): Declare hidden proto.
61030         * intl/dcgettext.c: Remove use of INTDEF.
61031         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61032         * string/argz-stringify.c: Likewise.
61033         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61034         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61035         Declare hidden proto.
61036         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61037         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61038         Declare hidden proto.
61039         * include/stdio.h (__asprintf_internal): Don't declare.
61040         (__asprintf): Don't define as macro.  Declare hidden proto.
61041         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61042         (__fsetlocking): Declare hidden proto.
61043         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61044         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61045         hidden proto.
61046         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61047         (_IO_setlinebuf): Remove use of INTUSE.
61048         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61049         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61050         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61051         Remove declaration.
61052         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61053         (_IO_do_flush): Remove use of INTUSE.
61054         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61055         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61056         (_IO_adjust_column, _IO_least_wmarker)
61057         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61058         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61059         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61060         (_IO_default_doallocate, _IO_wdefault_doallocate)
61061         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61062         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61063         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61064         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61065         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61066         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61067         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61068         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61069         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61070         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61071         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61072         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61073         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61074         proto.
61075         (_IO_flush_all_internal, _IO_adjust_column_internal)
61076         (_IO_default_uflow_internal, _IO_default_finish_internal)
61077         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61078         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61079         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61080         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61081         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61082         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61083         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61084         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61085         (_IO_file_close_internal, _IO_file_close_it_internal)
61086         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61087         (_IO_file_init_internal, _IO_file_attach_internal)
61088         (_IO_file_fopen_internal, _IO_file_read_internal)
61089         (_IO_file_sync_internal, _IO_file_seek_internal)
61090         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61091         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61092         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61093         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61094         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61095         (_IO_list_all_internal, _IO_link_in_internal)
61096         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61097         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61098         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61099         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61100         (_IO_do_write_internal, _IO_padn_internal)
61101         (_IO_getline_info_internal, _IO_getline_internal)
61102         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61103         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61104         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61105         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61106         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61107         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61108         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61109         with libc_hidden_ver, remove use of INTUSE.
61110         * libio/genops.c: Likewise.
61111         * libio/freopen.c: Likewise.
61112         * libio/freopen64.c: Likewise.
61113         * libio/iofclose.c: Likewise.
61114         * libio/iofdopen.c: Likewise.
61115         * libio/iofflush.c: Likewise.
61116         * libio/iofflush_u.c: Likewise.
61117         * libio/iofgets.c: Likewise.
61118         * libio/iofgets_u.c: Likewise.
61119         * libio/iofopen.c: Likewise.
61120         * libio/iofopncook.c: Likewise.
61121         * libio/iofread.c: Likewise.
61122         * libio/iofread_u.c: Likewise.
61123         * libio/ioftell.c: Likewise.
61124         * libio/iofwrite.c: Likewise.
61125         * libio/iogetline.c: Likewise.
61126         * libio/iogets.c: Likewise.
61127         * libio/iogetwline.c: Likewise.
61128         * libio/iopadn.c: Likewise.
61129         * libio/iopopen.c: Likewise.
61130         * libio/ioseekoff.c: Likewise.
61131         * libio/ioseekpos.c: Likewise.
61132         * libio/iosetbuffer.c: Likewise.
61133         * libio/iosetvbuf.c: Likewise.
61134         * libio/ioungetc.c: Likewise.
61135         * libio/ioungetwc.c: Likewise.
61136         * libio/iovdprintf.c: Likewise.
61137         * libio/iovsprintf.c: Likewise.
61138         * libio/iovsscanf.c: Likewise.
61139         * libio/memstream.c: Likewise.
61140         * libio/obprintf.c: Likewise.
61141         * libio/oldfileops.c: Likewise.
61142         * libio/oldiofclose.c: Likewise.
61143         * libio/oldiofdopen.c: Likewise.
61144         * libio/oldiofopen.c: Likewise.
61145         * libio/oldiopopen.c: Likewise.
61146         * libio/oldstdfiles.c: Likewise.
61147         * libio/putc.c: Likewise.
61148         * libio/setbuf.c: Likewise.
61149         * libio/setlinebuf.c: Likewise.
61150         * libio/stdfiles.c: Likewise.
61151         * libio/strops.c: Likewise.
61152         * libio/vasprintf.c: Likewise.
61153         * libio/vscanf.c: Likewise.
61154         * libio/vsnprintf.c: Likewise.
61155         * libio/vswprintf.c: Likewise.
61156         * libio/wfiledoalloc.c: Likewise.
61157         * libio/wfileops.c: Likewise.
61158         * libio/wgenops.c: Likewise.
61159         * libio/wmemstream.c: Likewise.
61160         * libio/wstrops.c: Likewise.
61161         * libio/__fpurge.c: Likewise.
61162         * libio/__fsetlocking.c: Likewise.
61163         * assert/assert.c: Likewise.
61164         * debug/fgets_chk.c: Likewise.
61165         * debug/fgets_u_chk.c: Likewise.
61166         * debug/fread_chk.c: Likewise.
61167         * debug/fread_u_chk.c: Likewise.
61168         * debug/gets_chk.c: Likewise.
61169         * debug/obprintf_chk.c: Likewise.
61170         * debug/vasprintf_chk.c: Likewise.
61171         * debug/vdprintf_chk.c: Likewise.
61172         * debug/vsnprintf_chk.c: Likewise.
61173         * debug/vsprintf_chk.c: Likewise.
61174         * malloc/mtrace.c: Likewise.
61175         * misc/error.c: Likewise.
61176         * misc/syslog.c: Likewise.
61177         * stdio-common/asprintf.c: Likewise.
61178         * stdio-common/fxprintf.c: Likewise.
61179         * stdio-common/getw.c: Likewise.
61180         * stdio-common/isoc99_fscanf.c: Likewise.
61181         * stdio-common/isoc99_scanf.c: Likewise.
61182         * stdio-common/isoc99_vfscanf.c: Likewise.
61183         * stdio-common/isoc99_vscanf.c: Likewise.
61184         * stdio-common/isoc99_vsscanf.c: Likewise.
61185         * stdio-common/printf-prs.c: Likewise.
61186         * stdio-common/printf_fp.c: Likewise.
61187         * stdio-common/printf_fphex.c: Likewise.
61188         * stdio-common/printf_size.c: Likewise.
61189         * stdio-common/putw.c: Likewise.
61190         * stdio-common/scanf.c: Likewise.
61191         * stdio-common/sprintf.c: Likewise.
61192         * stdio-common/tmpfile.c: Likewise.
61193         * stdio-common/vfprintf.c: Likewise.
61194         * stdio-common/vfscanf.c: Likewise.
61195         * stdlib/strfmon_l.c: Likewise.
61196         * sunrpc/openchild.c: Likewise.
61197         * sunrpc/xdr_stdio.c: Likewise.
61198         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61199         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61200
61201 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61202
61203         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61204
61205         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61206         in the third column, to generate for the shared library an IFUNC
61207         that uses _dl_vdso_vsym.
61208         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61209         * Makeconfig (object-suffixes-noshared): New variable.
61210
61211         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61212         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61213         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61214         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61215
61216         [BZ #14132]
61217         * include/sys/time.h (__gettimeofday): Remove macro.
61218         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61219         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61220         Remove INTDEF.
61221         (__gettimeofday): Add libc_hidden_def.
61222         (gettimeofday): Add libc_hidden_weak.
61223         * sysdeps/mach/gettimeofday.c: Likewise.
61224         * sysdeps/posix/gettimeofday.c: Likewise.
61225         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61226         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61227         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61228         (__gettimeofday_internal): Remove strong_alias.
61229         (__gettimeofday): Add libc_hidden_def.
61230         (gettimeofday): Add libc_hidden_weak.
61231         * sysdeps/unix/syscalls.list (gettimeofday):
61232         Remove __gettimeofday_internal alias.
61233
61234 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61235             H.J. Lu  <hongjiu.lu@intel.com>
61236
61237         [BZ #12495]
61238         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61239         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61240         (largebin_index_32_big): New.
61241         (largebin_index): Use it for 16-byte alignment.
61242         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61243         correction with front_misalign.
61244
61245 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61246
61247         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61248         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61249         Likewise.
61250         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61251         Likewise.
61252         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61253         Likewise.
61254         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61255         Likewise.
61256         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61257         Likewise.
61258         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61259         Likewise.
61260         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61261         Likewise.
61262         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61263         Likewise.
61264         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61265         Likewise.
61266         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61267         Likewise.
61268         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61269         Likewise.
61270         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61271         Likewise.
61272
61273         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61274         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61275
61276 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61277
61278         [BZ #10846]
61279         [BZ #14036]
61280         * math/libm-test.inc (exp_test): Add test from bug 14036.
61281         (pow_test): Add test from bug 10846.
61282
61283         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61284         and other flags.
61285         (special_function): Do not include flags in test name.
61286         (parse_args): Likewise.
61287         * sysdeps/i386/fpu/libm-test-ulps: Update.
61288         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61289         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61290         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61292
61293         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61294         exceptions.
61295         * math/libm-test.inc ("Philosophy"): Update comment about
61296         exception testing.
61297         (UNDERFLOW_EXCEPTION): New macro.
61298         (UNDERFLOW_EXCEPTION_OK): Likewise.
61299         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61300         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61301         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61302         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61303         (INVALID_EXCEPTION_OK): Update value.
61304         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61305         (OVERFLOW_EXCEPTION_OK): Likewise.
61306         (IGNORE_ZERO_INF_SIGN): Likewise.
61307         (test_exceptions): Handle underflow exceptions.
61308         (acos_test): Update for underflow exception expectations.
61309         (cexp_test): Likewise.
61310         (clog_test): Likewise.
61311         (clog10_test): Likewise.
61312         (csqrt_test): Likewise.
61313         (ctan_test): Likewise.
61314         (ctanh_test): Likewise.
61315         (exp_test): Likewise.
61316         (exp10_test): Likewise.
61317         (exp2_test): Likewise.
61318         (expm1_test): Likewise.
61319         (fma_test): Likewise.
61320         (j0_test): Likewise.
61321         (jn_test): Likewise.
61322         (nexttoward_test): Likewise.
61323         (pow_test): Likewise.
61324         (scalbn_test): Likewise.
61325         (scalbln_test): Likewise.
61326         (tan_test): Likewise.
61327         (y1_test): Likewise.
61328         * sysdeps/i386/fpu/libm-test-ulps: Update.
61329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61330
61331 2012-05-23  David S. Miller  <davem@davemloft.net>
61332
61333         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61334         (__libc_sigaction): Remove unused local variables.
61335
61336 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61337
61338         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61339
61340 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61341
61342         mktime: avoid signed integer overflow
61343         * time/mktime.c (__mktime_internal): Do not mishandle the case
61344         where diff == INT_MIN.
61345
61346         mktime: simplify computation of average
61347         * time/mktime.c (ranged_convert): Use new time_t_avg function
61348         instead of rolling our own (probably-slower) code.
61349
61350         mktime: do not assume signed right shift propagates sign bit
61351         * time/mktime.c (isdst_differ): New static function.
61352         (__mktime_internal): No need to normalize tm_isdst now.
61353         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61354         tm_isdst values.
61355
61356         mktime: merge another wrapv change from gnulib
61357         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61358         from some compilers.
61359
61360         mktime: remove incorrect attempt at unusual arithmetics
61361         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61362         The code didn't really work on such machines anyway.
61363         (TYPE_MINIMUM): Assume two's complement.
61364         (twos_complement_arithmetic): Verify that long_int and time_t
61365         are two's complement (or unsigned, in the latter case).
61366
61367         mktime: check signed shifts on long_int and time_t, too
61368         * time/mktime.c (SHR): Check that shifts work as desired
61369         on the types long_int and time_t too, as SHR is used on
61370         such types.
61371
61372         mktime: do not assume 'long' is wide enough
61373         * time/mktime.c (verify): Move decl up.
61374         (long_int): New type.
61375         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61376         to remove assumption in the code that 'long' is wide enough to
61377         store year values.  This assumption is not true on x32 and on
61378         some non-glibc platforms.
61379
61380         mktime: merge wrapv change from gnulib
61381         * time/mktime.c (WRAPV): New macro.
61382         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61383         (guess_time_tm, __mktime_internal): Do not assume that signed
61384         integer overflow wraps around; modern compilers generate code
61385         where this assumption is no longer valid.
61386
61387 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61388
61389         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61390         Replace "jmp L(pseudo_end)" with "ret".
61391         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61392         Likewise.
61393
61394 2012-05-23  Andreas Jaeger  <aj@suse.de>
61395
61396         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61397         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61398
61399 2012-05-23  Andreas Jaeger  <aj@suse.de>
61400             Maximilian Attems  <max@stro.at>
61401
61402         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61403         New macros.
61404
61405 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61406
61407         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61408         code so that pseudo_end is just ret and the stack pointer is
61409         correct also for static library in error case.
61410
61411 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61412
61413         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61414         move to syscalls.list.
61415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61419
61420         * manual/install.texi (Running make install): Do not mention Linux
61421         kernel version for which pt_chown is not needed.
61422         (Linux): Do not mention problems with nscd with 2.0 kernels.
61423         * INSTALL: Regenerated.
61424
61425 2012-05-23  Andreas Jaeger  <aj@suse.de>
61426
61427         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61428         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61429         macro.
61430         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61431         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61432         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61433         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61434         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61435         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61436         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61437         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61438         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61439         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61440         * sysdeps/unix/sysv/linux/bits/in.h
61441         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61442
61443 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61444
61445         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61446         (PREPARE_VERSION): Just use assert instead, it will be elided
61447         under [NDEBUG] anyway.
61448
61449 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61450
61451         * sysdeps/unix/sysv/linux/Makefile: Include
61452         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61453         (sysdep_routines): Remove sysctl.
61454         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61455         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61456         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61457         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61458         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61459
61460 2012-05-22  Andreas Jaeger  <aj@suse.de>
61461
61462         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61463         that pseudo_end is just ret and the stack pointer is correct also
61464         for static library in error case.
61465
61466 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61467
61468         [BZ #14122]
61469         * nss/nsswitch.c (defconfig_entries): New variable.
61470         (__nss_database_lookup): Don't leak defconfig entries.
61471         (nss_parse_service_list): Don't leak on error paths.
61472         (free_database_entries): New function.
61473         (free_defconfig): New function.
61474         (free_mem): Move common code to free_database_entries.
61475
61476 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61477
61478         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61479         Add arch_prctl.
61480         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61481
61482         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61483         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61484         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61485         New macro.
61486         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61487         (INTERNAL_SYSCALL_TYPES): Likewise.
61488         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61489         (LOAD_REGS_TYPES_[1-6]): Likewise.
61490         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61491         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61492
61493 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61494
61495         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61496         copysignl for GLIBC_2_0.
61497         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61498         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61499         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61500         logbl for GLIBC_2_0.
61501         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61502         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61503
61504 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61505
61506         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61507         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61508
61509         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61510         Use "neg %eax".
61511
61512         * time/mktime.c: Update copyright years.
61513
61514 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         mktime: merge comment-quoting-style change from gnulib
61517         * time/mktime.c: Quote 'like this' in comments.
61518         The GNU coding standards suggest that we no longer quote `like this',
61519         as "`" and "'" are typically rendered asymmetrically nowadays.
61520         The typical gnulib style is to quote 'like this' when quoting
61521         code, and "like this" when quoting English.
61522
61523         * time/mktime.c (compile-command): Add "-I.".
61524
61525         mktime: merge mktime-internal.h change from gnulib
61526         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61527
61528         mktime: merge time_r change from gnulib
61529         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61530
61531         mktime: merge DEBUG change from gnulib
61532         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61533         case system <time.h> has a #define.
61534
61535         mktime: merge <sys/types.h> change from gnulib
61536         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61537         since <time.t> is now guaranteed to define time_t.
61538
61539         mktime: merge HAVE_CONFIG_H change from gnulib
61540         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61541
61542 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61543
61544         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61545         Use "neg %eax".
61546
61547         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61548         __rlim_t cast.
61549         (struct rusage): Use anonymous union to pad each field to
61550         __syscall_slong_t.
61551
61552 2012-05-21  David S. Miller  <davem@davemloft.net>
61553
61554         * Makefules (o-iterator): Remove .s cases.
61555         (compile-command.s): Delete.
61556         (COMPILE.s): Delete.
61557         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
61558
61559 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
61560
61561         * configure.in (libc_cv_predef_stack_protector): Only consider
61562         "foobar" and "__stack_chk_fail" lines in libc_undefs.
61563         * configure: Regenerated.
61564
61565 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61566
61567         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61568         New macro.  Use R*LP on int and pointer.
61569         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
61570         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
61571         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
61572         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
61573
61574         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
61575         [__WORDSIZE_TIME64_COMPAT32] instead of
61576         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
61577         (struct utmp): Likewise.
61578         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
61579         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
61580         Renamed to ...
61581         (__WORDSIZE_TIME64_COMPAT32): This.
61582         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
61583         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
61584         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
61585         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
61586         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
61587         (__WORDSIZE_TIME64_COMPAT32): New macro.
61588
61589 2012-05-21  Andreas Jaeger  <aj@suse.de>
61590
61591         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
61592         only if [SHARED]. Add prototype for __wcschr_ia32.
61593
61594 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61595
61596         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
61597         of %rbp unmolested in the jmp_buf while mangling the low bits.
61598         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
61599         unmolested high bits of %rbp while demangling the low bits.
61600         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61601
61602 2012-05-21  Andreas Jaeger  <aj@suse.de>
61603
61604         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
61605         * sunrpc/svc_simple.c: Use it for registerrpc.
61606         * sunrpc/xcrypt.c: Use it for passwd2des.
61607
61608         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
61609
61610 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61611
61612         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
61613         Don't define if [__SYSCALL_WORDSIZE != 32].
61614         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
61615         New macro.
61616
61617 2012-05-21  Bruno Haible  <bruno@clisp.org>
61618             Andreas Jaeger  <aj@suse.de>
61619
61620         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
61621         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
61622         inptr and inend for must_buffer_ch.
61623         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
61624         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
61625         * stdio-common/Makefile (tests): Remove bug15.
61626         (bug15-ENV): Remove macro.
61627         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
61628         anymore.
61629
61630 2012-05-19  Andreas Jaeger  <aj@suse.de>
61631             Roland McGrath  <roland@hack.frob.com>
61632
61633         * manual/contrib.texi: Completely rewritten. It contains now an
61634         alphabetical list of contributors and their contributions.
61635
61636 2012-05-21  Richard Henderson  <rth@twiddle.net>
61637
61638         * misc/getauxval.c (__getauxval): Use unsigned long int.
61639         * misc/sys/auxv.h: Include <sys/cdefs.h>.
61640         (getauxval): Use unsigned long int.
61641
61642 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61643
61644         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61645
61646 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61647
61648         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
61649         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
61650         __alignof__ (long double).
61651
61652 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61653
61654         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61655
61656 2012-05-20  Richard Henderson  <rth@twiddle.net>
61657
61658         * misc/getauxval.c: New file.
61659         * misc/sys/auxv.h: New file.
61660         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
61661         (routines): Add getauxval.
61662         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
61663         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
61664         * elf/dl-sysdep.c (_dl_auxv): Remove.
61665         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
61666         * elf/dl-support.c (_dl_auxv): New variable.
61667         (_dl_aux_init): Initialize it.
61668         * manual/startup.texi (Auxiliary Vector): New node.
61669         * sysdeps/generic/bits/hwcap.h: New file.
61670         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
61671         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
61672         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
61673         * sysdeps/sparc/sysdep.h: ... here.  Include it.
61674         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
61675         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
61676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
61677         Update.
61678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
61679         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
61680         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
61681         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
61682         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61683         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61684         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
61685         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
61686
61687 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61688
61689         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61690
61691 2012-05-19  David S. Miller  <davem@davemloft.net>
61692
61693         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61694
61695 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61696
61697         [BZ #14123]
61698         * math/s_ccosh.c: Include <float.h>
61699         (__ccosh): Avoid internal overflow calculating sinh and cosh
61700         values before multiplying by sin and cos values.
61701         * math/s_ccoshf.c: Likewise.
61702         * math/s_ccoshl.c: Likewise.
61703         * math/s_csin.c: Likewise.
61704         * math/s_csinf.c: Likewise.
61705         * math/s_csinl.c: Likewise.
61706         * math/s_csinh.c: Likewise.
61707         * math/s_csinhf.c: Likewise.
61708         * math/s_csinhl.c: Likewise.
61709         * math/libm-test.inc (ccos_test): Add more tests.
61710         (ccosh_test): Likewise.
61711         (csin_test): Likewise.
61712         (csinh_test): Likewise.
61713         * sysdeps/i386/fpu/libm-test-ulps: Update.
61714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61715
61716 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
61717
61718         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
61719         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
61720
61721         * sysdeps/x86_64/x32/_itoa.h: Add comment.
61722
61723 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61724
61725         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
61726         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
61727         * sysdeps/powerpc/soft-fp/Versions: Likewise.
61728         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
61729         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
61730         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
61731         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
61732         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
61733         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
61734         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
61735         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
61736         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
61737         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
61738         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
61739         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
61740         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
61741         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
61742         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
61743         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
61744         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
61745         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
61746         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
61747         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
61748         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
61749         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
61750         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
61751         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
61752         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
61753         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
61754         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
61755         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
61756
61757 2012-05-18  Andreas Jaeger  <aj@suse.de>
61758
61759         * csu/.gitignore: Delete.
61760
61761 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61762
61763         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
61764         (timex): Use __syscall_slong_t.
61765
61766 2012-05-18  Andreas Jaeger  <aj@suse.de>
61767             Carlos O'Donell  <carlos_odonell@mentor.com>
61768
61769         * manual/install.texi (Configuring and compiling): Update
61770         description about files modified in the source directory.
61771         * INSTALL: Regenerated.
61772
61773 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61774
61775         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
61776         value.  Use "or" to set return value to -1.
61777         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
61778         negate return value.
61779
61780 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61781
61782         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
61783         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
61784         failure if the compiler has Graphite support disabled.
61785         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
61786         Likewise.
61787         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
61788         (CFLAGS-memmove.c): Likewise.
61789         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
61790         Likewise.
61791
61792 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61793
61794         * sysdeps/x86_64/x32/_itoa.h: New file.
61795
61796         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
61797         getdents system call only if kernel and user dirents have the
61798         same d_ino and d_off.
61799
61800         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
61801         LLONG_MAX != LONG_MAX.
61802         (_itoa_word): Use _ITOA_WORD_TYPE on value.
61803         (_fitoa_word): Likewise.
61804
61805         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
61806         years.
61807         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
61808         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
61809         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
61810
61811         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
61812         include <bits/wordsize.h>.  Check __x86_64__ instead of
61813         __WORDSIZE.
61814         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
61815         if __x86_64__ is defined.  Use anonymous union on fpstate.
61816
61817         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
61818         anonymous union.
61819
61820 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
61821
61822         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
61823         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
61824         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
61825         Refer to _rtld_local_ro instead of _rtld_global_ro.
61826         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
61827         Likewise.
61828         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
61829         Likewise.
61830         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
61831         Likewise.
61832         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
61833         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
61834         of _rtld_global, and rtld_progname instead of _dl_argv[0].
61835
61836         [BZ #10882]
61837         * sysdeps/powerpc/powerpc32/dl-machine.c
61838         (__elf_machine_runtime_setup) [PROF]: Don't reference
61839         _dl_prof_resolve.
61840
61841 2012-05-18  Andreas Jaeger  <aj@suse.de>
61842
61843         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
61844         function only available for GCCs before 3.4 since GCC 3.4
61845         introduced a builtin.
61846         (lrint): Likewise.
61847         (llrintf): Likewise.
61848         (llrint): Likewise.
61849         (fmaxf): Likewise.
61850         (fmax): Likewise.
61851         (fminf): Likewise.
61852         (fmin): Likewise.
61853         (rint): Likewise.
61854         (rintf): Likewise.
61855         (nearbyint): Likewise.
61856         (nearbyintf): Likewise.
61857         (ceil): Likewise.
61858         (ceilf): Likewise.
61859         (floor): Likewise.
61860         (floorf): Likewise.
61861
61862 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61863
61864         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
61865         on both fields and cast pointer to __syscall_ulong_t.
61866
61867         * bits/types.h (__fsword_t): New type.
61868         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
61869         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
61870         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
61871         (__FSWORD_T_TYPE): Likewise.
61872         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
61873         (__FSWORD_T_TYPE): Likewise.
61874         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
61875         (__FSWORD_T_TYPE): Likewise.
61876         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
61877         (__FSWORD_T_TYPE): Likewise.
61878         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
61879         __SWORD_TYPE with __fsword_t.
61880         (statfs64): Likewise.
61881
61882 2012-05-17  David S. Miller  <davem@davemloft.net>
61883
61884         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
61885
61886 2012-05-17  Andreas Jaeger  <aj@suse.de>
61887
61888         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
61889         warning.
61890
61891 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61892
61893         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
61894
61895 2012-05-17  Andreas Jaeger  <aj@suse.de>
61896
61897         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
61898         when it is used.
61899
61900 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
61901
61902         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
61903
61904 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61905
61906         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
61907         * sysdeps/x86_64/tst-mallocalign1.c: New file.
61908
61909 2012-05-17  Andreas Jaeger  <aj@suse.de>
61910             Carlos O'Donell  <carlos_odonell@mentor.com>
61911
61912         [BZ #14059]
61913         * sysdeps/x86_64/multiarch/init-arch.h
61914         (bit_YMM_Usable): Rename to...
61915         (bit_AVX_Usable): ... this.
61916         (bit_FMA4_Usable): New macro.
61917         (bit_XMM_state): New macro.
61918         (bit_YMM_state): New macro.
61919         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
61920         [__ASSEMBLER__] (index_AVX_Usable): ... this.
61921         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
61922         (CPUID_OSXSAVE): New macro.
61923         (CPUID_AVX): New macro.
61924         (CPUID_FMA4): New macro.
61925         (index_YMM_Usable): Rename to...
61926         (index_AVX_Usable): ... this.
61927         (HAS_AVX): Use HAS_ARCH_FEATURE.
61928         (HAS_FMA4): Likewise.
61929         (HAS_YMM_USABLE): Remove.
61930         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
61931         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
61932         are present.
61933         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
61934         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
61935         * sysdeps/x86_64/multiarch/Makefile: Likewise.
61936         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
61937         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
61938
61939 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
61940
61941         * math/libm-test.c: Support platforms without multiple rounding modes.
61942         * math/bug-nextafter.c: Support platforms without FP exceptions.
61943         * math/bug-nexttoward.c: Likewise.
61944         * math/test-fenv.c: Likewise.
61945         * math/test-misc.c: Likewise.
61946         * stdlib/bug-getcontext.c: Likewise.
61947
61948 2012-05-17  Andreas Jaeger  <aj@suse.de>
61949
61950         * manual/examples/search.c (critter_cmp): Change signature to
61951         avoid warnings.
61952         * manual/string.texi (Collation Functions): Likewise.
61953
61954 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
61955
61956         * bits/types.h: Fold copyright years.
61957         * bits/typesizes.h: Likewise.
61958         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
61959         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
61960         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
61961         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
61962         * time/time.h: Likewise.
61963
61964 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
61965
61966         [BZ #208]
61967         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
61968         in instead of returning them.  Return void.
61969         (__libc_mallinfo): Accumulate over all arenas.
61970         (__malloc_stats): Adjust for change in int_mallinfo interface.
61971
61972 2012-05-16  Roland McGrath  <roland@hack.frob.com>
61973
61974         [BZ #10375]
61975         * configure.in (NM): Add AC_CHECK_TOOL for it.
61976         (libc_extra_cflags): New substituted variable.
61977         Check for -fstack-protector being used implicitly.
61978         * configure: Regenerated.
61979         * config.make.in (config-extra-cflags): New variable,
61980         gets @libc_extra_cflags@.
61981         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
61982
61983         [BZ #10375]
61984         * configure.in: Check for _FORTIFY_SOURCE being predefined.
61985         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
61986         * configure: Regenerated.
61987         * config.make.in (CPPUNDEFS): New substituted variable.
61988         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
61989         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
61990         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
61991
61992 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
61993
61994         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
61995         (mq_attr): Use __syscall_slong_t.
61996
61997 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
61998
61999         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62000         Check __x86_64__ instead of __WORDSIZE.
62001         (_STAT_VER_LINUX): Likewise.
62002         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62003         __syscall_ulong_t and __syscall_slong_t.
62004         (stat64): Likewise.
62005
62006 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62007
62008         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62009
62010 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62011
62012         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62013
62014 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62015
62016         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62017         __syscall_ulong_t.
62018
62019         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62020         include <bits/wordsize.h>.  Check __x86_64__ instead of
62021         __WORDSIZE.
62022         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62023         defined.
62024         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62025
62026         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62027         include <bits/wordsize.h>.  Check __x86_64__ instead of
62028         __WORDSIZE.
62029         (user_regs_struct): Use "__extension__ unsigned long long"
62030         instead of "unsigned long" if __x86_64__ is defined.
62031         (user): Likewise.  Pad after pointer field if __ILP32__ is
62032         defined.
62033
62034 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62035
62036         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62037         versions 5 to 9.
62038         * configure: Regenerated.
62039         * manual/install.texi (texinfo): Increase version requirement to
62040         4.5 or later.
62041         * INSTALL: Regenerated.
62042
62043         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62044
62045 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62046
62047         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62048
62049         * sysdeps/x86_64/x32/ffs.c: New file.
62050
62051         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62052         __syscall_ulong_t.
62053         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62054         defined.  Use __syscall_ulong_t.
62055         (shminfo): Use __syscall_ulong_t.
62056         (shm_info): Likewise.
62057
62058         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62059         __syscall_ulong_t.
62060
62061         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62062         <bits/wordsize.h>.
62063         (msgqnum_t): Use __syscall_ulong_t.
62064         (msglen_t): Likewise.
62065         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62066         __syscall_ulong_t.
62067
62068         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62069         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62070
62071         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62072
62073         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62074         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62075
62076         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62077         __syscall_slong_t.
62078
62079         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62080         include <bits/wordsize.h>.  Check __x86_64__ instead of
62081         __WORDSIZE.
62082
62083         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62084         "unsigned long long int" if __x86_64__ is defined.
62085         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62086
62087         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62088         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62089         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62090
62091         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62092         <stdint.h>.
62093         (GET_PC): Cast to uintptr_t first.
62094         (GET_FRAME): Likewise.
62095         (GET_STACK): Likewise.
62096
62097         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62098         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62099         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62100         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62101         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62102         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62103         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62104         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62105         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62106         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62107         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62108         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62109         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62110         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62111         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62112         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62113         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62114         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62115         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62116         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62117         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62118         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62119         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62120         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62121         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62122         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62123         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62124         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62125         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62126
62127 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62128
62129         * Makerules (+depfiles): Also collect depfiles from .oS in
62130         $(extra-objs).
62131         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62132         .oS, $(libnldbl-routines)).
62133
62134         * Makerules (native-compile-mkdep-flags): Define.
62135         * sunrpc/Makefile (extra-objs): Add $(addprefix
62136         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62137         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62138         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62139         calling $(make-target-directory).
62140
62141 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62142
62143         * bits/types.h (__snseconds_t): Removed.
62144         * time/time.h (struct timespec): Replace __snseconds_t with
62145         __syscall_slong_t.
62146         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62147         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62148         Likewise.
62149         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62150         (__SNSECONDS_T_TYPE): Likewise.
62151         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62152         (__SNSECONDS_T_TYPE): Likewise.
62153         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62154         (__SNSECONDS_T_TYPE): Likewise.
62155
62156 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62157
62158         * sysdeps/mach/hurd/bits/typesizes.h
62159         (__SYSCALL_SLONG_TYPE): New macro.
62160         (__SYSCALL_ULONG_TYPE): Likewise.
62161
62162 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62163
62164         * bits/types.h (__syscall_slong_t): New type.
62165         (__syscall_ulong_t): Likewise.
62166
62167         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62168         (__SYSCALL_ULONG_TYPE): Likewise.
62169         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62170         (__SYSCALL_SLONG_TYPE): Likewise.
62171         (__SYSCALL_ULONG_TYPE): Likewise.
62172         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62173         (__SYSCALL_SLONG_TYPE): Likewise.
62174         (__SYSCALL_ULONG_TYPE): Likewise.
62175         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62176         (__SYSCALL_SLONG_TYPE): Likewise.
62177         (__SYSCALL_ULONG_TYPE): Likewise.
62178
62179 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62180
62181         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62182         Add sigaltstack-offsets.sym.
62183         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62184         <sigaltstack-offsets.h>.
62185         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62186         longjmp_msg pointer.
62187         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62188         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62189         signal stack.
62190         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62191
62192 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62193
62194         * elf/stackguard-macros.h: Remove file.
62195         * sysdeps/generic/stackguard-macros.h: New file.
62196         * sysdeps/i386/stackguard-macros.h: Likewise.
62197         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62198         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62199         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62200         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62201         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62202         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62203         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62204         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62205         <elf/stackguard-macros.h>.
62206
62207         [BZ #14109]
62208         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62209         __aligned__ in attribute.
62210         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62211         (gregset_t): Likewise.
62212
62213 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62214
62215         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62216         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62217         * sysdeps/x86_64/x32/Implies-after: New file.
62218
62219 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62220
62221         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62222         and access return value for _dl_profile_fixup.  Use R10_LP to
62223         load frame size.
62224
62225 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62226
62227         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62228
62229 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62230
62231         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62232         * sysdeps/x86_64/x32/sysdep.h: New file.
62233
62234 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62235
62236         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62237         * sysdeps/x86_64/setjmp.S: Likewise.
62238
62239 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62240
62241         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62242         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62243         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62244         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62245         remove unused global constant.
62246
62247 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62248
62249         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62250         include of <not-cancel.h>.
62251
62252 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62253
62254         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62255
62256 2012-05-15  Jeff Law  <law@redhat.com>
62257             Andreas Jaeger  <aj@suse.de>
62258
62259         [BZ #13594]
62260         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62261         out from...
62262         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62263         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62264         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62265         code changing __hst_map_handle.map.
62266
62267 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62268
62269         * configure.in (sysnames): Look for Implies-before and Implies-after
62270         files.
62271         * configure: Regenerated.
62272
62273 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62274
62275         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62276         8-byte data alignment with LP_SIZE alignment.
62277
62278 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62279
62280         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62281         into R10_LP.
62282
62283 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62284
62285         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62286
62287 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62288
62289         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62290         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62291         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62292         Likewise.
62293         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62294
62295 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62296
62297         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62298         (stackinfo_sub_sp): Likewise.
62299
62300 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62301
62302         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62303         RAX_LP.
62304
62305 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62306
62307         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62308         into R*_LP.
62309
62310 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62311
62312         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62313         sizes into R*_LP.
62314
62315 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62316
62317         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62318
62319 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62320
62321         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62322         into R11_LP and load __x86_64_shared_cache_size_half into
62323         R8_LP.
62324
62325 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62326
62327         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62328         R8_LP.
62329
62330 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62331
62332         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62333         logb for POWER7.
62334         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62335         logbf for POWER7.
62336         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62337         logbl for POWER7.
62338         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62339         powerpc32/power7/fpu/s_logb.c via #include.
62340         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62341         powerpc32/power7/fpu/s_logbf.c via #include.
62342         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62343         powerpc32/power7/fpu/s_logbl.c via #include.
62344
62345 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62346
62347         * README.libm: Remove file.
62348
62349 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62350
62351         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62352         count for x32.  Use R*_LP and omit operand-size suffix.
62353
62354 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62355
62356         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62357         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62358         * sysdeps/x86_64/x32/shlib-versions: New file.
62359
62360 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62361
62362         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62363         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62364         Use _dl_fatal_printf instead.
62365
62366 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62367
62368         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62369         set if not set by the user.  Do not allow for being unset.
62370         * sysdeps/unix/sysv/linux/configure: Regenerated.
62371
62372 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62373
62374         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62375         the `q' suffix from lea and replace .quad with ASM_ADDR.
62376
62377 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62378
62379         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62380         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62381         instead of $17.
62382         (PTR_DEMANGLE): Likewise.
62383
62384 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62385
62386         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62387         (LP_OP): Likewise.
62388         (ASM_ADDR): Likewise.
62389         (RAX_LP): Likewise.
62390         (RBP_LP): Likewise.
62391         (RBX_LP): Likewise.
62392         (RCX_LP): Likewise.
62393         (RDI_LP): Likewise.
62394         (RSI_LP): Likewise.
62395         (RSP_LP): Likewise.
62396         (R8_LP): Likewise.
62397         (R9_LP): Likewise.
62398         (R10_LP): Likewise.
62399         (R10_LP): Likewise.
62400         (R11_LP): Likewise.
62401         (R12_LP): Likewise.
62402         (R13_LP): Likewise.
62403         (R14_LP): Likewise.
62404         (R15_LP): Likewise.
62405
62406 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62407
62408         * sysdeps/x86_64/x32/dl-machine.h: New file.
62409
62410 2012-05-14  Andreas Jaeger  <aj@suse.de>
62411
62412         * manual/Makefile (subdir): Remove export of subdir.
62413         (all): Remove target.
62414         (.PHONY): Remove all from list.
62415         (mkinstalldirs): Remove.
62416         (.PHONY): Remove installdirs from list.
62417         ($(inst_infodir)/libc.info): Use make-target-directory.
62418         (installdirs): Remove.
62419         (subdir_%): Remove.
62420         (glibc-targets): Remove.
62421         (lib): Remove.
62422         (stubs): Remove.
62423         ($(objpfx)stubs ../po/manual.pot): Remove.
62424         ($(objpfx)stamp%): Remove.
62425         (make-target-directory): Remove.
62426         (subdir_install): Remove.
62427         (routines): Remove.
62428         (aux): Remove.
62429         (sources): Remove.
62430         (objects): Remove.
62431         (headers): Remove.
62432
62433         [BZ #13750]
62434         * manual/.gitignore: Remove, it's not needed anymore.
62435         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62436         all files in it.
62437         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62438         directory.
62439         (texis): Renamed to $(objpfx)texis.
62440         (texis-path): New, contains path to generated files.
62441         (chapters.%): Use texis-path for complete path, add extra argument
62442         libc-texinfo.sh.
62443         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62444         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62445         (summary,texi, stamp-summary): Use complete path of
62446         files. Generate files in build dir.
62447         (dir-add.texi): Build in build dir.
62448         (libm-err.texi,stamp-libm-err): Likewise.
62449         (version.texi, stamp-version): Likewise.
62450         (.%c.texi): Likewise.
62451         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62452         (mostlyclean): Remove target.
62453         (realclean): Remove target.
62454         (generated): Add new variable with contents from mostlyclean and
62455         realclean, remove entries duplicated in common-mostlyclean, add
62456         stamp-libm-err and stamp-version.
62457         (generated-dirs): Add libc directory.
62458         ($(inst_infodir)/libc.info): Install files from build dir.
62459
62460         * manual/install.texi (Configuring and compiling): Adjust since
62461         the info files are not part of the tar ball anymore.
62462
62463 2012-05-14  Andreas Jaeger  <aj@suse.de>
62464
62465         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62466         variable.
62467
62468 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62469
62470         [BZ #13717]
62471         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62472         to 2.2.0 where earlier.
62473         * sysdeps/unix/sysv/linux/configure: Regenerated.
62474         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62475         Remove conditional code.
62476         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62477         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62478         Remove conditional code.
62479         [!__NR_lchown]: Likewise.
62480         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62481         [__NR_lchown]: Likewise.
62482         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62483         comment referencing __ASSUME_LCHOWN_SYSCALL.
62484         * sysdeps/unix/sysv/linux/i386/sigaction.c
62485         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62486         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62487         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62488         Remove conditional code.
62489         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62490         (__protocol_available): Remove #if 0 code.
62491         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62492         conditional code.
62493         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62494         * sysdeps/unix/sysv/linux/kernel-features.h
62495         (__ASSUME_GETCWD_SYSCALL): Don't define.
62496         (__ASSUME_REALTIME_SIGNALS): Likewise.
62497         (__ASSUME_PREAD_SYSCALL): Likewise.
62498         (__ASSUME_PWRITE_SYSCALL): Likewise.
62499         (__ASSUME_POLL_SYSCALL): Likewise.
62500         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62501         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62502         non-SPARC.
62503         (__ASSUME_SIOCGIFNAME): Don't define.
62504         (__ASSUME_MSG_NOSIGNAL): Likewise.
62505         (__ASSUME_SENDFILE): Define unconditionally.
62506         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62507         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62508         conditional code.
62509         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62510         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62511         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62512         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62513         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62514         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62515         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62517         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62518         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62520         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62521         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62523         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62524         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62526         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62527         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62529         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62530         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62532         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62533         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62535         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62536         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62538         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62539         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62540         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62541         Remove conditional code.
62542         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62543         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62544         Remove conditional code.
62545         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62546         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62547         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62548         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62549         Remove conditional code.
62550         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62551         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
62552         Remove conditional code.
62553         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62554         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
62555         Remove conditional code.
62556         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62557         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62558         Remove conditional code.
62559         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62560         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62561         Remove conditional code.
62562         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62563         * sysdeps/unix/sysv/linux/sh/pwrite64.c
62564         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62565         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62566         * sysdeps/unix/sysv/linux/sigaction.c
62567         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62568         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62569         * sysdeps/unix/sysv/linux/sigpending.c
62570         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62571         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62572         * sysdeps/unix/sysv/linux/sigprocmask.c
62573         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62574         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62575         * sysdeps/unix/sysv/linux/sigsuspend.c
62576         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62577         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62578         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62579         (__libc_missing_rt_sigs): Remove.
62580         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
62581         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
62582         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
62583         Remove conditional code.
62584         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
62585         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
62586         return 1.
62587         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
62588         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
62589         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
62590         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
62591
62592 2012-05-14  Andreas Jaeger  <aj@suse.de>
62593
62594         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
62595         it's not used in glibc.
62596         (__coshm1): Likewise.
62597         (__acosh1p): Likewise.
62598         (__sgn): Likewise.
62599
62600         * manual/string.texi (Copying and Concatenation): Add missing
62601         variable in concat example.
62602         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
62603
62604 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62605
62606         [BZ #14103]
62607         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
62608         __builtin_clzl with __builtin_clzll.
62609
62610 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62611
62612         [BZ #14104]
62613         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
62614         libc_freeres_ptr.
62615
62616 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
62617
62618         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
62619         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
62620         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
62621         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
62622
62623 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
62624
62625         * NEWS: Update ia64 info.
62626
62627 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
62628
62629         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
62630         used as bcopy.
62631
62632 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
62633
62634         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
62635         * sysdeps/unix/syscalls.list (dup3): Likewise.
62636         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
62637         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
62638
62639 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62640
62641         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
62642         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
62643
62644 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62645
62646         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
62647         thread pointer.
62648         (TLS_IE): Use mov/add instead of movq/addq to load thread
62649         pointer.
62650         (TLS_GD_PREFIX): New.
62651         (TLS_GD): Use it.
62652
62653 2012-05-11  David S. Miller  <davem@davemloft.net>
62654
62655         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
62656         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
62657         (_FPU_SETCW): Likewise.
62658
62659 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62660
62661         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
62662         is 32-byte aligned.
62663
62664 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
62665
62666         [BZ #11837]
62667         * iconvdata/gb18030.c: Update tables.
62668         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
62669         characters specially.
62670         (BODY for TO_LOOP): Add encoding of missing ranges.
62671
62672 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
62673
62674         [BZ #13673]
62675         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
62676         * sysdeps/mach/hurd/dup3.c: Likewise.
62677         * sysdeps/mach/hurd/readlinkat.c: Likewise.
62678         * sysdeps/powerpc/memmove.c:: Likewise.
62679
62680 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62681
62682         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
62683         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
62684
62685 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62686
62687         * elf/elf.h (R_X86_64_RELATIVE64): New.
62688         (R_X86_64_NUM): Updated.
62689         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
62690         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
62691         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
62692         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
62693         tst-quad1pie tst-quad2pie
62694         (modules-names): Add tst-quadmod1 tst-quadmod2.
62695         ($(objpfx)tst-quad1): New dependency.
62696         ($(objpfx)tst-quad2): Likewise.
62697         ($(objpfx)tst-quad1pie): Likewise.
62698         ($(objpfx)tst-quad2pie): Likewise.
62699         * sysdeps/x86_64/tst-quad1.c: New file.
62700         * sysdeps/x86_64/tst-quad1pie.c: New file.
62701         * sysdeps/x86_64/tst-quad2.c: Likewise.
62702         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
62703         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
62704         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
62705         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
62706         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
62707
62708 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62709
62710         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
62711         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
62712         * streams/stropts.h (t_scalar_t): Define type.
62713
62714         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
62715         (_PATH_PRESERVE): Set to "/var/lib".
62716         (_PATH_RWHODIR): Set to "/var/spool/rwho".
62717
62718         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
62719         instead of int.
62720
62721         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
62722         if __dir_mkfile succeeded.
62723
62724         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
62725         checking for _hurd_dtablesize.  Unlock it right after having
62726         finished _hurd_dtable allocation.
62727
62728 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62729
62730         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
62731         * sysdeps/mach/hurd/configure: Regenerated.
62732         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
62733         special-casing to...
62734         * sysdeps/gnu/configure.in: ... this new file.
62735         * sysdeps/unix/sysv/linux/configure: Regenerated.
62736         * sysdeps/gnu/configure: New generated file.
62737
62738         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
62739         for Linux: use nsec instead of usec, as well as:
62740         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
62741         members of type struct timespec.
62742         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
62743         New macros.
62744         (struct stat64): Likewise.
62745         (_STATBUF_ST_NSEC): New macro.
62746         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
62747
62748         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
62749         __strtoul_internal rather than strtoul.
62750
62751 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62752
62753         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
62754         and reject them.
62755
62756 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62757
62758         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
62759         which preserves existing values.
62760         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
62761
62762 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62763
62764         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
62765         TIMEOUT values.  Return EINVAL for NFDS values either negative or
62766         greater than FD_SETSIZE.
62767
62768 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62769
62770         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
62771         allocated, call __vm_protect to finish enabling the existing space, and
62772         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
62773         allocate the remainder.
62774
62775 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62776
62777         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
62778         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
62779
62780 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62781
62782         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
62783         sysdeps/mach/hurd/readlink.c.
62784
62785         * posix/tst-sysconf.c (posix_options): Only use
62786         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
62787         _POSIX_SYNCHRONIZED_IO when they are defined
62788         * sysdeps/mach/hurd/bits/posix_opt.h:
62789         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
62790         (_XOPEN_REALTIME): Undefine macro.
62791         (_XOPEN_REALTIME_THREADS): Undefine macro.
62792         (_XOPEN_SHM): Undefine macro.
62793         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
62794         macro to -1.
62795         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
62796         macro to -1.
62797         (_POSIX_ASYNC_IO): Undefine macro.
62798         (_POSIX_PRIORITIZED_IO): Undefine macro.
62799         (_POSIX_SPIN_LOCKS): Define macro to -1.
62800
62801         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
62802         SA_NODEFER, SA_RESETHAND.
62803         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
62804         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
62805         F_DUPFD_CLOEXEC.
62806
62807 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62808
62809         * elf/Makefile (pldd-modules): Define unconditionally.
62810
62811 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62812
62813         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
62814
62815 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62816
62817         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
62818         Return ENOENT when name is empty.
62819         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
62820
62821 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62822
62823         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
62824
62825         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
62826
62827 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62828
62829         Fix mlock in all cases except non-readable pages.
62830         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
62831         instead of VM_PROT_ALL as parameter to __vm_wire function.
62832
62833         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
62834         (__mkdir): When path is `/', just fail with EEXIST.
62835         * sysdeps/mach/hurd/mkdirat.c: Likewise.
62836
62837 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62838
62839         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
62840         <sys/uio.h> (for writev).
62841         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
62842         and <sys/param.h> (for MIN).
62843
62844 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62845
62846         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
62847         REQUESTED_TIME.  Properly set the remaining time and return EINTR
62848         if interrupted.
62849
62850 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62851
62852         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
62853         Depend on against $(link-rpcuserlibs).
62854
62855 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62856
62857         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
62858         (__libc_stack_end): Do not use attribute_relro.
62859         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
62860         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
62861         to libthread-provided value.
62862         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
62863         attribute_relro.
62864
62865 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62866
62867         [BZ #3748]
62868         * bits/libc-lock.h (__libc_once_get): New macro.
62869         * sysdeps/mach/bits/libc-lock.h: Likewise.
62870         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
62871         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
62872         instead of using implementation details.
62873
62874         * libio/fileops.c: Unconditionally include <kernel-features.h>.
62875         * libio/freopen.c: Likewise.
62876         * libio/freopen64.c: Likewise.
62877         * misc/syslog.c: Likewise.
62878         * nscd/connections.c: Likewise.
62879         * nscd/netgroupcache.c: Likewise.
62880         * sysdeps/posix/getcwd.c: Likewise.
62881
62882 2012-05-10  Roland McGrath  <roland@hack.frob.com>
62883
62884         * math/w_ilogbf.c: Add #include <limits.h>.
62885
62886 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62887
62888         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
62889         path instead of returning without unlocking.
62890
62891         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
62892         immediate-write ioctls.
62893         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
62894
62895 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62896
62897         * sysdeps/mach/hurd/i386/init-first.c (init): Use
62898         __builtin_frame_address instead of making assumptions about the
62899         location of the return address relative to DATA.  Force early load of
62900         the return address.
62901         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
62902         __builtin_frame_address.
62903
62904         dup3 for GNU Hurd.
62905         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
62906         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
62907         implement dup3 and do some further code clean-ups.
62908         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
62909         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
62910
62911 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62912
62913         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
62914
62915         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
62916         HURD_CRITICAL_END around holding _hurd_dtable_lock.
62917         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
62918         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
62919         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
62920         d->port.lock.
62921
62922         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
62923         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
62924         when handler == SIG_ERR, not when handler != SIG_ERR.
62925
62926 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62927
62928         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
62929         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
62930         definitions.
62931
62932         accept4 for GNU Hurd.
62933         * include/sys/socket.h (__libc_accept4): New prototype.
62934         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
62935         to implement __libc_accept4.
62936         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
62937         __libc_accept4.
62938         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
62939
62940         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
62941         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
62942         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
62943         signal-defines.sym.
62944
62945 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62946
62947         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
62948
62949 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62950
62951         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
62952         assertion on O_CLOEXEC flag.
62953         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
62954         * hurd/intern-fd.c: Likewise.
62955         * hurd/port2fd.c: Likewise.
62956
62957 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62958
62959         [BZ #3906]
62960         * bits/in.h (IPV6_PKTINFO): Define new macro.
62961         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
62962
62963 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62964
62965         [BZ #13954]
62966         [BZ #13955]
62967         [BZ #13956]
62968         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
62969         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
62970         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
62971         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
62972         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
62973         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
62974         * math/libm-test.inc (logb_test) : Additional logb tests.
62975
62976 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
62977             Andreas Jaeger  <aj@suse.de>
62978
62979         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
62980         * configure: Regenerated.
62981         * config.h.in (LINK_OBSOLETE_RPC): New macro.
62982         * config.make.in (link-obsolete-rpc): New substituted variable.
62983         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
62984         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
62985         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
62986         (shared-only-routines): Don't set it under [link-obsolete-rpc],
62987         so that libc.a contains the symbols.
62988         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
62989         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
62990         * sunrpc/auth_none.c: Likewise.
62991         * sunrpc/auth_unix.c: Likewise.
62992         * sunrpc/authdes_prot.c: Likewise.
62993         * sunrpc/authuxprot.c: Likewise.
62994         * sunrpc/clnt_gen.c: Likewise.
62995         * sunrpc/clnt_perr.c: Likewise.
62996         * sunrpc/clnt_raw.c: Likewise.
62997         * sunrpc/clnt_simp.c: Likewise.
62998         * sunrpc/clnt_tcp.c: Likewise.
62999         * sunrpc/clnt_udp.c: Likewise.
63000         * sunrpc/clnt_unix.c: Likewise.
63001         * sunrpc/des_crypt.c: Likewise.
63002         * sunrpc/des_soft.c: Likewise.
63003         * sunrpc/get_myaddr.c: Likewise.
63004         * sunrpc/key_call.c: Likewise.
63005         * sunrpc/key_prot.c: Likewise.
63006         * sunrpc/netname.c: Likewise.
63007         * sunrpc/pm_getmaps.c: Likewise.
63008         * sunrpc/pm_getport.c: Likewise.
63009         * sunrpc/pmap_clnt.c: Likewise.
63010         * sunrpc/pmap_prot.c: Likewise.
63011         * sunrpc/pmap_prot2.c: Likewise.
63012         * sunrpc/pmap_rmt.c: Likewise.
63013         * sunrpc/publickey.c: Likewise.
63014         * sunrpc/rpc_cmsg.c: Likewise.
63015         * sunrpc/rpc_common.c: Likewise.
63016         * sunrpc/rpc_dtable.c: Likewise.
63017         * sunrpc/rpc_prot.c: Likewise.
63018         * sunrpc/rpc_thread.c: Likewise.
63019         * sunrpc/rtime.c: Likewise.
63020         * sunrpc/svc.c: Likewise.
63021         * sunrpc/svc_auth.c: Likewise.
63022         * sunrpc/svc_raw.c: Likewise.
63023         * sunrpc/svc_run.c: Likewise.
63024         * sunrpc/svc_tcp.c: Likewise.
63025         * sunrpc/svc_udp.c: Likewise.
63026         * sunrpc/svc_unix.c: Likewise.
63027         * sunrpc/svcauth_des.c: Likewise.
63028         * sunrpc/xcrypt.c: Likewise.
63029         * sunrpc/xdr.c: Likewise.
63030         * sunrpc/xdr_array.c: Likewise.
63031         * sunrpc/xdr_float.c: Likewise.
63032         * sunrpc/xdr_intXX_t.c: Likewise.
63033         * sunrpc/xdr_mem.c: Likewise.
63034         * sunrpc/xdr_rec.c: Likewise.
63035         * sunrpc/xdr_ref.c: Likewise.
63036         * sunrpc/xdr_sizeof.c: Likewise.
63037         * sunrpc/xdr_stdio.c: Likewise.
63038
63039 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63040
63041         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63042         change.  Update copyright years.
63043
63044 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63045
63046         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63047
63048 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63049             Joseph Myers  <joseph@codesourcery.com>
63050             Paul Pluzhnikov  <ppluzhnikov@google.com>
63051
63052         [BZ #14012]
63053         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63054         requiring rpcgen.
63055         [cross-compiling] (extra-libs): Likewise.
63056         [cross-compiling] (extra-libs-others): Likewise.
63057         [cross-compiling] (librpcsvc-routines): Likewise.
63058         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63059         [cross-compiling] (omit-deps): Likewise.
63060         (sunrpc-CPPFLAGS): New variable.
63061         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63062         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63063         (cross-rpcgen-objs): New variable.
63064         (extra-objs): Append $(cross-rpcgen-objs).
63065         ($(cross-rpcgen-objs)): New rule.
63066         ($(objpfx)cross-rpcgen): Likewise.
63067         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63068         comment.
63069         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63070         ($(objpfx)x%.stmp): Likewise.
63071         * sunrpc/proto.h [IS_IN_build] (_): Define.
63072         [IS_IN_build] (_libc_intl_domainname): Likewise.
63073
63074 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63075
63076         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63077         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63078         and R_X86_64_TPOFF64.
63079
63080 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63081
63082         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63083         sysdeps/unix/sysv/syscalls.list.
63084         (stime): Likewise.
63085         (utime): Likewise.
63086         * sysdeps/unix/sysv/syscalls.list: Remove file.
63087
63088 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63089
63090         [BZ #3440]
63091         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63092         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63093         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63094         (__LC_IDENTIFICATION): Make these macros useful in #if
63095         expressions, as required by C99.
63096
63097 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63098
63099         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63100         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63101         after this.
63102
63103 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63104
63105         * stdlib/longlong.h: Updated from GCC.
63106
63107 2012-05-09  Andreas Jaeger  <aj@suse.de>
63108
63109         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63110         default is first entry.
63111         (run_mode): Set type.
63112         (main): Remove informal message about syslog.
63113         (options): Fix typo.
63114
63115         [BZ #14053]
63116         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63117         to asm.
63118         (lrint): Likewise.
63119         (llrintf): Likewise.
63120         (llrint): Likewise.
63121         (rint): Likewise.
63122         (rintf): Likewise.
63123         (nearbyint): Likewise.
63124         (nearbyintf): Likewise.
63125
63126 2012-05-09  Andreas Jaeger  <aj@suse.de>
63127             Pedro Alves  <palves@redhat.com>
63128
63129         * nscd/nscd.c (run_mode): Use enum.
63130         (main): Cleanup coding style issue.
63131
63132 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63133             Andreas Jaeger  <aj@suse.de>
63134
63135         * nscd/nscd.c (go_background): Replaced with...
63136         (run_mode): ... this.
63137         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63138         (options): Add -F --foreground.
63139         (main): Implement it.
63140         (parse_opt): Parse it.
63141
63142 2012-05-09  Andreas Jaeger  <aj@suse.de>
63143
63144         [BZ #14083]
63145         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63146         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63147         -Wconversion warning.
63148         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63149         Likewise.
63150
63151 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63152
63153         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63154         == 0.
63155         (LC_ALL): Use macro-int-constant.
63156         (LC_COLLATE): Likewise.
63157         (LC_CTYPE): Likewise.
63158         (LC_MESSAGES): Likewise.
63159         (LC_MONETARY): Likewise.
63160         (LC_NUMERIC): Likewise.
63161         (LC_TIME): Likewise.
63162         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63163         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63164         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63165         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63166         Specify type.
63167         [C99-based standards] (float_t): Expect type.
63168         [C99-based standards] (double_t): Expect type.
63169         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63170         type.
63171         [C99-based standards] (HUGE_VALL): Likewise.
63172         [C99-based standards] (INFINITY): Likewise.
63173         [C99-based standards] (NAN): Likewise.
63174         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63175         [C99-based standards] (FP_NAN): Likewise.
63176         [C99-based standards] (FP_NORMAL): Likewise.
63177         [C99-based standards] (FP_SUBNORMAL): Likewise.
63178         [C99-based standards] (FP_ZERO): Likewise.
63179         [C99-based standards] (FP_FAST_FMA): Use
63180         optional-macro-int-constant.  Specify type.  Require == 1.
63181         [C99-based standards] (FP_FAST_FMAF): Likewise.
63182         [C99-based standards] (FP_FAST_FMAL): Likewise.
63183         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63184         [C99-based standards] (FP_ILOGBNAN): Likewise.
63185         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63186         Specify type.
63187         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63188         [C99-based standards] (math_errhandling): Specify type.
63189         [ISO99 || ISO11] (signgam): Do not allow.
63190         [non-C99-based standards] (copysignf): Do not allow.
63191         [non-C99-based standards] (exp2f): Likewise.
63192         [non-C99-based standards] (log2f): Likewise.
63193         [non-C99-based standards] (modff): Allow.
63194         [non-C99-based standards] (erff): Do not allow.
63195         [non-C99-based standards] (erfcf): Likewise.
63196         [non-C99-based standards] (gammaf): Likewise.
63197         [non-C99-based standards] (hypotf): Likewise.
63198         [non-C99-based standards] (j0f): Likewise.
63199         [non-C99-based standards] (j1f): Likewise.
63200         [non-C99-based standards] (jnf): Likewise.
63201         [non-C99-based standards] (lgammaf): Likewise.
63202         [non-C99-based standards] (tgammaf): Likewise.
63203         [non-C99-based standards] (y0f): Likewise.
63204         [non-C99-based standards] (y1f): Likewise.
63205         [non-C99-based standards] (ynf): Likewise.
63206         [non-C99-based standards] (isnanf): Likewise.
63207         [non-C99-based standards] (acoshf): Likewise.
63208         [non-C99-based standards] (asinhf): Likewise.
63209         [non-C99-based standards] (atanhf): Likewise.
63210         [non-C99-based standards] (cbrtf): Likewise.
63211         [non-C99-based standards] (expm1f): Likewise.
63212         [non-C99-based standards] (ilogbf): Likewise.
63213         [non-C99-based standards] (log1pf): Likewise.
63214         [non-C99-based standards] (logbf): Likewise.
63215         [non-C99-based standards] (nextafterf): Likewise.
63216         [non-C99-based standards] (remainderf): Likewise.
63217         [non-C99-based standards] (rintf): Likewise.
63218         [non-C99-based standards] (scalbf): Likewise.
63219         [non-C99-based standards] (copysignl): Likewise.
63220         [non-C99-based standards] (exp2l): Likewise.
63221         [non-C99-based standards] (log2l): Likewise.
63222         [non-C99-based standards] (modfl): Allow.
63223         [non-C99-based standards] (erfl): Do not allow.
63224         [non-C99-based standards] (erfcl): Likewise.
63225         [non-C99-based standards] (gammal): Likewise.
63226         [non-C99-based standards] (hypotl): Likewise.
63227         [non-C99-based standards] (j0l): Likewise.
63228         [non-C99-based standards] (j1l): Likewise.
63229         [non-C99-based standards] (jnl): Likewise.
63230         [non-C99-based standards] (lgammal): Likewise.
63231         [non-C99-based standards] (tgammal): Likewise.
63232         [non-C99-based standards] (y0l): Likewise.
63233         [non-C99-based standards] (y1l): Likewise.
63234         [non-C99-based standards] (ynl): Likewise.
63235         [non-C99-based standards] (isnanl): Likewise.
63236         [non-C99-based standards] (acoshl): Likewise.
63237         [non-C99-based standards] (asinhl): Likewise.
63238         [non-C99-based standards] (atanhl): Likewise.
63239         [non-C99-based standards] (cbrtl): Likewise.
63240         [non-C99-based standards] (expm1l): Likewise.
63241         [non-C99-based standards] (ilogbl): Likewise.
63242         [non-C99-based standards] (log1pl): Likewise.
63243         [non-C99-based standards] (logbl): Likewise.
63244         [non-C99-based standards] (nextafterl): Likewise.
63245         [non-C99-based standards] (remainderl): Likewise.
63246         [non-C99-based standards] (rintl): Likewise.
63247         [non-C99-based standards] (scalbl): Likewise.
63248         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63249         [non-C99-based standards] (FP_*): Do not allow.
63250         [C99-based standards] (FP_*): Change to
63251         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63252         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63253         allow.
63254         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63255         (SIG_ERR): Likewise.
63256         [X/Open-based standards] (SIG_HOLD): Likewise.
63257         (SIG_IGN): Likewise.
63258         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63259         positive value.
63260         (SIGFPE): Likewise.
63261         (SIGILL): Likewise.
63262         (SIGINT): Likewise.
63263         (SIGSEGV): Likewise.
63264         (SIGTER): Likewise.
63265         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63266         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63267         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63268         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63269         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63270         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63271         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63272         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63273         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63274         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63275         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63276         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63277         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63278         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63279         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63280         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63281         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63282         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63283         [X/Open-based standards] (SIGTRAP): Likewise.
63284         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63285         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63286         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63287         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63288         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63289         allow.
63290
63291 2012-05-08  Ian Wienand  <ianw@vmware.com>
63292
63293         [BZ #14080]
63294         * time/tzset.c (__tzset_parse_tz): Update default rules for
63295         daylight time changes in the Energy Policy Act of 2005.
63296
63297 2012-05-09  Andreas Jaeger  <aj@suse.de>
63298
63299         [BZ #13983]
63300         * elf/ldconfig.c (parse_conf): Change string to make clear that
63301         ldconfig only issued a warning if ld.so.conf does not exist.
63302
63303 2012-05-08  David S. Miller  <davem@davemloft.net>
63304
63305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63306         movxtod instead of popping the value on the stack.
63307
63308         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63309
63310 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63311
63312         * config.h.in: Add HAVE_ARM_PCS_VFP.
63313
63314 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63315
63316         [BZ #13979]
63317         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63318         checking but the checks are disabled for any reason.
63319
63320 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63321
63322         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63323         and ELF64_R_TYPE with ELFW(R_TYPE).
63324
63325 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63326
63327         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63328         (ulimit): Likewise.
63329
63330         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63331         (settimeofday): Likewise.
63332
63333 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63334
63335         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63336         a struct th_u2 inside the union, and move tu_block/tu_code into
63337         a new th_u3 union of tu_block/tu_code inside of that.  Move
63338         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63339         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63340         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63341         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63342         (th_stuff): Change to th_u1.tu_stuff.
63343         (th_data): Define.
63344         (th_msg): Change to th_u1.th_u2.tu_data.
63345
63346 2012-05-07  David S. Miller  <davem@davemloft.net>
63347
63348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63349
63350         [BZ #14074]
63351         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63352         (SETUP_PIC_REG): Use it.
63353         (SETUP_PIC_REG_LEAF): Use it.
63354
63355 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63356
63357         [BZ #13885]
63358         [BZ #13923]
63359         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63360         USE_AS_EXPM1L.
63361         (EXPL_FINITE): Likewise.
63362         (FLDLOG): Likewise.
63363         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63364         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63365         e_expl.S.
63366         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63367         USE_AS_EXPM1L.
63368         (EXPL_FINITE): Likewise.
63369         (FLDLOG): Likewise.
63370         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63371         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63372         e_expl.S.
63373         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63374         test of -max_value argument for long double.
63375         * sysdeps/i386/fpu/libm-test-ulps: Update.
63376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63377
63378 2012-05-06  David S. Miller  <davem@davemloft.net>
63379
63380         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63381         quad soft-float symbols whose references which are compiler
63382         generated.
63383         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63384
63385 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63386
63387         [BZ #13884]
63388         [BZ #13914]
63389         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63390         USE_AS_EXP10L.
63391         (EXPL_FINITE): Likewise.
63392         (FLDLOG): Likewise.
63393         (c0): Likewise.
63394         (c1): Likewise.
63395         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63396         Adjust comments for base varying.
63397         (__expl_finite): Change alias to EXPL_FINITE.
63398         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63399         e_expl.S.
63400         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63401         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63402         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63403         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63404         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63405         USE_AS_EXP10L.
63406         (EXPL_FINITE): Likewise.
63407         (FLDLOG): Likewise.
63408         (c0): Likewise.
63409         (c1): Likewise.
63410         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63411         Adjust comments for base varying.
63412         (__expl_finite): Change alias to EXPL_FINITE.
63413         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63414         tests for bugs.
63415         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63416
63417         [BZ #14064]
63418         * math/libm-test.inc (check_float_internal): Correct ulp
63419         calculation for subnormal expected results.
63420
63421 2012-05-06  Andreas Jaeger  <aj@suse.de>
63422
63423         * Makeconfig (+math-flags): New, set to -frounding-math.
63424         (+cflags): Add +math-flags so that all of glibc gets compiled with
63425         it.
63426
63427         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63428
63429 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63430
63431         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63432         Disable one test.
63433
63434         [BZ #13787]
63435         [BZ #13922]
63436         [BZ #14036]
63437         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63438         (__ieee754_expl): Allow for and saturate large arguments.
63439         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63440         (u_threshold): Likewise.
63441         (__exp): Call __ieee754_exp before checking for overflow and
63442         underflow.
63443         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63444         (u_threshold): Likewise.
63445         (__expf): Call __ieee754_expf before checking for overflow and
63446         underflow.
63447         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63448         (u_threshold): Likewise.
63449         (__expl): Call __ieee754_expl before checking for overflow and
63450         underflow.
63451         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63452         (__ieee754_expl): Allow for and saturate large arguments.
63453         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63454         missing overflow exception on overflow.
63455         (expm1_test): Do not allow missing overflow exception on overflow.
63456
63457         * sysdeps/i386/fpu/e_expl.c: Move to ...
63458         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63459         rather than using inline asm.
63460         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63461         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63462         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63463
63464         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63465         (nice): Likewise.
63466         (poll): Likewise.
63467         (signal): Likewise.
63468         (time): Likewise.
63469         (times): Likewise.
63470
63471 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63472
63473         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63474         sysdeps/unix/common/syscalls.list.
63475         (fchmod): Likewise.
63476         (fchown): Likewise.
63477         (ftruncate): Likewise.
63478         (getrusage): Likewise.
63479         (gettimeofday): Likewise.
63480         (setpgid): Likewise.
63481         (setregid): Likewise.
63482         (setreuid): Likewise.
63483         (sigaction): Likewise.
63484         (truncate): Likewise.
63485         (vhangup): Likewise.
63486         * sysdeps/unix/common/syscalls.list: Remove file.
63487         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63488         * sysdeps/unix/sysv/linux/Implies: Likewise.
63489
63490 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63491
63492         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63493         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63494         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63495         Moved to ...
63496         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63497         Here.
63498         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63499         to ...
63500         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63501         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63502         to ...
63503         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63504         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63505         to ...
63506         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63507         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63508         to ...
63509         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63510         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63511         to ...
63512         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63513         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63514         to ...
63515         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63516         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63517         to ...
63518         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63519         Here.
63520         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63521         to ...
63522         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63523         Here.
63524         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63525         to ...
63526         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63527         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63528         Moved to ...
63529         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63530         Here.
63531         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63532         to ...
63533         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63534
63535 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63536
63537         * sysdeps/unix/common/bits/dirent.h: Remove file.
63538         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63539
63540         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63541         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63542         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63543         * sysdeps/unix/bsd/isatty.c: Likewise.
63544         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63545         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63546         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63547
63548 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63549
63550         [BZ #13563]
63551         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
63552         long double comparison inaccuracies.
63553         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
63554         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63555
63556 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
63557
63558         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
63559         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
63560
63561 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63562
63563         [BZ #14049]
63564         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
63565         nonzero digits before rounding a hex value.
63566         * stdlib/tst-strtod.c (tests): Add another test.
63567
63568 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63569
63570         * sysdeps/s390/fpu/libm-test-ulps: Update.
63571
63572 2012-05-03  Andreas Jaeger  <aj@suse.de>
63573
63574         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
63575         does not get optimized out.
63576         (malloc_opt_barrier): New.
63577
63578 2012-05-03  Andreas Jaeger  <aj@suse.de>
63579             Roland McGrath  <roland@hack.frob.com>
63580
63581         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
63582         intermediate file deletion.
63583         (generated): Add .symlist files.
63584
63585 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
63586
63587         [BZ #13775]
63588         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
63589         Redirect under this condition.
63590         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63591         [__USE_GNU] (__dprintf_chk): Not under this condition.
63592         [__USE_GNU] (__vdprintf_chk): Likewise.
63593         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
63594         under this condition.
63595         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63596         [__USE_XOPEN2K8] (dprintf): Define under this condition.
63597         [__USE_XOPEN2K8] (vdprintf): Likewise.
63598         [__USE_GNU] (__dprintf_chk): Not under this condition.
63599         [__USE_GNU] (__vdprintf_chk): Likewise.
63600         [__USE_GNU] (dprintf): Likewise.
63601         [__USE_GNU] (vdprintf): Likewise.
63602
63603 2012-05-03  Roland McGrath  <roland@hack.frob.com>
63604
63605         * elf/Makefile (common-generated): Set this instead of generated for
63606         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
63607         $(all-built-dso)-derived lists.
63608
63609 2012-05-03  Andreas Jaeger  <aj@suse.de>
63610
63611         * sysdeps/i386/fpu/libm-test-ulps: Update.
63612
63613         * FAQ: Removed.
63614         * FAQ.in: Likewise.
63615         * scripts/gen-FAQ.pl: Likewise.
63616         * manual/install.texi (Installation): Point to online location of
63617         FAQ.
63618         * Makefile (files-for-dist): Remove FAQ.
63619         (FAQ): Remove.
63620
63621 2012-05-02  Allan McRae  <allan@archlinux.org>
63622
63623         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
63624         (LDFLAGS-reldepmod5.so): Likewise.
63625         (LDFLAGS-reldep6mod1.so): Likewise.
63626         (LDFLAGS-reldep6mod4.so): Likewise.
63627         (LDFLAGS-reldep8mod3.so): Likewise.
63628         (LDFLAGS-unload4mod1.so): Likewise.
63629         (LDFLAGS-unload4mod2.so): Likewise.
63630         (LDFLAGS-tst-initorder): Likewise.
63631         (LDFLAGS-tst-initordera2.so): Likewise.
63632         (LDFLAGS-tst-initordera3.so): Likewise.
63633         (LDFLAGS-tst-initordera4.so): Likewise.
63634         (LDFLAGS-tst-initorderb2.so): Likewise.
63635         (LDFLAGS-noload): Likewise.
63636         (LDFLAGS-next): Likewise.
63637         (LDFLAGS-order2mod1.so): Likewise.
63638         (LDFLAGS-order2mod2.so): Likewise.
63639         (LDFLAGS-tst-initorder2): Likewise.
63640         (LDFLAGS-tst-initorder2a.so): Likewise.
63641         (LDFLAGS-tst-initorder2b.so): Likewise.
63642         (LDFLAGS-tst-initorder2c.so): Likewise.
63643         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
63644
63645 2012-05-02  David S. Miller  <davem@davemloft.net>
63646
63647         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63648
63649 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
63650
63651         [BZ #14055]
63652         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
63653
63654 2012-05-02  Andreas Jaeger  <aj@suse.de>
63655
63656         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
63657         since we manipulate rounding mode.
63658         (CPPFLAGS-test-idouble.c): Likewise.
63659         (CPPFLAGS-test-ifloat.c): Likewise.
63660         (CFLAGS-test-ldouble.c): Likewise.
63661         (CFLAGS-test-double.c): Likewise.
63662         (CFLAGS-test-float.c): Likewise.
63663         (CFLAGS-test-misc.c): Likewise.
63664         (CFLAGS-test-test-fenv.c): Likewise.
63665
63666 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63667
63668         [BZ #2550]
63669         [BZ #2570]
63670         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
63671         comparisons to determine direction to adjust input.
63672
63673 2012-05-01  Roland McGrath  <roland@hack.frob.com>
63674
63675         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
63676         output to the target.
63677
63678         * scripts/localplt.awk: New file.
63679         * elf/Makefile ($(objpfx)check-localplt): Target removed.
63680         (check-localplt-CFLAGS): Variable removed.
63681         ($(all-built-dso:=.jmprel)): New static pattern rule.
63682         (generated): Add those targets.
63683         (localplt-built-dso): New variable.
63684         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
63685
63686         * elf/check-localplt.c: File removed.
63687
63688         * scripts/check-execstack.awk: New file.
63689         * elf/Makefile ($(objpfx)check-execstack): Target removed.
63690         (check-execstack-CFLAGS): Variable removed.
63691         ($(objpfx)check-execstack.h): Target removed.
63692         ($(objpfx)execstack-default): New target.
63693         (generated): Add that instead of check-execstack.h.
63694         ($(all-built-dso:=.phdr)): New static pattern rule.
63695         (generated): Add those targets.
63696         * elf/check-execstack.c: File removed.
63697
63698         * scripts/check-textrel.awk: New file.
63699         * elf/Makefile ($(objpfx)check-textrel): Target removed.
63700         (check-textrel-CFLAGS): Variable removed.
63701         (all-built-dso): Use := to define.o
63702         ($(all-built-dso:=.dyn)): New static pattern rule.
63703         (generated): Add those targets.
63704         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
63705         * config.make.in (READELF): New substituted variable.
63706         * elf/check-textrel.c: File removed.
63707
63708 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
63709
63710         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63711         allow.
63712         * conform/data/ctype.h-data [C99-based standards] (isblank):
63713         Expect function.
63714         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
63715         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
63716         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63717         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
63718         Specify type.  Require positive value.
63719         (EILSEQ): Likewise.
63720         (ERANGE): Likewise.
63721         [ISO || POSIX] (EILSEQ): Do not expect.
63722         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
63723         Specify type.  Require positive value.
63724         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
63725         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
63726         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
63727         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
63728         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
63729         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
63730         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
63731         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
63732         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
63733         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
63734         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
63735         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
63736         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
63737         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
63738         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
63739         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
63740         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
63741         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
63742         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
63743         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
63744         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
63745         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
63746         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
63747         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
63748         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
63749         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
63750         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
63751         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
63752         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
63753         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
63754         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
63755         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
63756         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
63757         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
63758         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
63759         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
63760         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
63761         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
63762         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
63763         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
63764         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
63765         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
63766         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
63767         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
63768         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
63769         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
63770         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
63771         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
63772         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
63773         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
63774         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
63775         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
63776         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
63777         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
63778         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
63779         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
63780         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
63781         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
63782         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
63783         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
63784         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
63785         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
63786         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
63787         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
63788         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
63789         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
63790         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
63791         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
63792         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
63793         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
63794         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
63795         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
63796         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
63797         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
63798         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
63799         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
63800         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
63801         Require >= 2.
63802         (FLT_ROUNDS): Expect as macro, not constant.
63803         (FLT_MANT_DIG): Use macro-int-constant.
63804         (DBL_MANT_DIG): Likewise.
63805         (LDBL_MANT_DIG): Likewise.
63806         (FLT_DIG): Likewise.
63807         (DBL_DIG): Likewise.
63808         (LDBL_DIG): Likewise.
63809         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
63810         (DBL_MIN_EXP): Likewise.
63811         (LDBL_MIN_EXP): Likewise.
63812         (FLT_MAX_EXP): Use macro-int-constant.
63813         (DBL_MAX_EXP): Likewise.
63814         (LDBL_MAX_EXP): Likewise.
63815         (FLT_MAX_10_EXP): Likewise.
63816         (DBL_MAX_10_EXP): Likewise.
63817         (LDBL_MAX_10_EXP): Likewise.
63818         (FLT_MAX): Use macro-constant.
63819         (DBL_MAX): Likewise.
63820         (LDBL_MAX): Likewise.
63821         (FLT_EPSILON): Use macro-constant.  Give upper bound.
63822         (DBL_EPSILON): Likewise.
63823         (LDBL_EPSILON): Likewise.
63824         (FLT_MIN): Likewise.
63825         (DBL_MIN): Likewise.
63826         (LDBL_MIN): Likewise.
63827         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
63828         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
63829         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
63830         [ISO11] (FLT_HAS_SUBNORM): Likewise.
63831         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
63832         [ISO11] (DBL_DECIMAL_DIG): Likewise.
63833         [ISO11] (FLT_DECIMAL_DIG): Likewise.
63834         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
63835         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
63836         [ISO11] (FLT_TRUE_MIN): Likewise.
63837         [ISO11] (LDBL_TRUE_MIN): Likewise.
63838         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63839         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
63840         (SCHAR_MIN): Use macro-int-constant.  Specify type.
63841         (SCHAR_MAX): Likewise.
63842         (UCHAR_MAX): Likewise.
63843         (CHAR_MIN): Likewise.
63844         (CHAR_MAX): Likewise.
63845         (MB_LEN_MAX): Use macro-int-constant.
63846         (SHRT_MIN): Use macro-int-constant.  Specify type.
63847         (SHRT_MAX): Likewise.
63848         (USHRT_MAX): Likewise.
63849         (INT_MAX): Likewise.
63850         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
63851         bound negative.
63852         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63853         bound with "U".
63854         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63855         bound with "L".
63856         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
63857         bound negative.  Suffix upper bound with "L".
63858         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63859         bound with "UL".
63860         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
63861         Specify type.
63862         [C99-based standards] (LLONG_MAX): Likewise.
63863         [C99-based standards] (ULLONG_MAX): Likewise.
63864         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
63865         == 0.
63866         [ISO11] (max_align_t): Require type.
63867         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63868
63869         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
63870         from $CFLAGS, without defining away __attribute__ calls.
63871         (checknamespace): Use $CFLAGS_namespace.
63872
63873         * conform/conformtest.pl (@keywords): Only include C99 keywords
63874         for standards based on C99 or C11.
63875
63876         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
63877         Disable tests.
63878         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
63879         UNIX98]: Likewise.
63880
63881         * conform/conformtest.pl: Handle "macro-int-constant" and test for
63882         usability of symbols in #if.
63883
63884         * conform/conformtest.pl: If macro or constant types start
63885         "promoted:", expect the symbol to be of the following type
63886         promoted by the integer promotions.
63887
63888         * conform/conformtest.pl: Parse all "constant" and "macro" lines
63889         in one place.  Also handle "macro-constant".
63890
63891         * conform/conformtest.pl: Only accept expected macro values with
63892         "==".  Parse all "macro" lines in one place.
63893         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
63894
63895         * conform/conformtest.pl: Handle braced types on "constant" lines
63896         instead of handling "typed-constant".
63897         * conform/data/signal.h-data: Use "constant" instead of
63898         "typed-constant".
63899
63900         * conform/conformtest.pl: Handle "optional-" at start of lines in
63901         one place rather than duplicating several cases.  Handle each
63902         format of "macro" line with initial "optional-".
63903
63904         * conform/conformtest.pl: Only accept expected constant or
63905         optional-constant values with "==".  Parse all "constant" lines in
63906         one place.  Parse all "optional-constant" lines in one place.
63907         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
63908         * conform/data/fmtmsg.h-data: Likewise.
63909         * conform/data/netinet/in.h-data: Likewise.
63910         * conform/data/tar.h-data: Likewise.
63911         * conform/data/limits.h-data: Use "==" form on "constant" and
63912         "optional-constant" lines.
63913
63914         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
63915         Use -std=c99 for XOPEN2K.
63916         (@knownproblems): Remove.
63917         (newtoken): Don't check %isknown.
63918
63919         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
63920         Do not expect macro.
63921         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
63922         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
63923         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
63924         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
63925         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
63926         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
63927         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
63928         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
63929         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
63930         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
63931         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
63932         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
63933         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
63934         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
63935         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
63936         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
63937         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
63938         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
63939         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
63940         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
63941         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
63942         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
63943         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
63944         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
63945         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
63946         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
63947         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
63948         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
63949         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
63950         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
63951         [XPG3] (acosh): Likewise.
63952         [XPG3] (asinh): Likewise.
63953         [XPG3] (atanh): Likewise.
63954         [XPG3] (cbrt): Likewise.
63955         [XPG3] (expm1): Likewise.
63956         [XPG3] (ilogb): Likewise.
63957         [XPG3] (log1p): Likewise.
63958         [XPG3] (logb): Likewise.
63959         [XPG3] (nextafter): Likewise.
63960         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
63961         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
63962         [XPG3] (remainder): Likewise.
63963         [XPG3] (rint): Likewise.
63964         [XPG3 || XPG4 || UNIX98] (round): Likewise.
63965         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
63966         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
63967         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
63968         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
63969         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
63970         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
63971         [UNIX98 || XOPEN2K] (scalb): Expect.
63972         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
63973         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
63974         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
63975         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
63976         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
63977         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
63978         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
63979         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
63980         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
63981         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
63982         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
63983         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
63984         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
63985         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
63986         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
63987         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
63988         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
63989         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
63990         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
63991         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
63992         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
63993         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
63994         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
63995         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
63996         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
63997         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
63998         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
63999         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64000         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64001         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64002         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64003         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64004         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64005         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64006         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64007         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64008         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64009         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64010         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64011         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64012         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64013         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64014         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64015         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64016         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64017         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64018         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64019         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64020         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64021         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64022         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64023         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64024         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64025         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64026         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64027         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64028         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64029         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64030         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64031         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64032         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64033         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64034         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64035         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64036         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64037         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64038         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64039         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64040         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64041         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64042         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64043         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64044         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64045         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64046         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64047         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64048         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64049         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64050         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64051         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64052         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64053         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64054         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64055         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64056         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64057         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64058         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64059         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64060         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64061         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64062         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64063         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64064         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64065         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64066         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64067         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64068         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64069         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64070         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64071         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64072         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64073         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64074         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64075         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64076         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64077         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64078         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64079         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64080         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64081         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64082         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64083         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64084         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64085         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64086         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64087         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64088         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64089         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64090         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64091         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64092         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64093         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64094         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64095         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64096         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64097         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64098         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64099         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64100         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64101         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64102         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64103         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64104         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64105         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64106         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64107         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64108         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64109
64110         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64111         _XOPEN_SOURCE_EXTENDED for XPG4.
64112
64113         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64114
64115         * Makeconfig (localtime): Remove variable.
64116         (inst_localtime-file): Likewise.
64117
64118 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64119
64120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64121         Update.
64122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64123         Update.
64124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64125         Update.
64126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64127         Update.
64128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64129         Update.
64130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64131         Update.
64132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64133         Update.
64134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64135         Update.
64136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64137         Update.
64138
64139 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64140
64141         [BZ #2550]
64142         [BZ #2570]
64143         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64144         comparisons to determine direction to adjust input.
64145         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64146         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64147         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64148         Likewise.
64149         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64150         Likewise.
64151         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64152         Likewise.
64153         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64154         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64155         Likewise.
64156         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64157         Likewise.
64158         * math/libm-test.inc (nexttoward_test): Add more tests.
64159
64160 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64161
64162         [BZ #14040]
64163         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64164         in version GLIBC_2.1, not GLIBC_2.0.
64165         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64166         Likewise.
64167
64168 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64169
64170         [BZ #13942]
64171         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64172         (1 - x) * (1 + x).
64173         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64174         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64175         * math/libm-test.inc (acos_test): Add more tests.
64176         (asin_test): Likewise.
64177         * sysdeps/i386/fpu/libm-test-ulps: Update.
64178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64179
64180         [BZ #14034]
64181         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64182         of square root.
64183         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64184         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64185         * math/libm-test.inc (acos_test_tonearest): New function.
64186         (acos_test_towardzero): Likewise.
64187         (acos_test_downward): Likewise.
64188         (acos_test_upward): Likewise.
64189         (asin_test_tonearest): Likewise.
64190         (asin_test_towardzero): Likewise.
64191         (asin_test_downward): Likewise.
64192         (asin_test_upward): Likewise.
64193         (main): Call the new functions.
64194         * sysdeps/i386/fpu/libm-test-ulps: Update.
64195         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64196
64197         [BZ #13884]
64198         [BZ #13924]
64199         * math/e_exp10.c: Include <float.h>.
64200         (__ieee754_exp10): Handle underflow here rather than multiplying
64201         large negative argument by M_LN10.
64202         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64203         of __ieee754_expf.
64204         * math/e_exp10l.c: Include <float.h>.
64205         (__ieee754_exp10l): Handle underflow here rather than multiplying
64206         large negative argument by M_LN10l.
64207         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64208         spurious overflow exception on underflow.
64209
64210 2012-04-29  Marek Polacek  <polacek@redhat.com>
64211
64212         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64213         (__fortify_function): New macro.
64214         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64215         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64216         __extern_always_inline.
64217         * libio/bits/stdio2.h: Likewise.
64218         * libio/bits/stdio.h: Likewise.
64219         * string/string.h: Likewise.
64220         * string/bits/string3.h: Likewise.
64221         * include/stdio.h: Likewise.
64222         * stdlib/bits/stdlib.h: Likewise.
64223         * stdlib/stdlib.h: Likewise.
64224         * rt/bits/mqueue2.h: Likewise.
64225         * rt/mqueue.h: Likewise.
64226         * posix/bits/unistd.h: Likewise.
64227         * posix/unistd.h: Likewise.
64228         * io/bits/poll2.h: Likewise.
64229         * io/bits/fcntl2.h: Likewise.
64230         * io/fcntl.h: Likewise.
64231         * io/sys/poll.h: Likewise.
64232         * misc/bits/syslog.h: Likewise.
64233         * misc/bits/syslog-ldbl.h: Likewise.
64234         * misc/sys/syslog.h: Likewise.
64235         * socket/bits/socket2.h: Likewise.
64236         * socket/sys/socket.h: Likewise.
64237         * debug/tst-chk1.c: Likewise.
64238         * wcsmbs/bits/wchar2.h: Likewise.
64239         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64240         * wcsmbs/wchar.h: Likewise.
64241
64242 2012-04-29  Andreas Jaeger  <aj@suse.de>
64243
64244         * Makerules (tests): Remove enable-check-abi protection.
64245         (check-abi-warn): Remove.
64246         (check-abi-%): Remove check-abi-warn usage.
64247
64248         * configure.in: Remove check-abi configure option.
64249         * configure: Regenerated.
64250         * config.make.in (enable-check-abi): Remove.
64251
64252 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64253
64254         [BZ #14033]
64255         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64256         double functions to double *_finite functions.
64257
64258         [BZ #13941]
64259         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64260         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64261         LDBL_MIN_EXP.
64262         * stdio-common/Makefile (tests): Add tst-sprintf3.
64263         * stdio-common/tst-sprintf3.c: New file.
64264
64265         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64266         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64267
64268 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64269
64270         * conform/conformtest.pl: Remove duplicate typed-constant
64271         handling.
64272
64273 2012-04-28  David S. Miller  <davem@davemloft.net>
64274
64275         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64276         (check-abi-%): Remove AWK script prerequisite and explicit
64277         abilist directory.
64278         (check-abi): Rewrite to just diff the symlist with the abilist.
64279         (config-tls, config-abi-config): Delete, no longer used.
64280         (update-abi-%): Remove AWK script and explicit abilist directory.
64281         (update-abi): Rewrite to simply compare and conditionally copy the
64282         symlist and the sysdep abilist file.  Remove update-abi-config
64283         checks.
64284         * abilist/ld.abilist: Remove.
64285         * abilist/libBrokenLocale.abilist: Remove.
64286         * abilist/libanl.abilist: Remove.
64287         * abilist/libcrypt.abilist: Remove.
64288         * abilist/libdl.abilist: Remove.
64289         * abilist/librt.abilist: Remove.
64290         * abilist/libthread_db.abilist: Remove.
64291         * abilist/libutil.abilist: Remove.
64292         * scripts/extract-abilist.awk: Remove.
64293         * scripts/merge-abilist.awk: Remove.
64294         * sysdeps/generic/libcidn.abilist: New file.
64295         * sysdeps/generic/libnss_compat.abilist: New file.
64296         * sysdeps/generic/libnss_db.abilist: New file.
64297         * sysdeps/generic/libnss_dns.abilist: New file.
64298         * sysdeps/generic/libnss_files.abilist: New file.
64299         * sysdeps/generic/libnss_hesiod.abilist: New file.
64300         * sysdeps/generic/libnss_nis.abilist: New file.
64301         * sysdeps/generic/libnss_nisplus.abilist: New file.
64302         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64303         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64304         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64305         file.
64306         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64307         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64308         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64309         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64310         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64311         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64312         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64313         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64314         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64315         file.
64316         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64317         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64318         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64319         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64320         file.
64321         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64322         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64323         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64324         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64325         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64326         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64327         file.
64328         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64329         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64330         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64331         file.
64332         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64333         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64334         New file.
64335         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64336         New file.
64337         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64338         New file.
64339         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64340         New file.
64341         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64342         New file.
64343         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64344         New file.
64345         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64346         New file.
64347         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64348         New file.
64349         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64350         New file.
64351         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64352         New file.
64353         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64354         New file.
64355         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64356         New file.
64357         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64358         New file.
64359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64360         file.
64361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64362         New file.
64363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64364         New file.
64365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64366         file.
64367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64368         New file.
64369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64370         New file.
64371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64372         file.
64373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64374         New file.
64375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64376         New file.
64377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64378         New file.
64379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64380         New file.
64381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64382         New file.
64383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64384         New file.
64385         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64386         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64387         file.
64388         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64389         New file.
64390         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64391         file.
64392         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64393         file.
64394         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64395         file.
64396         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64397         file.
64398         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64399         file.
64400         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64401         New file.
64402         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64403         file.
64404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64405         file.
64406         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64407         New file.
64408         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64409         file.
64410         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64411         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64412         file.
64413         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64414         New file.
64415         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64416         file.
64417         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64418         file.
64419         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64420         file.
64421         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64422         file.
64423         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64424         file.
64425         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64426         New file.
64427         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64428         file.
64429         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64430         file.
64431         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64432         New file.
64433         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64434         file.
64435         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64436         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64437         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64438         file.
64439         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64440         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64441         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64442         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64443         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64444         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64445         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64446         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64447         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64448         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64449         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64450         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64451         file.
64452         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64453         New file.
64454         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64455         file.
64456         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64457         file.
64458         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64459         file.
64460         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64461         file.
64462         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64463         file.
64464         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64465         New file.
64466         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64467         New file.
64468         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64469         file.
64470         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64471         New file.
64472         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64473         file.
64474         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64475         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64476         file.
64477         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64478         New file.
64479         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64480         file.
64481         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64482         file.
64483         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64484         file.
64485         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64486         file.
64487         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64488         file.
64489         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64490         New file.
64491         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64492         New file.
64493         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64494         file.
64495         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64496         New file.
64497         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64498         file.
64499
64500 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64501
64502         * conform/conformtest.pl: Fix typo in handling typed-constant from
64503         allow-header.
64504
64505 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64506
64507         * README: Cut down references to pre-2.6 Linux kernels and
64508         Linuxthreads.  Update lists of configurations in libc and ports
64509         and sort alphabetically.  Say "or newer" with Linux kernel version
64510         requirements.
64511
64512         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64513
64514 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64515
64516         [BZ #887]
64517         * math/libm-test.inc (logb_test_downward): New test to expose
64518         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64519         rounding mode.
64520
64521 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64522
64523         [BZ #14027]
64524         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64525         to be done.
64526         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64527         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64528
64529 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64530
64531         * sysdeps/unix/i386/brk.S: Remove file.
64532         * sysdeps/unix/i386/dl-brk.S: Likewise.
64533         * sysdeps/unix/i386/pipe.S: Likewise.
64534         * sysdeps/unix/i386/sigreturn.S: Likewise.
64535         * sysdeps/unix/i386/syscall.S: Likewise.
64536         * sysdeps/unix/i386/vfork.S: Likewise.
64537         * sysdeps/unix/i386/wait.S: Likewise.
64538
64539         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64540         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64541
64542         * configure.in (arm*-none*): Do not allow without
64543         --enable-hacker-mode.
64544         (netbsd*): Remove case setting base_os.
64545         (386bsd*): Likewise.
64546         (freebsd*): Likewise.
64547         (bsdi*): Likewise.
64548         (osf*): Likewise.
64549         (sunos*): Likewise.
64550         (ultrix*): Likewise.
64551         (newsos*): Likewise.
64552         (dynix*): Likewise.
64553         (*bsd*): Likewise.
64554         (sysv*): Likewise.
64555         (isc*): Likewise.
64556         (esix*): Likewise.
64557         (sco*): Likewise.
64558         (minix*): Likewise.
64559         (irix4*): Likewise.
64560         (irix6*): Likewise.
64561         (solaris[2-9]*): Likewise.
64562         (none): Likewise.
64563         * configure: Regenerated.
64564
64565 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64566
64567         [BZ #11521]
64568         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
64569         overflow or cancellation in calculating denominator.
64570         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
64571         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
64572         down expression to avoid unexpected rounding in newer GCCs.
64573         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
64574
64575 2012-04-26  David S. Miller  <davem@davemloft.net>
64576
64577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
64578         long-double compat symbols.
64579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
64580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
64581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
64582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
64583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
64584         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
64585         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
64586         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
64587         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
64588         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
64589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
64590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
64591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
64592
64593 2012-04-25  David S. Miller  <davem@davemloft.net>
64594
64595         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
64596         HWCAP_* values only after the memory barriers have been defined.
64597         (atomic_full_barrier): Define.
64598         (atomic_read_barrier): Define.
64599         (atomic_write_barrier): Define.
64600
64601 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64602
64603         * shlib-versions: Add libgcc_s version information.
64604         * sysdeps/generic/libgcc_s.h: Remove.
64605         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
64606         libgcc_s.h.
64607         * sysdeps/gnu/unwind-resume.c: Likewise.
64608         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
64609
64610 2012-04-25  David S. Miller  <davem@davemloft.net>
64611
64612         * sysdeps/unix/sparc/brk.S: Delete.
64613         * sysdeps/unix/sparc/dl-brk.S: Delete.
64614         * sysdeps/unix/sparc/pipe.S: Delete.
64615         * sysdeps/unix/sparc/sysdep.S: Delete.
64616         * sysdeps/unix/sparc/sysdep.h: Delete.
64617         * sysdeps/unix/sparc/vfork.S: Delete.
64618         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
64619         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
64620         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
64621         (ret_ERRVAL, r0, r1, MOVE): Define.
64622         (JUMPTARGET): Remove.
64623         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
64624         sysdeps/unix/sparc/sysdep.h
64625         (ENTRY, END): Remove.
64626         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
64627
64628 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
64629
64630         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
64631         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
64632         -DIS_IN_build.
64633
64634         * timezone/README: Update upstream location and email address for
64635         tzcode and tzdata.
64636         * timezone/zdump.c: Update from tzcode 2012b.
64637         * timezone/zic.c: Likewise.
64638
64639         * configure.in (libc_cv_as_needed): Remove test.
64640         * configure: Regenerated.
64641         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
64642         conditional definition.
64643         [$(have-as-needed) != yes] (no-as-needed): Likewise.
64644         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
64645         * config.make.in (have-as-needed): Remove variable.
64646
64647 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64648             Paul Pluzhnikov  <ppluzhnikov@google.com>
64649
64650         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
64651         strings correctly.
64652
64653 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
64654
64655         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
64656         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
64657         * sysdeps/sh/strlen.S: Likewise.
64658
64659 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64660
64661         * sysdeps/unix/fork.S: Remove file.
64662         * sysdeps/unix/i386/fork.S: Likewise.
64663         * sysdeps/unix/sparc/fork.S: Likewise.
64664
64665         * sysdeps/unix/system.c: Remove file.
64666         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
64667
64668         * sysdeps/unix/getegid.S: Remove file.
64669         * sysdeps/unix/geteuid.S: Likewise.
64670
64671 2012-04-24  Roland McGrath  <roland@hack.frob.com>
64672
64673         * scripts/check-localplt.awk: New file.
64674         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
64675         of diff.
64676         * scripts/data/localplt-generic.data: Add a comment.
64677
64678         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
64679         NODE when __dir_mkfile failed.
64680         * sysdeps/mach/hurd/symlinkat.c: Likewise.
64681         Reported by Ludovic Courtès <ludo@gnu.org>.
64682
64683 2012-04-24  Andreas Jaeger  <aj@suse.de>
64684
64685         * Makerules (common-clean): Also remove gen-as-const-headers
64686         files.
64687
64688 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64689
64690         * Makerules (native-compile): Do not change working directory for
64691         build.  Use $(OUTPUT_OPTION) in command.
64692         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
64693
64694 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64695
64696         [BZ #13886]
64697         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
64698         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
64699         * math/libm-test.inc (floor_test): Add more tests.
64700         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
64701
64702 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64703
64704         * sysdeps/unix/getdents.c: Remove file.
64705         * sysdeps/unix/sysv/getdents.c: Likewise.
64706         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
64707
64708         * sysdeps/unix/syscalls.list (madvise): Add syscall from
64709         sysdeps/unix/mman/syscalls.list.
64710         (mmap): Likewise.
64711         (mprotect): Likewise.
64712         (msync): Likewise.
64713         (munmap): Likewise.
64714         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
64715         * sysdeps/unix/mman/syscalls.list: Remove.
64716         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
64717
64718         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
64719         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
64720         * configure: Regenerated.
64721         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
64722         $(libgcc_s_suffix).
64723         * config.make.in (libgcc_s_suffix): Remove variable.
64724
64725 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
64726
64727         * sysdeps/unix/sysv/gethostname.c: Move to ...
64728         * sysdeps/posix/gethostname.c: ... here.
64729
64730         * sysdeps/unix/execve.S: Remove file.
64731
64732         * sysdeps/unix/_exit.S: Remove file.
64733
64734 2012-04-23  Andreas Jaeger  <aj@suse.de>
64735
64736         [BZ #13739]
64737         * manual/Makefile: Remove make dist support, there's no
64738         need for a stand-alone documentation tar ball.
64739         (TEXI2DVI): Define always, it's not in Makeconfig.
64740         (dist): Removed.
64741         (tar-it): Removed.
64742         (edition): Removed.
64743         (glibc-doc-$(edition).tar): Removed
64744         (%.Z): Removed.
64745         (%.gz): Removed.
64746         (%.uu): Removed.
64747         (ETAGS): Remove, it's in Makeconfig.
64748         (move-if-change): Remove, it's in Makeconfig.
64749
64750 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         [BZ #13970]
64753         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
64754         (strtod, strtof, strtold, strtol, strtoul, strtoq)
64755         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
64756         (strtod_l, strtof_l, strtold_l): Remove __wur.
64757         It is not necessarily an error to ignore strtol's return value.
64758         One can reliably look at the stored endptr to decide whether
64759         the number had valid syntax.
64760
64761 2012-04-21  Andreas Jaeger  <aj@suse.de>
64762
64763         [BZ #13739]
64764         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
64765
64766 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
64767
64768         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
64769         * sysdeps/unix/sysv/Versions: Remove file.
64770
64771 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
64772
64773         [BZ #13927]
64774         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64775
64776 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
64777
64778         [BZ #7064]
64779         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
64780         version from __vm86.
64781
64782 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
64783
64784         * sysdeps/unix/common/lxstat.c: Remove file.
64785         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
64786
64787         * sysdeps/unix/sysv/Makefile: Remove file.
64788
64789         * sysdeps/unix/sysv/direct.h: Remove file.
64790
64791         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
64792         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
64793         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
64794         * sysdeps/unix/sysv/bits/signum.h: Likewise.
64795         * sysdeps/unix/sysv/bits/stat.h: Likewise.
64796         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
64797         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
64798
64799         * sysdeps/unix/sysv/setrlimit.c: Remove file.
64800
64801         * sysdeps/unix/xmknod.c: Remove file.
64802         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
64803
64804         * sysdeps/unix/sysv/settimeofday.c: Remove file.
64805
64806         * sysdeps/unix/sysv/i386/time.S: Remove file.
64807
64808         * sysdeps/unix/fxstat.c: Remove file.
64809         * sysdeps/unix/xstat.c: Likewise.
64810         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
64811
64812         * sysdeps/unix/sysv/sigaction.c: Remove file.
64813
64814         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
64815         (sysdep_headers): Remove variable.
64816         [termio.h not in sysdep_headers] (generated): Likewise.
64817         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
64818         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
64819         * sysdeps/unix/sysv/tcdrain.c: Likewise.
64820         * sysdeps/unix/sysv/tcflow.c: Likewise.
64821         * sysdeps/unix/sysv/tcflush.c: Likewise.
64822         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
64823         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
64824         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
64825         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
64826         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
64827
64828         * sysdeps/unix/siglist.c: Remove file.
64829
64830         * sysdeps/unix/getppid.S: Remove file.
64831
64832         * sysdeps/unix/mkdir.c: Remove file.
64833         * sysdeps/unix/rmdir.c: Likewise.
64834
64835 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
64836
64837         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
64838         ERR_MAX value.
64839         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
64840         errlist-compat value.
64841
64842 2012-04-18  David S. Miller  <davem@davemloft.net>
64843
64844         * sysdeps/generic/memcopy.h (reg_char): Delete.
64845         * debug/strcat_chk.c: Use char, not reg_char.
64846         * debug/strcpy_chk.c: Likewise.
64847         * debug/strncat_chk.c: Likewise.
64848         * debug/strncpy_chk.c: Likewise.
64849         * string/memchr.c: Likewise.
64850         * string/memrchr.c: Likewise.
64851         * string/rawmemchr.c: Likewise.
64852         * string/strcat.c: Likewise.
64853         * string/strchr.c: Likewise.
64854         * string/strchrnul.c: Likewise.
64855         * string/strcmp.c: Likewise.
64856         * string/strcpy.c: Likewise.
64857         * string/strncat.c: Likewise.
64858         * string/strncmp.c: Likewise.
64859         * string/strncpy.c: Likewise.
64860
64861 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64862
64863         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
64864         __builtin_memcopy is called when src and dest ranges are known to not
64865         overlap.
64866
64867 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64868
64869         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
64870         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
64871         fwd_align_merge macro call.
64872         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
64873         bwd_align_merge macro call.
64874         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
64875
64876 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64877
64878         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
64879         bwd_align_merge macros.
64880         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
64881         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
64882         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
64883
64884 2012-04-18  David S. Miller  <davem@davemloft.net>
64885
64886         * sysdeps/sparc/sparc64/memcopy.h: Delete.
64887
64888 2012-04-18  Andreas Jaeger  <aj@suse.de>
64889
64890         [BZ# 6794]
64891         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
64892         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
64893         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64894
64895         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
64896         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
64897         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64898
64899         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
64900         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
64901         Adjust for changed ldbl-128 files.
64902
64903         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
64904         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
64905         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64906
64907 2012-04-17  David S. Miller  <davem@davemloft.net>
64908
64909         * sysdeps/sparc/sparc32/memcopy.h: Delete.
64910
64911 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
64912
64913         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
64914         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
64915         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
64916         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
64917         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
64918         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
64919
64920 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64921
64922         [BZ #6794]
64923         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
64924         * math/libm-test.inc: Add ilogb errno and exception tests.
64925         * math/w_ilogb.c: New file: ilogb wrapper.
64926         * math/w_ilogbf.c: New file: ilogbf wrapper.
64927         * math/w_ilogbl.c: New file: ilogbl wrapper.
64928         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
64929         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
64930         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
64931         exception being thrown with 0.0 as argument.
64932         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
64933         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
64934         exception being thrown with 0.0 as argument.
64935         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
64936         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
64937         exception being thrown with 0.0 as argument.
64938         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
64939         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
64940         exception being thrown with 0.0 as argument.
64941         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
64942         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
64943         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
64944         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
64945         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
64946         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
64947         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
64948         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
64949         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
64950
64951 2012-04-17  Petr Baudis  <pasky@ucw.cz>
64952
64953         * include/sys/uio.h: Change __vector to __iovec to avoid clash
64954         with altivec.
64955
64956 2012-04-16  Marek Polacek  <polacek@redhat.com>
64957
64958         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
64959
64960 2012-04-16  Marek Polacek  <polacek@redhat.com>
64961
64962         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
64963         operands of fdivp instruction.
64964
64965 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
64966
64967         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
64968         * elf/tst-auditmod3b.c: Likewise.
64969         * elf/tst-auditmod4b.c: Likewise.
64970         * elf/tst-auditmod5b.c: Likewise.
64971         * elf/tst-auditmod6b.c: Likewise.
64972         * elf/tst-auditmod6c.c: Likewise.
64973         * elf/tst-auditmod7b.c: Likewise.
64974         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
64975         * sysdeps/x86_64/preconfigure.in: Likewise.
64976         * sysdeps/x86_64/preconfigure: Regenerated.
64977
64978 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
64979
64980         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
64981         __ILP32__.
64982
64983 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
64984
64985         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
64986         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
64987
64988 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
64989
64990         [BZ #13973]
64991         * locale/iso-639.def: Fix gl language name. Spotted by
64992         Yaron Shahrabani.
64993
64994 2012-04-12  Roland McGrath  <roland@hack.frob.com>
64995
64996         [BZ #2074]
64997         * libio/libio.h (__io_write_fn): Update comment.
64998
64999 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65000
65001         [BZ #2074]
65002         * stdio.texi (Hook Functions): The user provided writer function
65003         is not allowed to return -1.
65004
65005 2012-04-11  David S. Miller  <davem@davemloft.net>
65006
65007         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65008
65009 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65010
65011         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65012         Add a leading slash to rtkaio.
65013
65014 2012-04-11  Jim Meyering  <meyering@redhat.com>
65015
65016         [BZ #11959]
65017         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65018         It is not necessarily an error to ignore fwrite's return
65019         value.  One can reliably use ferror to test for errors after
65020         the fact.
65021
65022 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65023
65024         * bits/types.h (__snseconds_t): New type.
65025         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65026
65027         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65028         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65029         (__SNSECONDS_T_TYPE): Likewise.
65030         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65031         (__SNSECONDS_T_TYPE): Likewise.
65032         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65033         (__SNSECONDS_T_TYPE): Likewise.
65034
65035 2012-04-10  Andreas Jaeger  <aj@suse.de>
65036
65037         [BZ #2636]
65038         * manual/time.texi (Processor Time): Return type of times is
65039         elapsed real time since an arbitrary point in the past.
65040         (CPU Time): Move CLK_TCK from here...
65041         (Processor Time): ...to here.  Correct description.
65042         * manual/conf.texi (Constants for Sysconf): Correct description of
65043         _SC_CLK_TCK.
65044
65045 2012-04-10  David S. Miller  <davem@davemloft.net>
65046
65047         [BZ #13967]
65048         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65049         where the is a gap between DT_REL(A) and DT_JMPREL.
65050
65051 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65052
65053         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65054         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65055         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65056
65057 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65058
65059         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65060         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65061         (dl_main): Handle --inhibit-cache.
65062         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65063         _dl_inhibit_cache.
65064         * elf/dl-load.c (_dl_map_object): Use it.
65065         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65066
65067 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65068
65069         [BZ #13872]
65070         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65071         (__ieee754_powl): Saturate large exponents rather than testing for
65072         overflow of y*log2(x).
65073         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65074         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65075         exceptions.
65076
65077         [BZ #11521]
65078         * math/s_ctan.c: Include <float.h>.
65079         (__ctan): Avoid internal overflow or cancellation in calculating
65080         denominator.
65081         * math/s_ctanf.c: Likewise.
65082         * math/s_ctanl.c: Likewise.
65083         * math/s_ctanh.c: Likewise.
65084         * math/s_ctanhf.c: Likewise.
65085         * math/s_ctanhl.c: Likewise.
65086         * math/libm-test.inc (ctan_test): Add more tests.
65087         (ctanh_test): Likewise.
65088         * sysdeps/i386/fpu/libm-test-ulps: Update.
65089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65090
65091 2012-04-09  Andreas Jaeger  <aj@suse.de>
65092
65093         [BZ #6894]
65094         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65095         is an optional BSD extension.
65096
65097         [BZ #10254]
65098         * manual/stdio.texi (Opening Streams): Document additional fopen
65099         parameters.
65100
65101 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65102
65103         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65104         %eax without telling the compiler.
65105
65106 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65107
65108         [BZ # 13963]
65109         * manual/install.texi: Use sourceware.org.
65110
65111 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65112
65113         [BZ #13873]
65114         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65115         (__ieee754_pow): Generate overflow and underflow using huge*huge
65116         and tiny*tiny rather than just returning constant infinity or zero
65117         for large exponents.
65118         * math/libm-test.inc (pow_test): Require overflow exceptions for
65119         applicable cases of large exponents.
65120
65121         [BZ #706]
65122         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65123         (__ieee754_pow): Use iterative multiplication algorithm only for
65124         integer exponents with absolute value below 1024.  Check for odd
65125         integer exponents when using algorithm for real exponents.
65126         * math/libm-test.inc (pow_test): Add more tests.
65127         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65128
65129 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65130
65131         [BZ #13705]
65132         * math/libm-test.inc (exp_test): Do not allow overflow exception
65133         on underflow test.
65134
65135 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65136
65137         [BZ #13705]
65138         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65139         instead of __kernel_standard_f.
65140
65141 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65142
65143         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65144         * sysdeps/x86_64/memset_chk.S: Likewise.
65145
65146 2012-04-08  Andreas Jaeger  <aj@suse.de>
65147
65148         [BZ #10153]
65149         * manual/startup.texi (Environment Access): Describe return value
65150         for putenv and setenv.
65151
65152         [BZ #6895]
65153         * manual/filesys.texi (Directory Entries): Add description for
65154         DT_LNK.
65155
65156         [BZ #6890]
65157         * manual/filesys.texi (Directory Entries): Clarify that it's file
65158         system not operating system in the description of DT_UNKNOWN.
65159
65160         [BZ #6578]
65161         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65162
65163 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65164
65165         [BZ #6649]
65166         * manual/llio.texi (Opening and Closing Files): Add cross
65167         reference to explain mode argument.
65168
65169 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65170
65171         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65172         * sysdeps/x86_64/memset_chk.S: Likewise.
65173
65174 2012-04-07  David S. Miller  <davem@davemloft.net>
65175
65176         * elf/elf.h (R_SPARC_WDISP10): Define.
65177         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65178         R_SPARC_SIZE32.
65179         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65180         R_SPARC_SIZE64 and R_SPARC_H34.
65181
65182 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65183
65184         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65185         conditions and remove no longer applicable assertion.
65186
65187 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65188
65189         * bits/byteswap.h: Include <features.h>.
65190         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65191         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65192
65193 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65194
65195         * bits/byteswap.h (__bswap_16): Removed.
65196         Include <bits/byteswap-16.h> to get __bswap_16.
65197         * sysdeps/i386/bits/byteswap.h: Likewise.
65198         * sysdeps/s390/bits/byteswap.h: Likewise.
65199         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65200         * bits/byteswap-16.h: New file.
65201         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65202         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65203         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65204         * string/Makefile (headers): Add bits/byteswap-16.h.
65205
65206 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65207
65208         [BZ #13895]
65209         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65210         extra indirection.
65211         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65212         * nss/tst-nss-static.c: New.
65213
65214 2012-04-06  Robert Millan  <rmh@gnu.org>
65215
65216         [BZ #6486]
65217         * manual/llio.texi (File Position Primitive): lseek
65218         refers to WHENCE when it really means OFFSET.
65219
65220 2012-04-06  Andreas Jaeger  <aj@suse.de>
65221
65222         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65223         strncmp declarations.
65224
65225         * abilist/libc.abilist: Add __poll and __ppoll.
65226
65227 2012-04-05  David S. Miller  <davem@davemloft.net>
65228
65229         * scripts/check-local-headers.sh: Accept a host triplet in the
65230         path matched by the exclude regexp.
65231
65232         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65233         definition.
65234         * sysdeps/powerpc/powerpc32/dl-machine.h
65235         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65236         * sysdeps/s390/s390-32/dl-machine.h
65237         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65238         * sysdeps/sparc/sparc32/dl-machine.h
65239         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65240         * sysdeps/sparc/sparc64/dl-machine.h
65241         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65242
65243         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65244         lazy binding.
65245         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65246         undefined symbol errors.
65247
65248         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65249         DT_NEEDED entries.
65250
65251 2012-04-05  Michael Matz  <matz@suse.de>
65252
65253         [BZ #13592]
65254         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65255
65256 2012-04-05  Andreas Jaeger  <aj@suse.de>
65257
65258         [BZ #13908]
65259         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65260         comment.
65261
65262 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65263
65264         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65265         which ROUND is no valid rounding mode.
65266
65267 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65268
65269         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65270         read again.
65271         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65272
65273 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65274
65275         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65276         an exception using FPU order intentionally.
65277
65278 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65279
65280         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65281         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65282         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65283         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65284
65285 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65286
65287         [BZ #12340]
65288         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65289         EINVAL when BUFLEN is too smal.
65290
65291 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65292
65293         [BZ #13553]
65294         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65295         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65296
65297 2012-04-03  Andreas Jaeger  <aj@suse.de>
65298
65299         [BZ #13938]
65300         * manual/setjmp.texi (System V contexts): Fix sentence.
65301
65302         [BZ #13926]
65303         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65304         New macro for this case.
65305         [!__GNUC__] (__bswap_64): New inline function for this case.
65306         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65307         * bits/byteswap.h: Likewise.
65308         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65309         ull, guard with __GLIBC_HAVE_LONG_LONG.
65310
65311         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65312         __GLIBC_HAVE_LONG_LONG.
65313
65314         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65315         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65316
65317 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65318
65319         [BZ #13691]
65320         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65321         inptr and inend, rather than using last_ch.
65322
65323 2012-04-02  David S. Miller  <davem@davemloft.net>
65324
65325         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65326         * stdio-common/printf-parse.h (read_int): Change return type to
65327         'int', return -1 on INT_MAX overflow.
65328         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65329         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65330         overflows INT_MAX.  Check for overflow of in-format-string precision
65331         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65332         SIZE_MAX not INT_MAX for integer overflow test.
65333         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65334         skip the construct in the format string but do not record anything.
65335         * stdio-common/bug22.c: Adjust to test both width/prevision
65336         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65337         explicitly for proper errno values.
65338
65339 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65340
65341         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65342         CHAR_MAX.
65343         * string/test-strcmp.c [! WIDE]: Likewise.
65344         * time/tst-mktime2.c: Likewise for INT_MAX.
65345         * string/test-string.h: #include <sys/param.h> for MIN.
65346
65347         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65348         * sysdeps/i386/init-first.c (init): Likewise.
65349         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65350         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65351         * sysdeps/sh/init-first.c (init): Likewise.
65352
65353 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65354
65355         * po/ru.po: Update from translation team.
65356         * po/vi.po: Likewise.
65357
65358 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65359
65360         * resolv/nss_dns/dns-host.c: Merge copyright years.
65361
65362 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65363
65364         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65365         Optimize memcpy with prefetch if
65366         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65367         src, dst pointers have unequal 16 byte alignments.
65368
65369 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65370
65371         [BZ #13928]
65372         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65373         from a CNAME entry and return the minimum ttl for the query.
65374         (gaih_getanswer_slice): Likewise.
65375
65376 2012-03-30  Jeff Law  <law@redhat.com>
65377
65378         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65379         due to long keys.
65380         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65381         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65382
65383         * resolv/nss_dns/dns-host.c: Update copyright year.
65384
65385 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65386
65387         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65388         requests to save a system call.  Fix check that all bytes are sent.
65389
65390         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65391         comments for sendmmsg.
65392
65393 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65394
65395         [BZ #13691]
65396         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65397         with only 1 character between 0x0041 and 0x01b0.
65398         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65399         * wcsmbs/tst-mbsnrtowcs.c: New file.
65400
65401 2012-03-29  David S. Miller  <davem@davemloft.net>
65402
65403         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65404         small copies by hand.
65405
65406 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65407
65408         [BZ #13761]
65409         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65410         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65411         group memberships.
65412
65413 2012-03-28  David S. Miller  <davem@davemloft.net>
65414
65415         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65416         that branches into memcpy.
65417         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65418         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65419         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65420         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65421         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65422         bits.
65423         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65424         implementation too.
65425         * sysdeps/sparc/mempcpy.S: New file.
65426
65427         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65428         the IFUNC routine in the libc case.
65429         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65430
65431         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65432         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65433         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65434         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65435         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65436         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65437         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65438         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65439
65440         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65441         loop to 256 bytes instead of 64 bytes and fix test signedness.
65442
65443         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65444         * sysdeps/sparc/sparc32/Makefile: rather than here...
65445         * sysdeps/sparc/sparc64/Makefile: and here.
65446
65447 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65448
65449         * malloc/mallocbug.c: Avoid warnings about unused variables.
65450
65451 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65452
65453         [BZ #13760]
65454         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65455         in the right place. Discard and retry query if response is
65456         larger than input buffer size.
65457
65458 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65459
65460         [BZ #369]
65461         [BZ #2678]
65462         [BZ #3866]
65463         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65464         x for large integer exponent.
65465         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65466         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65467         sign of result as needed afterwards.
65468         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65469         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65470         result for underflowing pow the same as for overflow.
65471         (__kernel_standard_l): Handle powl overflow and underflow here
65472         rather than calling __kernel_standard.
65473         * math/libm-test.inc (pow_test): Add more tests.
65474
65475         [BZ #3868]
65476         [BZ #13879]
65477         [BZ #13910]
65478         [BZ #13911]
65479         [BZ #13912]
65480         [BZ #13913]
65481         [BZ #13915]
65482         [BZ #13916]
65483         [BZ #13917]
65484         [BZ #13918]
65485         [BZ #13919]
65486         [BZ #13920]
65487         [BZ #13921]
65488         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65489         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65490         (__kernel_standard_l): New function.
65491         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65492         __kernel_standard.
65493         * math/w_acosl.c (__acosl): Likewise.
65494         * math/w_asinl.c (__asinl): Likewise.
65495         * math/w_atan2l.c (__atan2l): Likewise.
65496         * math/w_atanhl.c (__atanhl): Likewise.
65497         * math/w_coshl.c (__coshl): Likewise.
65498         * math/w_exp10l.c (__exp10l): Likewise.
65499         * math/w_exp2l.c (__exp2l): Likewise.
65500         * math/w_fmodl.c (__fmodl): Likewise.
65501         * math/w_hypotl.c (__hypotl): Likewise.
65502         * math/w_j0l.c (__j0l, __y0l): Likewise.
65503         * math/w_j1l.c (__j1l, __y1l): Likewise.
65504         * math/w_jnl.c (__jnl, __ynl): Likewise.
65505         * math/w_lgammal.c (__lgammal): Likewise.
65506         * math/w_log10l.c (__log10l): Likewise.
65507         * math/w_log2l.c (__log2l): Likewise.
65508         * math/w_logl.c (__logl): Likewise.
65509         * math/w_powl.c (__powl): Likewise.
65510         * math/w_remainderl.c (__remainderl): Likewise.
65511         * math/w_scalbl.c (sysv_scalbl): Likewise.
65512         * math/w_sinhl.c (__sinhl): Likewise.
65513         * math/w_sqrtl.c (__sqrtl): Likewise.
65514         * math/w_tgammal.c (__tgammal): Likewise.
65515         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65516         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65517         * math/libm-test.inc (acos_test): Add more tests.
65518         (acosh_test): Likewise.
65519         (asin_test): Likewise.
65520         (atanh_test): Likewise.
65521         (exp_test): Likewise.
65522         (exp10_test): Likewise.
65523         (exp2_test): Likewise.
65524         (expm1_test): Likewise.
65525         (lgamma_test): Likewise.
65526         (log_test): Likewise.
65527         (log10_test): Likewise.
65528         (log1p_test): Likewise.
65529         (log2_test): Likewise.
65530         (pow_test): Do not allow some spurious overflow exceptions.
65531         (sqrt_test): Add more tests.
65532         (tgamma_test): Likewise.
65533         (y0_test): Likewise.
65534         (y1_test): Likewise.
65535         (yn_test): Likewise.
65536
65537 2012-03-27  Anton Blanchard  <anton@samba.org>
65538
65539         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65540         MAP_HUGETLB.
65541         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65542         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65543         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65544
65545 2012-03-27  David S. Miller  <davem@davemloft.net>
65546
65547         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65548
65549         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65550         have-as-vis3 check.
65551
65552 2012-03-27  Andreas Jaeger  <aj@suse.de>
65553
65554         * sysdeps/x86_64/elf/configure.in: Moved to ...
65555         * sysdeps/x86_64/configure.in: ... here.
65556         * sysdeps/x86_64/elf/start.S: Moved to ...
65557         * sysdeps/x86_64/start.S: ... here.
65558         * sysdeps/x86_64/elf/configure: Delete.
65559
65560         * sysdeps/x86_64/configure.in: Merge contents from
65561         sysdeps/i386/configure.in (without i686 check).
65562
65563         * sysdeps/i386/elf/Versions: Merge into ...
65564         * sysdeps/i386/Versions: ... this.
65565         * sysdeps/i386/elf/Versions: Delete file.
65566         * sysdeps/i386/elf/start.S: Moved to ...
65567         * sysdeps/i386/start.S: ...here.
65568         * sysdeps/i386/elf/configure.in: Merge into...
65569         * sysdeps/i386/configure.in: ...here.
65570         * sysdeps/i386/elf/configure.in: Delete file.
65571         * sysdeps/i386/elf/configure: Delete file.
65572
65573         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
65574         * debug/backtracesyms.c: ... here.
65575         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
65576         * debug/backtracesymsfd.c: ... here.
65577         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
65578         * sysdeps/generic/ifunc-sel.h: ... here.
65579
65580         * sysdeps/unix/i386/start.c: Delete file.
65581         * sysdeps/unix/sparc/start.c: Delete file.
65582         * sysdeps/unix/start.c: Delete file.
65583
65584         * sysdeps/sh/elf/configure.in: Moved to ...
65585         * sysdeps/sh/configure.in: ... here.
65586         * sysdeps/sh/elf/start.S: Moved to ...
65587         * sysdeps/sh/start.S: ... here.
65588         * sysdeps/sh/elf/configure: Delete file.
65589
65590         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
65591         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
65592         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
65593         * sysdeps/powerpc/powerpc64/entry.h: ... here.
65594         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
65595         * sysdeps/powerpc/powerpc64/start.S: here.
65596         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
65597         * sysdeps/powerpc/powerpc64/Makefile: ... this.
65598         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
65599         * sysdeps/powerpc/powerpc64/configure.in: ... this.
65600         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
65601
65602         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
65603         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
65604         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
65605         * sysdeps/powerpc/powerpc32/start.S: ... here.
65606         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
65607         * sysdeps/powerpc/powerpc32/configure.in: ... this.
65608         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
65609
65610         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
65611         * sysdeps/powerpc/ifunc-sel.h: ... here.
65612         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
65613         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
65614
65615         * sysdeps/sparc/elf/configure.in: Moved to ...
65616         * sysdeps/sparc/configure.in: ... here.
65617         * sysdeps/sparc/elf/configure: Delete file.
65618         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
65619         * sysdeps/sparc/sparc32/start.S: ... here.
65620         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
65621         * sysdeps/sparc/sparc64/start.S: ... here.
65622         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
65623         * sysdeps/sparc/sparc32/Makefile: ... this.
65624         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
65625         * sysdeps/sparc/sparc64/Makefile: ... this.
65626
65627         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
65628         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
65629         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
65630         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
65631         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
65632         * sysdeps/s390/s390-32/setjmp.S: ... here.
65633         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
65634         * sysdeps/s390/s390-32/configure.in: ... here.
65635         * sysdeps/s390/s390-32/elf/configure: Delete file.
65636         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
65637         * sysdeps/s390/s390-32/start.S: ... here.
65638
65639         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
65640         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
65641         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
65642         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
65643         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
65644         * sysdeps/s390/s390-64/setjmp.S: ... here.
65645         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
65646         * sysdeps/s390/s390-64/configure.in: ... here
65647         * sysdeps/s390/s390-64/elf/configure: Delete file.
65648         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
65649         * sysdeps/s390/s390-64/start.S: ... here.
65650         * sysdeps/s390/s390-64/elf/configure: Delete.
65651
65652         * configure.in: Remove support for elf directories in sysdeps.
65653
65654         * configure: Regenerated.
65655         * sysdeps/i386/configure: Regenerated.
65656         * sysdeps/powerpc/powerpc32/configure: Regenerated.
65657         * sysdeps/powerpc/powerpc64/configure: Regenerated.
65658         * sysdeps/s390/s390-32/configure: Regenerated.
65659         * sysdeps/s390/s390-64/configure: Regenerated.
65660         * sysdeps/sh/configure: Regenerated.
65661         * sysdeps/sparc/configure: Regenerated.
65662         * sysdeps/x86_64/configure: Regenerated.
65663
65664 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
65665
65666         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65667
65668         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
65669         denormal result into account.
65670
65671 2012-03-25  Roland McGrath  <roland@hack.frob.com>
65672
65673         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
65674         Reported by Allan McRae <allan@archlinux.org>.
65675
65676 2012-03-23  Jeff Law  <law@redhat.com>
65677
65678         * nss/getnssent.c (__nss_getent): Fix typo.
65679
65680 2012-03-23  David S. Miller  <davem@davemloft.net>
65681
65682         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65683
65684 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
65685
65686         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
65687         to pad to uint64_t for each field.
65688         (dl_tls_index): Replace unsigned long with uint64_t.
65689
65690 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
65691         Paul Pluzhnikov  <ppluzhnikov@google.com>
65692
65693         [BZ #6528]
65694         * grp/Makefile (otherlibs): Don't set it.
65695         * inet/Makefile (otherlibs): Likewise.
65696         * login/Makefile (otherlibs): Likewise.
65697         * nscd/Makefile (otherlibs): Likewise.
65698         * posix/Makefile (otherlibs): Likewise.
65699         * pwd/Makefile (otherlibs): Likewise.
65700         * rt/Makefile (otherlibs): Likewise.
65701         * sunrpc/Makefile (otherlibs): Likewise.
65702         * nss/Makefile (otherlibs): Likewise.
65703         Add libnss_files to routines and static-only-routines.
65704         ($(objpfx)getent): Remove rule.
65705         * resolv/Makefile: Add libnss_dns and libresolv to routines and
65706         static-only-routines.
65707
65708 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65709
65710         [BZ #13892]
65711         * math/s_cexp.c: Include <float.h>.
65712         (__cexp): Handle exp result overflowing not necessarily
65713         overflowing both real and imaginary parts of result.
65714         * math/s_cexpf.c: Likewise.
65715         * math/s_cexpl.c: Likewise.
65716         * math/libm-test.inc (cexp_test): Add more tests.
65717         * sysdeps/i386/fpu/libm-test-ulps: Update.
65718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65719
65720 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65721
65722         * include/link.h (ELFW): New macro.
65723         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
65724         Replace ELF64_R_TYPE with ELFW(R_TYPE).
65725
65726 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65727
65728         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
65729         with uint64_t.
65730
65731 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65732
65733         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
65734         declaration.
65735         (struct La_x32_retval): Likewise.
65736
65737 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65738
65739         * sysdeps/x86_64/preconfigure.in: New file.
65740         * sysdeps/x86_64/preconfigure: New generated file.
65741
65742 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65743
65744         [BZ #13824]
65745         * math/e_exp2l.c: Include <float.h>.
65746         (__ieee754_exp2l): Handle overflow and underflow cases
65747         separately.  Only pass fractional part of argument to
65748         __ieee754_expl.
65749         * math/libm-test.inc (exp2_test): Add more tests.
65750
65751         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
65752         negating x to take absolute value.
65753         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
65754         Likewise.
65755         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
65756         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
65757         Likewise.
65758         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
65759         computing low part if x was negated.
65760         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
65761
65762 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65763
65764         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
65765         la_x32_gnu_pltexit.
65766         (pltexit): Cast int_retval to ptrdiff_t.
65767         * elf/tst-auditmod3b.c: Likewise.
65768         * elf/tst-auditmod4b.c: Likewise.
65769         * elf/tst-auditmod5b.c: Likewise.
65770         * elf/tst-auditmod6b.c: Likewise.
65771         * elf/tst-auditmod6c.c: Likewise.
65772         * elf/tst-auditmod7b.c: Likewise.
65773
65774         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
65775         and x32_gnu_pltexit.
65776
65777         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
65778         __ELF_NATIVE_CLASS.
65779         (La_x32_regs): New macro.
65780         (La_x32_retval): Likewise.
65781         (la_x32_gnu_pltenter): New function prototype.
65782         (la_x32_gnu_pltexit): Likewise.
65783
65784 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
65785
65786         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
65787         exponent.
65788
65789         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65790
65791         * configure.in (libc_cv_cc_nofma): Check for option to disable
65792         generation of FMA instructions.
65793         * configure: Regenerate.
65794         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
65795         * sysdeps/ieee754/dbl-64/Makefile: New file.
65796         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
65797         Remove brandred-fma4.
65798         (CFLAGS-brandred-fma4.c): Remove.
65799         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
65800         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
65801         define.
65802         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
65803         define.
65804
65805 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65806
65807         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
65808         LLONG_MAX != LONG_MAX.
65809         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65810         (_fitoa_word): Likewise.
65811         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
65812         LLONG_MAX != LONG_MAX.
65813         * stdio-common/_itowa.h: Include <_itoa.h>.
65814         (_itowa_word): Use _ITOA_WORD_TYPE on value.
65815         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
65816         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
65817         only if not defined.
65818         (_ITOA_WORD_TYPE): Likewise.
65819         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65820         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
65821
65822 2012-03-21  David S. Miller  <davem@davemloft.net>
65823
65824         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65825
65826 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65827
65828         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
65829         of x86_64 when setting libc_cv_slibdir, libdir and
65830         libc_cv_localedir.
65831         * sysdeps/unix/sysv/linux/configure: Regenerated.
65832
65833 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65834
65835         * manual/lang.texi (Old Varargs): Remove section.
65836         (How Variadic): Update menu.
65837         (va_start): Do not mention varargs.h.
65838
65839 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
65840             Joseph Myers  <joseph@codesourcery.com>
65841
65842         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
65843         link test.
65844         * configure: Regenerated.
65845
65846 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
65847
65848         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
65849         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
65850         conformtest.pl
65851
65852 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65853
65854         * NOTES: Remove.
65855         * Makefile (files-for-dist): Remove NOTES.
65856         (NOTES): Remove rule.
65857         * README: Don't refer to NOTES.
65858         * manual/creature.texi: Don't include macros.texi.
65859         * manual/intro.texi (creature.texi): Remove comment referring to
65860         NOTES.
65861
65862         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
65863         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
65864         * configure: Regenerated.
65865         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
65866         LIBC_TRY_CC_OPTION.
65867         (libc_cv_as_i686): Likewise.
65868         (libc_cv_cc_avx): Likewise.
65869         (libc_cv_cc_sse2avx): Likewise.
65870         (libc_cv_cc_fma4): Likewise.
65871         (libc_cv_cc_novzeroupper): Likewise.
65872         * sysdeps/i386/configure: Regenerated.
65873
65874         [BZ #13883]
65875         * sysdeps/i386/fpu/s_cexp.S: Remove.
65876         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
65877         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
65878         * math/libm-test.inc (cexp_test): Add more tests.
65879         * sysdeps/i386/fpu/libm-test-ulps: Update.
65880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65881
65882 2012-03-21  Allan McRae  <allan@archlinux.org>
65883
65884         * timezone/Makefile: Do not install iso3166.tab and zone.tab
65885
65886 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65887
65888         [BZ #13871]
65889         * math/w_exp2.c: Do not include <float.h>.
65890         (o_threshold, u_threshold): Remove.
65891         (__exp2): Calculate result before checking finiteness and calling
65892         __kernel_standard.
65893         * math/w_exp2f.c: Likewise.
65894         * math/w_exp2l.c: Likewise.
65895         * math/libm-test.inc (exp2_test): Require overflow exception for
65896         1e6 input.
65897
65898         [BZ #3866]
65899         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
65900         range of signed 64-bit integers before using fistpll.  Remove
65901         checks for whether integers fit in mantissa bits.
65902         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
65903         the range of signed 32-bit integers before using fistpl.  Remove
65904         checks for whether integers fit in mantissa bits.
65905         * sysdeps/i386/fpu/e_powl.S (p64): New object.
65906         (__ieee754_powl): Test for y outside the range of signed 64-bit
65907         integers before using fistpll.  Reduce 64-bit values to 63-bit
65908         ones as needed.
65909         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
65910         divide-by-zero is raised for zero to large negative powers.
65911         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
65912         (__ieee754_powl): Test for y outside the range of signed 64-bit
65913         integers before using fistpll.  Reduce 64-bit values to 63-bit
65914         ones as needed.
65915         * math/libm-test.inc (pow_test): Add more tests.
65916
65917 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
65918
65919         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
65920         <stdio-common/_itoa.h>.
65921         * debug/segfault.c: Likewise.
65922         * elf/dl-cache.c: Likewise.
65923         * elf/dl-minimal.c: Likewise.
65924         * elf/dl-misc.c: Likewise.
65925         * elf/dl-sysdep.c: Likewise.
65926         * elf/dl-version.c: Likewise.
65927         * elf/rtld.c: Likewise.
65928         * hurd/hurdsock.c: Likewise.
65929         * hurd/lookup-retry.c: Likewise.
65930         * malloc/malloc.c: Likewise.
65931         * malloc/mtrace.c: Likewise.
65932         * nscd/nscd_getgr_r.c: Likewise.
65933         * nscd/nscd_getpw_r.c: Likewise.
65934         * nscd/nscd_getserv_r.c: Likewise.
65935         * posix/getopt_init.c: Likewise.
65936         * posix/wordexp.c: Likewise.
65937         * stdio-common/_itoa.c: Likewise.
65938         * stdio-common/printf_fphex.c: Likewise.
65939         * stdio-common/vfprintf.c: Likewise.
65940         * string/_strerror.c: Likewise.
65941         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
65942         * sysdeps/i386/i686/hp-timing.h: Likewise.
65943         * sysdeps/mach/_strerror.c: Likewise.
65944         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
65945         * sysdeps/mach/hurd/sethostid.c: Likewise.
65946         * sysdeps/mach/hurd/xmknodat.c: Likewise.
65947         * sysdeps/mach/xpg-strerror.c: Likewise.
65948         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
65949         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
65950         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
65951         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
65952         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
65953         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
65954         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
65955         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
65956         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
65957         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
65958         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
65959         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
65960         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
65961         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
65962         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
65963         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
65964         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
65965         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
65966         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
65967         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
65968         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
65969
65970         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
65971
65972         * stdio-common/_itoa.h: Moved to ...
65973         * sysdeps/generic/_itoa.h: Here.
65974
65975         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
65976
65977         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
65978         instead of "_itoa.h" and "_itowa.h".
65979         * stdio-common/vfprintf.: Likewise.
65980
65981 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
65982
65983         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
65984         <bits/wordsize.h>.
65985         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
65986         (__signbit): Likwise.
65987         (llrintf): Likwise.
65988         (llrint): Likwise.
65989
65990 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
65991
65992         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
65993         __WORDSIZE != 64.
65994
65995 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
65996
65997         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
65998         OVERFLOW_EXCEPTION_OK.
65999         * math/libm-test.inc ("Philosophy"): Update comment about
66000         exception testing.
66001         (OVERFLOW_EXCEPTION): Define.
66002         (OVERFLOW_EXCEPTION_OK): Likewise.
66003         (INVALID_EXCEPTION_OK): Renumber.
66004         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66005         (IGNORE_ZERO_INF_SIGN): Likewise.
66006         (test_exceptions): Handle FE_OVERFLOW.
66007         (exp10_test): Expect overflow exceptions.
66008         (exp2_test): Likewise.
66009         (expm1_test): Likewise.
66010         (nextafter_test): Likewise.
66011         (pow_test): Likewise.
66012         (scalbn_test): Likewise.
66013         (scalbln_test): Likewise.
66014
66015 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66016
66017         * sysdeps/x86_64/bits/atomic.h
66018         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66019         64bit integer.
66020         (atomic_exchange_acq): Likewise.
66021         (__arch_exchange_and_add_body): Likewise.
66022         (__arch_add_body): Likewise.
66023         (atomic_add_negative): Likewise.
66024         (atomic_add_zero): Likewise.
66025
66026 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66027
66028         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66029         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66030
66031 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66032
66033         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66034         Check __x86_64__ instead of __WORDSIZE.
66035
66036 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66037
66038         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66039
66040 2012-03-19  David S. Miller  <davem@davemloft.net>
66041
66042         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66043
66044         * sysdeps/sparc/fpu/fenv_private.h: New file.
66045         * sysdeps/sparc/fpu/math_private.h: Use it.
66046         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66047         Remove.
66048         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66049         (libc_feholdexcept_setroundl): Remove.
66050         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66051         Remove.
66052         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66053         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66054
66055 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66056
66057         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66058         int64_t instead of long int.
66059         (INSERT_WORDS64): Likwise.
66060
66061 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66062
66063         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66064         _Unwind_GetCFA return to _Unwind_Ptr first.
66065
66066 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66067
66068         [BZ #13629]
66069         * math/s_clog.c: Include <float.h>.
66070         (__clog): Scale large or subnormal inputs.
66071         * math/s_clogf.c: Likewise.
66072         * math/s_clogl.c: Likewise.
66073         * math/s_clog10.c: Include <float.h>.
66074         (M_LOG10_2): Define.
66075         (__clog10): Scale large or subnormal inputs.
66076         * math/s_clog10f.c: Likewise.
66077         * math/s_clog10l.c: Likewise.
66078         * math/libm-test.inc (clog_test): Add more tests.
66079         (clog10_test): Likewise.
66080         * sysdeps/i386/fpu/libm-test-ulps: Update.
66081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66082
66083         [BZ #11451]
66084         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66085         x and y.
66086         * math/libm-test.inc (atan2_test): Add another test.
66087
66088         * Makerules (common-objdir-compile): Remove.
66089         * sysdeps/unix/Makefile (config-generated): Do not add
66090         $(unix-generated) to variable.
66091         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66092         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66093         Remove rule.
66094         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66095         Likewise.
66096         [generic bits/local_lim.h] (before-compile): Do not append to
66097         variable.
66098         [generic bits/local_lim.h] (common-generated): Likewise.
66099         [generic sys/param.h] (before-compile): Do not append to variable.
66100         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66101         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66102         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66103         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66104         include.
66105         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66106         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66107         [generic sys/param.h] ($(addprefix
66108         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66109         [generic sys/param.h] (common-generated): Do not append to
66110         variable.
66111         [generic sys/param.h] (sysdep_headers): Likewise.
66112         [generic bits/errno.h] (before-compile): Do not append to
66113         variable.
66114         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66115         rule.
66116         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66117         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66118         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66119         [generic bits/errno.h] (common-generated): Do not append to
66120         variable.
66121         [generic bits/ioctls.h] (before-compile): Do not append to
66122         variable.
66123         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66124         rule.
66125         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66126         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66127         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66128         rule.
66129         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66130         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66131         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66132         [generic bits/ioctls.h] (common-generated): Do not append to
66133         variable.
66134         [generic sys/syscall.h] (syscall.h): Remove variable.
66135         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66136         rule.
66137         [generic sys/syscall.h] (before-compile): Do not append to
66138         variable.
66139         [generic sys/syscall.h] (common-generated): Likewise.
66140         * sysdeps/unix/errnos-tmpl.c: Remove file.
66141         * sysdeps/unix/errnos.awk: Likewise.
66142         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66143         * sysdeps/unix/ioctls.awk: Likewise.
66144         * sysdeps/unix/mk-local_lim.c: Likewise.
66145         * sysdeps/unix/snarf-ioctls: Likewise.
66146
66147 2012-03-19  Richard Henderson  <rth@twiddle.net>
66148
66149         * sysdeps/i386/fpu/fenv_private.h: New file.
66150         * sysdeps/i386/fpu/math_private.h: Use it.
66151         (math_opt_barrier, math_force_eval): Remove.
66152         (libc_feholdexcept_setround_53bit): Remove.
66153         (libc_feupdateenv_53bit): Remove.
66154         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66155         (math_opt_barrier, math_force_eval): Remove.
66156         (libc_feholdexcept): Remove.
66157         (libc_feholdexcept_setround): Remove.
66158         (libc_fetestexcept, libc_fesetenv): Remove.
66159         (libc_feupdateenv_test): Remove.
66160         (libc_feupdateenv, libc_feholdsetround): Remove.
66161         (libc_feresetround): Remove.
66162
66163         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66164         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66165
66166         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66167         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66168         (libc_feupdateenv_testl): New.
66169         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66170         (libc_feupdateenv_testf): New.
66171         (libc_feupdateenv): Use libc_feupdateenv_test.
66172         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66173         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66174
66175         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66176         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66177         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66178         (libc_feresetround_noex): New.
66179         (libc_feresetround_noexf): New.
66180         (libc_feresetround_noexl): New.
66181         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66182         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66183         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66184         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66185         SET_RESTORE_ROUND.
66186         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66187         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66188         (__cos): Likewise.
66189         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66190         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66191         SET_RESTORE_ROUND_NOEX.
66192         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66193         SET_RESTORE_ROUND_NOEXF.
66194         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66195         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66196         (libc_feholdsetroundf): New.
66197         (libc_feresetround, libc_feresetroundf): New.
66198
66199         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66200         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66201         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66202
66203         * sysdeps/generic/math_private.h: Include <fenv.h>.
66204         (default_libc_feholdexcept): New.
66205         (default_libc_feholdexcept_setround): New.
66206         (default_libc_fesetenv, default_libc_feupdateenv): New.
66207         (libc_feholdexcept): Only define if undefined.
66208         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66209         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66210         (libc_feholdexcept_setroundl): Likewise.
66211         (libc_feholdexcept_setround_53bit): Likewise.
66212         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66213         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66214         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66215         (libc_feupdateenv_53bit): Likewise.
66216         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66217         (libc_feholdexcept): Convert from macro to inline function.
66218         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66219         (libc_fesetenv, libc_feupdateenv): Likewise.
66220
66221         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66222         not previously defined.
66223         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66224         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66225         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66226         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66227         * sysdeps/ieee754/flt-32/math_private.h: New file.
66228         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66229         math_private.h below SET_FLOAT_WORD.
66230         (__isnan, __isinf_ns, __finite): Remove.
66231         (__isnanf, __isinf_nsf, __finitef): Remove.
66232
66233 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66234
66235         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66236
66237 2012-03-17  David S. Miller  <davem@davemloft.net>
66238
66239         [BZ #6471]
66240         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66241         for 2.16.
66242
66243 2012-03-16  David S. Miller  <davem@davemloft.net>
66244
66245         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66246         warnings.
66247
66248         [BZ #6471]
66249         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66250         properly.
66251         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66252         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66253         sysdep_routines when subdir is sysvipc.
66254         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66255         __getshmlba helper.
66256
66257         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66258
66259 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66260
66261         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66262         [__LP64__].
66263
66264 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66265
66266         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66267         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66268         (__lround): Renamed to ...
66269         (__llround): This.  Replace long int with long long int.
66270         Define lround functions as aliases of llround functions.
66271         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66272
66273 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66274
66275         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66276         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66277         adresses to uintptr_t.  Replace "long int" and "unsigned long
66278         int" with "greg_t" on va_arg.
66279
66280 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66281
66282         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66283         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66284
66285         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66286         Move e_machine check before EI_CLASS check.  Handle x32
66287         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66288         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66289         SKIP_EM_IA_64 and include
66290         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66291
66292         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66293         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66294         (add_system_dir): New macro.
66295
66296         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66297         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66298
66299 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66300
66301         [BZ #2551]
66302         [BZ #2552]
66303         [BZ #2553]
66304         [BZ #2554]
66305         [BZ #2562]
66306         [BZ #2563]
66307         [BZ #2565]
66308         [BZ #2566]
66309         [BZ #2576]
66310         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66311         (y0): Likewise.
66312         * math/w_j0f.c (j0f): Likewise.
66313         (y0f): Likewise.
66314         * math/w_j0l.c (__j0l): Likewise.
66315         (__y0l): Likewise.
66316         * math/w_j1.c (j1): Likewise.
66317         (y1): Likewise.
66318         * math/w_j1f.c (j1f): Likewise.
66319         (y1f): Likewise.
66320         * math/w_j1l.c (__j1l): Likewise.
66321         (__y1l): Likewise.
66322         * math/w_jn.c (jn): Likewise.
66323         (yn): Likewise.
66324         * math/w_jnf.c (jnf): Likewise.
66325         (ynf): Likewise.
66326         * math/w_jnl.c (__jnl): Likewise.
66327         (__ynl): Likewise.
66328         * math/libm-test.inc (j0_test): Add more tests.
66329         (j1_test): Likewise.
66330         (jn_test): Likewise.  Add trailing semicolon to existing test.
66331         (y0_test): Likewise.
66332         (y1_test): Likewise.
66333         * sysdeps/i386/fpu/libm-test-ulps: Update.
66334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66335
66336         [BZ #13851]
66337         [BZ #13854]
66338         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66339         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66340         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66341         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66342         (__tanl): Set errno for infinite argument.
66343         * sysdeps/i386/fpu/mptan.c: Remove.
66344         * sysdeps/i386/fpu/s_tan.S: Likewise.
66345         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66346         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66347         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66348         * math/libm-test.inc (tan_test): Add more tests and enable more
66349         tests for double and long double.
66350         * sysdeps/i386/fpu/libm-test-ulps: Update.
66351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66352
66353 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66354
66355         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66356         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66357
66358 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66359
66360         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66361         * configure.in: Use it for both main tree and add-ons.
66362         * configure: Regenerated.
66363
66364 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66365
66366         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66367
66368 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66369
66370         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66371         in comment.
66372
66373         [BZ #13851]
66374         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66375         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66376         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66377         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66378         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66379         infinite argument.
66380         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66381         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66382         != 0 for prec == 2.
66383         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66384         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66385         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66386         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66387         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66388         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66389         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66390         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66391         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66392         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66393         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66394         * math/libm-test.inc (cos_test): Add more tests and enable more
66395         tests for long double.
66396         (sin_test): Likewise.
66397         (sincos_test): Likewise.
66398         * sysdeps/i386/fpu/libm-test-ulps: Update.
66399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66400
66401 2012-03-16  David S. Miller  <davem@davemloft.net>
66402
66403         * sysdeps/sparc/fpu/math_private.h: New file.
66404
66405 2012-03-15  David S. Miller  <davem@davemloft.net>
66406
66407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66408         file.
66409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66411         file.
66412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66413         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66414         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66415         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66416         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66417         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66418         sysdep routines.
66419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66420
66421         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66422         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66423
66424         * sysdeps/sparc/sparc-ifunc.h: New file.
66425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66426         sparc-ifunc.h
66427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66429         Likewise.
66430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66431         Likewise.
66432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66433         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66435         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66436         Likewise.
66437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66442         Likewise.
66443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66444         Likewise.
66445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66449         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66450         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66451         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66452         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66453         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66454         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66455         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66456         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66457         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66458         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66459         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66460         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66461         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66462         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66463         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66464         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66465         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66466         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66467         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66468         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66469
66470 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66471
66472         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66473         scaling.
66474         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66475
66476 2012-03-15  Andreas Jaeger  <aj@suse.de>
66477
66478         [BZ #13852]
66479         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66480         ieee754/flt-32 implementation for sin, cos and sincos.
66481         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66482         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66483         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66484         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66485         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66486         ieee754/flt-32 implementation for tan.
66487
66488         * math/libm-test.inc (cos_test): Enable some large input tests for
66489         float as well
66490         (sin_test): Likewise.
66491         (sincos_test): Likewise.
66492         (tan_test): Add tests for large input.
66493
66494         * sysdeps/i386/fpu/libm-test-ulps: Update.
66495
66496 2012-03-15  Andreas Jaeger  <aj@suse.de>
66497
66498         [BZ #13658]
66499         * math/libm-test.inc (cos_test): Add more test cases.
66500         (sin_test): Likewise.
66501         (sincos_test): Likewise.
66502
66503 2012-03-15  Andreas Jaeger  <aj@suse.de>
66504
66505         [BZ #13837]
66506         * math/libm-test.inc (cos_test): Add a test case for large input
66507         value.
66508         (sin_test): Likewise.
66509         (sincos_test): Likewise.
66510
66511 2012-03-15  Andreas Jaeger  <aj@suse.de>
66512             Joseph Myers  <joseph@codesourcery.com>
66513
66514         [BZ #13658]
66515         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66516         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66517         * sysdeps/i386/fpu/branred.c: Likewise.
66518         * sysdeps/i386/fpu/dosincos.c: Likewise.
66519         * sysdeps/i386/fpu/mpa.c: Likewise.
66520         * sysdeps/i386/fpu/s_cos.S: Likewise.
66521         * sysdeps/i386/fpu/s_sin.S: Likewise.
66522         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66523         * sysdeps/i386/fpu/sincos32.c: Likewise.
66524
66525         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66526         Define.
66527         (libc_feupdateenv_53bit): Define.
66528         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66529         Define.
66530         (libc_feupdateenv_53bit): Define.
66531
66532         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66533         53 bit (without extend i386 double precision).
66534
66535         * math/libm-test.inc (sincos_test): Add tests for large input.
66536         (sin): Likewise.
66537         (cos): Likewise.
66538
66539         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66540
66541 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66542
66543         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66544
66545 2012-03-15  David S. Miller  <davem@davemloft.net>
66546
66547         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66548         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66549         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66550         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
66552         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
66553         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
66554         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
66555         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
66556         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
66557         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
66558         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
66559         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
66560         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
66561         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
66562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
66563         file.
66564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
66565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
66566         file.
66567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
66568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
66569         file.
66570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
66571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
66572         file.
66573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
66574         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
66575         fmin/fmax sysdep routines.
66576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66577
66578 2012-03-14  David S. Miller  <davem@davemloft.net>
66579
66580         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
66581         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
66582         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
66583         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
66584         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
66585         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
66586         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
66587         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
66588         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
66589         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
66590         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
66591         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
66592         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
66593         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
66594         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
66595         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
66596         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
66597         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
66598         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
66599         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
66600         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
66601         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
66602         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
66603         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
66604         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
66605         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
66606         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
66607         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
66608         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
66609         routines.
66610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
66611         file.
66612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
66613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
66614         file.
66615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
66616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
66617         file.
66618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
66619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
66620         file.
66621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
66622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
66623         file.
66624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
66625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
66626         file.
66627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
66628         file.
66629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
66630         file.
66631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
66632         file.
66633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
66634         New file.
66635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
66636         file.
66637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
66638         file.
66639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
66640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
66641         file.
66642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
66643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
66644         file.
66645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
66646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
66647         file.
66648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
66649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
66650         VIS3 routines.
66651
66652         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66653         New file.
66654
66655         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66656
66657         * sysdeps/sparc/configure.in: New file.
66658         * sysdeps/sparc/configure: Generate.
66659         * configure.in (libc_cv_sparc_as_vis3): Substitute.
66660         * configure: Regenerate.
66661         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
66662         * config.make.in (have-as-vis3): New.
66663         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
66664         available use -Av9d instead of -Av9a.
66665         * sysdeps/sparc/sparc64/Makefile: Likewise.
66666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
66667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
66668         New file.
66669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
66670         file.
66671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
66672         New file.
66673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
66674         file.
66675         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
66676         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
66677         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
66678         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
66679         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
66680
66681         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
66682         fzeros/fnegs to load 0x80000000 into a float register instead of
66683         using the stack.
66684         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
66685
66686 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66687
66688         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
66689         bits/syscall.h.
66690         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
66691         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
66692         ($(inst_includedir)/bits/syscall.h): Remove rule.
66693         ($(objpfx)bits/syscall.d): Include instead of
66694         $(objpfx)syscall-list.d.
66695         (generated): Change syscall-list.h and syscall-list.d to
66696         bits/syscall.h and bits/syscall.d.
66697
66698 2012-03-14  Roland McGrath  <roland@hack.frob.com>
66699
66700         [BZ #13846]
66701         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
66702
66703 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66704
66705         [BZ #13841]
66706         * math/s_csqrt.c: Include <float.h>.
66707         (__csqrt): Scale large or subnormal inputs.
66708         * math/s_csqrtf.c: Likewise.
66709         * math/s_csqrtl.c: Likewise.
66710         * math/libm-test.inc (csqrt_test): Add more tests.
66711         * sysdeps/i386/fpu/libm-test-ulps: Update.
66712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66713
66714         [BZ #13840]
66715         * math/libm-test.inc (hypot_test): Add more tests.
66716
66717 2012-03-13  David S. Miller  <davem@davemloft.net>
66718
66719         [BZ #13840]
66720         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
66721         double-precision for the calculation instead of scaling.
66722
66723 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
66724
66725         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
66726         manipulate bits before adding and subtracting TWO52[sx].
66727         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
66728         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
66729         Likewise.
66730         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
66731
66732 2012-03-13  David S. Miller  <davem@davemloft.net>
66733
66734         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
66735         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
66736         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
66737         rtld-global-offsets.h
66738         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
66739
66740         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
66741         large parameters.
66742
66743         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
66744
66745         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
66746         'err' in the ifdef scope in which it is actually used.
66747
66748         * nss/nss_db/db-init.c: Include string.h
66749
66750 2012-03-12  David S. Miller  <davem@davemloft.net>
66751
66752         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
66753         masking out of the most significant byte of random value used.
66754         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66755         Fix coding style in previous change.
66756
66757         * sysdeps/unix/sysv/linux/kernel-features.h
66758         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
66759         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
66760         expression.
66761         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
66762         later.
66763
66764 2012-03-11  David S. Miller  <davem@davemloft.net>
66765
66766         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
66767         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
66768         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
66769         for 'resultvar' otherwise things get truncated on 64-bit.
66770
66771         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66772         Fix masking out of the most significant byte of random value used.
66773
66774         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66775
66776 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
66777
66778         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66779
66780 2012-03-09  David S. Miller  <davem@davemloft.net>
66781
66782         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
66783         variables with appropriate CPP guards.
66784         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
66785         from the frame pointer, not the stack pointer.  Correct layout
66786         comments.  Fix test on resulting framesize and the management of
66787         the outregs buffer for pltexit.  Preserve floating point return
66788         values across _dl_call_pltexit call.
66789         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
66790         framesize and the management of the outregs buffer for pltexit.
66791         Preserve floating point return values across _dl_call_pltexit
66792         call.
66793         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
66794         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
66795         (la_sparc64_gnu_pltexit): New functions.
66796         (print_exit): Fix format string for return register value.
66797
66798 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
66799
66800         * sunrpc/Makefile (others): Add rpcgen.
66801         ($(objpfx)rpcgen): Remove special build rule and dependency on
66802         libc.
66803         * sunrpc/rpcgen.c: New file.
66804
66805 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         [BZ #13673]
66808         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
66809         * stdio-common/bug-vfprintf-nargs.c: Likewise.
66810         * sysdeps/i386/crti.S: Likewise.
66811         * sysdeps/i386/crtn.S: Likewise.
66812         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
66813         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
66814         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
66815         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
66816         * sysdeps/sh/crti.S: Likewise.
66817         * sysdeps/sh/crtn.S: Likewise.
66818         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
66819
66820         [BZ #13673]
66821         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
66822         with URL.
66823         * locale/programs/locfile-kw.gperf: Likewise.
66824         * locale/programs/charmap-kw.h: Regenerated.
66825         * locale/programs/locfile-kw.h: Likewise.
66826
66827         [BZ #13673]
66828         * intl/plural.y: Replace FSF snail mail address with URL.
66829         * intl/plural.c: Regenerated.
66830
66831 2012-03-09  Richard Henderson  <rth@twiddle.net>
66832
66833         * include/math_private.h: Remove file.
66834         * math/math_private.h: Move file ...
66835         * sysdeps/generic/math_private.h: ... here.
66836
66837         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
66838         * sysdeps/powerpc/fpu/math_private.h: Likewise.
66839         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66840
66841         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
66842         and <math_private.h>.
66843         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
66844         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
66845         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
66846         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
66847         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
66848         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
66849         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
66850         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
66851         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
66852         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
66853         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
66854         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
66855         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
66856         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
66857         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
66858         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
66859         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
66860         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
66861         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
66862         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
66863         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
66864         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
66865         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
66866         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
66867         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
66868         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
66869         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
66870         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
66871         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
66872         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
66873         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
66874         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
66875         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
66876         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
66877         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
66878         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
66879         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
66880         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
66881         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
66882         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
66883         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
66884         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
66885         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
66886         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
66887         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
66888         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
66889         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
66890         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
66891         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
66892         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
66893         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
66894         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
66895         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
66896         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
66897         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
66898         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
66899         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
66900         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
66901         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
66902         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
66903         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
66904         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
66905         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
66906         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
66907         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
66908         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
66909         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
66910         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
66911         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
66912         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
66913         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
66914         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
66915         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
66916         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
66917         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
66918         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
66919         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
66920         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
66921         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
66922         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
66923         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
66924         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
66925         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
66926         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
66927         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
66928         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
66929         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
66930         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
66931         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
66932         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
66933         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
66934         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
66935         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
66936         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
66937         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
66938         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
66939         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
66940         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
66941         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
66942         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
66943         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
66944         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
66945         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
66946         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
66947         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
66948         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
66949         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
66950         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
66951         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
66952         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
66953         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
66954         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
66955         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
66956         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
66957         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
66958         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
66959         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
66960         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
66961         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
66962         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
66963         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
66964         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
66965         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
66966         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
66967         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
66968         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
66969         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
66970         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
66971         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
66972         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
66973         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
66974         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
66975         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
66976         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
66977         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
66978         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
66979         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
66980         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
66981         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
66982         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
66983         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
66984         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
66985         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
66986         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
66987         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
66988         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
66989         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
66990         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
66991         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
66992         * sysdeps/ieee754/k_standard.c: Likewise.
66993         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
66994         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
66995         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
66996         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
66997         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
66998         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
66999         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67000         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67001         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67002         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67003         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67004         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67005         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67006         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67007         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67008         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67009         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67010         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67011         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67012         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67013         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67014         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67015         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67016         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67017         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67018         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67019         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67020         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67021         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67022         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67023         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67024         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67025         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67026         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67027         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67028         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67029         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67030         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67031         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67032         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67033         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67034         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67035         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67036         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67037         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67038         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67039         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67040         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67041         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67042         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67043         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67044         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67045         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67046         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67047         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67048         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67049         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67050         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67051         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67052         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67053         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67054         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67055         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67056         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67057         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67058         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67059         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67060         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67061         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67062         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67063         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67064         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67065         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67066         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67067         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67068         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67069         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67070         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67071         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67072         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67073         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67074         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67075         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67076         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67077         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67078         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67079         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67080         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67081         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67082         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67083         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67084         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67085         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67086         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67087         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67088         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67089         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67090         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67091         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67092         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67093         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67094         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67095         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67096         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67097         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67098         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67099         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67100         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67101         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67102         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67103         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67104         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67105         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67106         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67107         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67108         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67109         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67110         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67111         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67112         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67113         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67114         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67115         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67116         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67117         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67118         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67119         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67120         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67121         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67122         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67123         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67124         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67125         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67126         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67127         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67128         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67129         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67130         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67131         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67132         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67133         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67134         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67135         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67136         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67137         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67138         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67139         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67140         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67141         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67142         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67143         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67144         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67145         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67146         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67147         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67148         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67149         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67150         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67151         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67152         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67153         * sysdeps/ieee754/s_lib_version.c: Likewise.
67154         * sysdeps/ieee754/s_matherr.c: Likewise.
67155         * sysdeps/ieee754/s_signgam.c: Likewise.
67156         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67157         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67158         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67159         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67160         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67161         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67162         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67163         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67164         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67165         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67166         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67167         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67168         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67169         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67170         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67171         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67172         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67173         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67174         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67175         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67176         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67177
67178 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67179
67180         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67181         * sunrpc/rpc_main.c: Likewise.
67182         * sunrpc/rpc_svcout.c: Likewise.
67183
67184 2012-03-09  David S. Miller  <davem@davemloft.net>
67185
67186         * include/math_private.h: New file.
67187
67188 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67189
67190         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67191         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67192         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67193         from <bits/socket_type.h>.
67194         (enum __socket_type): Don't define here.
67195         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67196         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67197         bits/socket_type.h.
67198
67199         [BZ #13566]
67200         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67201         checking __USE_GNU.
67202
67203         * Makerules ($(inst_includedir)/%.h): New rule.
67204         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67205         (install-others): Remove variable setting.
67206         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67207
67208 2012-03-08  Richard Henderson  <rth@twiddle.net>
67209
67210         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67211         from macro to inline function; merge with the
67212         !__LIBC_INTERNAL_MATH_INLINES version.
67213         (__ieee754_sqrtf): Likewise.
67214
67215         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67216         to inline function.
67217         (__rintf, __floor, __floorf): Likewise.
67218
67219         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67220         macro to inline function.
67221         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67222
67223         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67224         not <math/math_private.h>.
67225
67226 2012-03-08  David S. Miller  <davem@davemloft.net>
67227
67228         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67229         copyright year.
67230         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67231
67232 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67233
67234         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67235         normalization.
67236         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67237         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67238
67239 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67240
67241         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67242         be defined individually, they must be defined as a block.  Define
67243         S for printing a string instead of hidint the different by using a
67244         macro for adding the 'l'.
67245         * stdio-common/tst-fphex-wide.c: Adjust.
67246
67247 2012-03-07  Marek Polacek  <polacek@redhat.com>
67248
67249         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67250
67251 2012-03-08  Marek Polacek  <polacek@redhat.com>
67252
67253         [BZ #13806]
67254         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67255         * stdio-common/tst-fphex.c: Define a few macros to make the
67256         test reusable.  Use them.
67257         * stdio-common/tst-fphex-wide.c: New file.
67258
67259 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67260
67261         [BZ #6911]
67262         * manual/macros.texi (gnusystems): New macro.
67263         (nongnusystems): Likewise.
67264         (gnulinuxhurdsystems): Likewise.
67265         (gnuhurdsystems): Likewise..
67266         (gnulinuxsystems): Likewise.
67267         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67268         variants of the GNU system, not "GNU system".
67269         * manual/conf.texi: Likewise.
67270         * manual/errno.texi: Likewise.  Update example of errno macro
67271         expansion.
67272         * manual/filesys.texi: Likewise.
67273         (getumask): Document as specific to GNU/Hurd.
67274         * manual/install.texi: Likewise.  Reword some references to
67275         GNU/Linux.
67276         * manual/intro.texi: Likewise.
67277         * manual/io.texi: Likewise.
67278         (File Name Portability): Detail which constraints are inapplicable
67279         to all GNU systems and which are only inapplicable to GNU/Hurd.
67280         * manual/job.texi: Likewise.
67281         * manual/llio.texi: Likewise.
67282         (O_NOCTTY): Document as present on GNU/Linux.
67283         * manual/maint.texi: Likewise.
67284         * manual/memory.texi: Likewise.
67285         * manual/pattern.texi: Likewise.
67286         * manual/pipe.texi: Likewise.
67287         * manual/process.texi: Likewise.
67288         * manual/resource.texi: Likewise.
67289         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67290         child on GNU/Hurd.
67291         * manual/setjmp.texi: Likewise.
67292         * manual/signal.texi: Likewise.
67293         * manual/startup.texi: Likewise.
67294         * manual/stdio.texi: Likewise.
67295         * manual/terminal.texi: Likewise.
67296         (ONLCR): Document as POSIX.
67297         (OXTABS): Document availability on GNU/Linux as XTABS.
67298         (ONOEOT): Document availability separately from other bits.
67299         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67300         * manual/time.texi: Likewise.
67301         * manual/users.texi: Likewise.
67302         * INSTALL: Regenerated.
67303         * sysdeps/gnu/errlist.c: Regenerated.
67304
67305         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67306         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67307         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67308         puts.
67309         * configure: Regenerated.
67310
67311 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67312
67313         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67314         default includes instead of AC_HEADER_CHECK.
67315         * sysdeps/i386/configure: Regenerated.
67316
67317         [BZ #10716]
67318         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67319         * math/s_cacoshf.c (__cacoshf): Likewise.
67320         * math/s_cacoshl.c (__cacoshl): Likewise.
67321         * math/s_casinh.c (__casinh): Set signs of result from argument.
67322         * math/s_casinhf.c (__casinhf): Likewise.
67323         * math/s_casinhl.c (__casinhl): Likewise.
67324         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67325         (casinh_test): Add more tests.
67326         * sysdeps/i386/fpu/libm-test-ulps: Update.
67327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67328
67329 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67330
67331         * po/zh_TW.po: Update from translation team.
67332
67333         * login/Makefile (distribute): Remove variable.
67334         * catgets/Makefile: Likewise.
67335         * mach/Makefile: Likewise.
67336         * malloc/Makefile: Likewise.
67337         * misc/Makefile: Likewise.
67338         * iconv/Makefile: Likewise.
67339         * nscd/Makefile: Likewise.
67340         * hurd/Makefile: Likewise.
67341         * manual/Makefile: Likewise.
67342         * locale/Makefile: Likewise.
67343         * intl/Makefile: Likewise.
67344         * conform/Makefile: Likewise.
67345         * nss/Makefile: Likewise.
67346         * time/Makefile: Likewise.
67347         * soft-fp/Makefile: Likewise.
67348         * dirent/Makefile: Likewise.
67349         * gmon/Makefile: Likewise.
67350         * po/Makefile: Likewise.
67351         * rt/Makefile: Likewise.
67352         * socket/Makefile: Likewise.
67353         * math/Makefile: Likewise.
67354         * signal/Makefile: Likewise.
67355         * debug/Makefile: Likewise.
67356         * elf/Makefile: Likewise.
67357         * timezone/Makefile: Likewise.
67358         * stdlib/Makefile: Likewise.
67359         * iconvdata/Makefile: Likewise.
67360         * sunrpc/Makefile: Likewise.
67361         * io/Makefile: Likewise.
67362         * argp/Makefile: Likewise.
67363         * inet/Makefile: Likewise.
67364         * hesiod/Makefile: Likewise.
67365         * grp/Makefile: Likewise.
67366         * csu/Makefile: Likewise.
67367         * wctype/Makefile: Likewise.
67368         * crypt/Makefile: Likewise.
67369         * libio/Makefile: Likewise.
67370         * string/Makefile: Likewise.
67371         * nis/Makefile: Likewise.
67372         * resolv/Makefile: Likewise.
67373         * stdio-common/Makefile: Likewise.
67374         * wcsmbs/Makefile: Likewise.
67375         * dlfcn/Makefile: Likewise.
67376         * posix/Makefile: Likewise.
67377
67378         [BZ #6959]
67379         * timezone/Makefile: Don't install timezone files, just the programs
67380         and scripts.
67381
67382 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67383
67384         * nss/databases.def: Add missing gshadow entry.
67385
67386         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67387
67388 2012-03-06  Marek Polacek  <polacek@redhat.com>
67389
67390         [BZ #13726]
67391         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67392         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67393         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67394         * stdio-common/tst-long-dbl-fphex.c: New file.
67395
67396 2012-03-06  David S. Miller  <davem@davemloft.net>
67397
67398         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67399         (set_obp_int): New function.
67400         (get_obp_int): New function.
67401         (__get_clockfreq_via_dev_openprom): Likewise.
67402         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67403         Avoid unused variable warnings on 'val' and use builtin_expect.
67404         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67405         __builtin_expect.
67406         (INLINE_CLONE_SYSCALL): Likewise.
67407
67408 2012-03-05  David S. Miller  <davem@davemloft.net>
67409
67410         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67411
67412 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67413
67414         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67415
67416         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67417         only for |x| >= 40.
67418         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67419
67420 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67421
67422         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67423         Replace gettimeofday with __vdso_gettimeofday.
67424
67425         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67426         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67427         __vdso_clock_gettime and __vdso_getcpu.
67428
67429         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67430         time with __vdso_time.
67431
67432 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67433
67434         * manual/lang.texi (size_t): Note types to which size_t may be
67435         equivalent with the GNU C Library, but do not describe when
67436         differences between them are significant.
67437
67438 2012-03-05  Andreas Jaeger  <aj@suse.de>
67439
67440         * sysdeps/i386/fpu/libm-test-ulps: Update.
67441
67442 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67443
67444         [BZ #3976]
67445         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67446         (__ieee754_pow): Save and restore rounding mode and use
67447         round-to-nearest for main computations.
67448         * math/libm-test.inc (pow_test_tonearest): New function.
67449         (pow_test_towardzero): Likewise.
67450         (pow_test_downward): Likewise.
67451         (pow_test_upward): Likewise.
67452         (main): Call the new functions.
67453         * sysdeps/i386/fpu/libm-test-ulps: Update.
67454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67455
67456         [BZ #3976]
67457         * math/libm-test.inc (cosh_test_tonearest): New function.
67458         (cosh_test_towardzero): Likewise.
67459         (cosh_test_downward): Likewise.
67460         (cosh_test_upward): Likewise.
67461         (sinh_test_tonearest): Likewise.
67462         (sinh_test_towardzero): Likewise.
67463         (sinh_test_downward): Likewise.
67464         (sinh_test_upward): Likewise.
67465         (main): Call the new functions.
67466         * sysdeps/i386/fpu/libm-test-ulps: Update.
67467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67468
67469 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67470
67471         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67472         default stack guard is set in last bytes.
67473         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67474
67475 2012-03-05  Kees Cook  <keescook@chromium.org>
67476
67477         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67478
67479         [BZ #13656]
67480         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67481         possibly allocate from heap instead of stack.
67482         * stdio-common/bug-vfprintf-nargs.c: New file.
67483         * stdio-common/Makefile (tests): Add nargs overflow test.
67484
67485 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67486
67487         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67488
67489 2012-03-03  Marek Polacek  <polacek@redhat.com>
67490
67491         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67492         * math/math_private.h: Likewise.
67493         * stdlib/tst-strtod.c: Likewise.
67494         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67495         * sysdeps/x86_64/bits/atomic.h: Likewise.
67496
67497 2012-03-02  David S. Miller  <davem@davemloft.net>
67498
67499         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67500         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67501         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67502         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67503         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67504         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67505         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67506         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67507
67508 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67509
67510         [BZ #13792]
67511         * manual/examples/README: New file, says the example source files
67512         can be used under GPL>=2.
67513         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67514         line containing just "*/".
67515         * manual/examples/add.c: Add copyright header (GPL>=2).
67516         * manual/examples/argp-ex1.c: Likewise.
67517         * manual/examples/argp-ex2.c: Likewise.
67518         * manual/examples/argp-ex3.c: Likewise.
67519         * manual/examples/argp-ex4.c: Likewise.
67520         * manual/examples/atexit.c: Likewise.
67521         * manual/examples/db.c: Likewise.
67522         * manual/examples/dir.c: Likewise.
67523         * manual/examples/dir2.c: Likewise.
67524         * manual/examples/execinfo.c: Likewise.
67525         * manual/examples/filecli.c: Likewise.
67526         * manual/examples/filesrv.c: Likewise.
67527         * manual/examples/fmtmsgexpl.c: Likewise.
67528         * manual/examples/genpass.c: Likewise.
67529         * manual/examples/inetcli.c: Likewise.
67530         * manual/examples/inetsrv.c: Likewise.
67531         * manual/examples/isockad.c: Likewise.
67532         * manual/examples/longopt.c: Likewise.
67533         * manual/examples/memopen.c: Likewise.
67534         * manual/examples/memstrm.c: Likewise.
67535         * manual/examples/mkfsock.c: Likewise.
67536         * manual/examples/mkisock.c: Likewise.
67537         * manual/examples/mygetpass.c: Likewise.
67538         * manual/examples/pipe.c: Likewise.
67539         * manual/examples/popen.c: Likewise.
67540         * manual/examples/rprintf.c: Likewise.
67541         * manual/examples/search.c: Likewise.
67542         * manual/examples/select.c: Likewise.
67543         * manual/examples/setjmp.c: Likewise.
67544         * manual/examples/sigh1.c: Likewise.
67545         * manual/examples/sigusr.c: Likewise.
67546         * manual/examples/stpcpy.c: Likewise.
67547         * manual/examples/strdupa.c: Likewise.
67548         * manual/examples/strftim.c: Likewise.
67549         * manual/examples/strncat.c: Likewise.
67550         * manual/examples/subopt.c: Likewise.
67551         * manual/examples/swapcontext.c: Likewise.
67552         * manual/examples/termios.c: Likewise.
67553         * manual/examples/testopt.c: Likewise.
67554         * manual/examples/testpass.c: Likewise.
67555         * manual/examples/timeval_subtract.c: Likewise.
67556
67557         [BZ #13792]
67558         * manual/time.texi (Elapsed Time): Move timeval_subtract example
67559         function to ...
67560         * manual/timeval_subtract.c.texi: ... here, new file.
67561
67562 2012-03-02  David S. Miller  <davem@davemloft.net>
67563
67564         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
67565
67566 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
67567
67568         [BZ #3976]
67569         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
67570         (__sin): Save and restore rounding mode and use round-to-nearest
67571         for all computations.
67572         (__cos): Save and restore rounding mode and use round-to-nearest
67573         for all computations.
67574         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
67575         <fenv.h>.
67576         (tan): Save and restore rounding mode and use round-to-nearest for
67577         all computations.
67578         * math/libm-test.inc (cos_test_tonearest): New function.
67579         (cos_test_towardzero): Likewise.
67580         (cos_test_downward): Likewise.
67581         (cos_test_upward): Likewise.
67582         (sin_test_tonearest): Likewise.
67583         (sin_test_towardzero): Likewise.
67584         (sin_test_downward): Likewise.
67585         (sin_test_upward): Likewise.
67586         (tan_test_tonearest): Likewise.
67587         (tan_test_towardzero): Likewise.
67588         (tan_test_downward): Likewise.
67589         (tan_test_upward): Likewise.
67590         (main): Call the new functions.
67591         * sysdeps/i386/fpu/libm-test-ulps: Update.
67592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67593
67594         [BZ #10135]
67595         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
67596         small n, then large n, before computing and testing k+n.
67597         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
67598         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
67599         Likewise.
67600         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
67601         Likewise.
67602         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
67603         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
67604         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
67605         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
67606         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
67607         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
67608         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
67609         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
67610         * math/libm-test.inc (scalbn_test): Add more tests.
67611         (scalbln_test): Likewise.
67612
67613         * manual/filesys.texi (mode_t): Describe constraints on size and
67614         signedness, not exact equivalence to a particular type.
67615         (ino_t): Likewise.
67616         (ino64_t): Likewise.
67617         (dev_t): Likewise.
67618         (nlink_t): Likewise.
67619         (blkcnt_t): Likewise.
67620         (blkcnt64_t): Likewise.
67621         * manual/llio.texi (off_t): Likewise.
67622
67623         [BZ #3976]
67624         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
67625         (__ieee754_exp): Save and restore rounding mode and use
67626         round-to-nearest for all computations.
67627         * math/libm-test.inc (exp_test_tonearest): New function.
67628         (exp_test_towardzero): Likewise.
67629         (exp_test_downward): Likewise.
67630         (exp_test_upward): Likewise.
67631         (main): Call the new functions.
67632         * sysdeps/i386/fpu/libm-test-ulps: Update.
67633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67634
67635 2012-03-01  Chris Demetriou  <cgd@google.com>
67636
67637         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
67638         have predictable order.
67639
67640 2012-03-01  David S. Miller  <davem@davemloft.net>
67641
67642         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
67643
67644         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
67645         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
67646         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
67647         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
67648
67649         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
67650         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
67651         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
67652         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
67653         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
67654         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
67655         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
67656         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
67657         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
67658
67659         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67660
67661         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
67662         * sysdeps/sparc/fpu/libm-test-ulps: to here.
67663         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
67664
67665         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
67666         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
67667         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
67668         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
67669         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
67670         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
67671         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
67672         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
67673         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
67674         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
67675         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
67676         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
67677         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
67678         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
67679         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
67680         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
67681         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
67682         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
67683         * sysdeps/sparc/elf/configure: Regenerated.
67684
67685 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
67686
67687         * configure.in (AS, LD): Require binutils 2.20 or later.
67688         * configure: Regenerated.
67689         * manual/install.texi (Tools for Compilation): Give binutils 2.20
67690         as required minimum version.
67691         * INSTALL: Regenerated.
67692
67693         [BZ #2541]
67694         [BZ #4108]
67695         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
67696         before squaring exponent.
67697         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
67698         bottom long double and 27 bits of top long double before squaring
67699         exponent.
67700         * math/libm-test.inc (erfc_test): Add more tests.
67701         * sysdeps/i386/fpu/libm-test-ulps: Update.
67702         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
67703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67704
67705 2012-03-01  Kai Tietz  <ktietz@redhat.com>
67706
67707         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
67708         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
67709         containing bit-fields.
67710         * soft-fp/extended.h (_FP_UNION_E): Likewise.
67711         * soft-fp/single.h (_FP_UNION_S): Likewise.
67712         * soft-fp/double.h (_FP_UNION_D): Likewise.
67713
67714 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67715
67716         [BZ #13786]
67717         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
67718         not include ../strcmp.S.
67719         [USE_AS_STRNCASECMP_L]: Likewise.
67720         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
67721         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
67722         * sysdeps/i386/i686/multiarch/strncase_l-c.c
67723         (__strncasecmp_l_ia32): Define as alias to
67724         __strncasecmp_l_nonascii.
67725
67726         [BZ #5794]
67727         * math/libm-test.inc (expm1_test): Add test for bug 5794.
67728         * sysdeps/i386/fpu/libm-test-ulps: Update.
67729         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67730
67731         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
67732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67733
67734 2012-02-29  Jeff Law  <law@redhat.com>
67735
67736         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
67737         out of bounds read.
67738
67739 2012-02-29  Marek Polacek  <polacek@redhat.com>
67740
67741         [BZ #13706]
67742         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
67743         * elf/Makefile: Add rules to run tst-unused-dep.out.
67744
67745 2012-02-28  David S. Miller  <davem@davemloft.net>
67746
67747         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
67748         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
67749         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
67750         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
67751         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
67752         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
67753
67754 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67755
67756         * math/libm-test.inc (llround_test): Move one test from
67757         lround_test.  Use TEST_f_L in moved test.
67758         (lround_test): Move misplaced test to llround_test.  Add testcase
67759         from bug 2561.
67760
67761 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
67762
67763         * sysdeps/x86_64/fpu/e_expf.S: New file.
67764         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
67765
67766 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
67767
67768         [BZ #13637]
67769         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
67770         of remain_len that may cause incomplete multi-byte character and
67771         false match.
67772         * posix/bug-regex33.c: New file.
67773         * posix/Makefile (tests): Add bug-regex33.
67774
67775 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
67776
67777         * manual/macros.texi: New file.
67778         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
67779         * manual/libc.texinfo: Include macros.texi.
67780         * manual/creatute.texi: Likewise.
67781         * manual/install.texi: Likewise.
67782         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
67783         @glibcadj{} in references to the GNU C Library.
67784         * manual/charset.texi: Likewise.
67785         * manual/conf.texi: Likewise.
67786         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
67787         when not using those macros.
67788         * manual/creature.texi: Likewise.
67789         * manual/crypt.texi: Likewise.
67790         * manual/errno.texi: Likewise.
67791         * manual/filesys.texi: Likewise.
67792         * manual/header.texi: Likewise.
67793         * manual/install.texi: Likewise.
67794         * manual/intro.texi: Likewise.
67795         * manual/io.texi: Likewise.
67796         * manual/job.texi: Likewise.
67797         * manual/lang.texi: Likewise.
67798         * manual/libc.texiinfo: Likewise.
67799         * manual/llio.texi: Likewise.
67800         * manual/locale.texi: Likewise.
67801         * manual/maint.texi: Likewise.
67802         * manual/math.texi: Likewise.
67803         * manual/memory.texi: Likewise.
67804         * manual/message.texi: Likewise.
67805         * manual/nss.texi: Likewise.
67806         * manual/pattern.texi: Likewise.
67807         * manual/process.texi: Likewise.
67808         * manual/resource.texi: Likewise.
67809         * manual/search.texi: Likewise.
67810         * manual/setjmp.texi: Likewise.
67811         * manual/signal.texi: Likewise.
67812         * manual/socket.texi: Likewise.
67813         * manual/startup.texi: Likewise.
67814         * manual/stdio.texi: Likewise.
67815         * manual/string.texi: Likewise.
67816         * manual/sysinfo.texi: Likewise.
67817         * manual/syslog.texi: Likewise.
67818         * manual/terminal.texi: Likewise.
67819         * manual/time.texi: Likewise.
67820         * manual/users.texi: Likewise.
67821         * INSTALL: Regenerated.
67822         * NOTES: Regenerated.
67823         * sysdeps/gnu/errlist.c: Regenerated.
67824
67825 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
67826
67827         * include/dirent.h: Include <dirstream.h> before
67828         <dirent/dirent.h>.
67829
67830 2012-02-28  David S. Miller  <davem@davemloft.net>
67831
67832         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
67833         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
67834         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
67835         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
67836
67837 2012-02-27  David S. Miller  <davem@davemloft.net>
67838
67839         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
67840         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
67841         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
67842         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
67843
67844         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
67845         frame pointer instead of stack pointer relative arg slot.
67846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
67847         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
67848         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
67849
67850 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
67851
67852         [BZ #3992]
67853         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
67854
67855 2012-02-27  David S. Miller  <davem@davemloft.net>
67856
67857         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
67858         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
67859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
67860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
67861         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
67862         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
67863         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
67864         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
67865
67866 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
67867
67868         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
67869         later.  Allow versions 5-9.
67870         * configure: Regenerated.
67871         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
67872         required minimum version and 4.6 as recommended version.  Do not
67873         mention bugs in GCC 2.7 and 2.8.
67874         * INSTALL: Regenerated.
67875
67876 2012-02-27  David S. Miller  <davem@davemloft.net>
67877
67878         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
67879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
67880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
67881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
67882         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
67883         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
67884         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
67885         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
67886
67887         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
67888         manipulate bits before adding and subtracting TWO112[sx].
67889         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
67890
67891 2012-02-27  Roland McGrath  <roland@hack.frob.com>
67892
67893         [BZ #13775]
67894         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
67895         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
67896         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
67897         being in POSIX, because they are in 1003.1-2008.
67898
67899         * rt/tst-aio.c: Include <fcntl.h>.
67900         * rt/tst-aio7.c: Likewise.
67901         * rt/tst-aio64.c: Likewise.
67902
67903         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
67904
67905 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
67906
67907         * manual/install.texi (--with-headers): Describe headers as
67908         interface headers, not private headers.
67909         (Specific advice for GNU/Linux systems): Describe use of headers
67910         from "make headers_install", not private headers from older
67911         kernels.
67912         * INSTALL: Regenerated.
67913         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
67914         Change to 2.6.19.
67915         * sysdeps/unix/sysv/linux/configure: Regenerated.
67916
67917         * manual/llio.texi (fclean): Remove documentation.
67918
67919         * manual/Makefile (libc-texi-generated): New variable.  Include
67920         version.texi.
67921         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
67922         $(libc-texi-generated), not duplicated list of files.
67923         (version.texi, stamp-version): New rules.
67924         (realclean): Remove $(libc-texi-generated), not individual files
67925         from that list.  Do not remove dir-add.texinfo.
67926         * manual/libc.texinfo: Comment out uses of edition numbers and
67927         references to printed manual.  Remove last-updated dates.
67928         (EDITION): Comment out.
67929         (ISBN): Likewise.
67930         (VERSION, UPDATED): Remove.
67931         (version.texi): Include.
67932
67933 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
67934
67935         * sysdeps/posix/spawni.c: Include <signal.h>.
67936         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
67937         * sysdeps/pthread/aio_fsync.c: Likewise.
67938
67939 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
67940
67941         * conform/Makefile (tests): Run only when not cross-compiling and
67942         when fast-check is not defined.
67943
67944         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
67945         * conform/data/limits.h-data: Fixes for POSIX2008.
67946         * conform/run-conformtest.sh: Run all tests.
67947         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
67948         headers.
67949         * include/bits/dlfcn.h: Likewise.
67950         * include/langinfo.h: Likewise.
67951         * include/monetary.h: Likewise.
67952         * include/sys/poll.h: Likewise.
67953
67954         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
67955         for __USE_GNU.
67956         * posix/spawn.h: Define __need_sigset_t.
67957         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
67958         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
67959         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
67960         to get sigevent_t only.
67961         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
67962         only for __USE_GNU.
67963         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
67964         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
67965         process_vm_writev only for __USE_GNU.
67966         * termios/termios.h: Declare tcgetsid also for POSIX2008.
67967
67968         * conform/Makefile: For now ignore errors from run-conformtest.
67969         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
67970         POSIX to avoid namespace pollution.  Don't prepend headers.
67971         * conform/data/aio.h-data: Fixes for POSIX testing.
67972         * conform/data/fcntl.h-data: Likewise.
67973         * conform/data/glob.h-data: Likewise.
67974         * conform/data/grp.h-data: Likewise.
67975         * conform/data/pthread.h-data: Likewise.
67976         * conform/data/pwd.h-data: Likewise.
67977         * conform/data/signal.h-data: Likewise.
67978         * conform/data/spawn.h-data: Likewise.
67979         * conform/data/stdio.h-data: Likewise.
67980         * conform/data/stdlib.h-data: Likewise.
67981         * conform/data/stropts.h-data: Likewise.
67982         * conform/data/sys/mman.h-data: Likewise.
67983         * conform/data/sys/stat.h-data: Likewise.
67984         * conform/data/sys/types.h-data: Likewise.
67985         * conform/data/sys/wait.h-data: Likewise.
67986         * conform/data/time.h-data: Likewise.
67987         * conform/data/unistd.h-data: Likewise.
67988         * conform/data/utime.h-data: Likewise.
67989
67990         * io/sys/stat.h: fchmod was always in POSIX.
67991         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
67992         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
67993         * rt/aio.h: Define __need_timespec before including <time.h>.
67994         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
67995         struct.  Add forward declaration of pthread_attr_t and use it in
67996         sigevent.
67997         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
67998         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
67999         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68000         always remove CLK_TCK definition.
68001
68002 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68003
68004         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68005
68006 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68007
68008         * conform/run-conformtest.sh: New file.
68009         * conform/Makefile: Run run-conformtest for tests.
68010         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68011         support.
68012
68013         * conform/data/uchar.h-data: New file.
68014         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68015         * conform/data/arpa/inet.h-data: Likewise.
68016         * conform/data/assert.h-data: Likewise.
68017         * conform/data/complex.h-data: Likewise.
68018         * conform/data/cpio.h-data: Likewise.
68019         * conform/data/ctype.h-data: Likewise.
68020         * conform/data/dirent.h-data: Likewise.
68021         * conform/data/dlfcn.h-data: Likewise.
68022         * conform/data/errno.h-data: Likewise.
68023         * conform/data/fcntl.h-data: Likewise.
68024         * conform/data/float.h-data: Likewise.
68025         * conform/data/fmtmsg.h-data: Likewise.
68026         * conform/data/fnmatch.h-data: Likewise.
68027         * conform/data/ftw.h-data: Likewise.
68028         * conform/data/glob.h-data: Likewise.
68029         * conform/data/grp.h-data: Likewise.
68030         * conform/data/iconv.h-data: Likewise.
68031         * conform/data/inttypes.h-data: Likewise.
68032         * conform/data/langinfo.h-data: Likewise.
68033         * conform/data/libgen.h-data: Likewise.
68034         * conform/data/limits.h-data: Likewise.
68035         * conform/data/locale.h-data: Likewise.
68036         * conform/data/math.h-data: Likewise.
68037         * conform/data/monetary.h-data: Likewise.
68038         * conform/data/mqueue.h-data: Likewise.
68039         * conform/data/ndbm.h-data: Likewise.
68040         * conform/data/net/if.h-data: Likewise.
68041         * conform/data/netdb.h-data: Likewise.
68042         * conform/data/netinet/in.h-data: Likewise.
68043         * conform/data/nl_types.h-data: Likewise.
68044         * conform/data/poll.h-data: Likewise.
68045         * conform/data/pthread.h-data: Likewise.
68046         * conform/data/pwd.h-data: Likewise.
68047         * conform/data/regex.h-data: Likewise.
68048         * conform/data/sched.h-data: Likewise.
68049         * conform/data/search.h-data: Likewise.
68050         * conform/data/semaphore.h-data: Likewise.
68051         * conform/data/setjmp.h-data: Likewise.
68052         * conform/data/signal.h-data: Likewise.
68053         * conform/data/spawn.h-data: Likewise.
68054         * conform/data/stdarg.h-data: Likewise.
68055         * conform/data/stdio.h-data: Likewise.
68056         * conform/data/stdlib.h-data: Likewise.
68057         * conform/data/string.h-data: Likewise.
68058         * conform/data/strings.h-data: Likewise.
68059         * conform/data/stropts.h-data: Likewise.
68060         * conform/data/sys/ipc.h-data: Likewise.
68061         * conform/data/sys/mman.h-data: Likewise.
68062         * conform/data/sys/msg.h-data: Likewise.
68063         * conform/data/sys/resource.h-data: Likewise.
68064         * conform/data/sys/select.h-data: Likewise.
68065         * conform/data/sys/sem.h-data: Likewise.
68066         * conform/data/sys/shm.h-data: Likewise.
68067         * conform/data/sys/socket.h-data: Likewise.
68068         * conform/data/sys/stat.h-data: Likewise.
68069         * conform/data/sys/statvfs.h-data: Likewise.
68070         * conform/data/sys/time.h-data: Likewise.
68071         * conform/data/sys/timeb.h-data: Likewise.
68072         * conform/data/sys/times.h-data: Likewise.
68073         * conform/data/sys/types.h-data: Likewise.
68074         * conform/data/sys/uio.h-data: Likewise.
68075         * conform/data/sys/un.h-data: Likewise.
68076         * conform/data/sys/utsname.h-data: Likewise.
68077         * conform/data/sys/wait.h-data: Likewise.
68078         * conform/data/syslog.h-data: Likewise.
68079         * conform/data/tar.h-data: Likewise.
68080         * conform/data/termios.h-data: Likewise.
68081         * conform/data/utime.h-data: Likewise.
68082         * conform/data/utmpx.h-data: Likewise.
68083         * conform/data/varargs.h-data: Likewise.
68084         * conform/data/wchar.h-data: Likewise.
68085         * conform/data/wctype.h-data: Likewise.
68086         * conform/data/wordexp.h-data: Likewise.
68087
68088         * include/stropts.h: New file.
68089         * include/uchar.h: New file.
68090         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68091         * include/assert.h: Likewise.
68092         * include/ctype.h: Likewise.
68093         * include/dirent.h: Likewise.
68094         * include/dlfcn.h: Likewise.
68095         * include/fcntl.h: Likewise.
68096         * include/fnmatch.h: Likewise.
68097         * include/glob.h: Likewise.
68098         * include/grp.h: Likewise.
68099         * include/libio.h: Likewise.
68100         * include/locale.h: Likewise.
68101         * include/math.h: Likewise.
68102         * include/net/if.h: Likewise.
68103         * include/netdb.h: Likewise.
68104         * include/netinet/in.h: Likewise.
68105         * include/pthread.h: Likewise.
68106         * include/pwd.h: Likewise.
68107         * include/regex.h: Likewise.
68108         * include/sched.h: Likewise.
68109         * include/search.h: Likewise.
68110         * include/setjmp.h: Likewise.
68111         * include/signal.h: Likewise.
68112         * include/stdio.h: Likewise.
68113         * include/stdlib.h: Likewise.
68114         * include/string.h: Likewise.
68115         * include/sys/cdefs.h: Likewise.
68116         * include/sys/mman.h: Likewise.
68117         * include/sys/msg.h: Likewise.
68118         * include/sys/resource.h: Likewise.
68119         * include/sys/select.h: Likewise.
68120         * include/sys/socket.h: Likewise.
68121         * include/sys/stat.h: Likewise.
68122         * include/sys/statvfs.h: Likewise.
68123         * include/sys/time.h: Likewise.
68124         * include/sys/times.h: Likewise.
68125         * include/sys/uio.h: Likewise.
68126         * include/sys/utsname.h: Likewise.
68127         * include/sys/wait.h: Likewise.
68128         * include/termios.h: Likewise.
68129         * include/time.h: Likewise.
68130         * include/ulimit.h: Likewise.
68131         * include/unistd.h: Likewise.
68132         * include/utime.h: Likewise.
68133         * include/wchar.h: Likewise.
68134         * include/wctype.h: Likewise.
68135         * include/wordexp.h: Likewise.
68136
68137         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68138
68139         * time/time.h: TIME_UTC must be a macro.
68140         Make timespec_get available for ISO C11 only as well.
68141
68142 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68143
68144         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68145         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68146
68147 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68148
68149         * configure.in: Use -o not -a in test for unsupported multi-arch.
68150
68151 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68152
68153         * manual/texinfo.tex: Update to version 2012-01-19.16.
68154
68155 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68156
68157         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68158
68159 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68160
68161         [BZ #13738]
68162         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68163         * manual/fdl-1.3.texi: New file.
68164         * manual/fdl-1.1.texi: File removed.
68165
68166         [BZ #13738]
68167         * manual/libc.texinfo (FDL_VERSION): New @set.
68168         Use it for mention of FDL in cover text.
68169         (Documentation License): Use it in @include file name.
68170
68171 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68172             Roland McGrath  <roland@hack.frob.com>
68173
68174         [BZ #5461]
68175         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68176         (not LONG_LONG_MAX and LONG_LONG_MIN.
68177         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68178         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68179         name.
68180         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68181
68182 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68183
68184         [BZ #2547]
68185         [BZ #11365]
68186         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68187         manipulate bits before adding and subtracting TWO23[sx].
68188         * math/libm-test.inc (nearbyint_test): Add more tests.
68189
68190 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68191
68192         [BZ #2548]
68193         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68194         bits before adding and subtracting TWO23[sx].
68195         * math/libm-test.inc (rint_test): Add more tests.
68196         (rint_test_tonearest): Likewise.
68197         (rint_test_towardzero): Likewise.
68198         (rint_test_downward): Likewise.
68199         (rint_test_upward: Likewise.
68200
68201 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68202
68203         [BZ #10110]
68204         * include/stdc-predef.h: New file.  Extracted from features.h.
68205         * include/features.h: Include stdc-predef.h.
68206         * Makefile (headers): Add stdc-predef.h.
68207         * CONFORMANCE (Compiler limitations): Update.
68208
68209 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68210
68211         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68212
68213 2012-02-21  David S. Miller  <davem@davemloft.net>
68214
68215         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68216         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68217
68218 2012-02-20  David S. Miller  <davem@davemloft.net>
68219
68220         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68221         using a normal save/restore sequence, rather than allocating a
68222         dummy stack frame just to store a frame pointer and restore.
68223         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68224
68225 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68226
68227         * manual/install.texi: Fix stray word in line-wrapped comment.
68228
68229 2012-02-20  David S. Miller  <davem@davemloft.net>
68230
68231         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68232         both binutils and gcc support GOTDATA.
68233
68234         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68235         "rd %pc" in the PIC register setup sequences.
68236
68237         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68238         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68239         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68240         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68241         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68242         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68243         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68244         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68245         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68246         (SYSCALL_ERROR_HANDLER): Likewise.
68247         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68248         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68249         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68250         (SYSCALL_ERROR_HANDLER): Likewise.
68251
68252         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68253         (HAVE_GCC_GOTDATA): New.
68254         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68255         relocation support in both binutils and gcc.
68256         * sysdeps/sparc/elf/configure: Regenerate.
68257
68258         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68259         * sysdeps/sparc/sparc32/elf/configure: Delete.
68260         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68261         * sysdeps/sparc/sparc64/elf/configure: Delete.
68262         * sysdeps/sparc/elf/configure.in: New file.
68263         * sysdeps/sparc/elf/configure: Generate.
68264
68265         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68266         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68267         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68268         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68269         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68270
68271 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68272
68273         * manual/install.texi: Do not mention specific glibc version
68274         numbers.
68275         * manual/libc.texinfo (VERSION, UPDATED): Update.
68276         (@copying): Use @copyright{} and range of years.
68277
68278 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68279
68280         [BZ #13695]
68281         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68282         [crti.S not in sysdirs] (generated): Do not append.
68283         [crti.S not in sysdirs] (omit-deps): Likewise.
68284         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68285         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68286         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68287         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68288         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68289         Likewise.
68290         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68291         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68292         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68293         * csu/defs.awk: Remove file.
68294         * sysdeps/generic/initfini.c: Likewise.
68295         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68296         variable.
68297         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68298         Likewise.
68299
68300 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68301
68302         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68303         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68304         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68305         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68306         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68307         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68308         <bits/epoll.h>.
68309         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68310         (__EPOLL_PACKED): Define to empty if not defined by
68311         <bits/epoll.h>.
68312         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68313         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68314         bits/epoll.h.
68315
68316 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68317
68318         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68319         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68320         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68321         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68322         <bits/timerfd.h>.
68323         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68324         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68325         bits/timerfd.h.
68326
68327 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68328
68329         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68330         in C locale.
68331         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68332         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68333         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68335
68336 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68337
68338         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68339         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68340
68341 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68342
68343         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68344         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68345         defined.
68346         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68347         Likewise.
68348         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68349         entry for 2.16.
68350
68351 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68352
68353         * math/w_acos.c: Use non-signaling floating-point comparisons.
68354         * math/w_acosf.c: Likewise.
68355         * math/w_acosh.c: Likewise.
68356         * math/w_acoshf.c: Likewise.
68357         * math/w_acoshl.c: Likewise.
68358         * math/w_acosl.c: Likewise.
68359         * math/w_asin.c: Likewise.
68360         * math/w_asinf.c: Likewise.
68361         * math/w_asinl.c: Likewise.
68362         * math/w_atanh.c: Likewise.
68363         * math/w_atanhf.c: Likewise.
68364         * math/w_atanhl.c: Likewise.
68365         * math/w_exp2.c: Likewise.
68366         * math/w_exp2f.c: Likewise.
68367         * math/w_exp2l.c: Likewise.
68368         * math/w_j0.c: Likewise.
68369         * math/w_j0f.c: Likewise.
68370         * math/w_j0l.c: Likewise.
68371         * math/w_j1.c: Likewise.
68372         * math/w_j1f.c: Likewise.
68373         * math/w_j1l.c: Likewise.
68374         * math/w_jn.c: Likewise.
68375         * math/w_jnf.c: Likewise.
68376         * math/w_log.c: Likewise.
68377         * math/w_log10.c: Likewise.
68378         * math/w_log10f.c: Likewise.
68379         * math/w_log10l.c: Likewise.
68380         * math/w_log2.c: Likewise.
68381         * math/w_log2f.c: Likewise.
68382         * math/w_log2l.c: Likewise.
68383         * math/w_logf.c: Likewise.
68384         * math/w_logl.c: Likewise.
68385         * math/w_sqrt.c: Likewise.
68386         * math/w_sqrtf.c: Likewise.
68387         * math/w_sqrtl.c: Likewise.
68388         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68389         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68390         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68391         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68392         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68393
68394 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68395
68396         [BZ #9739]
68397         * manual/string.texi (strnlen): Use correct parameter name in
68398         equivalent expression.
68399
68400 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68401
68402         [BZ #11174]
68403         * manual/users.texi (seteuid): Consistently use neweuid for
68404         argument name.
68405
68406 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68407
68408         [BZ #13704]
68409         * manual/nss.texi (Services in the NSS configuration): Correct
68410         list of services in example configuration file.
68411
68412 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68413
68414         [BZ #11322]
68415         * manual/arith.texi: Remove statements about negative zero
68416         behaving identically to zero.
68417
68418 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68419
68420         [BZ #5993]
68421         * manual/install.texi: Do not document upgrading from libc5.
68422
68423 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68424
68425         [BZ #4596]
68426         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68427
68428 2012-02-18  David S. Miller  <davem@davemloft.net>
68429
68430         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68431         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68432         %o7 across the call.
68433         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68434         instead.
68435         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68436         SETUP_PIC_REG_LEAF.
68437         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68438         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68439         * sysdeps/sparc/crtn.S: Likewise.
68440
68441 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68442
68443         * aout/Makefile: Remove.
68444
68445 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68446
68447         [BZ #13058]
68448         * manual/examples/argp-ex1.c (main): Format definition in GNU
68449         style.
68450         * manual/examples/argp-ex2.c (main): Likewise.
68451         * manual/examples/argp-ex3.c (main): Likewise.
68452         * manual/examples/argp-ex4.c (main): Likewise.
68453         * manual/examples/longopt.c (main): Use new-style prototype
68454         definition.
68455         * manual/examples/strncat.c (main): Specify return type and use
68456         (void) for arguments.
68457         * manual/examples/subopt.c (main): Use char **argv argument.
68458
68459 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68460
68461         [BZ #5077]
68462         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68463         rounding modes.
68464
68465 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68466
68467         [BZ #6907]
68468         * manual/string.texi (strchr): Change when strchrnul is
68469         recommended.
68470
68471 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68472
68473         [BZ #174]
68474         * manual/locale.texi (setlocale): Document LOCPATH.
68475
68476 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68477
68478         [BZ #10210]
68479         * manual/process.texi (execle): Move @dots{} before last argument.
68480
68481 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68482
68483         [BZ #12047]
68484         * manual/charset.texi (Generic Charset Conversion): Fix typo
68485         (LC_TYPE -> LC_CTYPE).
68486
68487 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68488
68489         [BZ #5805]
68490         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68491         (scalbnf): Likewise.
68492         (scalbnl): Likewise.
68493         (scalbln): Likewise.
68494         (scalblnf): Likewise.
68495         (scalblnl): Likewise.
68496         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68497         (vwarnx): Likewise.
68498         (verr): Likewise.
68499         (verrx): Likewise.
68500         * manual/filesys.texi (telldir): Use braces around return type.
68501         * manual/llio.texi (mmap): Add space after comma.
68502         (mmap64): Likewise.
68503         * manual/math.texi (jn): Use @var{} on parameter names.
68504         (jnf): Likewise.
68505         (jnl): Likewise.
68506         (yn): Likewise.
68507         (ynf): Likewise.
68508         (ynl): Likewise.
68509         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68510         line.
68511         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68512         "...".
68513         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68514         (sched_get_priority_max): Likewise.
68515         * manual/signal.texi (sigvec): Add space after comma.
68516         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68517         names.
68518         (if_indextoname): Likewise.
68519         (if_freenameindex): Likewise.
68520         (sendto): Use ',' instead of '.' in prototype.
68521         * manual/startup.texi (syscall): Use @dots{} instead of literal
68522         "...".
68523         * manual/stdio.texi (__fpending): Separate initial words of
68524         paragraph from @deftypefun line.
68525         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68526         "...".
68527         (vsyslog): Use @var{} on parameter names.
68528         * manual/terminal.texi (stty): Use @var{} on parameter names.
68529         * manual/users.texi (getutmp): Use @var{} on parameter names.
68530         (getutmpx): Likewise.
68531
68532 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68533
68534         [BZ #6884]
68535         * manual/stdio.texi (fopen): Fix typos in description of
68536         ",ccs=STRING".
68537
68538 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68539
68540         [BZ #4026]
68541         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68542         get clock_id definition.
68543
68544 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68545
68546         [BZ #4822]
68547         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68548         (madvise): Cast every argument to void on its own.
68549
68550 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68551
68552         [BZ #9902]
68553         * manual/startup.texi (Exit Status): Fix typo.
68554
68555 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68556
68557         [BZ #10140]
68558         * manual/examples/argp-ex1.c: Include <stdlib.h>.
68559         * manual/examples/argp-ex2.c: Likewise.
68560         * manual/examples/argp-ex3.c: Likewise.
68561
68562 2012-02-16  Richard Henderson  <rth@redhat.com>
68563
68564         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
68565         * sysdeps/s390/s390-32/initfini.c: Remove.
68566         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
68567         * sysdeps/s390/s390-64/initfini.c: Remove.
68568
68569 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68570
68571         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
68572         compiler output for sysdeps/generic/initfini.c.
68573         * sysdeps/sh/elf/initfini.c: Remove file.
68574
68575 2012-02-16  David S. Miller  <davem@davemloft.net>
68576
68577         [BZ #11494]
68578         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
68579
68580         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
68581         * sysdeps/sparc/crti.S: New file.
68582         * sysdeps/sparc/crtn.S: New file.
68583         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
68584         * sysdeps/sparc/sparc64/Makefile: Likewise.
68585
68586 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
68587
68588         [BZ #3335]
68589         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
68590
68591 2012-02-15  Roland McGrath  <roland@hack.frob.com>
68592
68593         [BZ #4822]
68594         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
68595
68596         * mach/devstream.c (cookie_io_functions_t): Macro removed.
68597         (write, read, close): Likewise.
68598         Patch by Aurelien Jarno <aurelien@aurel32.net>.
68599
68600 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
68601
68602         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
68603         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
68604         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
68605         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
68606         <bits/signalfd.h>.
68607         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
68608         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68609         bits/signalfd.h.
68610
68611 2012-02-14  Marek Polacek  <polacek@redhat.com>
68612
68613         * sysdeps/x86_64/crti.S: New file.
68614         * sysdeps/x86_64/crtn.S: New file.
68615         * sysdeps/x86_64/elf/initfini.c: Remove file.
68616
68617 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68618
68619         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
68620         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
68621         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
68622         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
68623         <bits/inotify.h>.
68624         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
68625         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68626         bits/inotify.h.
68627
68628 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68629
68630         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
68631         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
68632         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
68633         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
68634         <bits/eventfd.h>.
68635         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
68636         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68637         bits/eventfd.h.
68638
68639 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
68640
68641         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
68642         __feraiseexcept instead of feraiseexcept.
68643
68644         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
68645         nanosleep invocations.
68646         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
68647         strings, and add error checking for a nanosleep invocations.
68648
68649 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
68650
68651         Replace FSF snail mail address with URLs, as per GNU coding standards.
68652         Most of the snail mail addresses were wrong anyway, and omitting
68653         them makes the source code easier to maintain.  Almost all of the
68654         changes are to license notices and to locale LC_IDENTIFICATION
68655         addresses, except for this one:
68656         * manual/libc.texinfo: In "Published by", give the FSF's URL,
68657         not its snail mail address.
68658
68659 2012-02-09  Richard Henderson  <rth@twiddle.net>
68660
68661         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
68662         of kernel-features.h.
68663
68664         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
68665
68666 2012-02-08  Marek Polacek  <polacek@redhat.com>
68667
68668         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
68669         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
68670         * sysdeps/gnu/_G_config.h: Likewise.
68671         * sysdeps/generic/_G_config.h: Likewise.
68672
68673 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
68674
68675         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
68676         tests.
68677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68678
68679         * sysdeps/powerpc/powerpc32/crti.S: New file.
68680         * sysdeps/powerpc/powerpc32/crtn.S: New file.
68681         * sysdeps/powerpc/powerpc64/crti.S: New file.
68682         * sysdeps/powerpc/powerpc64/crtn.S: New file.
68683
68684         * Makeconfig (have-initfini): Don't set.
68685         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
68686         * configure.in (nopic_initfini): Don't substitute.
68687         * config.h.in (HAVE_INITFINI): Don't #undef.
68688         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
68689         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
68690
68691 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
68692
68693         Support crti.S and crtn.S provided directly by architectures.
68694         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
68695         [crti.S in sysdirs] (omit-deps): Likewise.
68696         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
68697         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
68698         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
68699         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
68700         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
68701         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
68702         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
68703         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
68704         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
68705         compiler output for sysdeps/generic/initfini.c.
68706         * sysdeps/i386/elf/Makefile: Remove file.
68707         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
68708
68709 2012-02-07  Marek Polacek  <polacek@redhat.com>
68710
68711         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
68712         * sysdeps/gnu/_G_config.h: Likewise.
68713         * sysdeps/mach/hurd/_G_config.h: Likewise.
68714
68715 2012-02-07  Marek Polacek  <polacek@redhat.com>
68716
68717         * math/Makefile (tests): Add tst-CMPLX2.
68718         * math/tst-CMPLX2.c: New file.
68719
68720 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
68721
68722         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68723
68724         * math/libm-test.inc (jn_test): Add missing L suffix.
68725
68726 2012-02-06  Marek Polacek  <polacek@redhat.com>
68727
68728         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
68729         * sysdeps/i386/fpu/e_powf.S: Likewise.
68730         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
68731         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
68732         * sysdeps/i386/fpu/e_acosh.S: Likewise.
68733         * sysdeps/i386/fpu/e_pow.S: Likewise.
68734         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
68735         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
68736         * sysdeps/i386/fpu/s_expm1.S: Likewise.
68737         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
68738         * sysdeps/i386/fpu/e_log2.S: Likewise.
68739         * sysdeps/i386/fpu/e_log2l.S: Likewise.
68740         * sysdeps/i386/fpu/e_scalb.S: Likewise.
68741         * sysdeps/i386/fpu/e_powl.S: Likewise.
68742         * sysdeps/i386/fpu/s_log1p.S: Likewise.
68743         * sysdeps/i386/fpu/e_log10f.S: Likewise.
68744         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
68745         * sysdeps/i386/fpu/e_logl.S: Likewise.
68746         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
68747         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
68748         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
68749         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
68750         * sysdeps/i386/fpu/e_log2f.S: Likewise.
68751         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
68752         * sysdeps/i386/fpu/e_log.S: Likewise.
68753         * sysdeps/i386/fpu/s_cexp.S: Likewise.
68754         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
68755         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
68756         * sysdeps/i386/fpu/e_logf.S: Likewise.
68757         * sysdeps/i386/fpu/e_log10l.S: Likewise.
68758         * sysdeps/i386/fpu/e_atanh.S: Likewise.
68759         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
68760         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
68761         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
68762         * sysdeps/i386/fpu/e_log10.S: Likewise.
68763         * sysdeps/i386/fpu/s_frexp.S: Likewise.
68764         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
68765         * sysdeps/i386/fpu/s_asinh.S: Likewise.
68766         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
68767         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
68768         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
68769         * sysdeps/i386/asm-syntax.h: Likewise.
68770         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
68771         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
68772         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
68773         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
68774         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
68775         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
68776         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
68777         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
68778         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
68779         * sysdeps/powerpc/sysdep.h: Likewise.
68780         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
68781         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
68782
68783 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68784
68785         [BZ #411]
68786         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
68787
68788 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68789
68790         * sysdeps/i386/sysdep.h: Include <features.h>.
68791         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
68792         version.
68793
68794 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
68795
68796         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
68797         Define.
68798         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
68799         LOAD_PIC_REG_STR.
68800
68801 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68802
68803         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
68804         (SETUP_PIC_REG): Use GET_PC_THUNK.
68805         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
68806         macro.
68807
68808 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68809
68810         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
68811         for non-PIC compilation.
68812         (SETUP_PIC_REG): Add .p2align directive.
68813         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
68814         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
68815         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
68816         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
68817         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
68818         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
68819         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
68820         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
68821         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
68822         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
68823         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
68824         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
68825         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
68826         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
68827         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
68828         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
68829         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
68830         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
68831         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
68832         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
68833         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
68834         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
68835         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
68836         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
68837         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
68838         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
68839         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
68840         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
68841         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
68842         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
68843         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
68844         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
68845         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
68846         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
68847         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
68848         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
68849         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
68850         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
68851         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
68852         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
68853         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
68854
68855 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68856
68857         * math/tst-CMPLX.c: Include <stdio.h>.
68858
68859 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
68860
68861         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
68862         float.
68863         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
68864         * sysdeps/sparc/bits/mathdef.h: Likewise.
68865
68866 2012-01-31  Marek Polacek  <polacek@redhat.com>
68867
68868         * libio/libio.h: Don't define _PARAMS.
68869         * locale/programs/config.h: Don't define PARAMS.
68870         * stdlib/strtol_l.c: Likewise.
68871         (__strtol_l): Remove PARAMS from the prototype.
68872
68873 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
68874
68875         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
68876         names.  Just use the correct names.  Remove unnecessary wrapper
68877         functions.
68878         * malloc/arena.c: Likewise.
68879         * malloc/hooks.c: Likewise.
68880
68881         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
68882         ARENA_TEST says not to.  Simplify test for creation of a new arena.
68883         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
68884
68885 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
68886
68887         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
68888         into tail calls.
68889         (update_get_addr): New function.
68890         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
68891         GET_ADDR_MODULE parameter.
68892
68893 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
68894
68895         * crypt/cert.c: Remove __STDC__ conditionals.
68896         * crypt/crypt-entry.c: Likewise.
68897         * crypt/crypt_util.c: Likewise.
68898         * libio/filedoalloc.c: Likewise.
68899         * libio/fileops.c: Likewise.
68900         * libio/genops.c: Likewise.
68901         * libio/iofclose.c: Likewise.
68902         * libio/iofdopen.c: Likewise.
68903         * libio/iofopen.c: Likewise.
68904         * libio/iofopen64.c: Likewise.
68905         * libio/iogetdelim.c: Likewise.
68906         * libio/iopopen.c: Likewise.
68907         * libio/obprintf.c: Likewise.
68908         * libio/oldfileops.c: Likewise.
68909         * libio/oldiofclose.c: Likewise.
68910         * libio/oldiofdopen.c: Likewise.
68911         * libio/oldiofopen.c: Likewise.
68912         * libio/oldiopopen.c: Likewise.
68913         * libio/wfiledoalloc.c: Likewise.
68914         * libio/wgenops.c: Likewise.
68915         * locale/programs/xmalloc.c: Likewise.
68916         * misc/syslog.c: Likewise.
68917         * stdio-common/xbug.c: Likewise.
68918         * string/memchr.c: Likewise.
68919         * string/memcmp.c: Likewise.
68920         * string/memrchr.c: Likewise.
68921         * string/rawmemchr.c: Likewise.
68922         * sysdeps/posix/getcwd.c: Likewise.
68923         * time/strftime_l.c: Likewise.
68924
68925 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
68926
68927         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
68928         * config.make.in (config-cflags-sse2avx): Define.
68929         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
68930         Fix typo.
68931
68932 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
68933
68934         * scripts/config.guess: Update from upstream config git repository.
68935         * scripts/config.sub: Likewise.
68936
68937 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
68938
68939         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
68940         (EM_NUM): Update.
68941         (R_TILEPRO_*, R_TILEGX_*): New macros.
68942
68943         * scripts/firstversions.awk: Fix bug in version range handling.
68944
68945         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
68946
68947         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
68948
68949         * include/sys/epoll.h: New file.
68950         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
68951         libc_hidden_def.
68952
68953 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
68954
68955         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
68956         Avoid unnecessary __WORDSIZE == 64 test.
68957         (fmaxf): Use VEX format if possible.
68958         (fmax): Likewise.
68959         (fminf): Likewise.
68960         (fmin): Likewise.
68961
68962         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
68963         * math/math_private.h: Remove libc_fegetround* and
68964         libc_fesetround*.
68965         * sysdeps/i386/configure.in: Check for -msse2avx.
68966         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
68967         also if SSE2AVX is defined.
68968         Remove libc_fegetround* and libc_fesetround*.
68969         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
68970         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
68971         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
68972         of HAS_YMM_USABLE.
68973         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
68974         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
68975         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
68976         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
68977         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
68978
68979         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
68980
68981 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68982
68983         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
68984         size is not set.
68985         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
68986
68987 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
68988
68989         [BZ #13618]
68990         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
68991         relocation.
68992         * Makeconfig (libm): Define.
68993         * elf/Makefile: Add rules to build and run tst-relsort1.
68994         * elf/tst-relsort1.c: New file.
68995         * elf/tst-relsort1mod1.c: New file.
68996         * elf/tst-relsort1mod2.c: New file.
68997
68998 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
68999
69000         * math/s_ldexp.c: Remove __STDC__ conditionals.
69001         * math/s_ldexpf.c: Likewise.
69002         * math/s_ldexpl.c: Likewise.
69003         * math/s_nextafter.c: Likewise.
69004         * math/s_nexttowardf.c: Likewise.
69005         * math/s_significand.c: Likewise.
69006         * math/s_significandf.c: Likewise.
69007         * math/s_significandl.c: Likewise.
69008         * math/w_jnl.c: Likewise.
69009         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69010         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69011         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69012         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69013         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69014         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69015         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69016         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69017         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69018         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69019         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69020         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69021         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69022         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69023         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69024         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69025         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69026         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69027         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69028         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69029         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69030         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69031         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69032         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69033         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69034         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69035         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69036         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69037         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69038         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69039         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69040         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69041         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69042         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69043         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69044         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69045         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69046         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69047         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69048         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69049         * sysdeps/ieee754/k_standard.c: Likewise.
69050         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69051         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69052         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69053         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69054         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69055         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69056         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69057         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69058         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69059         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69060         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69061         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69062         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69063         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69064         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69065         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69066         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69067         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69068         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69069         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69070         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69071         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69072         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69073         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69074         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69075         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69076         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69077         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69078         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69079         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69080         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69081         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69082         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69083         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69084         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69085         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69086         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69087         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69088         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69089         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69090         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69091         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69092         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69093         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69094         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69095         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69096         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69097         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69098         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69099         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69100         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69101         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69102         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69103         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69104         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69105         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69106         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69107         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69108         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69109         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69110         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69111         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69112         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69113         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69114         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69115         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69116         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69117         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69118         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69119         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69120         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69121         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69122         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69123         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69124         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69125         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69126         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69127         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69128         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69129         * sysdeps/ieee754/s_matherr.c: Likewise.
69130         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69131         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69132         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69133         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69134
69135 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69136
69137         * crypt/md5.h: Remove __STDC__ conditionals.
69138         * libio/libioP.h: Likewise.
69139         * locale/programs/config.h: Likewise.
69140         * sysdeps/generic/sysdep.h: Likewise.
69141         * sysdeps/i386/asm-syntax.h: Likewise.
69142         * sysdeps/s390/asm-syntax.h: Likewise.
69143         * sysdeps/unix/sysdep.h: Likewise.
69144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69146
69147 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69148
69149         * libio/libio.h: Remove __STDC__ conditionals.
69150         * malloc/obstack.h: Likewise.
69151         * math/complex.h: Likewise.
69152         * math/math.h: Likewise.
69153         * sysdeps/generic/_G_config.h: Likewise.
69154         * sysdeps/gnu/_G_config.h: Likewise.
69155         * sysdeps/mach/hurd/_G_config.h: Likewise.
69156         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69157         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69158         * sysdeps/sparc/bits/mathdef.h: Likewise.
69159
69160 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69161
69162         [BZ #13583]
69163         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69164         Clean up HAS_* macros.
69165         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69166         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69167         possible.
69168         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69169         HAS_AVX.
69170         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69171         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69172         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69173         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69174         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69175
69176 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69177
69178         * elf/tst-unique3.cc (gets): Remove declaration.
69179         * elf/tst-unique3lib.cc (gets): Likewise.
69180         * elf/tst-unique3lib2.cc (gets): Likewise.
69181         * elf/tst-unique4.cc (gets): Likewise.
69182
69183 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69184
69185         * include/stdio.h: Add C++ protection.  Add gets declarations and
69186         definitions.
69187         * debug/tst-chk1.c: Don't declare gets here.
69188         * stdio-common/tst-gets.c: Likewise.
69189
69190 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69191
69192         * posix/glob: Remove directory.
69193
69194 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69195
69196         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69197
69198 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69199
69200         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69201         of the non-standard EPFNOSUPPORT.
69202
69203 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69204
69205         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69206         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69207         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69208
69209 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69210
69211         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69212
69213 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69214
69215         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69216         transient errors.
69217         * nscd/grpcache.c (cache_addgr): Likewise.
69218         * nscd/hstcache.c (cache_addhst): Likewise.
69219         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69220         * nscd/pwdcache.c (cache_addpw): Likewise.
69221         * nscd/servicescache.c (cache_addserv): Likewise.
69222
69223 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69224
69225         * malloc/malloc.c: Various cleanups.
69226         * malloc/hooks.c: Likewise.
69227
69228         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69229         * stdlib/bug-fmtmsg1.c: New file.
69230
69231         * stdlib/fmtmsg.c (init): Add missing unlock.
69232         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69233
69234 2012-01-12  Marek Polacek  <polacek@redhat.com>
69235
69236         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69237         and _GNU_SOURCE.
69238
69239 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69240
69241         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69242         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69243         macro to ensure uniqueness of label name.
69244         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69245         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69246
69247 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69248
69249         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69250
69251         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69252         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69253         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69254         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69255
69256 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69257
69258         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69259
69260         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69261         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69262         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69263
69264         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69265
69266         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69267         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69268         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69269         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69270
69271         * math/bits/math-finite.h: Add ldexp support.
69272
69273 2012-01-10  Marek Polacek  <polacek@redhat.com>
69274
69275         * locale/programs/localedef.h (show_archive_content): Add noreturn
69276         attribute.
69277
69278 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69279
69280         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69281
69282 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69283
69284         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69285
69286         * io/Makefile (headers): Add bits/poll2.h.
69287
69288 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69289
69290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69291         typo #include statement.
69292
69293 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69294
69295         * include/sys/cdefs.h: Define __attribute_alloc_size.
69296         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69297         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69298         * elf/pldd.c: Likewise.
69299         * iconv/iconv_charmap.c: Likewise.
69300         * iconv/iconvconfig.c: Likewise.
69301         * iconv/strtab.c: Likewise.
69302         * locale/programs/locale.c: Likewise.
69303         * locale/programs/localedef.h: Likewise.
69304         * locale/programs/simple-hash.c: Likewise.
69305         * nscd/nscd.h: Likewise.
69306         * nss/makedb.c: Likewise.
69307         * sysdeps/generic/ldconfig.h: Likewise.
69308         * locale/programs/localedef.c: Remove xmalloc prototype.
69309         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69310
69311 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69312
69313         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69314         appropriate.
69315
69316 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69317
69318         * math/Makefile (tests): Add tst-CMPLX.
69319         * math/tst-CMPLX.c: New file.
69320
69321         * math/complex.h (CMPLXL): Fix typo.
69322
69323         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69324         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69325         GLIBC_2.16.
69326         * debug/tst-chk1.c: Add poll and ppoll tests.
69327         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69328         * include/sys/poll.h: Add hidden proto for ppoll.
69329         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69330         * sysdeps/mach/hurd/ppoll.c: Likewise.
69331         * io/ppoll.c: Likewise.
69332         * debug/poll_chk.c: New file.
69333         * debug/ppoll_chk.c: New file.
69334         * include/bits/poll2.h: New file.
69335         * io/bits/poll2.h: New file.
69336
69337         [BZ #1350]
69338         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69339
69340         * configure.in: static is always set to yes.  Remove.
69341         * config.make.in: Don't set build-static.
69342         * Makeconfig: Remove use of build-static.
69343         * dlfcn/Makefile: Likewise.
69344         * elf/Makefile: Likewise.
69345         * math/Makefile: Likewise.
69346         * misc/Makefile: Likewise.
69347         * nptl/Makefile: Likewise.
69348         * sysdeps/mach/hurd/Makefile: Likewise.
69349
69350         * configure.in: PWD_P is not used anymore.
69351         * config.make.in: Remove PWD_P entry.
69352
69353         * configure.in: Remove last remnants of RANLIB.
69354         No need to check for signed size_t anymore.
69355         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69356         and IA-64.
69357         Remove __builtin_expect test because we require at least gcc 3.4.
69358         * aclocal.m4: Likewise.
69359
69360         * wcsmbs/mbrtoc16.c: Implement using towc function.
69361         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69362         * wcsmbs/wcsmbsload.c: Likewise.
69363         * iconv/gconv_simple.c: Likewise.
69364         * iconv/gconv_int.h: Likewise.
69365         * iconv/gconv_builtin.h: Likewise.
69366         * iconv/iconv_prog.c: Remove CHAR16 handling.
69367
69368         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69369
69370         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69371
69372         * configure.in: Remove --with-elf and --enable-bounded options.
69373         Dont set base_machine for ia64.  More non-ELF conditions removed.
69374         Remove testing and setting of leading underscore information.
69375         * config.make.in (build-bounded): Set to no.
69376         * config.h.in: Remove NO_UNDERSCORES entry.
69377         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69378         them.
69379         * csu/start.c: Remove !NO_UNDERSCORE code.
69380         * locale/localeinfo.h: Likewise.
69381         * sysdeps/generic/machine-gmon.h: Likewise.
69382         * sysdeps/generic/sysdep.h: Likewise.
69383         * sysdeps/i386/sysdep.h: Likewise.
69384         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69385         * sysdeps/mach/sysdep.h: Likewise.
69386         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69387         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69388         * sysdeps/sh/sysdep.h: Likewise.
69389         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69390         * sysdeps/unix/i386/sysdep.S: Likewise.
69391         * sysdeps/unix/sparc/start.c: Likewise.
69392         * sysdeps/unix/sparc/sysdep.S: Likewise.
69393         * sysdeps/unix/sparc/sysdep.h: Likewise.
69394         * sysdeps/unix/start.c: Likewise.
69395         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69396         * sysdeps/x86_64/sysdep.h: Likewise.
69397
69398 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69399
69400         [BZ #13553]
69401         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69402         for non-gcc.
69403         * argp/argp-fmtstream.h: Use const instead __const.
69404         * argp/argp.h: Likewise.
69405         * assert/assert.h: Likewise.
69406         * bits/fenv.h: Likewise.
69407         * bits/sched.h: Likewise.
69408         * bits/sigset.h: Likewise.
69409         * bits/sigthread.h: Likewise.
69410         * catgets/nl_types.h: Likewise.
69411         * conform/data/pthread.h-data: Likewise.
69412         * crypt/crypt-private.h: Likewise.
69413         * crypt/crypt.h: Likewise.
69414         * crypt/crypt_util.c: Likewise.
69415         * ctype/ctype.h: Likewise.
69416         * debug/execinfo.h: Likewise.
69417         * debug/mbsnrtowcs_chk.c: Likewise.
69418         * debug/mbsrtowcs_chk.c: Likewise.
69419         * debug/wcsnrtombs_chk.c: Likewise.
69420         * debug/wcsrtombs_chk.c: Likewise.
69421         * debug/wcstombs_chk.c: Likewise.
69422         * dirent/dirent.h: Likewise.
69423         * dlfcn/dlfcn.h: Likewise.
69424         * elf/neededtest4.c: Likewise.
69425         * grp/grp.h: Likewise.
69426         * gshadow/gshadow.h: Likewise.
69427         * iconv/gconv.h: Likewise.
69428         * iconv/gconv_int.h: Likewise.
69429         * iconv/gconv_simple.c: Likewise.
69430         * iconv/iconv.h: Likewise.
69431         * iconv/loop.c: Likewise.
69432         * iconv/skeleton.c: Likewise.
69433         * include/aio.h: Likewise.
69434         * include/aliases.h: Likewise.
69435         * include/argz.h: Likewise.
69436         * include/arpa/inet.h: Likewise.
69437         * include/assert.h: Likewise.
69438         * include/dirent.h: Likewise.
69439         * include/dlfcn.h: Likewise.
69440         * include/execinfo.h: Likewise.
69441         * include/fcntl.h: Likewise.
69442         * include/fenv.h: Likewise.
69443         * include/glob.h: Likewise.
69444         * include/grp.h: Likewise.
69445         * include/libintl.h: Likewise.
69446         * include/mntent.h: Likewise.
69447         * include/netdb.h: Likewise.
69448         * include/pwd.h: Likewise.
69449         * include/rpc/netdb.h: Likewise.
69450         * include/sched.h: Likewise.
69451         * include/search.h: Likewise.
69452         * include/shadow.h: Likewise.
69453         * include/signal.h: Likewise.
69454         * include/stdio.h: Likewise.
69455         * include/stdlib.h: Likewise.
69456         * include/string.h: Likewise.
69457         * include/sys/socket.h: Likewise.
69458         * include/sys/stat.h: Likewise.
69459         * include/sys/statfs.h: Likewise.
69460         * include/sys/statvfs.h: Likewise.
69461         * include/sys/syslog.h: Likewise.
69462         * include/sys/time.h: Likewise.
69463         * include/sys/uio.h: Likewise.
69464         * include/time.h: Likewise.
69465         * include/unistd.h: Likewise.
69466         * include/utmp.h: Likewise.
69467         * include/wchar.h: Likewise.
69468         * include/wctype.h: Likewise.
69469         * inet/aliases.h: Likewise.
69470         * inet/arpa/inet.h: Likewise.
69471         * inet/netinet/ether.h: Likewise.
69472         * inet/netinet/in.h: Likewise.
69473         * intl/libintl.h: Likewise.
69474         * io/bits/fcntl2.h: Likewise.
69475         * io/fcntl.h: Likewise.
69476         * io/ftw.h: Likewise.
69477         * io/sys/poll.h: Likewise.
69478         * io/sys/stat.h: Likewise.
69479         * io/sys/statfs.h: Likewise.
69480         * io/sys/statvfs.h: Likewise.
69481         * io/utime.h: Likewise.
69482         * libio/bits/stdio.h: Likewise.
69483         * libio/bits/stdio2.h: Likewise.
69484         * libio/libio.h: Likewise.
69485         * libio/libioP.h: Likewise.
69486         * libio/stdio.h: Likewise.
69487         * locale/lc-ctype.c: Likewise.
69488         * locale/locale.h: Likewise.
69489         * login/utmp.h: Likewise.
69490         * malloc/arena.c: Likewise.
69491         * malloc/malloc.c: Likewise.
69492         * malloc/malloc.h: Likewise.
69493         * malloc/mcheck.c: Likewise.
69494         * malloc/mtrace.c: Likewise.
69495         * math/bits/mathcalls.h: Likewise.
69496         * math/fenv.h: Likewise.
69497         * math/math_private.h: Likewise.
69498         * misc/bits/error.h: Likewise.
69499         * misc/bits/syslog.h: Likewise.
69500         * misc/err.h: Likewise.
69501         * misc/error.h: Likewise.
69502         * misc/fstab.h: Likewise.
69503         * misc/mntent.h: Likewise.
69504         * misc/regexp.h: Likewise.
69505         * misc/search.h: Likewise.
69506         * misc/sgtty.h: Likewise.
69507         * misc/sys/mman.h: Likewise.
69508         * misc/sys/syslog.h: Likewise.
69509         * misc/sys/uio.h: Likewise.
69510         * misc/sys/xattr.h: Likewise.
69511         * misc/ttyent.h: Likewise.
69512         * nis/rpcsvc/ypclnt.h: Likewise.
69513         * nss/nss.h: Likewise.
69514         * posix/bits/unistd.h: Likewise.
69515         * posix/fnmatch.h: Likewise.
69516         * posix/glob.h: Likewise.
69517         * posix/sched.h: Likewise.
69518         * posix/spawn.h: Likewise.
69519         * posix/sys/wait.h: Likewise.
69520         * posix/unistd.h: Likewise.
69521         * posix/wordexp.h: Likewise.
69522         * pwd/pwd.h: Likewise.
69523         * resolv/netdb.h: Likewise.
69524         * resource/sys/resource.h: Likewise.
69525         * rt/aio.h: Likewise.
69526         * rt/bits/mqueue2.h: Likewise.
69527         * rt/mqueue.h: Likewise.
69528         * shadow/shadow.h: Likewise.
69529         * signal/signal.h: Likewise.
69530         * socket/send.c: Likewise.
69531         * socket/sendto.c: Likewise.
69532         * socket/sys/socket.h: Likewise.
69533         * stdio-common/printf.h: Likewise.
69534         * stdlib/bits/stdlib.h: Likewise.
69535         * stdlib/fmtmsg.h: Likewise.
69536         * stdlib/monetary.h: Likewise.
69537         * stdlib/stdlib.h: Likewise.
69538         * stdlib/ucontext.h: Likewise.
69539         * streams/stropts.h: Likewise.
69540         * string/argz.h: Likewise.
69541         * string/bits/string2.h: Likewise.
69542         * string/string.h: Likewise.
69543         * string/strings.h: Likewise.
69544         * sunrpc/rpc/auth.h: Likewise.
69545         * sunrpc/rpc/auth_des.h: Likewise.
69546         * sunrpc/rpc/clnt.h: Likewise.
69547         * sunrpc/rpc/netdb.h: Likewise.
69548         * sunrpc/rpc/pmap_clnt.h: Likewise.
69549         * sunrpc/rpc/xdr.h: Likewise.
69550         * sysdeps/generic/inttypes.h: Likewise.
69551         * sysdeps/generic/net/if.h: Likewise.
69552         * sysdeps/generic/sys/swap.h: Likewise.
69553         * sysdeps/gnu/net/if.h: Likewise.
69554         * sysdeps/gnu/utmpx.h: Likewise.
69555         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
69556         * sysdeps/i386/i486/bits/string.h: Likewise.
69557         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
69558         * sysdeps/s390/bits/string.h: Likewise.
69559         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
69560         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
69561         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
69562         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
69563         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
69564         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
69565         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
69566         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
69567         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
69568         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
69569         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
69570         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
69571         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
69572         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
69573         * sysdeps/unix/sysv/linux/readv.c: Likewise.
69574         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
69575         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
69576         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
69577         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
69578         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
69579         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69580         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
69581         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
69582         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
69583         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
69584         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
69585         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
69586         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69587         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
69588         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
69589         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
69590         * sysvipc/sys/ipc.h: Likewise.
69591         * sysvipc/sys/msg.h: Likewise.
69592         * sysvipc/sys/sem.h: Likewise.
69593         * sysvipc/sys/shm.h: Likewise.
69594         * termios/termios.h: Likewise.
69595         * time/sys/time.h: Likewise.
69596         * time/time.h: Likewise.
69597         * wcsmbs/bits/wchar2.h: Likewise.
69598         * wcsmbs/uchar.h: Likewise.
69599         * wcsmbs/wchar.h: Likewise.
69600         * wctype/wctype.h: Likewise.
69601
69602         [BZ #13551]
69603         * Makeconfig: Remove all but ELF support including AIX support.
69604         * Makerules: Likewise.
69605         * config.h.in: Likewise.
69606         * config.make.in: Likewise.
69607         * configure: Likewise.
69608         * configure.in: Likewise.
69609         * csu/Makefile: Likewise.
69610         * csu/version.c: Likewise.
69611         * debug/Makefile: Likewise.
69612         * dlfcn/Makefile: Likewise.
69613         * elf/Makefile: Likewise.
69614         * extra-lib.mk: Likewise.
69615         * iconv/Makefile: Likewise.
69616         * include/libc-symbols.h: Likewise.
69617         * include/shlib-compat.h: Likewise.
69618         * resolv/Makefile: Likewise.
69619         * resolv/res_libc.c: Likewise.
69620         * rt/Makefile: Likewise.
69621         * sysdeps/i386/asm-syntax.h: Likewise.
69622         * sysdeps/i386/sysdep.h: Likewise.
69623         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69624         * sysdeps/mach/sysdep.h: Likewise.
69625         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
69626         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
69627         * sysdeps/s390/asm-syntax.h: Likewise.
69628         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69629         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69630         * sysdeps/sh/sysdep.h: Likewise.
69631         * sysdeps/unix/sparc/sysdep.h: Likewise.
69632         * sysdeps/wordsize-32/divdi3.c: Likewise.
69633         * sysdeps/x86_64/sysdep.h: Likewise.
69634
69635         * argp/Versions: Remove _argp_unlock_xxx.
69636
69637         [BZ #13559]
69638         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
69639         * abilist/libBrokenLocale.abilist: Likewise.
69640         * abilist/libanl.abilist: Likewise.
69641         * abilist/libc.abilist: Likewise.
69642         * abilist/libcrypt.abilist: Likewise.
69643         * abilist/libdl.abilist: Likewise.
69644         * abilist/libm.abilist: Likewise.
69645         * abilist/libnsl.abilist: Likewise.
69646         * abilist/libpthread.abilist: Likewise.
69647         * abilist/libresolv.abilist: Likewise.
69648         * abilist/librt.abilist: Likewise.
69649         * abilist/libthread_db.abilist: Likewise.
69650         * abilist/libutil.abilist: Likewise.
69651         * abilist/libnss_db.abilist: New file.
69652
69653         * scripts/abilist.awk: Add support for indirect functions.
69654
69655         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
69656
69657         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
69658
69659         * shlib-versions: Remove entries for ports architectures.
69660
69661         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
69662         files in ports.
69663         * elf/stackguard-macros.h: Remove support for IA-64.
69664         * elf/tst-auditmod1.c: Likewise.
69665         * sysdeps/generic/ldsodefs.h: Likewise.
69666
69667         * sysdeps/unix/sysv/linux/configure.in: Ports should define
69668         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
69669         configure files.
69670
69671         [BZ #13552]
69672         * configure.in: Remove --enable-omitfp support.
69673         * FAQ.in: Adjust.
69674         * config.make.in: Likewise.
69675         * Makeconfig: Likewise.
69676         * manual/install.texi: Likewise.
69677
69678         In case anyone cares, the IA-64 architecture could move to ports.
69679         * sysdeps/ia64/*: Removed.
69680         * sysdeps/unix/sysv/linux/ia64/*: Removed.
69681         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
69682
69683         [BZ #13555]
69684         * configure.in: Remove entries for unsupported architectures.
69685
69686         [BZ #13533]
69687         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
69688         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
69689         routines.
69690         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
69691         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
69692         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
69693         fall back to using wcrtomb.
69694         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
69695         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
69696         renaming.
69697         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
69698         * wcsmbs/tst-c16c32-1.c: New file.
69699
69700         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
69701         local variable.
69702
69703         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
69704
69705         * elf/tst-unique3.cc: Add explicit declaration of gets.
69706         * elf/tst-unique3lib.cc: Likewise.
69707         * elf/tst-unique3lib2.cc: Likewise.
69708         * elf/tst-unique4.cc: Likewise.
69709
69710         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
69711
69712 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
69713
69714         [BZ #13566]
69715         * assert/assert.h (static_assert): Don't define for C++.
69716         * libio/stdio.h (gets): Do declare for C++ <= C++11.
69717         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
69718
69719 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
69720
69721         * iconv/loop.c (single loop): Fix assertion in storing of
69722         remaining bytes.
69723
69724         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
69725
69726 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
69727
69728         * posix/getconf.c: Update copyright year.
69729         * nss/getent.c: Likewise.
69730         * nss/makedb.c: Likewise.
69731         * iconv/iconvconfig.c: Likewise.
69732         * iconv/iconv_prog.c: Likewise.
69733         * elf/ldconfig.c: Likewise.
69734         * elf/pldd.c: Likewise.
69735         * elf/sotruss.ksh: Likewise.
69736         * catgets/gencat.c: Likewise.
69737         * csu/version.c: Likewise.
69738         * elf/ldd.bash.in: Likewise.
69739         * elf/sprof.c (print_version): Likewise.
69740         * locale/programs/locale.c: Likewise.
69741         * locale/programs/localedef.c: Likewise.
69742         * login/programs/pt_chown.c: Likewise.
69743         * nscd/nscd.c (print_version): Likewise.
69744         * debug/xtrace.sh: Likewise.
69745         * malloc/memusage.sh: Likewise.
69746         * malloc/mtrace.pl: Likewise.
69747         * debug/catchsegv.sh: Likewise.
69748
69749 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
69750
69751         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
69752         pure attribute.
69753
69754 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
69755
69756         [BZ #13533]
69757         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
69758         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
69759         transformations.
69760         * iconv/gconv_int.h: Likewise.
69761         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
69762         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
69763         from libc for GLIBC_2.16.
69764         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
69765         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
69766         * wcsmbs/uchar.h: Really define mbstate_t.
69767         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
69768         * wcsmbs/c16rtomb.c: New file.
69769         * wcsmbs/mbrtoc16.c: New file.
69770         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
69771         for C/POSIX locale.
69772         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
69773         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
69774
69775         * wcsmbs/wchar.h: Add missing __restrict.
69776
69777 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69778
69779         [BZ #13532]
69780         * time/Makefile (routines): Add timespec_get.
69781         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
69782         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
69783         timespec for ISO C11.
69784         * time/timespec_get.c: New file.
69785         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
69786         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
69787
69788         [BZ #13531]
69789         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
69790         * stdlib/stdlib.h: Declare aligned_alloc.
69791         * Versions.def: Add GLIBC_2.16 for libc.
69792         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
69793
69794         [BZ 13527]
69795         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
69796         ISO C11.
69797
69798         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
69799         code.
69800
69801         [BZ #13528]
69802         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
69803
69804         [BZ #13529]
69805         * assert/assert.h (static_assert): Define.
69806
69807         * version.h: Update for 2.16 development version.
69808
69809         [BZ #13526]
69810         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
69811         _ISOC11_SOURCE.
69812
69813         * version.h (RELEASE): Bump for 2.15 release.
69814         * include/features.h (__GLIBC_MINOR__): Bump to 15.
69815
69816         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
69817         Patch by Marek Polacek <mpolacek@redhat.com>.
69818
69819         * bits/byteswap.h: Protect long long constants with __extension__.
69820         * sysdeps/i386/bits/byteswap.h: Likewise.
69821         * sysdeps/ia64/bits/byteswap.h: Likewise.
69822         * sysdeps/s390/bits/byteswap.h: Likewise.
69823         * sysdeps/x86_64/bits/byteswap.h: Likewise.
69824
69825 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69826
69827         [BZ #13540]
69828         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
69829         destination buffer.
69830         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
69831
69832 2011-12-23  Marek Polacek  <polacek@redhat.com>
69833
69834         * elf/dl-addr.c (determine_info): Add inline keyword.
69835         * elf/tst-auditmod4b.c (check_avx): Likewise.
69836         * elf/tst-auditmod6b.c (check_avx): Likewise.
69837         * elf/tst-auditmod6c.c (check_avx): Likewise.
69838         * elf/tst-auditmod7b.c (check_avx): Likewise.
69839
69840 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69841
69842         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
69843         !__SSE_MATH__.
69844
69845 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69846
69847         [BZ #13540]
69848         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
69849         processing for last bytes.
69850
69851 2011-08-06  Bruno Haible  <bruno@clisp.org>
69852
69853         [BZ #13061]
69854         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
69855         U+0385, not to U+1FEE.
69856
69857         [BZ #13062]
69858         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
69859         entry for U+00A5 U+0301.
69860
69861 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
69862
69863         [BZ #13166]
69864         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
69865         buffer for the output is too small.
69866
69867         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
69868         optimization.
69869
69870         [BZ #13185]
69871         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
69872         SSE flags if possible.
69873
69874 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69875
69876         [BZ #13540]
69877         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
69878         processing for last bytes.
69879
69880 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
69881
69882         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
69883         (syscall-list-default-options, syscall-list-default-condition)
69884         (syscall-list-includes): Define.
69885         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
69886         list of ABIs and options and #if conditions for each ABI.  Do not
69887         handle common syscalls between ABIs specially.
69888         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
69889         Remove.
69890         (syscall-list-variants, syscall-list-32bit-options)
69891         (syscall-list-32bit-condition, syscall-list-64bit-options)
69892         (syscall-list-64bit-condition): Define.
69893         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
69894         (syscall-list-variants, syscall-list-32bit-options)
69895         (syscall-list-32bit-condition, syscall-list-64bit-options)
69896         (syscall-list-64bit-condition): Define.
69897         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
69898         Remove.
69899         (syscall-list-variants, syscall-list-32bit-options)
69900         (syscall-list-32bit-condition, syscall-list-64bit-options)
69901         (syscall-list-64bit-condition): Define.
69902         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
69903         Remove.
69904         (syscall-list-variants, syscall-list-32bit-options)
69905         (syscall-list-32bit-condition, syscall-list-64bit-options)
69906         (syscall-list-64bit-condition): Define.
69907
69908 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
69909
69910         * locale/iso-639.def: Add brx entry.
69911
69912         [BZ #13328]
69913         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
69914         Proposed by Mariusz_Cukr <marcukr@op.pl>.
69915
69916         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
69917         __feraiseexcept_renamed.
69918
69919 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
69920
69921         [BZ #13538]
69922         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
69923         EPOLLET with unsigned values.
69924         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69925         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69926
69927         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
69928         to large cancellation.
69929         * math/s_cacoshf.c: Likewise.
69930         * math/s_cacoshl.c: Likewise.
69931
69932 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
69933
69934         [BZ #13305]
69935         [BZ #12786]
69936         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
69937         * math/s_cacoshf.c: Likewise.
69938         * math/s_cacoshl.c: Likewise.
69939
69940 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
69941
69942         [BZ #13439]
69943         * iconv/gconv.h: Define __GCONV_SWAP.
69944         * iconvdata/unicode.c: The swap bit must be stored in __flags.
69945         * iconvdata/utf-16.c: Likewise.
69946         * iconvdata/utf-32.c: Likewise.
69947
69948 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
69949
69950         [BZ #13524]
69951         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
69952         numerator after shifting it by one limb.
69953
69954 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
69955
69956         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
69957         under [__USE_EXTERN_INLINES].
69958
69959 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
69960
69961         [BZ #13446]
69962         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
69963
69964 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69965
69966         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
69967         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
69968         optimized code.
69969         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
69970         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
69971         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
69972         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
69973         for strncasecmp/strncasecmp_l compilation.
69974         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
69975         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
69976
69977 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
69978
69979         [BZ #13484]
69980         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
69981         of __asm__.
69982
69983 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
69984
69985         [BZ #13506]
69986         * time/tzfile.c (__tzfile_read): Check values from file header.
69987
69988 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
69989
69990         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
69991         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
69992         * powerpc/powerpc32/dl-start.S: Likewise.
69993         * powerpc/powerpc32/elf/start.S: Likewise.
69994         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
69995         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
69996         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
69997         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
69998         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
69999         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70000         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70001         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70002         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70003         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70004         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70005         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70006         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70007         * powerpc/powerpc32/memset.S: Likewise.
70008         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70009         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70010         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70011         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70012         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70013         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70014         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70015         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70016         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70017         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70018         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70019         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70020         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70021
70022 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70023
70024         * math/libm-test.inc: Added more nearbyint tests.
70025         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70026         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70027         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70028         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70029
70030 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70031
70032         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70033         FD_CLOEXEC.
70034
70035 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70036
70037         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70038         Add wcscpy-ssse3 wcscpy-c.
70039         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70040         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70041         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70042         * sysdeps/x86_64/wcschr.S: New file.
70043         * sysdeps/x86_64/wcsrchr.S: New file.
70044         * string/test-strcmp.c: Remove checking of wcscmp function for
70045         wrong alignments.
70046         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70047         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70048         wcsrchr-sse2 wcsrchr-c.
70049         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70050         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70051         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70052         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70053         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70054         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70055         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70056         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70057         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70058         * wcsmbc/wcschr.c (WCSCHR): New macro.
70059
70060 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70061
70062         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70063         * wcsmbs/test-wcsrchr.c: New file.
70064         * string/test-strrchr.c: Add wcsrchr support.
70065         (WIDE): New macro.
70066         * wcsmbs/test-wcscpy.c: New file.
70067         * string/test-strcpy.c: Add wcscpy support.
70068         (WIDE): New macro.
70069
70070 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70071
70072         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70073         the inner loop.
70074
70075 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70076
70077         [BZ #13472]
70078         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70079
70080 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70081
70082         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70083         Minor optimizations.
70084
70085         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70086         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70087         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70088
70089 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70090
70091         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70092         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70093         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70094         for gcc to avoid warnings.
70095         * inet/Makefile (tests): Add tst-checks.
70096         * inet/tst-checks.c: New file.
70097
70098         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70099         warning.
70100
70101         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70102         __wmemcmp_sse2.
70103
70104         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70105         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70106
70107         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70108
70109 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70110
70111         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70112         problem.
70113
70114         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70115
70116 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70117
70118         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70119         conditional on GCC version.
70120         (__arch_compare_and_exchange_val_8_acq)
70121         (__arch_compare_and_exchange_val_16_acq)
70122         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70123         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70124         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70125
70126 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70127
70128         * sysdeps/sh/backtrace.c: New file.
70129
70130 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70131
70132         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70133         parenthesis.
70134
70135 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70136
70137         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70138         falling back to utime.
70139
70140 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70141
70142         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70143         expectations for float.
70144
70145 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70146
70147         * locale/weight.h (findidx): Add parameter len.
70148         * locale/weightwc.h (findidx): Likewise.
70149         * posix/fnmatch_loop.c (FCT): Adjust caller.
70150         * posix/regcomp.c (build_equiv_class): Likewise.
70151         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70152         * posix/regexec.c (check_node_accept_bytes): Likewise.
70153         * string/strcoll_l.c (STRCOLL): Likewise.
70154         * string/strxfrm_l.c (STRXFRM): Likewise.
70155
70156 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70157
70158         * Makefile.in: Remove CVSOPT handling.
70159         * configure.in: Remove use of AC_REVISION.
70160         * iconvdata/Makefile (distribute): No need to filter out CVS.
70161         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70162         handling.
70163
70164 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70165
70166         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70167         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70168         [USE_AS_STRNCASECMP_L]: Likewise.
70169         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70170         NO_TLS_DIRECT_SEG_REFS.
70171         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70172         Fix argument offsets for non-PIC.
70173         [USE_AS_STRNCASECMP_L]: Likewise.
70174         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70175         NO_TLS_DIRECT_SEG_REFS.
70176
70177 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70178
70179         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70180         O_CLOEXEC.
70181         * locale/loadlocale.c (_nl_load_locale): Likewise.
70182
70183 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70184
70185         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70186         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70187         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70188         (SYSCALL_GETTIME): Set errno on error.
70189
70190         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70191         count references to noai6ai_cached.
70192
70193 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70194
70195         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70196
70197         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70198         FD_CLOEXEC for /proc/self/maps.
70199
70200         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70201         FD_CLOEXEC for /proc/meminfo.
70202
70203         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70204         gai.conf.
70205
70206         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70207         FD_CLOEXEC for given file.
70208
70209         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70210
70211         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70212         FD_CLOEXEC for /etc/hosts.
70213         (_gethtent): Likewise.
70214
70215         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70216
70217         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70218         cancellation and set FD_CLOEXEC for /etc/netgroup.
70219
70220         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70221         reading /etc/publickey.
70222
70223         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70224         allow cancellation when reading /etc/group.
70225
70226         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70227         cancellation.
70228         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70229
70230         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70231         when using data file.
70232
70233         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70234
70235         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70236         (write_nis_obj): Use "c" and "e" in fopen.
70237
70238         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70239
70240         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70241
70242         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70243
70244         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70245
70246         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70247         locale.alias.
70248
70249         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70250
70251         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70252
70253         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70254
70255         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70256         file parsing and set FD_CLOEXEC.
70257
70258 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70259
70260         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70261
70262 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70263
70264         * malloc/arena.c (arena_get2): Don't call reused_arena when
70265         _int_new_arena failed.
70266
70267 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70268
70269         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70270         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70271         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70272         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70273         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70274         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70275         to compile strcasecmp and strncasecmp.
70276         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70277         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70278
70279         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70280
70281 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70282
70283         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70284         locale-defines.sym to gen-as-const-headers.
70285         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70286         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70287         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70288         to compile strcasecmp and strncasecmp.
70289         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70290         strcasecmp_l and strncasecmp_l.
70291         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70292         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70293         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70294         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70295         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70296         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70297         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70298         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70299         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70300         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70301         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70302
70303 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70304
70305         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70306         result of SYSDEP_GETTIME_CPU to retval.
70307         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70308         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70309
70310         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70311         variable.
70312
70313         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70314         mantissa words.
70315         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70316
70317         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70318         from unused variable.
70319
70320         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70321         DWARF definitions.
70322         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70323         for assembling.
70324
70325         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70326         over namespaces.
70327
70328         * sunrpc/rpc_prot.c (rejected): Fix case value.
70329
70330         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70331         unsigned long long int to avoid warnings in shift.
70332
70333         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70334         of use of trans.
70335         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70336         variable tmp.
70337
70338         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70339         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70340         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70341
70342         * nis/nis_table.c (nis_list): Use variable of correct type for
70343         result of __follow_path call.
70344
70345 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70346
70347         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70348         of math functions ceil, trunc, floor, round, and sqrt, when
70349         avaliable on the platform.
70350         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70351         name clash.
70352         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70353         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70354         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70355
70356 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70357
70358         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70359         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70360
70361 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70362
70363         * include/unistd.h: Fix __readlink return type.
70364         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70365
70366 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70367
70368         * stdlib/ucontext.h: Undo last change for makecontext.
70369
70370 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70371
70372         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70373
70374         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70375         * setjmp/setjmp.h: Mark functions as non-leaf.
70376         * setjmp/bits/setjmp2.h: Likewise.
70377         * stdlib/ucontext.h: Likewise.
70378
70379 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70380
70381         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70382         (reused_arena): Don't check arena limit.
70383         (arena_get2): Atomically check arena limit.
70384
70385 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70386
70387         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70388         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70389
70390         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70391         instructions.
70392
70393 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70394
70395         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70396         handler when locking.
70397
70398         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70399         Fix size of allocated buffer.
70400
70401 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70402
70403         [BZ #10103]
70404         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70405         declarations for long double functions.
70406         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70407
70408         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70409
70410 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70411
70412         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70413         installed.
70414
70415         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70416         is disabled.
70417
70418 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70419
70420         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70421
70422 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70423
70424         * include/alloca.h (stackinfo_alloca_round): Define.
70425         (extend_alloca): Use it.
70426         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70427         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70428         here.
70429
70430         * scripts/check-local-headers.sh: Ignore libaudit.h.
70431
70432         * nscd/Makefile (extra-objs): Make recursively expanded.
70433
70434 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70435
70436         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70437         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70438
70439         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70440         * posix/tst-rfc3484-2.c: Likewise.
70441         * posix/tst-rfc3484-3.c: Likewise.
70442
70443         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70444         process_vm_writev.
70445         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70446         process_vm_writev.
70447         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70448         process_vm_writev from libc using GLIBC_2.15 version.
70449
70450         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70451
70452 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70453
70454         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70455         stack usage.
70456
70457 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70458
70459         [BZ #13367]
70460         * nss/getent.c (initgroups_keys): Show error message in case no group
70461         names are given.
70462
70463         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70464         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70465         __bump_nl_timestamp.
70466         * nscd/connections (nscd_init): When host database is served open
70467         netlink socket and request notification about configuration changes.
70468         (main_loop_poll): Track netlink file descriptor and bump timestamp
70469         in case data becomes available.
70470         (main_loop_epoll): Likewise.
70471         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70472         (database_pers_head): Add extra_data fileds.
70473         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70474         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70475         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70476         Adjust caller.
70477         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70478         in6ai data, call __free_in6ai.
70479         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70480         Add -DHAVE_NETLINK.
70481         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70482         interface information.  Reuse previous data if netlink timestamp
70483         is not changed.
70484         (__bump_nl_timestamp): New function.
70485         (__free_in6ai): New function.
70486
70487 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70488
70489         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70490         close_not_cancel_no_status here.
70491         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70492
70493 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70494
70495         [BZ #13276]
70496         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70497         return value.
70498
70499         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70500         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70501         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70502
70503 2011-07-03  Andreas Jaeger  <aj@suse.de>
70504
70505         [BZ #10709]
70506         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70507         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70508         * math/libm-test.inc (sin_test): Add test case.
70509
70510 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70511
70512         [BZ #13337]
70513         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70514         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70515
70516         * elf/chroot_canon.c (chroot_canon): Cleanups.
70517
70518         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70519
70520         [BZ #13335]
70521         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70522         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70523
70524         * string/test-strchr.c: Make usable for strchrnul testing.
70525         * string/test-strchrnul.c: New file.
70526         * string/Makefile (strop-tests): Add strchrnul.
70527
70528         * po/it.po: Update from translation team.
70529         * po/es.po: Likewise.
70530
70531 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70532
70533         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70534         the three constants needed as parameters.  Drop the others.
70535         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70536         __m128i_strloadu_tolower.
70537         Create and initialize variable zero and use it in all the places
70538         where _mm_setzero_si128 was used.
70539
70540         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70541         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70542         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70543         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70544         anymore.
70545         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70546         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70547         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70548         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70549         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70550         __mpranred, __mptan.
70551         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
70552         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
70553         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
70554         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
70555         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
70556         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
70557         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
70558         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
70559         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
70560
70561 2011-10-28  Andreas Schwab  <schwab@redhat.com>
70562
70563         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
70564         redefine if SHARED.
70565         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
70566
70567         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
70568         wide char related routines to wcsmbs subdir.
70569
70570 2011-10-27  Andreas Schwab  <schwab@redhat.com>
70571
70572         [BZ #13344]
70573         * misc/sys/cdefs.h (__THROWNL): Define.
70574         * posix/unistd.h: Use __THREADNL instead of __THREAD
70575         for memory synchronization functions.
70576
70577 2011-10-26  Roland McGrath  <roland@hack.frob.com>
70578
70579         [BZ #13349]
70580         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
70581         doesn't exist.
70582         * manual/stdio.texi (Obstack Streams): Node removed.
70583
70584 2011-10-26  Andreas Schwab  <schwab@redhat.com>
70585
70586         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
70587         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70588         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70589
70590         * math/math_private.h (math_force_eval): Allow non-addressable
70591         arguments.
70592         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
70593
70594 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70595
70596         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
70597         file is not needed.
70598
70599         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
70600         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
70601         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70602         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70603         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70604         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70605         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70606         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
70607         Add AVX variants.
70608         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
70609         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
70610         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
70611         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
70612         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
70613         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
70614         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
70615         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
70616         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
70617         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
70618         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
70619         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
70620         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
70621         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
70622         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
70623         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
70624         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
70625         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
70626         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
70627
70628         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
70629         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
70630
70631         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
70632         place.  Use VEX encoding when compiling for AVX.
70633
70634 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70635
70636         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
70637         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
70638
70639         * string/test-strchr.c (do_test): Don't generate NUL bytes.
70640
70641 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70642
70643         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
70644         useless if() expression.
70645         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
70646         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
70647         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
70648         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70649         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
70650         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70651         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
70652         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
70653         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
70654         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
70655         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
70656         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
70657         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
70658         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
70659         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
70660         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70661         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
70662         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
70663         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
70664
70665         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
70666
70667 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70668
70669         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
70670         condition.
70671         * elf/dl-fini.c (_dl_sort_fini): Likewise.
70672
70673 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70674
70675         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
70676         .text section.  Avoid duplicate constants.
70677         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70678         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70679         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70680         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70681         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70682         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70683         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70684         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70685         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
70686         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
70687         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
70688         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
70689         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
70690         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
70691         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
70692         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
70693         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
70694         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
70695         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70696         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70697         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70698         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70699         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70700         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
70701         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
70702         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
70703         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
70704         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
70705         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
70706         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
70707         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
70708         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
70709         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
70710         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
70711         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
70712         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
70713         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
70714         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
70715         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
70716         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
70717         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
70718         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
70719         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
70720         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
70721         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
70722
70723 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
70724
70725         * sysdeps/x86_64/dla.h: Move to ...
70726         * sysdeps/x86_64/fpu/dla.h: ...here.
70727         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
70728         situations.  Use __builtin_fma only for gcc 4.6 and up.
70729
70730         * config.make.in: Add have-mfma4 entry.
70731         * configure.in: Substitute libc_cv_cc_fma4.
70732         * math/Makefile (dbl-only-routines): Add sincostab.
70733         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
70734         Use __sincostab not sincos.
70735         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
70736         name is a macro.
70737         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70738         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70739         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70740         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
70741         using __copysign.
70742         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
70743         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
70744         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
70745         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
70746         and __inv.
70747         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
70748         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
70749         __copysign.
70750         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
70751         define aliases when function name is a macro.
70752         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
70753         sysdeps/ieee754/dbl-64/sincos.tbl.
70754         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
70755         fma4-enabled routines.
70756         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
70757         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
70758         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
70759         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
70760         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
70761         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
70762         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
70763         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
70764         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
70765         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
70766         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
70767         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
70768         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
70769         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
70770         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
70771         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
70772         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
70773         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
70774         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
70775         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
70776         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
70777         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
70778         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
70779         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
70780         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
70781         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
70782         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
70783         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
70784         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
70785         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
70786
70787         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
70788         rename.
70789         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70790         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70791         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70792         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70793         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70794         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70795         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70796         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70797
70798 2011-10-24  Andreas Schwab  <schwab@redhat.com>
70799
70800         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
70801
70802 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70803
70804         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
70805
70806         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
70807         prediction.
70808         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
70809
70810         * string/strnlen.c: Don't define STRNLEN, reverse logic.
70811         Remove unused variable magic_bits.
70812         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
70813
70814         * string/strnlen.c: Define and use STRNLEN macro.
70815         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
70816         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
70817         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
70818         * wcsmbs/wcslen.c: Define and use WCSLEN.
70819         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
70820         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
70821         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
70822         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
70823         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
70824         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
70825         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
70826
70827 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70828
70829         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
70830         strnlen-sse2-no-bsf.
70831         Rename strlen-no-bsf to strlen-sse2-no-bsf.
70832         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
70833         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
70834         Add strnlen support.
70835         (USE_AS_STRNLEN): New macro.
70836         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
70837         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
70838         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
70839         * sysdeps/x86_64/wcslen.S: New file.
70840
70841 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
70842
70843         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
70844         XMM-moves are used for copying on small sizes.
70845
70846 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70847
70848         * wcsmbs/Makefile (strop-tests): Add wcschr.
70849         * wcsmbs/test-wcschr.c: New file.
70850         * string/test-strchr.c: Update.
70851         Add wcschr support.
70852         (WIDE): New macro.
70853
70854 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70855
70856         * wcsmbs/Makefile (strop-tests): Add wcslen.
70857         * wcsmbs/test-wcslen.c: New file.
70858         * string/test-strlen.c: Update.
70859         Add wcslen support.
70860         (WIDE): New macro.
70861
70862 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70863
70864         * po/it.po: Update from translation team.
70865
70866 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70867
70868         * sysdeps/x86_64/wcscmp.S: Update.
70869         Fix wrong comparison semantics.
70870         wcscmp shall use signed comparison not unsigned.
70871         Don't use substraction to avoid overflow bug.
70872         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
70873         * wcsmbc/wcscmp.c: Likewise.
70874         * string/test-strcmp.c: Likewise.
70875         Add new tests to check cases with negative values.
70876
70877 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70878
70879         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
70880         * sysdeps/x86_64/dla.h: ...here.  New file.
70881         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
70882         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70883         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70884         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70885         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70886         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
70887         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70888         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70889         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70890
70891 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
70892
70893         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
70894         __ynl_finite aliases.
70895
70896 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
70897
70898         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70899
70900         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
70901         define DLA_FMA.
70902         [DLA_FMA] (EMULV): Use DLA_FMA.
70903         [DLA_FMA] (MUL12): Use EMULV.
70904         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
70905         that are not needed.
70906         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70907         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70908         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70909         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70910         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70911         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70912         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70913
70914 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
70915
70916         * math/s_nan.c: Undef __nan.
70917         * math/s_nanf.c: Undef __nanf.
70918         * math/s_nanl.c: Undef __nanl.
70919         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
70920         "math_private.h".
70921
70922 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
70923
70924         * math/s_catan.c: Add branch predictions.
70925         * math/s_catanf.c: Likewise.
70926         * math/s_catanh.c: Likewise.
70927         * math/s_catanhf.c: Likewise.
70928         * math/s_catanhl.c: Likewise.
70929         * math/s_catanl.c: Likewise.
70930         * math/s_cexp.c: Likewise.
70931         * math/s_cexpf.c: Likewise.
70932         * math/s_cexpl.c: Likewise.
70933         * math/s_clog.c: Likewise.
70934         * math/s_clog10.c: Likewise.
70935         * math/s_clog10f.c: Likewise.
70936         * math/s_clog10l.c: Likewise.
70937         * math/s_clogf.c: Likewise.
70938         * math/s_clogl.c: Likewise.
70939         * math/s_csqrt.c: Likewise.
70940         * math/s_csqrtf.c: Likewise.
70941         * math/s_csqrtl.c: Likewise.
70942         * math/s_ctanf.c: Likewise.
70943         * math/s_ctanh.c: Likewise.
70944         * math/s_ctanhf.c: Likewise.
70945         * math/s_ctanhl.c: Likewise.
70946         * math/s_ctanl.c: Likewise.
70947
70948         * math/math_private.h: Define __nan, __nanf, __nanl.
70949         * math/s_cacosh.c: Include <math_private.h>.
70950         * math/s_cacoshl.c: Likewise.
70951         * math/s_casinh.c: Likewise.
70952         * math/s_casinhf.c: Likewise.
70953         * math/s_casinhl.c: Likewise.
70954         * math/s_ccos.c: Rely entire on ccosh.
70955         * math/s_ccosf.c: Rely entire on ccoshf.
70956         * math/s_ccosl.c: Rely entirely on ccoshl.
70957         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
70958         Remove tests for FE_INVALID.
70959         * math/s_ccoshf.c: Likewise.
70960         * math/s_ccoshl.c: Likewise.
70961         * math/s_csin.c: Likewise.
70962         * math/s_csinf.c: Likewise.
70963         * math/s_csinh.c Likewise.
70964         * math/s_csinhf.c: Likewise.
70965         * math/s_csinhl.c: Likewise.
70966         * math/s_csinl.c: Likewise.
70967         * math/s_ctan.c: Likewise.
70968         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
70969         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
70970         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
70971
70972 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
70973
70974         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
70975         compilation problems.
70976
70977         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
70978         __builtin_expect.
70979
70980 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
70981
70982         * sysdeps/i386/configure.in: Test for -mfma4 option.
70983         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
70984         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
70985         COMMON_CPUID_INDEX_80000001.
70986         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
70987         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
70988         use it if FMA3 is not supported.
70989         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
70990
70991         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
70992         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
70993
70994 2011-10-20  Andreas Schwab  <schwab@redhat.com>
70995
70996         [BZ #12892]
70997         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
70998         it would create a cycle with a link time dependency.
70999
71000 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71001
71002         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71003         instruction.
71004         * string/Makefile (strop-tests): Add rawmemchr.
71005         * string/test-rawmemchr.c: New file.
71006
71007         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71008         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71009         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71010         when compiling str{,n}casecmp and when AVX is available.  Hook up
71011         new optimized code in initializers.
71012
71013 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71014
71015         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71016         __feraiseexcept instead of feraiseexcept.
71017
71018 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71019
71020         * math/math_private.h: Define defaults for libc_fetestexcept and
71021         libc_feupdateenv.
71022         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71023         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71024         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71025         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71026         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71027         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71028         libc_fetestexcept and libc_feupdateenv.
71029
71030         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71031         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71032         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71033         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71034         libc_feholdexcept_setround.
71035
71036         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71037         Add s_nearbyint-c and s_nearbyintf-c.
71038         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71039         nearbyintf inlines.
71040         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71041         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71042         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71043         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71044
71045         * math/math_private.h: Define defaults for libc_fegetround,
71046         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71047         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71048         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71049         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71050         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71051         standard functions.
71052         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71053         Remove comments and hacks for old compiler versions.
71054         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71055         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71056         libc_feholdexceptl.
71057
71058 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71059
71060         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71061         (__feraiseexcept_renamed): Add __NTH.
71062         (feraiseexcept): Add __NTH.  Rename local variables to fix
71063         namespace violations.
71064
71065 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71066
71067         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71068
71069         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71070
71071         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71072         recently added interfaces.
71073         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71074
71075         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71076         about macro parameter expansion.
71077
71078         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71079         __NO_MATH_INLINES is defined.  Cleanups.
71080
71081         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71082         and __floorf is target has SSE4.1.
71083         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71084         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71085         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71086         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71087
71088         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71089         name.
71090         (floorf): Likewise.
71091
71092         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71093
71094 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71095
71096         * misc/sys/cdefs.h: Fix last change.
71097
71098         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71099         database lookup.
71100
71101 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71102
71103         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71104
71105         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71106         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71107         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71108         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71109         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71110         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71111         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71112         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71113         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71114         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71115         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71116         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71117         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71118         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71119         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71120         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71121         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71122         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71123         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71124         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71125         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71126         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71127
71128         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71129         ceil, ceilf, floor, floorf.
71130
71131         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71132         Perform IRELATIVE relocations last.
71133
71134         * elf/do-rel.h: Add another parameter nrelative, replacing the
71135         local variable with the same name.  Change name of the function
71136         to end in Rel or Rela (uppercase).
71137         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71138         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71139         elf_dynamic_do_##reloc function.
71140
71141 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71142
71143         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71144         is sufficient, at least on modern CPUs.
71145
71146         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71147
71148         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71149         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71150
71151         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71152         __expl_finite.
71153         * math/bits/math-finite.h: Add entries for exp.
71154         * math/e_expl.c: Add __*_finite alias.
71155         * sysdeps/i386/fpu/e_exp.S: Likewise.
71156         * sysdeps/i386/fpu/e_expf.S: Likewise.
71157         * sysdeps/i386/fpu/e_expl.c: Likewise.
71158         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71159         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71160         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71161         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71162         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71163         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71164         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71165
71166         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71167         is sufficient, at least on modern CPUs.
71168
71169         * ctype/ctype-info.c (__ctype_init): Define.
71170         * include/ctype.h (__ctype_init): Declare.
71171         (__ctype_b_loc): The variable is always initialized.
71172         (__ctype_toupper_loc): Likewise.
71173         (__ctype_tolower_loc): Likewise.
71174         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71175         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71176
71177 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71178
71179         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71180
71181         * configure.in: Also look in $cxxmachine/include for C++ system
71182         headers.
71183
71184 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71185
71186         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71187         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71188         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71189         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71190         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71191         (USE_AS_WMEMCMP): New macro.
71192         Fixing indents.
71193         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71194         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71195         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71196         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71197         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71198         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71199         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71200         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71201         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71202         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71203         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71204         (USE_AS_WMEMCMP): New macro.
71205         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71206         * sysdeps/string/test-memcmp.c: Update.
71207         Fix simple_wmemcmp.
71208         Add new tests.
71209         * wcsmbs/wmemcmp.c: Update.
71210         (WMEMCMP): New macro.
71211         Fix overflow bug.
71212
71213 2011-10-12  Andreas Jaeger  <aj@suse.de>
71214
71215         [BZ #13268]
71216         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71217
71218 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71219
71220         * libio/iofwide.c (do_length): Avoid warning.
71221
71222         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71223
71224 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71225
71226         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71227
71228         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71229         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71230         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71231         * sysdeps/i386/i686/fpu/e_log.S: New file.
71232         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71233         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71234
71235         * ctype/ctype.h: Add support for inlined isXXX functions when
71236         compiling C++ code.
71237
71238 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71239
71240         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71241
71242         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71243
71244 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71245
71246         [BZ #13291]
71247         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71248
71249 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71250
71251         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71252         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71253         feraiseexcept.
71254
71255         * sysdeps/x86_64/memrchr.S: Check for zero size.
71256
71257         * string/stratcliff.c: Add memrchr tests.
71258
71259 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71260
71261         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71262         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71263         rawmemchr-sse2 rawmemchr-sse2-bsf.
71264         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71265         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71266         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71267         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71268         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71269         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71270         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71271         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71272         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71273         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71274         * string/memrchr.c (MEMRCHR): New macro.
71275
71276 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71277
71278         Add integration with gcc's -ffinite-math-only and optimize wrapper
71279         functions in libm.
71280         * Versions.def: Define GLIBC_2.15 version for libm.
71281         * math/Makefile (headers): Add bits/math-finite.h.
71282         * math/bits/math-finite.h: New file.
71283         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71284         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71285         * math/e_acoshl.c: Add __*_finite alias.
71286         * math/e_acosl.c: Likewise.
71287         * math/e_asinl.c: Likewise.
71288         * math/e_atan2l.c: Likewise.
71289         * math/e_atanhl.c: Likewise.
71290         * math/e_coshl.c: Likewise.
71291         * math/e_exp10.c: Likewise.
71292         * math/e_exp10f.c: Likewise.
71293         * math/e_exp10l.c: Likewise.
71294         * math/e_exp2l.c: Likewise.
71295         * math/e_fmodl.c: Likewise.
71296         * math/e_gammal_r.c: Likewise.
71297         * math/e_hypotl.c: Likewise.
71298         * math/e_j0l.c: Likewise.
71299         * math/e_j1l.c: Likewise.
71300         * math/e_jnl.c: Likewise.
71301         * math/e_lgammal_r.c: Likewise.
71302         * math/e_log10l.c: Likewise.
71303         * math/e_log2l.c: Likewise.
71304         * math/e_logl.c: Likewise.
71305         * math/e_powl.c: Likewise.
71306         * math/e_sinhl.c: Likewise.
71307         * math/e_sqrtl.c: Likewise.
71308         * math/e_scalb.c: Completely rewritten and optimized.
71309         * math/e_scalbf.c: Likewise.
71310         * math/e_scalbl.c: Likewise.
71311         * math/w_acos.c: Likewise.
71312         * math/w_acosf.c: Likewise.
71313         * math/w_acosl.c: Likewise.
71314         * math/w_acosh.c: Likewise.
71315         * math/w_acoshf.c: Likewise.
71316         * math/w_acoshl.c: Likewise.
71317         * math/w_asin.c: Likewise.
71318         * math/w_asinf.c: Likewise.
71319         * math/w_asinl.c: Likewise.
71320         * math/w_atan2.c: Likewise.
71321         * math/w_atan2f.c: Likewise.
71322         * math/w_atan2l.c: Likewise.
71323         * math/w_atanh.c: Likewise.
71324         * math/w_atanhf.c: Likewise.
71325         * math/w_atanhl.c: Likewise.
71326         * math/w_exp10.c: Likewise.
71327         * math/w_exp10f.c: Likewise.
71328         * math/w_exp10l.c: Likewise.
71329         * math/w_fmod.c: Likewise.
71330         * math/w_fmodf.c: Likewise.
71331         * math/w_fmodl.c: Likewise.
71332         * math/w_j0.c: Likewise.
71333         * math/w_j0f.c: Likewise.
71334         * math/w_j0l.c: Likewise.
71335         * math/w_j1.c: Likewise.
71336         * math/w_j1f.c: Likewise.
71337         * math/w_j1l.c: Likewise.
71338         * math/w_jn.c: Likewise.
71339         * math/w_jnf.c: Likewise.
71340         * math/w_log.c: Likewise.
71341         * math/w_logf.c: Likewise.
71342         * math/w_logl.c: Likewise.
71343         * math/w_log10.c: Likewise.
71344         * math/w_log10f.c: Likewise.
71345         * math/w_log10l.c: Likewise.
71346         * math/w_log2.c: Likewise.
71347         * math/w_log2f.c: Likewise.
71348         * math/w_log2l.c: Likewise.
71349         * math/w_pow.c: Likewise.
71350         * math/w_powf.c: Likewise.
71351         * math/w_powl.c: Likewise.
71352         * math/w_remainder.c: Likewise.
71353         * math/w_remainderf.c: Likewise.
71354         * math/w_remainderl.c: Likewise.
71355         * math/w_scalb.c: Likewise.
71356         * math/w_scalbf.c: Likewise.
71357         * math/w_scalbl.c: Likewise.
71358         * math/w_sqrt.c: Likewise.
71359         * math/w_sqrtf.c: Likewise.
71360         * math/w_sqrtl.c: Likewise.
71361         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71362         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71363         used.
71364         * math/math_private.h: Declare __kernel_standard_f.
71365         * math/w_cosh.c: Remove cruft and optimize a bit.
71366         * math/w_coshf.c: Likewise.
71367         * math/w_coshl.c: Likewise.
71368         * math/w_exp2.c: Likewise.
71369         * math/w_exp2f.c: Likewise.
71370         * math/w_exp2l.c: Likewise.
71371         * math/w_hypot.c: Likewise.
71372         * math/w_hypotf.c: Likewise.
71373         * math/w_hypotl.c: Likewise.
71374         * math/w_lgamma.c: Likewise.
71375         * math/w_lgamma_r.c: Likewise.
71376         * math/w_lgammaf.c: Likewise.
71377         * math/w_lgammaf_r.c: Likewise.
71378         * math/w_lgammal.c: Likewise.
71379         * math/w_lgammal_r.c: Likewise.
71380         * math/w_sinh.c: Likewise.
71381         * math/w_sinhf.c: Likewise.
71382         * math/w_sinhl.c: Likewise.
71383         * math/w_tgamma.c: Likewise.
71384         * math/w_tgammaf.c: Likewise.
71385         * math/w_tgammal.c: Likewise.
71386         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71387         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71388         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71389         Minor optimizations.  Pretty printing.  Remove cruft.
71390         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71391         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71392         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71393         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71394         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71395         * sysdeps/i386/fpu/e_asin.S: Likewise.
71396         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71397         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71398         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71399         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71400         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71401         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71402         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71403         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71404         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71405         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71406         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71407         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71408         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71409         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71410         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71411         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71412         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71413         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71414         * sysdeps/i386/fpu/e_log.S: Likewise.
71415         * sysdeps/i386/fpu/e_log10.S: Likewise.
71416         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71417         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71418         * sysdeps/i386/fpu/e_log2.S: Likewise.
71419         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71420         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71421         * sysdeps/i386/fpu/e_logf.S: Likewise.
71422         * sysdeps/i386/fpu/e_logl.S: Likewise.
71423         * sysdeps/i386/fpu/e_pow.S: Likewise.
71424         * sysdeps/i386/fpu/e_powf.S: Likewise.
71425         * sysdeps/i386/fpu/e_powl.S: Likewise.
71426         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71427         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71428         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71429         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71430         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71431         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71432         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71433         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71434         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71435         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71436         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71437         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71438         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71439         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71440         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71441         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71442         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71443         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71444         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71445         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71446         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71447         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71448         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71449         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71450         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71451         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71452         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71453         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71454         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71455         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71456         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71457         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71458         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71459         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71460         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71461         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71462         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71463         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71464         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71465         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71466         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71467         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71468         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71469         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71470         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71471         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71472         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71473         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71474         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71475         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71476         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71477         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71478         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71479         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71480         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71481         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71482         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71483         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71484         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71485         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71486         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71487         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71488         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71489         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71490         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71491         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71492         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71493         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71494         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71495         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71496         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71497         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71498         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71499         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71500         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71501         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71502         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71503         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71504         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71505         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71506         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71507         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71508         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71509         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71510         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71511         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71512         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71513         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71514         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71515         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71516         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71517         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71518         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71519         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71520         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71521         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71522         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71523         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71524         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71525         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71526         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71527         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71528         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71529         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71530         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71531         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71532         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71533         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71534         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71535         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71536         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71537         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71538         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71539         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71540         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71541         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71542         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71543         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71544         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71545         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71546         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71547         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71548         (__isnanf): Likewise.
71549         (__isinf_ns): Likewise.
71550         (__isinf_nsf): Likewise.
71551         (__finite): Likewise.
71552         (__finitef): Likewise.
71553         (__ieee754_sqrt): Define as macro.
71554         (__ieee754_sqrtf): Define as macro.
71555         (__ieee754_sqrtl): Define as macro.
71556         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
71557         inlined copy.
71558         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
71559         __FINITE_MATH_ONLY__ consistent.
71560         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
71561
71562 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
71563
71564         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
71565         of rawmemchr.
71566
71567         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
71568
71569 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
71570
71571         * po/ja.po: Update from translation team.
71572
71573 2011-10-08  Roland McGrath  <roland@hack.frob.com>
71574
71575         * locale/programs/locarchive.c (prepare_address_space): New function.
71576         (create_archive, enlarge_archive, open_archive): Use it.
71577
71578         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
71579         inside [SHARED], where it is used.
71580
71581         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
71582
71583         * nss/getent.c (netgroup_keys): Remove unused variable.
71584         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
71585
71586 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
71587
71588         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
71589         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
71590         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
71591         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
71592         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
71593         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
71594         * math/Makefile (libm-calls): Add s_isinf_ns.
71595         * math/divtc3.c: Use __isinf_nsl instead of isinf.
71596         * math/multc3.c: Likewise.
71597         * math/s_casin.c: Likewise.
71598         * math/s_casinf.c: Likewise.
71599         * math/s_casinl.c: Likewise.
71600         * math/s_ccos.c: Likewise.
71601         * math/s_ccosf.c: Likewise.
71602         * math/s_ccosl.c: Likewise.
71603         * math/s_ctan.c: Likewise.
71604         * math/s_ctanf.c: Likewise.
71605         * math/s_ctanh.c: Likewise.
71606         * math/s_ctanhf.c: Likewise.
71607         * math/s_ctanhl.c: Likewise.
71608         * math/s_ctanl.c: Likewise.
71609         * math/w_fmod.c: Likewise.
71610         * math/w_fmodf.c: Likewise.
71611         * math/w_fmodl.c: Likewise.
71612         * math/w_remainder.c: Likewise.
71613         * math/w_remainderf.c: Likewise.
71614         * math/w_remainderl.c: Likewise.
71615         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
71616         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
71617         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
71618         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
71619         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
71620         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
71621         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
71622         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
71623
71624         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
71625         of the number.
71626         * stdio-common/printf_fphex.c: Likewise.
71627         * stdio-common/printf_size.c: Likewise.
71628
71629         * math/e_exp10.c: Include math_private.h using <...> not "...".
71630         * math/e_exp10f.c: Likewise.
71631         * math/e_exp10l.c: Likewise.
71632         * math/e_exp2l.c: Likewise.
71633         * math/e_j0l.c: Likewise.
71634         * math/e_j1l.c: Likewise.
71635         * math/e_jnl.c: Likewise.
71636         * math/e_lgammal_r.c: Likewise.
71637         * math/e_rem_pio2l.c: Likewise.
71638         * math/e_scalb.c: Likewise.
71639         * math/e_scalbf.c: Likewise.
71640         * math/e_scalbl.c: Likewise.
71641         * math/k_cosl.c: Likewise.
71642         * math/k_sinl.c: Likewise.
71643         * math/k_tanl.c: Likewise.
71644         * math/s_cacoshf.c: Likewise.
71645         * math/s_catan.c: Likewise.
71646         * math/s_catanf.c: Likewise.
71647         * math/s_catanh.c: Likewise.
71648         * math/s_catanhf.c: Likewise.
71649         * math/s_catanhl.c: Likewise.
71650         * math/s_catanl.c: Likewise.
71651         * math/s_ccosh.c: Likewise.
71652         * math/s_ccoshf.c: Likewise.
71653         * math/s_ccoshl.c: Likewise.
71654         * math/s_cexp.c: Likewise.
71655         * math/s_cexpf.c: Likewise.
71656         * math/s_cexpl.c: Likewise.
71657         * math/s_clog.c: Likewise.
71658         * math/s_clog10.c: Likewise.
71659         * math/s_clog10f.c: Likewise.
71660         * math/s_clog10l.c: Likewise.
71661         * math/s_clogf.c: Likewise.
71662         * math/s_clogl.c: Likewise.
71663         * math/s_csin.c: Likewise.
71664         * math/s_csinf.c: Likewise.
71665         * math/s_csinh.c: Likewise.
71666         * math/s_csinhf.c: Likewise.
71667         * math/s_csinhl.c: Likewise.
71668         * math/s_csinl.c: Likewise.
71669         * math/s_csqrt.c: Likewise.
71670         * math/s_csqrtf.c: Likewise.
71671         * math/s_csqrtl.c: Likewise.
71672         * math/s_ctan.c: Likewise.
71673         * math/s_ctanf.c: Likewise.
71674         * math/s_ctanh.c: Likewise.
71675         * math/s_ctanhf.c: Likewise.
71676         * math/s_ctanhl.c: Likewise.
71677         * math/s_ctanl.c: Likewise.
71678         * math/s_ldexp.c: Likewise.
71679         * math/s_ldexpf.c: Likewise.
71680         * math/s_ldexpl.c: Likewise.
71681         * math/s_significand.c: Likewise.
71682         * math/s_significandf.c: Likewise.
71683         * math/s_significandl.c: Likewise.
71684         * math/w_acos.c: Likewise.
71685         * math/w_acosf.c: Likewise.
71686         * math/w_acosh.c: Likewise.
71687         * math/w_acoshf.c: Likewise.
71688         * math/w_acoshl.c: Likewise.
71689         * math/w_acosl.c: Likewise.
71690         * math/w_asin.c: Likewise.
71691         * math/w_asinf.c: Likewise.
71692         * math/w_asinl.c: Likewise.
71693         * math/w_atan2.c: Likewise.
71694         * math/w_atan2f.c: Likewise.
71695         * math/w_atan2l.c: Likewise.
71696         * math/w_atanh.c: Likewise.
71697         * math/w_atanhf.c: Likewise.
71698         * math/w_atanhl.c: Likewise.
71699         * math/w_cosh.c: Likewise.
71700         * math/w_coshf.c: Likewise.
71701         * math/w_coshl.c: Likewise.
71702         * math/w_dremf.c: Likewise.
71703         * math/w_exp10.c: Likewise.
71704         * math/w_exp10f.c: Likewise.
71705         * math/w_exp10l.c: Likewise.
71706         * math/w_exp2.c: Likewise.
71707         * math/w_exp2f.c: Likewise.
71708         * math/w_fmod.c: Likewise.
71709         * math/w_fmodf.c: Likewise.
71710         * math/w_fmodl.c: Likewise.
71711         * math/w_hypot.c: Likewise.
71712         * math/w_hypotf.c: Likewise.
71713         * math/w_hypotl.c: Likewise.
71714         * math/w_j0.c: Likewise.
71715         * math/w_j0f.c: Likewise.
71716         * math/w_j0l.c: Likewise.
71717         * math/w_j1.c: Likewise.
71718         * math/w_j1f.c: Likewise.
71719         * math/w_j1l.c: Likewise.
71720         * math/w_jn.c: Likewise.
71721         * math/w_jnf.c: Likewise.
71722         * math/w_jnl.c: Likewise.
71723         * math/w_lgamma.c: Likewise.
71724         * math/w_lgamma_r.c: Likewise.
71725         * math/w_lgammaf.c: Likewise.
71726         * math/w_lgammaf_r.c: Likewise.
71727         * math/w_lgammal.c: Likewise.
71728         * math/w_lgammal_r.c: Likewise.
71729         * math/w_log.c: Likewise.
71730         * math/w_log10.c: Likewise.
71731         * math/w_log10f.c: Likewise.
71732         * math/w_log10l.c: Likewise.
71733         * math/w_log2.c: Likewise.
71734         * math/w_log2f.c: Likewise.
71735         * math/w_log2l.c: Likewise.
71736         * math/w_logf.c: Likewise.
71737         * math/w_logl.c: Likewise.
71738         * math/w_pow.c: Likewise.
71739         * math/w_powf.c: Likewise.
71740         * math/w_powl.c: Likewise.
71741         * math/w_remainder.c: Likewise.
71742         * math/w_remainderf.c: Likewise.
71743         * math/w_remainderl.c: Likewise.
71744         * math/w_scalb.c: Likewise.
71745         * math/w_scalbf.c: Likewise.
71746         * math/w_scalbl.c: Likewise.
71747         * math/w_sinh.c: Likewise.
71748         * math/w_sinhf.c: Likewise.
71749         * math/w_sinhl.c: Likewise.
71750         * math/w_sqrt.c: Likewise.
71751         * math/w_sqrtf.c: Likewise.
71752         * math/w_sqrtl.c: Likewise.
71753         * math/w_tgamma.c: Likewise.
71754         * math/w_tgammaf.c: Likewise.
71755         * math/w_tgammal.c: Likewise.
71756
71757         * po/ja.po: Update from translation team.
71758
71759 2011-09-29  Andreas Jaeger  <aj@suse.de>
71760
71761         [BZ #13179]
71762         * sunrpc/netname.c (netname2host): Fix logic.
71763
71764         [BZ #6779]
71765         [BZ #6783]
71766         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
71767         correctly.
71768         * math/w_remainder.c (__remainder): Likewise.
71769         * math/w_remainderf.c (__remainderf): Likewise.
71770         * math/libm-test.inc (remainder_test): Add test cases.
71771
71772 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71773
71774         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
71775         sdiv_qrnnd.
71776
71777 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71778
71779         * string/test-memcmp.c: Avoid unncessary #defines.
71780         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71781
71782 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71783
71784         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
71785         Use new sse2 version for core i3 - i7 as it's faster
71786         than sse42 version.
71787         (bit_Prefer_PMINUB_for_stringop): New.
71788         * sysdeps/x86_64/rawmemchr.S: Update.
71789         Replace with faster SSE2 version.
71790         * sysdeps/x86_64/memrchr.S: New file.
71791         * sysdeps/x86_64/memchr.S: Update.
71792         Replace with faster SSE2 version.
71793
71794 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
71795
71796         * elf/dl-load.c (lose): Add cast to avoid warning.
71797
71798 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71799
71800         * po/ca.po: Update from translation team.
71801
71802         * inet/getnetgrent_r.c: Hook up nscd.
71803         * nscd/Makefile (routines): Add nscd_netgroup.
71804         (nscd-modules): Add netgroupcache.
71805         (CFLAGS-netgroupcache.c): Define.
71806         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
71807         (cache_search): Add const to second parameter.
71808         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
71809         INNETGR.
71810         (dbs): Add netgrdb entry.
71811         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
71812         (verify_persistent_db): Handle netgrdb.
71813         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
71814         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
71815         GETFDNETGR.
71816         (netgroup_response_header): Define.
71817         (innetgroup_response_header): Define.
71818         (datahead): Add netgroup_response_header and innetgroup_response_header
71819         elements.
71820         * nscd/nscd.conf: Add entries for netgroup cache.
71821         * nscd/nscd.h (dbtype): Add netgrdb.
71822         (_PATH_NSCD_NETGROUP_DB): Define.
71823         (netgroup_iov_disabled): Declare.
71824         (xmalloc, xcalloc, xrealloc): Move declarations here.
71825         (cache_search): Adjust prototype.
71826         Add netgroup-related prototypes.
71827         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
71828         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
71829         (__nscd_innetgr): Declare.
71830         * nscd/selinux.c (perms): Use access_vector_t as element type and
71831         add netgroup-related initializers.
71832         * nscd/netgroupcache.c: New file.
71833         * nscd/nscd_netgroup.c: New file.
71834         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
71835         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
71836         For four parameters use innetgr.
71837         * nss/nss_files/files-init.c: Add definition and callback for netgr.
71838         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
71839         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
71840         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
71841
71842         * nscd/connections.c (register_traced_file): Don't register file
71843         for disabled databases.
71844
71845 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
71846
71847         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
71848
71849         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
71850         from tree and freeing node.
71851
71852 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
71853
71854         * nss/nsswitch.c (__nss_database_lookup): Handle
71855         nss_parse_service_list out of memory case.
71856
71857 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
71858
71859         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
71860         out of memory case.
71861
71862 2011-10-04  Andreas Schwab  <schwab@redhat.com>
71863
71864         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
71865         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
71866         pass it down.
71867         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
71868         elf_machine_rela, elf_machine_lazy_rel.
71869         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
71870         (ELF_DYNAMIC_DO_REL): Likewise.
71871         (ELF_DYNAMIC_DO_RELA): Likewise.
71872         (ELF_DYNAMIC_RELOCATE): Likewise.
71873         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
71874         to ELF_DYNAMIC_DO_REL.
71875         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
71876         (dl_main): In trace mode always set __RTLD_NOIFUNC.
71877         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
71878         elf_machine_rela.
71879         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
71880         skip_ifunc, don't call ifunc function if non-zero.
71881         (elf_machine_rela): Likewise.
71882         (elf_machine_lazy_rel): Likewise.
71883         (elf_machine_lazy_rela): Likewise.
71884         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
71885         (elf_machine_lazy_rel): Likewise.
71886         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
71887         Likewise.
71888         (elf_machine_lazy_rel): Likewise.
71889         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
71890         Likewise.
71891         (elf_machine_lazy_rel): Likewise.
71892         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
71893         (elf_machine_lazy_rel): Likewise.
71894         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
71895         (elf_machine_lazy_rel): Likewise.
71896         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
71897         (elf_machine_lazy_rel): Likewise.
71898         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
71899         (elf_machine_lazy_rel): Likewise.
71900         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
71901         (elf_machine_lazy_rel): Likewise.
71902         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
71903         (elf_machine_lazy_rel): Likewise.
71904
71905 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
71906
71907         * nss/nss_files/files-init.c (_nss_files_init): Use static
71908         initialization for all the *_traced_file variables.
71909
71910 2011-09-28  Andreas Schwab  <schwab@redhat.com>
71911
71912         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71913
71914 2011-09-27  Roland McGrath  <roland@hack.frob.com>
71915
71916         [BZ #13226]
71917         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
71918
71919 2011-09-27  Andreas Schwab  <schwab@redhat.com>
71920
71921         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71922         Reread the line before reparsing it.
71923
71924 2011-09-26  Andreas Schwab  <schwab@redhat.com>
71925
71926         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
71927
71928 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
71929             Maxim Kuvyrkov  <maxim@codesourcery.com>
71930             Joseph Myers  <joseph@codesourcery.com>
71931
71932         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
71933         if needed for __stack_chk_guard.
71934
71935 2011-09-19  Roland McGrath  <roland@hack.frob.com>
71936
71937         * sysdeps/posix/spawni.c (script_execute): Always define it.
71938         It will be optimized away if unused.
71939         (maybe_script_execute): New function.
71940         (__spawni): Call it.
71941
71942         * Makerules: Don't include tls.make.
71943         (config-tls): Always set to thread.
71944         * tls.make.c: File removed.
71945
71946 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
71947
71948         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
71949         * config.make.in (CPPFLAGS-config): New substituted variable.
71950
71951 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
71952
71953         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
71954
71955         [BZ #13192]
71956         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
71957         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
71958
71959 2011-09-15  Roland McGrath  <roland@hack.frob.com>
71960
71961         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
71962         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
71963         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
71964         (CALL_FAIL): Likewise.
71965         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
71966         (CALL_FAIL): Macro removed.
71967         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
71968
71969 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
71970
71971         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
71972         for __FINITE_MATH_ONLY__ == 1.
71973
71974 2011-09-15  Andreas Schwab  <schwab@redhat.com>
71975
71976         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
71977         __ieee754_sqrt instead of sqrt.
71978         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
71979         __ieee754_sqrtf instead of sqrtf.
71980         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
71981         __floorf instead of floorf.
71982         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
71983         __floorf, __truncf instead of floorf, truncf.
71984
71985 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
71986
71987         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
71988
71989         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
71990         __extern_always_inline.
71991         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
71992         32-bit.
71993
71994 2011-09-14  Andreas Schwab  <schwab@redhat.com>
71995
71996         * elf/rtld.c (dl_main): Also relocate in dependency order when
71997         doing symbol dependency testing.
71998
71999 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72000
72001         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72002         Always define `refsym'.
72003
72004 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72005
72006         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72007         (__FD_ELT): Renamed from __FDELT.
72008         * misc/bits/select2.h (__FD_ELT): Likewise.
72009         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72010         __FD_MASK instead of __FDELT, __FDMASK.
72011         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72012         Likewise.
72013         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72014         Likewise.
72015
72016         * elf/Makefile (gen-ldd): Fix pattern.
72017
72018         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72019         (init_tls): Likewise.
72020
72021 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72022
72023         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72024
72025 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72026
72027         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72028         `struct cmsghdr *' instead of `void *'.
72029         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72030         Likewise.
72031
72032 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72033
72034         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72035         if non-absolute.
72036         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72037         ldd_rewrite_script.
72038
72039 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72040
72041         * configure.in: Remove --with-tls option.
72042         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72043         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72044         out in case it is missing.
72045         * sysdeps/ia64/elf/configure.in: Likewise.
72046         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72047         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72048         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72049         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72050         * sysdeps/sh/elf/configure.in: Likewise.
72051         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72052         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72053         * sysdeps/x86_64/elf/configure.in: Likewise.
72054         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72055         * sysdeps/mach/hurd/tls.h: Likewise.
72056
72057         [BZ #13067]
72058         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72059
72060         [BZ #13090]
72061         * configure.in: Fix use of AC_INIT.
72062
72063         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72064
72065 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72066
72067         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72068         __set_errno.
72069         * malloc/hooks.c: Likewise.
72070
72071         [BZ #11929]
72072         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72073         variables statically.
72074         (narenas): Initialize.
72075         (list_lock): Initialize.
72076         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72077         initializtion of main_arena and list_lock.  Small cleanups.
72078         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72079         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72080         Add initializers to main_arena and mp_.
72081         (malloc_state): Remove pagesize member.  Change all users to use
72082         GLRO(dl_pagesize).
72083
72084         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72085         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72086         is always initialized.
72087
72088         * malloc/malloc.c: Removed unused configurations and dead code.
72089         * malloc/arena.c: Likewise.
72090         * malloc/hooks.c: Likewise.
72091         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72092
72093         * include/tls.h: Removed.  USE___THREAD must always be defined.
72094         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72095         * elf/dl-libc.c: Likewise.
72096         * elf/dl-tsd.c: Likewise.
72097         * include/errno.h: Likewise.
72098         * include/netdb.h: Likewise.
72099         * include/resolv.h: Likewise.
72100         * inet/herrno-loc.c: Likewise.
72101         * inet/herrno.c: Likewise.
72102         * malloc/arena.c: Likewise.
72103         * malloc/hooks.c: Likewise.
72104         * malloc/malloc.c: Likewise.
72105         * resolv/res-state.c: Likewise.
72106         * resolv/res_libc.c: Likewise.
72107         * sysdeps/i386/dl-machine.h: Likewise.
72108         * sysdeps/ia64/dl-machine.h: Likewise.
72109         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72110         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72111         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72112         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72113         * sysdeps/sh/dl-machine.h: Likewise.
72114         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72115         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72116         * sysdeps/unix/i386/sysdep.S: Likewise.
72117         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72118         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72119         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72120         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72121         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72122         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72123         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72124         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72125         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72126         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72127         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72128         * sysdeps/x86_64/dl-machine.h: Likewise.
72129         * tls.make.c: Likewise.
72130
72131         * configure.in: Remove --with-__thread option.  Make tests for
72132         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72133         tls_model attribute fail if no support is available.  Remove
72134         USE_IN_LIBIO.
72135         * Makeconfig: Adjust for dropped configure option.  All features are
72136         now mandatory.
72137         * Makerules: Likewise.
72138         * Versions.def: Likewise.
72139         * argp/argp-fmtstream.c: Likewise.
72140         * argp/argp-fmtstream.h: Likewise.
72141         * argp/argp-help.c: Likewise.
72142         * assert/assert.c: Likewise.
72143         * config.h.in: Likewise.
72144         * config.make.in: Likewise.
72145         * configure: Likewise.
72146         * configure.in: Likewise.
72147         * csu/Versions: Likewise.
72148         * csu/init.c: Likewise.
72149         * elf/tst-audit2.c: Likewise.
72150         * elf/tst-tls10.c: Likewise.
72151         * elf/tst-tls10.h: Likewise.
72152         * elf/tst-tls11.c: Likewise.
72153         * elf/tst-tls12.c: Likewise.
72154         * elf/tst-tls14.c: Likewise.
72155         * elf/tst-tlsmod11.c: Likewise.
72156         * elf/tst-tlsmod12.c: Likewise.
72157         * elf/tst-tlsmod13.c: Likewise.
72158         * elf/tst-tlsmod13a.c: Likewise.
72159         * elf/tst-tlsmod14a.c: Likewise.
72160         * elf/tst-tlsmod15b.c: Likewise.
72161         * elf/tst-tlsmod16a.c: Likewise.
72162         * elf/tst-tlsmod16b.c: Likewise.
72163         * elf/tst-tlsmod7.c: Likewise.
72164         * elf/tst-tlsmod8.c: Likewise.
72165         * elf/tst-tlsmod9.c: Likewise.
72166         * gmon/gmon.c: Likewise.
72167         * grp/fgetgrent_r.c: Likewise.
72168         * grp/putgrent.c: Likewise.
72169         * hurd/fopenport.c: Likewise.
72170         * include/libc-symbols.h: Likewise.
72171         * include/tls.h: Likewise.
72172         * intl/gettextP.h: Likewise.
72173         * intl/loadinfo.h: Likewise.
72174         * locale/global-locale.c: Likewise.
72175         * locale/localeinfo.h: Likewise.
72176         * mach/devstream.c: Likewise.
72177         * malloc/arena.c: Likewise.
72178         * malloc/set-freeres.c: Likewise.
72179         * misc/err.c: Likewise.
72180         * misc/getttyent.c: Likewise.
72181         * misc/mntent_r.c: Likewise.
72182         * posix/getopt.c: Likewise.
72183         * posix/wordexp.c: Likewise.
72184         * pwd/fgetpwent_r.c: Likewise.
72185         * resolv/Versions: Likewise.
72186         * resolv/res_hconf.c: Likewise.
72187         * shadow/fgetspent_r.c: Likewise.
72188         * shadow/putspent.c: Likewise.
72189         * stdio-common/printf_fphex.c: Likewise.
72190         * stdio-common/tmpfile.c: Likewise.
72191         * stdlib/abort.c: Likewise.
72192         * stdlib/fmtmsg.c: Likewise.
72193         * sunrpc/auth_unix.c: Likewise.
72194         * sunrpc/clnt_perr.c: Likewise.
72195         * sunrpc/clnt_tcp.c: Likewise.
72196         * sunrpc/clnt_udp.c: Likewise.
72197         * sunrpc/clnt_unix.c: Likewise.
72198         * sunrpc/openchild.c: Likewise.
72199         * sunrpc/svc_simple.c: Likewise.
72200         * sunrpc/svc_tcp.c: Likewise.
72201         * sunrpc/svc_udp.c: Likewise.
72202         * sunrpc/svc_unix.c: Likewise.
72203         * sunrpc/xdr.c: Likewise.
72204         * sunrpc/xdr_array.c: Likewise.
72205         * sunrpc/xdr_rec.c: Likewise.
72206         * sunrpc/xdr_ref.c: Likewise.
72207         * sunrpc/xdr_stdio.c: Likewise.
72208
72209 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72210
72211         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72212
72213 2011-07-03  Andreas Jaeger  <aj@suse.de>
72214
72215         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72216         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72217         regenerate with gen-libm-tests.pl.
72218
72219 2010-05-12  Petr Baudis  <pasky@suse.cz>
72220
72221         [BZ #11589]
72222         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72223         around j0() zero points by switching to j1().
72224         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72225         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72226         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72227         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72228
72229 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72230
72231         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72232         instead of 0.
72233         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72234         instead of 0.
72235         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72236         Patch in part by Pavel Roskin <proski@gnu.org>.
72237
72238         [BZ #13138]
72239         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72240         realloc.
72241         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72242         Free memory block if necessary.
72243
72244         [BZ #12847]
72245         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72246         be NULL.  Don't lock in this case.
72247
72248 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72249
72250         * elf/elf.h (ELFOSABI_GNU): New macro.
72251         (ELFOSABI_LINUX): Define to that.
72252
72253 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72254
72255         * string/strncat.c (strncat): Undef the symbol in case it has been
72256         defined in bits/string.h.
72257
72258 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72259
72260         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72261
72262         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72263         link map.
72264
72265 2011-08-17  Andreas Jaeger  <aj@suse.de>
72266
72267         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72268
72269 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72270             Ian Lance Taylor  <iant@google.com>
72271
72272         * math/libm-test.inc (lround_test): New testcase.
72273         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72274
72275 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72276
72277         * Makefile: Remove support for automatic cvs check-ins.
72278         * Makerules: Likewise.
72279         * config.make.in: Likewise.
72280         * configure.in: Likewise.
72281         * intl/Makefile: Likewise.
72282         * locale/Makefile: Likewise.
72283         * po/Makefile: Likewise.
72284         * posix/Makefile: Likewise.
72285         * sysdeps/gnu/Makefile: Likewise.
72286         * sysdeps/mach/hurd/Makefile: Likewise.
72287         * sysdeps/sparc/sparc32/Makefile: Likewise.
72288
72289         [BZ #13118]
72290         * posix/Makefile (bug-regex32-ENV): Define.
72291         Patch by John Stanley <jpsinthemix@verizon.net>.
72292
72293         * misc/Makefile (headers): Add bits/select2.h.
72294         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72295         * misc/bits/select2.h: New file.
72296         * include/bits/select2.h: New file.
72297         * debug/Makefile (routines): Add fdelt_chk.
72298         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72299         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72300         FD_ISSET.
72301         * debug/fdelt_chk.c: New file.
72302
72303         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72304         * wcsmbs/test-wmemcmp.c: Likewise.
72305         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72306         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72307
72308 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72309
72310         * string/Makefile (strop-tests): Add memcmp.
72311         * string/test-wmemcmp.c: New file.
72312         * string/test-memcmp.c: Add wmemcmp support.
72313
72314 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72315
72316         [BZ #13153]
72317         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72318         2011-07-19 change.
72319
72320         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72321         garbage value in a __mach_port_mod_refs call in the cases of the
72322         task-self and thread-self ports.
72323
72324 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72325
72326         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72327
72328 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72329
72330         * elf/dl-load.c (lose): Check for non-null L.
72331
72332 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72333
72334         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72335
72336         * elf/dl-libc.c (dlerror_run): Pass back error code from
72337         dl_catch_error.
72338
72339         [BZ #13123]
72340         * elf/dl-load.c (lose): Free l_origin if it is valid.
72341
72342         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72343         names.
72344         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72345         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72346         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72347         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72348         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72349         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72350
72351 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72352
72353         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72354         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72355         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72356         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72357         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72358         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72359         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72360         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72361         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72362         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72363
72364 2011-08-15  Alan Modra  <amodra@gmail.com>
72365
72366         [BZ #13092]
72367         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72368         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72369         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72370         ppc_mcount to static-only-routines.
72371         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72372         __mcount_internal.
72373         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72374         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72375
72376 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72377
72378         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72379         for finite and infinity parameters.
72380
72381 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72382
72383         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72384         and add nop instructions for throughput optimization.
72385         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72386
72387 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72388
72389         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72390         aligned copy for power7 with vector-scalar instructions.
72391         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72392
72393 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72394
72395         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72396         AVX check.
72397
72398 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72399
72400         [BZ #13144]
72401         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72402         last change.
72403
72404 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72405
72406         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72407         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72408         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72409         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72410         clock_gettime.
72411
72412 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72413
72414         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72415         Forgot to demangle the pointer.
72416
72417         * sysdeps/i386/sysdep.h: Define atom_text_section.
72418         * sysdeps/x86_64/sysdep.h: Likewise.
72419         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72420         section with atom_text_section.
72421         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72422         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72423         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72424         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72425         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72426
72427         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72428         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72429         already be defined.  Change to take two parameters and don't assign
72430         result to variable.  Adjust all users.
72431         Define INTERNAL_GETTIME if not already defined.
72432         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72433         call.
72434         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72435         HAVE_CLOCK_GETTIME_VSYSCALL.
72436         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72437
72438         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72439         gettimeofday vsyscall, just use time.
72440
72441 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72442
72443         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72444         <errno.h>.
72445
72446 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72447
72448         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72449         syscall on x86-64.
72450         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72451         syscall.
72452         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72453         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72454         syscall if possible.
72455
72456 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72457
72458         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72459         e_ident.  Don't pass to find_mapsXX.
72460         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72461
72462 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72463
72464         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72465         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72466         * sysdeps/x86_64/multiarch/strchr.S: Update.
72467         Check bit_slow_BSF bit.
72468         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72469         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72470         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72471
72472 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72473
72474         [BZ #13134]
72475         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72476         before glibc 2.15.
72477         (tryshell): Define.
72478         (__spawni): Change last parameter to be flag.  Test
72479         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72480         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72481         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72482         * posix/spawni.c: Likewise.
72483         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72484         * posix/spawnp.c: Likewise.  Change normal version to use
72485         SPAWN_XFLAGS_USE_PATH.
72486         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72487         SPAWN_XFLAGS_TRY_SHELL.
72488
72489         [BZ #13150]
72490         * posix/glob.h: Remove gcc 1.x support.
72491
72492         [BZ #13068]
72493         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72494
72495 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72496
72497         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72498         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72499         strrchr-sse2-bsf
72500         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72501         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72502         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72503         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72504         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72505         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72506
72507 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72508
72509         * sysdeps/x86_64/wcscmp.S: New file.
72510
72511         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72512         wcscmp-c wcscmp-sse2
72513         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72514         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72515         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72516         * wcsmbs/wcscmp.c: Allow renaming.
72517
72518 2011-09-05  David S. Miller  <davem@davemloft.net>
72519
72520         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72521         stack slot, rather than the struct return pointer slot.
72522         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72523         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72525         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72526
72527 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72528
72529         * po/ja.po: Update from translation team.
72530
72531         [BZ #13144]
72532         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72533         kernel in 64-bit binaries.
72534
72535 2011-09-01  David S. Miller  <davem@davemloft.net>
72536
72537         * elf/elf.h (HWCAP_SPARC_*): Move to..
72538         * sysdeps/sparc/sysdep.h: this new file and add new values.
72539         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72540         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72541         _DL_HWCAP_COUNT to 24.
72542         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72543         entries.
72544         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72545         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72546         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72547         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72548         instead of magic constants.
72549         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72550
72551 2011-08-31  David S. Miller  <davem@davemloft.net>
72552
72553         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
72554         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
72555         Reimplement to do errno handling inline.
72556         (SYSCALL_ERROR_HANDLER): New macro.
72557         (__SYSCALL_STRING): Do not do errno handling in asm.
72558         (__CLONE_SYSCALL_STRING): Delete.
72559         (__INTERNAL_SYSCALL_STRING): Delete.
72560         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
72561         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
72562         (PSEUDO): Reimplement to do errno handling inline.
72563         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
72564         (SYSCALL_ERROR_HANDLER): New macro.
72565         (__SYSCALL_STRING): Do not do errno handling in asm.
72566         (__CLONE_SYSCALL_STRING): Delete.
72567         (__INTERNAL_SYSCALL_STRING): Delete.
72568         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
72569         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
72570         i386.
72571         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
72572         (inline_syscall*): Add 'err' argument.
72573         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
72574         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
72575         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
72576         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
72577
72578         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
72579         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
72580
72581 2011-08-30  Andreas Schwab  <schwab@redhat.com>
72582
72583         * elf/rtld.c (dl_main): Relocate objects in dependency order.
72584
72585 2011-08-29  Jiri Olsa <jolsa@redhat.com>
72586
72587         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
72588         directive.
72589
72590 2011-08-24  David S. Miller  <davem@davemloft.net>
72591
72592         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
72593
72594 2011-08-24  Andreas Schwab  <schwab@redhat.com>
72595
72596         * elf/Makefile: Add rules to build and run unload8 test.
72597         * elf/unload8.c: New file.
72598         * elf/unload8mod1.c: New file.
72599         * elf/unload8mod1x.c: New file.
72600         * elf/unload8mod2.c: New file.
72601         * elf/unload8mod3.c: New file.
72602
72603         * elf/dl-close.c (_dl_close_worker): Reset private search list if
72604         it wasn't used.
72605
72606 2011-08-23  David S. Miller  <davem@davemloft.net>
72607
72608         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
72609         subtract stack bias.
72610         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
72611         %sp not %fp in calculations.
72612         (_JMPBUF_UNWINDS_ADJ): Likewise.
72613
72614         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
72615         (aio_suspend): Call it to force an exception region around the
72616         AIO_MISC_WAIT() invocation.
72617
72618 2011-08-23  Andreas Schwab  <schwab@redhat.com>
72619
72620         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
72621         backslash.
72622
72623 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
72624
72625         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
72626         protection macro.
72627         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
72628         and <dl-machine.h>.
72629         (Elf64_FuncDesc): Remove.
72630
72631 2011-08-22  David S. Miller  <davem@davemloft.net>
72632
72633         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
72634         sigaltstack check, add missing cfi directives.
72635         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
72636         missing cfi directives, and sigaltstack handling.
72637
72638 2011-08-16  Andreas Schwab  <schwab@redhat.com>
72639
72640         [BZ #11724]
72641         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
72642         object is seen twice.
72643         * elf/dl-fini.c (_dl_sort_fini): Likewise.
72644
72645         * elf/Makefile (distribute): Add tst-initorder2.c.
72646         (tests): Add tst-initorder2.
72647         (modules-names): Add tst-initorder2a tst-initorder2b
72648         tst-initorder2c tst-initorder2d.  Add rules to build them.
72649         ($(objpfx)tst-initorder2.out): New rule.
72650         * elf/tst-initorder2.c: New file.
72651         * elf/tst-initorder2.exp: New file.
72652
72653 2011-08-22  Andreas Schwab  <schwab@redhat.com>
72654
72655         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
72656
72657         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
72658         dependencies back to end of function.
72659
72660         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
72661         $(elfobjdir)/ld.so.
72662
72663 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
72664
72665         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
72666         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
72667         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
72668         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
72669         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
72670         of __vdso_gettimeofday.
72671         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
72672         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
72673         attribute_hidden.
72674         (_libc_vdso_platform_setup): Remove initialization of
72675         __vdso_gettimeofday and __vdso_time.
72676
72677 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72678
72679         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
72680         and fgetc_unlocked.
72681         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
72682         getc_unlocked.
72683
72684         * elf/dl-open.c (add_to_global): Report additions to the global scope
72685         for LD_DEBUG=scopes.
72686         (dl_open_worker): Also print scope of newly loaded dependencies.
72687         (_dl_show_scope): Indicate if there is no scope.
72688
72689         [BZ #13114]
72690         * stdio-common/Makefile (tests): Add bug24.
72691         * stdio-common/bug24.c: New file.
72692
72693 2011-08-19  Andreas Jaeger  <aj@suse.de>
72694
72695         [BZ #13114]
72696         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
72697         non-existant file when using close-on-exec mode.
72698
72699 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72700
72701         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
72702         the very first instruction.
72703
72704         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
72705         the CFI state in the end.
72706         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
72707         inclusion of dl-trampoline.h.
72708         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
72709
72710 2011-08-19  Andreas Schwab  <schwab@redhat.com>
72711
72712         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
72713         expectations for long double.
72714
72715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
72716         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
72717
72718 2011-08-14  David S. Miller  <davem@davemloft.net>
72719
72720         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
72721         artificual limit depends upon the system page size.
72722
72723 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72724
72725         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
72726         * resolv/Makefile: Define CFLAGS-libresolv.
72727
72728 2011-08-17  Andreas Schwab  <schwab@redhat.com>
72729
72730         * nss/makedb.c (compute_tables): Make variables used in nested
72731         function static.
72732
72733 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72734
72735         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
72736         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
72737         if buffer was too small.
72738
72739         * elf/pldd.c (main): Attach to all threads in the process.
72740         Rewrite /proc handling to use *at functions.
72741
72742 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
72743
72744         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
72745         specifies first scope to show.
72746         (dl_open_worker): Update callers.  Move printing scope of new
72747         object to before the relocation.
72748         * elf/rtld.c (dl_main): Update _dl_show_scope call.
72749         * sysdeps/generic/ldsodefs.h: Update declaration.
72750
72751         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
72752         string for the scope number.
72753
72754 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
72755
72756         * nscd/servicescache.c (cache_addserv): Make sure written is always
72757         initialized.
72758
72759 2011-08-14  Roland McGrath  <roland@hack.frob.com>
72760
72761         * sysdeps/i386/i486/bits/atomic.h
72762         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
72763         statement expression, so as to suppress "set but not used" warning.
72764         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
72765
72766         * string/strncat.c (STRNCAT): Use prototype definition.
72767
72768         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
72769         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
72770         -Iprograms here.
72771         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
72772         (localedef-modules): Add localedef.
72773         (locale-modules): Add locale.
72774
72775         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
72776         * elf/rtld.c (dl_main): Invert order of assignment in last change,
72777         to avoid a warning.
72778
72779 2011-08-14  David S. Miller  <davem@davemloft.net>
72780
72781         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
72782         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
72783
72784 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
72785
72786         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
72787         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
72788         * elf/rtld.c (dl_main): Set l_name of vDSO.
72789         Call _dl_show_scope when DL_DEBUG_SCOPES.
72790         (process_dl_debug): Recognize scopes flag and also set it for all.
72791         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
72792         Declare _dl_show_scope.
72793
72794         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
72795         (do_dlopen): Pass caller_dlopen to dl_open.
72796         (__libc_dlopen_mode): Initialize caller_dlopen.
72797
72798         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
72799         of libc.  Make tolower call locale-independent.  Optimize a bit by
72800         using isdigit instead of isalnum.
72801         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
72802
72803 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
72804
72805         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
72806         was a dependency or dynamically loaded.
72807
72808 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
72809
72810         * intl/l10nflist.c: Allow architecture-specific pop function.
72811         * sysdeps/x86_64/l10nflist.c: New file.
72812
72813         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
72814         classification.
72815
72816 2011-08-10  Andreas Schwab  <schwab@redhat.com>
72817
72818         * include/dirent.h: Add libc_hidden_proto for scandirat and
72819         scandirat64.  Don't declare __scandirat64.
72820         * dirent/scandirat.c: Add libc_hidden_def.
72821         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
72822         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
72823
72824 2011-08-10  David S. Miller  <davem@davemloft.net>
72825
72826         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
72827         enum.
72828         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
72829         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
72830         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
72831
72832 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
72833
72834         * Versions.def [libc]: Add GLIBC_2.15.
72835         * dirent/Makefile (routines): Add scandirat and scandirat64.
72836         * dirent/Versions [libc]: Export scandirat and scandirat64 for
72837         GLIBC_2.15.
72838         * dirent/dirent.h: Declare scandirat and scandirat64.
72839         * dirent/scandirat.c: New file.
72840         * dirent/scandirat64.c: New file.
72841         * sysdeps/wordsize-64/scandirat.c: New file.
72842         * sysdeps/wordsize-64/scandirat64.c: New file.
72843         * dirent/opendir.c: Define opendirat.
72844         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
72845         using scandirat.
72846         * dirent/scandir64.c: Adjust for scandir.c change.
72847         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
72848         __scandirat64, and __scandir_cancel_handler.
72849         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
72850         additional parameter and use openat instead of open (outside of ld.so).
72851         Add new __opendir as wrapper around __opendirat.
72852         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
72853         here without requiring old scandirat implementation.
72854
72855 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
72856
72857         * dirent/scandir.c (cancel_handler): Renamed to
72858         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
72859         defined.  Adjust users.
72860         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
72861         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
72862
72863 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
72864
72865         * string/test-string.h (IMPL): Use __STRING to expand name and then
72866         stringify it.
72867
72868         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
72869         of cleanups.
72870
72871 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72872
72873         * string/Makefile: Update.
72874         (strop-tests): Append strncat.
72875         * string/test-wcscmp.c: New file.
72876         New comprehensive test for wcscmp.
72877         * string/test-strcmp.c: Update.
72878         (WIDE): New define.
72879
72880 2011-07-22  Andreas Schwab  <schwab@redhat.com>
72881
72882         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
72883         line.
72884
72885 2011-07-26  Andreas Schwab  <schwab@redhat.com>
72886
72887         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
72888         encoding to ACE if AI_IDN.
72889
72890 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
72891
72892         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
72893         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
72894
72895 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72896
72897         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
72898         Fix overflow bug in strncat.
72899         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
72900
72901         * string/test-strncat.c: Update.
72902         Add new tests for checking overflow bugs.
72903
72904 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72905
72906         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72907         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
72908         * sysdeps/i386/i686/multiarch/strcat.S: New file.
72909         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
72910         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
72911         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
72912         * sysdeps/i386/i686/multiarch/strncat.S: New file.
72913         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
72914         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
72915
72916         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
72917         (USE_AS_STRCAT): Define.
72918         Add strcat and strncat support.
72919         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72920
72921 2011-07-25  Andreas Schwab  <schwab@redhat.com>
72922
72923         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
72924         __n bigger than INT_MAX+1.
72925         (__strncmp_g): Likewise.
72926
72927 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
72928
72929         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
72930         * libio/stido.h: Likewise.
72931
72932         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
72933         (AF_NFC): Define.
72934         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
72935         (AF_NFC): Define.
72936
72937         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
72938         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
72939         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
72940         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
72941         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
72942
72943         [BZ #13021]
72944         * scripts/test-installation.pl: Don't expect libnss_test1 to be
72945         installed.
72946
72947         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
72948         typo.
72949         (_dl_x86_64_save_sse): Likewise.
72950
72951 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
72952
72953         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
72954         OSXSAVE.
72955         (_dl_x86_64_save_sse): Likewise.
72956
72957         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
72958
72959         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
72960
72961 2011-07-21  Andreas Schwab  <schwab@redhat.com>
72962
72963         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
72964         change.
72965         (_dl_x86_64_save_sse): Use correct AVX check.
72966
72967 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72968
72969         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
72970         bug in strncpy/strncat.
72971         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
72972
72973 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
72974
72975         * string/tester.c (test_strcat): Add tests for different alignments
72976         of source and destination.
72977         (test_strncat): Likewise.
72978
72979 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
72980
72981         [BZ #12852]
72982         * posix/glob.c (glob): Check passed in values before using them in
72983         expressions to avoid some overflows.
72984         (glob_in_dir): Likewise.
72985
72986         [BZ #13007]
72987         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
72988         check for AVX enablement so that we don't crash with old kernels and
72989         new hardware.
72990         * elf/tst-audit4.c: Add same checks here.
72991         * elf/tst-audit6.c: Likewise.
72992
72993         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
72994
72995 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
72996
72997         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
72998
72999 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73000
73001         * po/cs.po: Update from translation team.
73002         * po/bg.po: Likewise.
73003
73004 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73005
73006         * misc/sys/cdefs.h: Add support for const attribute.
73007         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73008         to gnu_dev_{major,minor,makedev} functions.
73009
73010 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73011
73012         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73013
73014 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73015
73016         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73017         strlen results.
73018
73019 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73020
73021         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73022         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73023         register in order to avoid conflicts with the soft frame pointer
73024         being held in r11 when necessary.
73025         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73026         (INTERNAL_VSYSCALL_NCS): Likewise.
73027
73028 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73029
73030         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73031         * elf/dl-fini.c (_dl_fini): Adjust caller.
73032         * elf/dl-close.c (_dl_close_worker): Likewise.
73033         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73034
73035 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73036
73037         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73038         "aux_cache->nlibs < 0".
73039
73040         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73041         in the reload-count case.
73042
73043 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73044
73045         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73046         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73047         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73048         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73049         * sysdeps/x86_64/multiarch/strcat.S: New file.
73050         * sysdeps/x86_64/multiarch/strncat.S: New file.
73051         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73052         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73053         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73054         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73055         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73056         (USE_AS_STRCAT): Define.
73057         Add strcat and strncat support.
73058         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73059         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73060         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73061         * string/strncat.c: Update.
73062         (USE_AS_STRNCAT): Define.
73063         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73064         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73065         and i7.
73066         * sysdeps/x86_64/multiarch/init-arch.h
73067         (bit_Prefer_PMINUB_for_stringop): New.
73068         (index_Prefer_PMINUB_for_stringop): Likewise.
73069         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73070         bit_Prefer_PMINUB_for_stringop.
73071
73072 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73073
73074         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73075         buffer64.
73076         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73077         of casting of buffer.
73078         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73079         buffer32 and buffer64.
73080         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73081         writes instead of casting of buffer.
73082         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73083         buffer32.
73084         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73085         casting of buffer.
73086
73087 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73088
73089         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73090
73091 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73092
73093         * nscd/nscd.c (termination_handler): Don't do anything for a database
73094         if it has not yet been initialized.
73095
73096 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73097
73098         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73099
73100 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73101
73102         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73103
73104 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73105
73106         * po/nl.po: Update from translation team.
73107         * po/sv.po: Likewise.
73108
73109 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73110
73111         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73112         now disallowed by GCC.
73113
73114         * configure.in (use-default-link): Default to yes if a test -shared
73115         link meets our qualifications.
73116         * configure: Regenerated.
73117
73118         * config.make.in (output-format): New variable.
73119         * configure.in: Check for ld --print-output-format support.
73120         * configure: Regenerated.
73121         * Makerules ($(common-objpfx)format.lds)
73122         [$(output-format) != unknown]: Just use $(output-format),
73123         instead of the linker-script munging.
73124
73125 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73126
73127         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73128         of $(common-objpfx)shlib.lds.
73129         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73130
73131         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73132         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73133
73134         * configure.in (-z relro check): Adjust test code to add a large
73135         writable data section after it.
73136         * configure: Regenerated.
73137
73138 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73139
73140         * configure.in (-z relro check): Fix test code to make the variable
73141         truly const.
73142         * configure: Regenerated.
73143
73144 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73145
73146         * nscd/nscd.h (struct traced_file): Define.
73147         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73148         elements.  Add traced_files.
73149         (inotify_fd): Declare.
73150         (register_traced_file): Declare.
73151         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73152         (inotify_fd): Export.
73153         (resolv_conf_descr): Remove.
73154         (nscd_init): Move inotify descriptor creation to main.
73155         Don't register files for notification here.
73156         (register_traced_file): New function.
73157         (invalidate_cache): Don't use reset_res to determine whether to call
73158         res_init, go through the list of registered files.
73159         (main_loop_poll): The inotify descriptors are now stored in the
73160         structures for the traced files.
73161         (main_loop_epoll): Likewise.
73162         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73163         to __nss_disable_nscd.
73164         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73165         for a database anymore.  Check the records for all the registered
73166         files instead.
73167         * nss/Makefile (libnss_files-routines): Add files-init.
73168         (libnss_db-routines): Add db-init.
73169         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73170         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73171         * nss/nss_db/db-init.c: New file.
73172         * nss/nss_files/files-init.c: New file.
73173         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73174         __nss_lookup_function.
73175         (__nss_lookup_function): Call nss_load_library.
73176         (nss_load_all_libraries): New function.
73177         (__nss_disable_nscd): Take parameter with callback function for files
73178         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73179         used for the cached services.
73180         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73181         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73182         options for features to all the files in nscd.
73183
73184         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73185
73186 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73187
73188         * csu/elf-init.c (__libc_csu_init): Comment typo.
73189
73190 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73191
73192         * po/pl.po: Update from translation team.
73193         * po/ja.po: Likewise.
73194         * po/ru.po: Likewise.
73195         * po/ko.po: Likewise.
73196         * po/fr.po: Likewise.
73197
73198 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73199
73200         * configure.in (.ctors/.dtors header and trailer check):
73201         Use an empirical test on a built program.
73202         * configure: Regenerated.
73203
73204         * configure.in (-z relro check): Use an empirical test on a built DSO.
73205         Detect, but do not require, on ia64.
73206         * configure: Regenerated.
73207
73208         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73209         Update tests that use readelf to use $READELF instead.
73210         * configure: Regenerated.
73211
73212 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73213
73214         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73215         if the result is not used.
73216
73217 2011-07-05  Andreas Jaeger  <aj@suse.de>
73218
73219         [BZ#9696]
73220         * stdlib/tst-strtod.c: Add testcase.
73221
73222 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73223
73224         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73225         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73226         The latter has a higher limit.  Take additional parameter to pass to
73227         the new function.
73228         (__pathconf): Pass file to __statfs_link_max.
73229         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73230         __statfs_link_max.
73231         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73232         __statfs_link_max.
73233
73234         [BZ #12868]
73235         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73236         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73237         Handle Lustre.
73238         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73239         (__statfs_filesize_max): Likewise.
73240         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73241
73242 2011-07-05  Andreas Jaeger  <aj@suse.de>
73243
73244         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73245
73246 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73247
73248         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73249         `status' variable.
73250         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73251         Likewise.
73252
73253 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73254
73255         * Makefile (strop-tests): Add strncat.
73256         * string/test-strncat.c: New file.
73257
73258 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73259
73260         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73261
73262 2011-06-21  Andreas Jaeger  <aj@suse.de>
73263
73264         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73265         Copy rule from iconvdata/Makefile.
73266
73267 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73268
73269         [BZ #12922]
73270         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73271         but no long options are defined, just return 'W'.
73272
73273 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73274
73275         [BZ #9696]
73276         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73277
73278 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73279
73280         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73281         netgroups to read.
73282         (innetgr): Likewise.
73283
73284 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73285
73286         * config.make.in (install_root): Default to $(DESTDIR).
73287
73288 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73289
73290         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73291
73292 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73293
73294         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73295
73296         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73297         containing directory rather than embedding absolute directory names.
73298
73299         * scripts/check-local-headers.sh: Rewritten using awk.
73300         Match by word, not by line.  Print error messages for matches.
73301         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73302
73303         * Makerules [shlib-lds-flags empty]:
73304         ($(common-objpfx)libc_pic.opts): New target.
73305         ($(common-objpfx)libc_pic.os.clean): New target.
73306         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73307
73308         * config.make.in (OBJCOPY): New variable.
73309         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73310         * configure: Regenerated.
73311
73312         * config.make.in (use-default-link): New variable.
73313         * configure.in (use_default_link): Grok --with-default-link to set it.
73314         * configure: Regenerated.
73315         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73316         (shlib-lds, shlib-lds-flags): Define to empty.
73317
73318         * Makerules (shlib-lds): New variable.
73319         (shlib-lds-flags): New variable.
73320         (build-shlib, build-moduile, build-module-asneeded): Use it.
73321         ($(common-objpfx)libc.so): Use $(shlib-lds).
73322         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73323         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73324
73325         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73326         DT_FLAGS/DT_FLAGS_1 with zero flags.
73327
73328         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73329         linker script munging.
73330
73331 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73332
73333         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73334         as 128-bit value.
73335         * crypt/sha512.c (sha512_process_block): Perform total addition using
73336         128-bit if possible.
73337         (__sha512_finish_ctx): Likewise.
73338         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73339         as 64-bit value.
73340         * crypt/sha256.c (SWAP64): Define.
73341         (sha256_process_block): Perform total addition using 64-bit if
73342         possible.
73343         (__sha256_finish_ctx): Likewise.
73344
73345 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73346
73347         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73348         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73349         * nscd/hstcache.c (cache_addhst): Likewise.
73350         * nscd/grpcache.c (cache_addgr): Likewise.
73351         * nscd/aicache.c (addhstaiX): Likewise.
73352         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73353
73354 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73355
73356         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73357         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73358         * nscd/hstcache.c (cache_addhst): Likewise.
73359         * nscd/grpcache.c (cache_addgr): Likewise.
73360         * nscd/aicache.c (addhstaiX): Likewise.
73361
73362 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73363
73364         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73365         domain only when needed.
73366
73367 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73368
73369         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73370         is always restored.
73371
73372 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73373
73374         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73375         are re-adding the entry.
73376         * nscd/servicescache.c (cache_addserv): Likewise.
73377
73378 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73379
73380         * sysdeps/generic/dl-irel.h: fix protection against multiple
73381         inclusions.
73382         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73383
73384 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73385
73386         [BZ #12935]
73387         * malloc/memusage.sh: Fix quoting in message.
73388         * debug/xtrace.sh: Likewise.
73389
73390         * configure.in: Remove support for --experimental-malloc option, make
73391         it the default.
73392         * config.make.in: Likewise.
73393         * malloc/Makefile: Likewise.
73394
73395 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73396
73397         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73398         two-byte characters.
73399
73400 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73401
73402         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73403         AC_CACHE_CHECK invocation.
73404         * configure: Regenerated.
73405
73406         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73407
73408 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73409
73410         [BZ #12350]
73411         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73412         bit from old_res_options.
73413
73414         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73415
73416         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73417         value type for setfct.
73418
73419 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73420
73421         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73422         __gettimeofday instead of gettimeofday.
73423
73424 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73425
73426         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73427
73428 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73429
73430         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73431
73432         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73433         info.
73434
73435 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73436
73437         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73438         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73439         strcpy-sse2-unaligned strncpy-sse2-unaligned
73440         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73441         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73442         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73443         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73444         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73445         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73446         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73447         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73448         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73449         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73450         (STRCPY): Support SSE2 and SSSE3 versions.
73451
73452 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73453
73454         [BZ #12874]
73455         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73456         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73457         kernels which artificially limit size of requests.
73458
73459 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73460
73461         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73462         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73463         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73464         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73465         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73466         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73467         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73468         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73469         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73470         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73471         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73472         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73473         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73474         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73475         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73476         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73477         Enable unaligned load optimization for Intel Core i3, i5 and i7
73478         processors.
73479         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73480         Define.
73481         (index_Fast_Unaligned_Load): Define.
73482         (HAS_FAST_UNALIGNED_LOAD): Define.
73483
73484 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73485
73486         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73487
73488 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73489
73490         [BZ #12907]
73491         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73492         until it is clear that the information is realy needed.
73493         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73494
73495 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73496
73497         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73498
73499 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73500
73501         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73502         /sys/devices/system/cpu/online if it is usable.
73503
73504         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73505         reading the information from the /proc filesystem to once a second.
73506
73507 2011-06-21  Andreas Jaeger  <aj@suse.de>
73508
73509         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73510         NULL after inclusion of kernel headers.
73511
73512 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73513
73514         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73515         calls to internal_setent.
73516
73517         [BZ #12885]
73518         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73519         addresses using gethostbyname4_r ignore IPv4 addresses.
73520
73521         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73522         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73523
73524         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73525
73526 2011-06-20  David S. Miller  <davem@davemloft.net>
73527
73528         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73529         inclusions.
73530         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73531
73532         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73533         (elf_irel): Use it.
73534         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73535         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73536         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73537         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73538         * sysdeps/x86_64/dl-irel.h: Likewise.
73539
73540         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73541         * elf/dl-sym.c: Likewise.
73542
73543 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73544
73545         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73546         need to dereference resplen2.
73547
73548 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73549
73550         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73551
73552 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73553
73554         * Makeconfig: Define vardbdir and inst_vardbdir.
73555         * nss/Makefile: Add rules to install db-Makefile.
73556
73557         * nss/nss_db/db-XXX.c: Cleanup.
73558
73559         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
73560         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
73561         GLIBC_PRIVATE.
73562         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
73563         * nss/makedb.c: Implement -g option to specify that value strings
73564         are generated and should not be added to table iterated over for
73565         get*ent calls.
73566         * nss/nss_db/db-initgroups.c: New file.
73567
73568         * nss/getent.c: Add support for initgroups lookups through getgrouplist
73569         interface.
73570
73571         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
73572         (internal_getgrouplist): Adjust to name change.
73573         Update use_initgroups_entry if this is not the first call.
73574         * nss/databases.def: Add initgroups entry.
73575
73576         * nss/makedb.c (compute_tables): Check result of multiple hash table
73577         sizes to minimize maximum chain length.
73578
73579 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
73580
73581         * Versions.def: Add entry for libnss_db.
73582         * shlib-versions: Likewise.
73583         * nss/Makefile: Add rules to build libnss_db.
73584         * nss/Versions: Add libnss_db information.  Organize libnss_files
73585         entries better.
73586         * nss/db-Makefile: Add gshadow support.  Change rules for the new
73587         makedb progra.  Some minor improvements to generate smaller files.
73588         * nss/nss_db/nss_db.h: Move NSS database header data structures to
73589         here from...
73590         * nss/makedb.c: ...here.
73591         Improve database format to be smaller and require less memory at
73592         runtime.
73593         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
73594         db anymore.
73595         * nss/nss_db/db-netgrp.c: Likewise.
73596         * nss/nss_db/db-open.c: Likewise.
73597         * nss/nss_files/flies-XXX.x: Adjust comments.
73598         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
73599         * nss/nss_files/files-grp.c: Likewise.
73600         * nss/nss_files/files-hosts.c: Likewise.
73601         * nss/nss_files/files-network.c: Likewise.
73602         * nss/nss_files/files-proto.c: Likewise.
73603         * nss/nss_files/files-pwd.c: Likewise.
73604         * nss/nss_files/files-rpc.c: Likewise.
73605         * nss/nss_files/files-service.c: Likewise.
73606         * nss/nss_files/files-sgrp.c: Likewise.
73607         * nss/nss_files/files-spwd.c: Likewise.
73608         * nss/nss_db/db-alias.c: Removed.
73609         * nss/nss_db/dummy-db.h: Removed.
73610
73611 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
73612
73613         * nss/makedb.c: Rewritten to not use database library.
73614         * nss/Makefile: Update to build new makedb program.
73615
73616 2011-06-14  Andreas Jaeger  <aj@suse.de>
73617
73618         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
73619         memset declaration.
73620
73621 2011-06-10  Andreas Schwab  <schwab@redhat.com>
73622
73623         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
73624         tmpbuf.
73625
73626 2011-06-10  Roland McGrath  <roland@hack.frob.com>
73627
73628         * Makerules (shlib.lds): Fail if the linker script comes out empty.
73629         * elf/Makefile ($(objpfx)ld.so): Likewise.
73630
73631         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
73632         Don't list ld.so twice in dependencies.
73633
73634         * posix/bug-regex31.c: Include <stdlib.h>.
73635
73636         * nscd/hstcache.c (cache_addhst): Remove unused variable.
73637
73638         * nis/nss_compat/compat-spwd.c
73639         (getspent_next_nss_netgr): Remove unused variable.
73640         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
73641
73642         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
73643         nonmembers" output to use the right array.
73644
73645         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
73646
73647         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
73648
73649         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
73650         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
73651         * catgets/gencat.c (read_input_file): Likewise.
73652         * locale/programs/locarchive.c (enlarge_archive): Likewise.
73653
73654         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
73655         variable definition inside #if's controlling its use.
73656
73657         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
73658
73659         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
73660
73661         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
73662
73663         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
73664         unreachable code.
73665
73666         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
73667
73668         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
73669         * configure: Regenerated.
73670
73671         * Makerules: Revert last change.
73672         * elf/Makefile: Likewise.
73673
73674 2011-06-09  Roland McGrath  <roland@hack.frob.com>
73675
73676         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
73677         * elf/Makefile ($(objpfx)librtld.os): Likewise.
73678         (reloc-link): Likewise.
73679
73680 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
73681
73682         * elf/Makefile: Add rules to build pldd.
73683         * elf/pldd.c: New file.
73684         * elf/pldd-xx.c: New file.
73685
73686 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
73687
73688         * version.h: Update for 2.15 development version.
73689
73690 2011-06-07  David S. Miller  <davem@davemloft.net>
73691
73692         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
73693         ifuncs.
73694         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
73695         elf_machine_lazy_rel): Likewise.
73696         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
73697         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
73698         elf_machine_lazy_rel): Likewise.
73699         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
73700         dl_hwcap via passed in argument.
73701         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
73702         Likewise.
73703
73704 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73705
73706         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
73707
73708 2011-06-06  Roland McGrath  <roland@hack.frob.com>
73709
73710         [BZ #12849]
73711         * manual/fdl-1.1.texi: New file, verbatim from:
73712         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
73713         * manual/lgpl-2.1.texi: New file, verbatim from:
73714         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
73715         * manual/Makefile (licenses): New variable, list those new file names.
73716         (texis): Use it.
73717         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
73718
73719         * manual/fdl.texi: File removed.
73720         * manual/lesser.texi: File removed.
73721         * manual/libc.texinfo (Copying, Documentation License):
73722         Use new @include file names, put @appendix directive before @include.
73723
73724 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
73725
73726         [BZ #12841]
73727         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
73728         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
73729         (mq_open): Add __NTH.
73730
73731 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
73732
73733         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73734         Assume Intel Core i3/i5/i7 processor if AVX is available.
73735
73736 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73737
73738         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73739         typo.
73740
73741 2011-05-31  Andreas Schwab  <schwab@redhat.com>
73742
73743         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
73744         memory.  Use alloca_account.  Fix memory leak when retrying.
73745
73746 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73747
73748         * version.h (RELEASE): Bump for 2.14 release.
73749         * include/features.h (__GLIBC_MINOR__): Bump to 14.
73750
73751         * config.make.in (RANLIB): Remove entry.
73752
73753 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
73754
73755         * po/Makefile (po-sed-cmd): Add ksh to extensions.
73756         (libc.pot): Work around missing support for .ksh extension in xgettext.
73757
73758         [BZ #12684]
73759         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
73760         if both request failed.
73761         (send_dg): In case of server errors clear resplen or *resplen2.
73762
73763         [BZ #12454]
73764         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
73765         when there are multiple maps.
73766         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
73767         (_dl_fini): Remove test here.
73768
73769         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
73770
73771 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
73772
73773         [BZ #12350]
73774         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
73775         bit from old_res_options.
73776         (gaih_inet): Likewise.
73777
73778         [BZ #11099]
73779         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
73780         as signed.
73781
73782         * resolv/res_init.c (res_setoptions): Make the code more compact.
73783
73784         [BZ #11558]
73785         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
73786         set RES_USEVC.
73787
73788         [BZ #11634]
73789         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
73790
73791         * malloc/malloc.h: Mark malloc hook variables as deprecated.
73792
73793         [BZ #11781]
73794         * malloc/malloc.h: Declare malloc hook variables as volatile.
73795
73796         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
73797         in last patch.
73798
73799         [BZ #11799]
73800         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
73801         raise in the comment.
73802         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
73803         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
73804         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
73805
73806 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
73807
73808         [BZ #12811]
73809         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
73810         grow the buffers more if it already has to be sufficient.
73811         (build_wcs_upper_buffer): Likewise.
73812         * posix/regexec.c (check_matching): Likewise.
73813         (clean_state_log_if_needed): Likewise.
73814         (extend_buffers): Don't enlarge buffers beyond size of the input
73815         buffer.
73816         Patches mostly by Emil Wojak <emil@wojak.eu>.
73817         * posix/bug-regex32.c: New file.
73818         * posix/Makefile (tests): Add bug-regex32.
73819
73820         * locale/findlocale.c (_nl_find_locale): Return right away if
73821         _nl_explode_name failed.
73822         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
73823
73824         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
73825
73826         * debug/xtrace.sh: Unify messages.
73827         * malloc/memusage.sh: Likewise.
73828
73829         [BZ #12813]
73830         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
73831         time symbol from vDSO.  Substitute with vsyscall if not available.
73832         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
73833         __vdso_time.
73834
73835         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
73836         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
73837         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
73838         Add sendmmsg and internal_sendmmsg.
73839         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
73840         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
73841         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
73842
73843         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
73844         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
73845         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
73846
73847 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
73848
73849         [BZ #12813]
73850         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
73851         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
73852         available.
73853         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
73854         __vdso_getcpu.
73855
73856         [BZ #12814]
73857         * iconvdata/Makefile (tests): Add bug-iconv9.
73858         * iconvdata/bug-iconv9.c: New file.
73859
73860 2011-05-27  Andreas Schwab  <schwab@redhat.com>
73861
73862         [BZ #12814]
73863         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
73864
73865 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
73866
73867         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
73868         (struct user_regs_struct): Change intcs field back to cs.
73869
73870 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
73871
73872         * po/ja.po: Update from translation team.
73873
73874 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
73875
73876         [BZ #12795]
73877         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
73878         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
73879
73880 2011-05-20  Andreas Schwab  <schwab@redhat.com>
73881
73882         * stdlib/longlong.h: Update from GCC.
73883
73884 2011-05-23  Andreas Schwab  <schwab@redhat.com>
73885
73886         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
73887         parameter name.
73888         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
73889         Add parameter name.
73890         (__sysconf): Pass it down.
73891
73892 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
73893
73894         [BZ #12671]
73895         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
73896         some situations.
73897         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
73898         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
73899         add in in __libc_use_alloca calls.  Adjust callers.
73900         (glob): Use malloc in some situations.
73901
73902         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
73903         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
73904         pltexit.
73905
73906 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
73907
73908         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
73909         and CLOCK_BOOTTIME_ALARM.
73910
73911         [BZ #12782]
73912         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
73913         is returned.
73914
73915         * string/_strerror.c (__strerror_r): Print negative errors as signed
73916         numbers.
73917
73918         [BZ #12777]
73919         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
73920         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
73921         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
73922
73923         * configure.in: Fix typo in redirection and correct removal of test
73924         files in two cases.
73925
73926         [BZ #12788]
73927         * locale/setlocale.c (new_composite_name): Fix test to check for
73928         identical name of all categories.
73929
73930         [BZ #12792]
73931         * libio/filedoalloc.c (local_isatty): New function.
73932         (_IO_file_doallocate): Use local_isatty.
73933         * stdio-common/perror.c (perror): In case a new stream is used
73934         forward the stream error.
73935         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
73936         error flag.
73937
73938 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
73939
73940         [BZ #11884]
73941         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
73942         alloca.
73943         * include/alloca.h (extend_alloca_account): Define.
73944
73945         [BZ #11857]
73946         * posix/regex.h: Fix comments with documentation of user-accessible
73947         fields after compilation and describe correct free'ing of pattern
73948         after re_compile_pattern.
73949         Patch by Reuben Thomas <rrt@sc3d.org>.
73950
73951 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
73952
73953         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
73954         and -mno-altivec to prevent the compiler from using Altivec and/or
73955         VSX instructions when the corresponding registers are not available.
73956
73957 2011-05-19  Andreas Schwab  <schwab@redhat.com>
73958
73959         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
73960
73961 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
73962
73963         * libio/freopen.c (freopen): Use __dup2, not dup2.
73964         * libio/freopen64.c (freopen64): Likewise.
73965
73966 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
73967
73968         [BZ #12775]
73969         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
73970         * math/Makefile (tests): Add test-powl.
73971         (CFLAGS-test-powl.c): Define.
73972         * math/test-powl.c: New file.
73973
73974 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
73975
73976         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
73977
73978 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
73979
73980         [BZ #11837]
73981         * iconvdata/gb18030.c: Update to GB18020-2005.
73982
73983 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
73984
73985         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
73986         RE_SYNTAX_POSIX_AWK): Update to match recent development.
73987         Patch by Aharon Robbins <arnold@skeeve.com>.
73988
73989         [BZ #11892]
73990         * stdlib/putenv.c (putenv): Don't always create copy of the variable
73991         on the stack.
73992
73993         [BZ #11895]
73994         * misc/pselect.c (__pselect): Handle timeout value errors hidden
73995         through underflows.
73996
73997         [BZ #12766]
73998         * misc/error.c (error_at_line): Ensure file_name and old_file_name
73999         point to strings before performing equality test for error_one_per_line
74000         mode.
74001
74002         [BZ #11697]
74003         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74004
74005         [BZ #11820]
74006         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74007         (struct user_fpregs_struct): Avoid __uint*_t types.
74008
74009         [BZ #6420]
74010         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74011         symbol info.  Use it instead of calling _dl_addr locally.
74012         (lock_and_info): New function.
74013         (tr_freehook): Call lock_and_info and pass symbol info as additional
74014         parameter to tr_where.
74015         (tr_mallochook): Likewise.
74016         (tr_reallochook): Likewise.
74017         (tr_memalignhook): Likewise.
74018
74019         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74020         used and couldn't be at all thread-safe.
74021
74022 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74023
74024         * libio/freopen.c (freopen): Don't close old file descriptor
74025         before the new one is opened.  Instead dup the new file descriptor
74026         to the old one after the new stream is created.
74027         * libio/freopen64.c (freopen64): Likewise.
74028         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74029         * libio/fileops.c (_IO_new_file_close_it): Handle new
74030         _IO_FLAGS2_NOCLOSE flag.
74031         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74032         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74033         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74034         _IO_FLAGS2_NOCLOSE flag.
74035         * include/unistd.h: Add hidden_proto for dup3.
74036         Define __have_dup3.
74037         * io/dup3.c: Define hidden symbol.
74038         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74039
74040         [BZ #7101]
74041         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74042         when an incomplete long option is used.
74043         * posix/tst-getopt_long1.c: New file.
74044         * posix/Makefile (tests): Add tst-getopt_long1.
74045
74046         [BZ #10138]
74047         * scripts/config.guess: Update from autoconf-2.68.
74048         * scripts/config.sub: Likewise.
74049
74050         [BZ #10157]
74051         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74052         tests into ...
74053         (has_cpuclock): ...this.  New function.
74054         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74055         macro here based on has_cpuclock code.
74056
74057         [BZ #10149]
74058         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74059         First byte (not low byte) is now always NUL.
74060         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74061
74062         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74063         Use non-cancelable interfaces.
74064
74065         [BZ #9809]
74066         * locale/iso-639.def: Add entry for Sorani.
74067
74068         [BZ #11901]
74069         * include/stdlib.h: Move include protection to the right place.
74070         Define abort_msg_s.  Declare __abort_msg with it.
74071         * stdlib/abort.c (__abort_msg): Adjust type.
74072         * assert/assert.c (__assert_fail_base): New function.  Majority
74073         of code from __assert_fail.  Allocate memory for __abort_msg with
74074         mmap.
74075         (__assert_fail): Now call __assert_fail_base.
74076         * assert/assert-perr.c: Remove bulk of implementation.  Use
74077         __assert_fail_base.
74078         * include/assert.hL Declare __assert_fail_base.
74079         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74080         mmap.
74081         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74082
74083 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74084
74085         [BZ #11952]
74086         [BZ #12453]
74087         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74088         until all modules are registered in the DTV.
74089         * elf/Makefile: Add rules to build and run tst-tls19.
74090         * elf/tst-tls19.c: New file.
74091         * elf/tst-tls19mod1.c: New file.
74092         * elf/tst-tls19mod2.c: New file.
74093         * elf/tst-tls19mod3.c: New file.
74094         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74095
74096         [BZ #12083]
74097         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74098         correctly.
74099
74100         [BZ #12601]
74101         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74102         two-byte sequence errors.
74103         * iconvdata/Makefile (tests): Add bug-iconv8.
74104         * iconvdata/bug-iconv8.c: New file.
74105
74106         [BZ #12626]
74107         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74108         buf2 definition.
74109
74110         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74111
74112         [BZ #12432]
74113         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74114         (dummy_getcfa): New function.
74115         (init): Get _Unwind_GetCFA address, use dummy if not found.
74116         (backtrace_helper): In recursion check, also check whether CFA changes.
74117         (__backtrace): Completely initialize arg.
74118
74119         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74120         storing incomplete byte sequence in state object.  Avoid testing for
74121         guaranteed too small input if we know there is enough data available.
74122
74123 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74124
74125         * Makeconfig (+link-pie): Indent.
74126         * Rules (binaries-pie): Define if $(have-fpie) and
74127         $(build-shared).
74128         (binaries-shared): Also filter out $(binaries-pie).
74129         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74130         * nscd/Makefile (others-pie): Add nscd.
74131         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74132         ($(objpfx)nscd): Remove command override.
74133         * login/Makefile (others-pie): Add pt_chown.
74134         ($(objpfx)pt_chown): Remove command override.
74135         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74136         remove command overrides.
74137
74138 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74139
74140         * libio/tst_putwc.c: Fix error messages.
74141
74142         [BZ #12724]
74143         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74144         currently writing and seek to current position when not.
74145         * libio/Makefile (tests): Add bug-fclose1.
74146         * libio/bug-fclose1.c: New file.
74147
74148 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74149
74150         [BZ #12511]
74151         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74152         don't set DF_1_NODELETE here.
74153         (do_lookup_x): When entering new entry test for copy relocation
74154         and if necessary set DF_1_NODELETE flag.
74155         * elf/tst-unique4.cc: New file.
74156         * elf/tst-unique4.h: New file.
74157         * elf/tst-unique4lib.cc: New file.
74158         * elf/Makefile: Add rules to build and run tst-unique4.
74159         Patch by Piotr Bury <pbury@goahead.com>.
74160
74161 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74162
74163         [BZ #12052]
74164         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74165
74166         [BZ #12625]
74167         * misc/mntent_r.c (addmntent): Flush the stream after the output
74168
74169         [BZ #12393]
74170         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74171         (is_trusted_path_normalize): Skip initial colon.  Append slash
74172         to empty buffer.  Duplicate is_trusted_path code but allow
74173         constructed patch to be prefix.
74174         (is_dst): Allow $ORIGIN followed by /.
74175         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74176         Correct testing of result of is_trusted_path_normalize
74177         (decompose_rpath): Fix warning.
74178
74179 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74180
74181         [BZ #11257]
74182         * grp/initgroups.c (internal_getgrouplist): When we found the service
74183         list through the initgroups entry in nsswitch.conf do not always
74184         continue on a successful lookup.  Don't always use the
74185         __nss_group_database value if it is set.
74186         * nss/nsswitch.conf (initgroups): Change action for successful db
74187         lookup to continue for compatibility.
74188
74189 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74190
74191         [BZ #11532]
74192         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74193         and CP774 modules.
74194         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74195         and CP774 modules.
74196         * iconvdata/tst-tables.sh: Likewise.
74197         * iconvdata/cp770.c: New file.
74198         * iconvdata/cp771.c: New file.
74199         * iconvdata/cp772.c: New file.
74200         * iconvdata/cp773.c: New file.
74201         * iconvdata/cp774.c: New file.
74202         * iconvdata/testdata/CP770: New file.
74203         * iconvdata/testdata/CP770..UTF8: New file.
74204         * iconvdata/testdata/CP771: New file.
74205         * iconvdata/testdata/CP771..UTF8: New file.
74206         * iconvdata/testdata/CP772: New file.
74207         * iconvdata/testdata/CP772..UTF8: New file.
74208         * iconvdata/testdata/CP773: New file.
74209         * iconvdata/testdata/CP773..UTF8: New file.
74210         * iconvdata/testdata/CP774: New file.
74211         * iconvdata/testdata/CP774..UTF8: New file.
74212
74213         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74214         END CHARMAP line.
74215         * iconvdata/gen-8bit-gap.sh: Likewise.
74216         * iconvdata/gen-8bit.sh: Likewise.
74217
74218         * locale/iso-639.def: Add ary entry.
74219
74220         [BZ #11258]
74221         * locale/C-translit.h.in: Add U20A1 transliteration.
74222
74223         [BZ #12178]
74224         * locale/iso-639.def: Add wae entry.
74225         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74226
74227         [BZ #12545]
74228         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74229         for n.
74230
74231         [BZ #12711]
74232         * locale/C-translit.h.in: Add entry for U20B9.
74233         Patch by pravin.d.s@gmail.com.
74234
74235 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74236
74237         [BZ #12713]
74238         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74239         ENAMETOOLONG use generic getcwd.
74240         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74241         in rtld.  Use *stat64.
74242         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74243         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74244         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74245         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74246         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74247         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74248         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74249         __fstatat64 macros.
74250         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74251         * dirent/rewinddir.c: Add libc_hidden_def.
74252         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74253         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74254
74255         * include/dirent.h (__alloc_dir): Add flags parameter.
74256         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74257         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74258         __alloc_dir.
74259         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74260         from fdopendir if O_CLOEXEC is already set.
74261
74262 2011-03-15  Alan Modra  <amodra@gmail.com>
74263
74264         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74265         l_tls_firstbyte_offset non-zero.  Save padding offset in
74266         l_tls_firstbyte_offset for later use.
74267         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74268         freeing static tls block.
74269
74270 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74271
74272         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74273         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74274         being defined by the kernel headers.
74275
74276 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74277
74278         [BZ #12734]
74279         * resolv/resolv.h: Define RES_NOTLDQUERY.
74280         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74281         no-tld-query and set RES_NOTLDQUERY.
74282         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74283         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74284         modern BIND to search name as TLD unless forbidden.
74285
74286 2011-05-07  Petr Baudis  <pasky@suse.cz>
74287             Ulrich Drepper  <drepper@gmail.com>
74288
74289         [BZ #12393]
74290         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74291         (is_trusted_path): ...to here.
74292         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74293         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74294         using is_trusted_path_normalize() in setuid scripts.
74295
74296 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74297
74298         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74299         __BEGIN/__END_DECLS.
74300
74301 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74302
74303         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74304         NSS_STATUS_NOTFOUND if no record was found.
74305
74306 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74307
74308         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74309         (headers-not-in-tirpc): Remove rpc/netdb.h
74310         * resolv/netdb.h: Revert last change.
74311
74312 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74313
74314         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74315         circular dependency between libgcc.a and libc.a.
74316
74317 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74318
74319         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74320         * nis/Makefile: Don't install rpcsvc/*.
74321         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74322         instead of <rpc/types.h>.
74323         (MAXHOSTNAMELEN): Define.
74324
74325 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74326
74327         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74328
74329 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74330
74331         [BZ #12714]
74332         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74333         gethostbyname4_r when IPv6 results are possible.
74334
74335 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74336
74337         [BZ #12723]
74338         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74339         _PC_PIPE_BUF handling.
74340
74341 2011-04-30  Bruno Haible  <bruno@clisp.org>
74342
74343         [BZ #12717]
74344         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74345         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74346         to 'int'.
74347         * inet/getnameinfo.c (getnameinfo): Likewise.
74348
74349 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74350
74351         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74352         to groups setting in database lookup.
74353         * nss/nsswitch.conf: Add initgroups entry.
74354
74355 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74356
74357         [BZ #12685]
74358         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74359         mode string.
74360         Patch by Eric Blake <eblake@redhat.com>.
74361
74362 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74363
74364         * sunrpc/Makefile (need-export-routines): Add svc_run.
74365         (routines): Remove svc_run.
74366         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74367         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74368         * sunrpc/svc_run.c (svc_run): Likewise.
74369         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74370
74371 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74372
74373         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74374         problem in reallocation in last patch.
74375
74376 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74377
74378         * sunrpc/Makefile: Move inclusion of Rules.
74379
74380 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74381
74382         * nss/nss_files/files-initgroups.c: New file.
74383         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74384         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74385         _nss_files_initgroups_dyn.
74386
74387 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74388
74389         * elf/elf.h (R_ARM_IRELATIVE): Define.
74390
74391 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74392
74393         * po/ru.po: Update from translation team.
74394
74395 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74396
74397         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74398         dependencies.
74399
74400 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74401
74402         [BZ #12653]
74403         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74404         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74405         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74406         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74407         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74408
74409 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74410
74411         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74412         differing bytes.
74413         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74414         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74415         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74416
74417 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74418
74419         [BZ #12420]
74420         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74421         storing it.
74422         * stdlib/bug-getcontext.c: New file.
74423         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74424
74425 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74426
74427         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74428         instructions into .machine "z9-109".
74429         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74430         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74431
74432 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74433
74434         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74435         between environment variables and auxiliary vector.
74436
74437 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74438
74439         * Makefile: Add rules to build linkobj/libc.so.
74440         * include/libc-symbols.h: Define libc_hidden_nolink.
74441         * include/rpc/auth.h: Mark functions which are to be hidden.
74442         * include/rpc/auth_des.h: Likewise.
74443         * include/rpc/auth_unix.h: Likewise.
74444         * include/rpc/clnt.h: Likewise.
74445         * include/rpc/des_crypt.h: Likewise.
74446         * include/rpc/key_prot.h: Likewise.
74447         * include/rpc/pmap_clnt.h: Likewise.
74448         * include/rpc/pmap_prot.h: Likewise.
74449         * include/rpc/pmap_rmt.h: Likewise.
74450         * include/rpc/rpc_msg.h: Likewise.
74451         * include/rpc/svc.h: Likewise.
74452         * include/rpc/svc_auth.h: Likewise.
74453         * include/rpc/xdr.h: Likewise.
74454         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74455         * nss/Makefile: Likewise.
74456         * sunrpc/Makefile: Don't install headers.  Build library with normal
74457         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74458         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74459         for the compat linking library.  Remove use of INTDEF/INTUSE.
74460         * sunrpc/auth_none.c: Likewise.
74461         * sunrpc/auth_unix.c: Likewise.
74462         * sunrpc/authdes_prot.c: Likewise.
74463         * sunrpc/authuxprot.c: Likewise.
74464         * sunrpc/clnt_gen.c: Likewise.
74465         * sunrpc/clnt_perr.c: Likewise.
74466         * sunrpc/clnt_raw.c: Likewise.
74467         * sunrpc/clnt_simp.c: Likewise.
74468         * sunrpc/clnt_tcp.c: Likewise.
74469         * sunrpc/clnt_udp.c: Likewise.
74470         * sunrpc/clnt_unix.c: Likewise.
74471         * sunrpc/des_crypt.c: Likewise.
74472         * sunrpc/des_soft.c: Likewise.
74473         * sunrpc/get_myaddr.c: Likewise.
74474         * sunrpc/key_call.c: Likewise.
74475         * sunrpc/key_prot.c: Likewise.
74476         * sunrpc/netname.c: Likewise.
74477         * sunrpc/pm_getmaps.c: Likewise.
74478         * sunrpc/pm_getport.c: Likewise.
74479         * sunrpc/pmap_clnt.c: Likewise.
74480         * sunrpc/pmap_prot.c: Likewise.
74481         * sunrpc/pmap_prot2.c: Likewise.
74482         * sunrpc/pmap_rmt.c: Likewise.
74483         * sunrpc/publickey.c: Likewise.
74484         * sunrpc/rpc_cmsg.c: Likewise.
74485         * sunrpc/rpc_common.c: Likewise.
74486         * sunrpc/rpc_dtable.c: Likewise.
74487         * sunrpc/rpc_prot.c: Likewise.
74488         * sunrpc/rpc_thread.c: Likewise.
74489         * sunrpc/rtime.c: Likewise.
74490         * sunrpc/svc.c: Likewise.
74491         * sunrpc/svc_auth.c: Likewise.
74492         * sunrpc/svc_authux.c: Likewise.
74493         * sunrpc/svc_raw.c: Likewise.
74494         * sunrpc/svc_run.c: Likewise.
74495         * sunrpc/svc_simple.c: Likewise.
74496         * sunrpc/svc_tcp.c: Likewise.
74497         * sunrpc/svc_udp.c: Likewise.
74498         * sunrpc/svc_unix.c: Likewise.
74499         * sunrpc/svcauth_des.c: Likewise.
74500         * sunrpc/xcrypt.c: Likewise.
74501         * sunrpc/xdr.c: Likewise.
74502         * sunrpc/xdr_array.c: Likewise.
74503         * sunrpc/xdr_float.c: Likewise.
74504         * sunrpc/xdr_intXX_t.c: Likewise.
74505         * sunrpc/xdr_mem.c: Likewise.
74506         * sunrpc/xdr_rec.c: Likewise.
74507         * sunrpc/xdr_ref.c: Likewise.
74508         * sunrpc/xdr_sizeof.c: Likewise.
74509         * sunrpc/xdr_stdio.c: Likewise.
74510
74511 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74512
74513         [BZ #12650]
74514         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74515         * sysdeps/ia64/dl-tls.h: Likewise.
74516         * sysdeps/powerpc/dl-tls.h: Likewise.
74517         * sysdeps/s390/dl-tls.h: Likewise.
74518         * sysdeps/sh/dl-tls.h: Likewise.
74519         * sysdeps/sparc/dl-tls.h: Likewise.
74520         * sysdeps/x86_64/dl-tls.h: Likewise.
74521         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74522
74523 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74524
74525         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74526         rpath element also skip the following colon.
74527         (expand_dynamic_string_token): Add is_path parameter and pass
74528         down to DL_DST_REQUIRED and _dl_dst_substitute.
74529         (decompose_rpath): Call expand_dynamic_string_token with
74530         non-zero is_path.  Ignore empty rpaths.
74531         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74532         with zero is_path.
74533
74534 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74535
74536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74537         Make cancelable.
74538
74539 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74540
74541         [BZ #12655]
74542         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74543         Patch by Filipe David Manana <fdmanana@apache.org>.
74544
74545 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74546
74547         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74548         Maintain aligned stack.
74549         (CHECK_RSP): Remove unused macro.
74550
74551 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
74552
74553         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
74554         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
74555
74556 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
74557
74558         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
74559
74560         * include/features.h: Mention __USE_XOPEN2K8 in comment.
74561
74562 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
74563
74564         [BZ #12518]
74565         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
74566         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
74567         * sysdeps/x86_64/memmove.c: New file.
74568         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
74569         (memcpy): Renamed to ...
74570         (__new_memcpy): This.
74571         (memcpy): Provide GLIBC_2_14 memcpy.
74572         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
74573         (memcpy): Provide GLIBC_2_2_5 memcpy.
74574
74575 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74576
74577         [BZ #12631]
74578         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
74579
74580 2011-03-30  Andreas Schwab  <schwab@redhat.com>
74581
74582         * misc/syncfs.c: New file.
74583         * misc/Makefile (routines): Add syncfs.
74584         * posix/unistd.h: Declare syncfs.
74585         * sysdeps/unix/syscalls.list: Add syncfs.
74586
74587 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74588
74589         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
74590         open_by_handle_at.
74591         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
74592         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74593         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74594         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74595         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74596         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
74597         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74598
74599 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74600
74601         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
74602         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74603         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
74604         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74605         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74606         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74607         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74608
74609         * io/Makefile: Compile fallocate.c, fallocate64.c, and
74610         sync_file_range.c with -fexceptions.
74611         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
74612         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
74613         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
74614         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
74615         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
74616         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
74617         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
74618         sync_file_range as cancellation point
74619         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
74620         now a wrapper around __call_sync_file_range with cancellation handling.
74621         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
74622         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
74623         function name to __call_sync_file_range.
74624         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
74625         Add call_sync_file_range.
74626
74627 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74628
74629         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74630         bits/timex.h.
74631
74632 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74633
74634         * iconv/iconv.h: Fix typo in comment.
74635         * io/fcntl.h: Likewise.
74636         * libio/stdio.h: Likewise.
74637         * posix/spawn.h: Likewise.
74638         * posix/unistd.h: Likewise.
74639         * stdlib/stdlib.h: Likewise.
74640         * time/time.h: Likewise.
74641         * wcsmbs/wchar.h: Likewise.
74642
74643         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
74644         open_by_handle): Add.
74645         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
74646         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
74647         Augment a few comments.
74648         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74649         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74650         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74651         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74652         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74653         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
74654         open_by_handle.
74655
74656         * io/fcntl.h (AT_EMPTY_PATH): Define.
74657
74658 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
74659
74660         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
74661         * sysdeps/unix/sysv/linux/bits/time.h: New file.
74662         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
74663         to...
74664         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
74665         * Versions.def: Add GLIBC_2.14.
74666         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
74667         Export.
74668
74669 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
74670
74671         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
74672         round counter.
74673         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74674
74675 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
74676
74677         [BZ #12597]
74678         * string/test-strncmp.c (do_page_test): New function.
74679         (check2): Likewise.
74680         (test_main): Call check2.
74681         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
74682
74683 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
74684
74685         [BZ #12587]
74686         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
74687         Handle cache information in CPU leaf 4.
74688         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74689
74690 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
74691
74692         [BZ #12583]
74693         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
74694         character representation.
74695         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
74696
74697 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
74698
74699         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
74700         END(__isnan) to END(__isnanf) to match function entry point/label
74701         EALIGN(__isnanf,...).
74702
74703 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
74704
74705         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
74706
74707 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
74708
74709         [BZ #12510]
74710         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
74711         copy from the symbol referenced in the relocation to initialize the
74712         used variable.
74713         Patch by Piotr Bury <pbury@goahead.com>.
74714         * elf/Makefile: Add rules to build and tst-unique3.
74715         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
74716         * elf/tst-unique3.cc: New file.
74717         * elf/tst-unique3.h: New file.
74718         * elf/tst-unique3lib.cc: New file.
74719         * elf/tst-unique3lib2.cc: New file.
74720
74721         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
74722
74723 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
74724
74725         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
74726         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
74727         to _start.
74728
74729 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
74730
74731         * elf/dl-load.c (_dl_map_object): If we are looking for the first
74732         to-be-loaded object along a path to loader is ld.so.
74733
74734 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74735             Ulrich Drepper  <drepper@gmail.com>
74736
74737         * sysdeps/x86_64/memset.S: After aligning destination, code
74738         branches to different locations depending on the value of
74739         misalignment, when multiarch is enabled. Fix this.
74740
74741 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74742
74743         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
74744         Set _x86_64_preferred_memory_instruction for AMD processsors.
74745         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74746         Set bit_Prefer_SSE_for_memop for AMD processors.
74747
74748 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
74749
74750         * libio/fmemopen.c (fmemopen): Optimize a bit.
74751
74752 2011-03-03  Andreas Schwab  <schwab@redhat.com>
74753
74754         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
74755
74756 2011-03-03  Roland McGrath  <roland@redhat.com>
74757
74758         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
74759
74760 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
74761
74762         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
74763         __bzero_ultra1 instead of __memset_ultra1.
74764
74765 2011-02-23  Andreas Schwab  <schwab@redhat.com>
74766             Ulrich Drepper  <drepper@gmail.com>
74767
74768         [BZ #12509]
74769         * include/link.h (struct link_map): Add l_orig_initfini.
74770         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
74771         returning unsuccessfully.
74772         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
74773         close of a file loaded at startup, restore the original l_initfini
74774         list.
74775         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
74776         list, store the pointer.
74777         * elf/Makefile ($(objpfx)noload-mem): New rule.
74778         (noload-ENV): Define.
74779         (tests): Add $(objpfx)noload-mem.
74780         * elf/noload.c: Include <memcheck.h>.
74781         (main): Call mtrace.  Close all opened handles.
74782
74783 2011-02-17  Andreas Schwab  <schwab@redhat.com>
74784
74785         [BZ #12454]
74786         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
74787         dependencies are missing.
74788
74789 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74790
74791         Fix __if_freereq crash: Unlike the generic version which uses free,
74792         Hurd needs munmap.
74793         * sysdeps/mach/hurd/ifreq.h: New file.
74794
74795 2011-01-27  Petr Baudis  <pasky@suse.cz>
74796             Ulrich Drepper  <drepper@gmail.com>
74797
74798         [BZ 12445]#
74799         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
74800         to extend_alloca().
74801         * stdio-common/bug23.c: New file.
74802         * stdio-common/Makefile (tests): Add bug23.
74803
74804 2010-09-28  Andreas Schwab  <schwab@redhat.com>
74805             Ulrich Drepper  <drepper@gmail.com>
74806
74807         [BZ #12489]
74808         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
74809         before performing relro protection.  At old place add assertion
74810         to make sure nothing changed.
74811
74812 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
74813             Glauber de Oliveira Costa  <glommer@gmail.com>
74814
74815         * elf/elf.h: Add new ARM TLS relocs.
74816
74817 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
74818
74819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
74820         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
74821         cast from r3.
74822         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
74823         'tests' variable.
74824         * sysdeps/wordsize-64/tst-writev.c: New file.
74825
74826 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
74827
74828         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
74829         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
74830         insns in _dl_start to prevent a TOC reference before relocs are
74831         resolved.
74832
74833 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
74834
74835         [BZ #12469]
74836         * Makeconfig: Remove RANLIB definition.
74837         * Makerules: Don't use RANLIB.
74838         * aclocal.m4: Remove ranlib test.
74839         * configure.in: No need to check for ranlib.
74840         * elf/rtld-Rules: Don't use RANLIB.
74841
74842 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74843
74844         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
74845         protection macro.
74846         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
74847         inclusion protection macro.
74848
74849         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
74850         SIGRTMIN and SIGRTMAX and print information in that case only when
74851         SIGRTMIN is defined.
74852
74853 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
74854
74855         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
74856         arginfo fn returning -1.
74857
74858         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
74859         and thousands string is zero terminated.
74860
74861 2011-02-03  Andreas Schwab  <schwab@redhat.com>
74862
74863         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
74864         sysdeps/unix/sysv/linux/bits/socket.h.
74865
74866 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74867
74868         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
74869         (__CPU_COUNT): Remove old macros.
74870         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
74871         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
74872         (__CPU_ALLOC, __CPU_FREE): Add macros.
74873         (__sched_cpualloc, __sched_cpufree): Add declarations.
74874
74875 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
74876
74877         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
74878         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
74879         * nscd/aicache.c (addhstaiX): Return timeout of added value.
74880         (readdhstai): Return value of addhstaiX call.
74881         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
74882         (addgrbyX): Return value returned by cache_addgr.
74883         (readdgrbyname): Return value returned by addgrbyX.
74884         (readdgrbygid): Likewise.
74885         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
74886         (addpwbyX): Return value returned by cache_addpw.
74887         (readdpwbyname): Return value returned by addhstbyX.
74888         (readdpwbyuid): Likewise.
74889         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
74890         (addservbyX): Return value returned by cache_addserv.
74891         (readdservbyname): Return value returned by addservbyX:
74892         (readdservbyport): Likewise.
74893         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
74894         (addhstbyX): Return value returned by cache_addhst.
74895         (readdhstbyname): Return value returned by addhstbyX.
74896         (readdhstbyaddr): Likewise.
74897         (readdhstbynamev6): Likewise.
74898         (readdhstbyaddrv6): Likewise.
74899         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
74900         (readdinitgroups): Return value returned by addinitgroupsX.
74901         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
74902         (prune_cache): Keep track of timeout value of re-added entries.
74903         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
74904         * nscd/nscd.h: Adjust prototypes of readd* functions.
74905
74906 2011-02-04  Roland McGrath  <roland@redhat.com>
74907
74908         * nis/nis_server.c (nis_servstate): Use the right name for 0.
74909         (nis_stats): Likewise.
74910         * nis/nis_modify.c (nis_modify): Likewise.
74911         * nis/nis_remove.c (nis_remove): Likewise.
74912         * nis/nis_add.c (nis_add): Likewise.
74913
74914         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
74915
74916         * posix/fnmatch_loop.c: Add some consts.
74917
74918         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
74919
74920 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
74921
74922         [BZ #12460]
74923         * config.make.in (config-cflags-novzeroupper): Define.
74924         * configure.in: Substitute libc_cv_cc_novzeroupper.
74925         * elf/Makefile (AVX-CFLAGS): Define.
74926         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
74927         (CFLAGS-tst-auditmod4a.c): Likewise.
74928         (CFLAGS-tst-auditmod4b.c): Likewise.
74929         (CFLAGS-tst-auditmod6b.c): Likewise.
74930         (CFLAGS-tst-auditmod6c.c): Likewise.
74931         (CFLAGS-tst-auditmod7b.c): Likewise.
74932         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
74933
74934 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
74935
74936         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
74937         function to the callback.
74938         Patch partly by Jiri Olsa <jolsa@redhat.com>.
74939
74940 2011-02-02  Andreas Schwab  <schwab@redhat.com>
74941
74942         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
74943         of errno.
74944
74945 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
74946
74947         [BZ #11724]
74948         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
74949         of constructors.
74950         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
74951         of destructors.
74952         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
74953
74954         [BZ #11724]
74955         * elf/Makefile: Add rules to build and run new test.
74956         * elf/tst-initorder.c: New file.
74957         * elf/tst-initorder.exp: New file.
74958         * elf/tst-initordera1.c: New file.
74959         * elf/tst-initordera2.c: New file.
74960         * elf/tst-initordera3.c: New file.
74961         * elf/tst-initordera4.c: New file.
74962         * elf/tst-initorderb1.c: New file.
74963         * elf/tst-initorderb2.c: New file.
74964         * elf/tst-order-a1.c: New file.
74965         * elf/tst-order-a2.c: New file.
74966         * elf/tst-order-a3.c: New file.
74967         * elf/tst-order-a4.c: New file.
74968         * elf/tst-order-b1.c: New file.
74969         * elf/tst-order-b2.c: New file.
74970         * elf/tst-order-main.c: New file.
74971         New test case by George Gensure <werkt0@gmail.com>.
74972
74973 2010-10-01  Andreas Schwab  <schwab@redhat.com>
74974
74975         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
74976         decoding ACE if AI_CANONIDN.
74977
74978 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
74979
74980         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
74981
74982 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
74983
74984         * version.h (RELEASE): Bump for 2.13 release.
74985         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
74986
74987         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
74988
74989         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
74990         MADV_NOHUGEPAGE.
74991         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
74992         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
74993         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
74994         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
74995         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
74996         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
74997
74998         * posix/getconf.c: Update copyright year.
74999         * catgets/gencat.c: Likewise.
75000         * csu/version.c: Likewise.
75001         * debug/catchsegv.sh: Likewise.
75002         * debug/xtrace.sh: Likewise.
75003         * elf/ldconfig.c: Likewise.
75004         * elf/ldd.bash.in: Likewise.
75005         * elf/sprof.c (print_version): Likewise.
75006         * iconv/iconv_prog.c: Likewise.
75007         * iconv/iconvconfig.c: Likewise.
75008         * locale/programs/locale.c: Likewise.
75009         * locale/programs/localedef.c: Likewise.
75010         * malloc/memusage.sh: Likewise.
75011         * malloc/mtrace.pl: Likewise.
75012         * nscd/nscd.c (print_version): Likewise.
75013         * nss/getent.c: Likewise.
75014
75015         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75016         PF_CAIF, and PF_ALG.
75017         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75018
75019 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75020
75021         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75022         (modules-names): Use them.
75023         (ifunc-test-modules, ifunc-pie-tests): Define.
75024         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75025         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75026         (test-extras): Likewise.
75027         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75028         $(compile-command.c).
75029         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75030         (all-built-dso): Define.
75031         (check-textrel.out, check-execstack.out): Depend on it.
75032
75033         * configure.in: Don't override --enable-multi-arch.
75034
75035 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75036
75037         [BZ #6812]
75038         * nscd/hstcache.c (tryagain): Define.
75039         (cache_addhst): Return tryagain not notfound for temporary errors.
75040         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75041         failed.
75042
75043 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75044
75045         [BZ #10563]
75046         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75047         to make the syscall.
75048         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75049
75050         [BZ #12378]
75051         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75052         and fall back to matching as normal character if the string ends before
75053         the matching ']' is found.  This is what POSIX requires.
75054         * posix/testfnm.c: Adjust test result.
75055         * posix/globtest.sh: Adjust test result.  Add new test.
75056         * posix/tst-fnmatch.input: Likewise.
75057         * posix/tst-fnmatch2.c: Add new test.
75058
75059 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75060
75061         * elf/Makefile (check-execstack): Revert last change.  Depend on
75062         check-execstack.h.
75063         (check-execstack.h): New target.
75064         (generated): Add check-execstack.h.
75065         * elf/check-execstack.c: Include "check-execstack.h".
75066         (main): Revert last change.
75067         (handle_file): Return zero if GNU_STACK is absent and
75068         DEFAULT_STACK_PERMS doesn't include PF_X.
75069
75070 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75071
75072         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75073         in child fails because the descriptor is already closed.
75074         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75075         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75076         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75077
75078         [BZ #12397]
75079         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75080         syscall.
75081
75082         [BZ #10484]
75083         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75084         temporary buffer used to handle multi lookups locally.
75085         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75086
75087 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75088
75089         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75090         loader is ld.so.
75091
75092 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75093
75094         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75095         alignment for SSE2.
75096
75097 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75098
75099         [BZ #12394]
75100         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75101         characters.  When rounding increased number of integer digits recompute
75102         number of groups.
75103         * stdio-common/tst-grouping.c: New file.
75104         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75105
75106 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75107
75108         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75109         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75110
75111         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75112         void.
75113         * bits/select.h: Likewise.
75114
75115 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75116
75117         * po/ja.po: Update from translation team.
75118
75119 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75120
75121         [BZ #11155]
75122         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75123         implementation just like for lxstat, fxstatat, et al.
75124
75125 2010-12-27  Jim Meyering  <meyering@redhat.com>
75126
75127         [BZ #12348]
75128         * posix/regexec.c (build_trtable): Return failure indication upon
75129         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75130
75131 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75132
75133         [BZ #12201]
75134         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75135         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75136         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75137         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75138
75139         [BZ #12207]
75140         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75141
75142         [BZ #12204]
75143         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75144         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75145
75146 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75147
75148         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75149         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75150         script has SORT_BY_INIT_PRIORITY.
75151         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75152         NO_CTORS_DTORS_SECTIONS is defined.
75153         * elf/soinit.c: Likewise.
75154         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75155         NO_CTORS_DTORS_SECTIONS is defined.
75156         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75157         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75158         * sysdeps/sh/init-first.c: Likewise.
75159         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75160
75161 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75162
75163         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75164         always use the slow path.
75165
75166 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75167
75168         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75169         similar rule which adds the sysdep directories to the header search in
75170         order to pick up the correct platform stackinfo.h.
75171         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75172         perform test if it is, otherwise return successfully without testing.
75173         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75174         DEFAULT_STACK_PERMS define in stackinfo.h.
75175         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75176         defined in stackinfo.h.
75177         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75178         DEFAULT_STACK_PERMS defined in stackinfo.h.
75179         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75180         * sysdeps/ia64/stackinfo.h: Likewise.
75181         * sysdeps/s390/stackinfo.h: Likewise.
75182         * sysdeps/sh/stackinfo.h: Likewise.
75183         * sysdeps/sparc/stackinfo.h: Likewise.
75184         * sysdeps/x86_64/stackinfo.h: Likewise.
75185         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75186         PF_X for powerpc64.  Retain PF_X for powerpc32.
75187
75188 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75189
75190         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75191         accurately.
75192         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75193         GETDENTS_64BIT_ALIGNED.
75194
75195 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75196
75197         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75198
75199 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75200
75201         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75202         _GNU_SOURCE.
75203
75204         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75205         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75206         Remove __restrict.
75207         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75208         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75209
75210 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75211
75212         [BZ #11655]
75213         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75214         are initialized.
75215
75216 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75217
75218         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75219
75220 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75221
75222         * po/it.po: Update from translation team.
75223
75224 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75225
75226         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75227         unused codes.
75228
75229 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75230
75231         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75232
75233 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75234
75235         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75236         specially.
75237         (gaih_getanswer_slice): Likewise.
75238
75239 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75240
75241         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75242
75243 2010-05-31  Petr Baudis  <pasky@suse.cz>
75244
75245         [BZ #11149]
75246         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75247         silently even in the chroot mode.
75248
75249 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75250
75251         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75252         last patch a bit.  Pretty printing
75253
75254 2010-05-31  Petr Baudis <pasky@suse.cz>
75255
75256         [BZ #10085]
75257         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75258         initialization of skip_initgroups_dyn.
75259
75260 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75261
75262         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75263         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75264
75265 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75266
75267         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75268
75269 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75270
75271         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75272         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75273         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75274         ($(objpfx)tst-fnmatch-mem): New rule.
75275         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75276         * posix/tst-fnmatch.c (main): Call mtrace.
75277
75278 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75279
75280         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75281         Support Intel processor model 6 and model 0x2c.
75282
75283 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75284
75285         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75286           signed comparison.
75287
75288 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75289
75290         [BZ #12205]
75291         * string/test-strncasecmp.c (check_result): New function.
75292         (do_one_test): Use it.
75293         (check1): New function.
75294         (test_main): Use it.
75295         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75296         Support strcasecmp and strncasecmp.
75297
75298 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75299
75300         [BZ #12194]
75301         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75302         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75303
75304 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75305
75306         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75307         IFUNC support.
75308         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75309         memset-x86-64.
75310         * sysdeps/x86_64/multiarch/bzero.S: New file.
75311         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75312         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75313         * sysdeps/x86_64/multiarch/memset.S: New file.
75314         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75315         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75316         Set bit_Prefer_SSE_for_memop for Intel processors.
75317         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75318         Define.
75319         (index_Prefer_SSE_for_memop): Define.
75320         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75321
75322 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75323
75324         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75325         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75326
75327 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75328
75329         [BZ #12191]
75330         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75331         (__x86_64_raw_data_cache_size_half): Likewise.
75332         (__x86_64_raw_shared_cache_size): Likewise.
75333         (__x86_64_raw_shared_cache_size_half): Likewise.
75334
75335         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75336         (__x86_64_raw_data_cache_size_half): Likewise.
75337         (__x86_64_raw_shared_cache_size): Likewise.
75338         (__x86_64_raw_shared_cache_size_half): Likewise.
75339         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75340         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75341         and __x86_64_raw_shared_cache_size_half.  Round
75342         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75343         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75344         to multiple of 256 bytes.
75345
75346 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75347
75348         [BZ #12167]
75349         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75350         of inacessible symlinks.  Verify result of symlink before returning it.
75351         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75352         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75353
75354 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75355
75356         * math/math.h (isinf): Fix typo in comment.
75357
75358 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75359
75360         * po/da.po: Update from translation team.
75361
75362 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75363
75364         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75365         is added to the list.
75366
75367 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75368             Ulrich Drepper  <drepper@gmail.com>
75369
75370         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75371         the global list here.  Move code to...
75372         (_dl_add_to_namespace_list): ...here.  New function.
75373         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75374         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75375         * elf/dl-load.c (lose): Don't remove the element from the list.
75376         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75377         (_dl_map_object): Likewise.
75378
75379 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75380
75381         [BZ #12159]
75382         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75383         into all bytes of SSE register.
75384         Patch by Richard Li <richardpku@gmail.com>.
75385
75386 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75387
75388         [BZ #12140]
75389         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75390         perturbing.
75391
75392 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75393
75394         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75395         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75396         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75397         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75399         submachine.
75400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75401
75402 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75403
75404         * include/dlfcn.h (__RTLD_SECURE): Define.
75405         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75406         mode & __RTLD_SECURE instead.
75407         (open_path): Rename preloaded parameter to secure.
75408         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75409         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75410         * elf/dl-deps.c (openaux): Likewise.
75411         * elf/rtld.c (struct map_args): Remove is_preloaded.
75412         (map_doit): Don't use it.
75413         (dl_main): Likewise.
75414         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75415         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75416
75417 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75418
75419         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75420         (sysd-rules-targets): Remove duplicates.
75421         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75422         rtld-%.$o dependency.
75423
75424 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75425
75426         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75427         _dl_map_object do it.
75428
75429 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75430
75431         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75432         fast fma builtins, define the macros in the C99 standard.
75433         (FP_FAST_FMAF): Likewise.
75434         (FP_FAST_FMAL): Likewise.
75435         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75436
75437         * bits/mathdef.h: Update copyright year.
75438         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75439
75440 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75441
75442         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75443         builtins, define the macros in the C99 standard.
75444         (FP_FAST_FMAF): Likewise.
75445         (FP_FAST_FMAL): Likewise.
75446         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75447         multiply/add.
75448         (FP_FAST_FMAF): Likewise.
75449
75450 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75451
75452         [BZ #3268]
75453         * math/libm-test.inc (fma_test): Some new testcases.
75454         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75455         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75456         y and infinite z.  Do multiplication by C already in long double.
75457         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75458         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75459         y and infinite z.  Do bitwise or of inexact bit into u.d.
75460         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75461         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75462         * sysdeps/i386/fpu/s_fma.S: Removed.
75463         * sysdeps/i386/fpu/s_fmal.S: Removed.
75464
75465 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75466
75467         [BZ #3268]
75468         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75469         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75470         computation is not scheduled after fetestexcept.  Fix value
75471         of minimum denormal long double.
75472
75473 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75474
75475         [BZ #3268]
75476         * math/libm-test.inc (fma_test): Add some more tests.
75477         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75478         correctly.
75479
75480 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75481
75482         * scripts/data/localplt-s390-linux-gnu.data: New file.
75483         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75484
75485 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75486
75487         [BZ #3268]
75488         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75489         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75490         instead of dbl-64.
75491         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75492         inlines.
75493         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75494         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75495         if one of x and y is very large and the other is subnormal.
75496         * sysdeps/s390/fpu/s_fmaf.c: New file.
75497         * sysdeps/s390/fpu/s_fma.c: New file.
75498         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75499         * sysdeps/powerpc/fpu/s_fma.S: New file.
75500         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75501         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75502         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75503
75504 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75505
75506         [BZ #3268]
75507         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75508         fma tests.
75509         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75510         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75511         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75512         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75513         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75514         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75515         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75516
75517 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75518
75519         [BZ #12078]
75520         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75521         * posix/bug-regex31.input: Add test case.
75522
75523 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75524
75525         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75526         * posix/bug-regex31.input: New file.
75527
75528         [BZ #12078]
75529         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75530         (parse_sub_exp): Fix last change, use postorder.
75531
75532         * posix/bug-regex31.c: New file.
75533         * posix/Makefile: Add rules to build and run bug-regex31.
75534
75535         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75536
75537         [BZ #12078]
75538         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75539
75540         [BZ #12108]
75541         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75542         to have entries in sys_siglist.
75543
75544         [BZ #12093]
75545         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75546         be NULL.
75547
75548 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75549
75550         [BZ #3268]
75551         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
75552         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
75553         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
75554         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
75555         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75556         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
75557         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
75558         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
75559         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
75560         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
75561         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
75562         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
75563         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
75564         * math/ftestexcept.c (fetestexcept): Likewise.
75565         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
75566         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
75567         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
75568         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
75569         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
75570         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
75571         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75572
75573 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75574
75575         [BZ #12107]
75576         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
75577         newline.
75578
75579 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
75580
75581         * string/bug-strstr1.c: New file.
75582         * string/Makefile: Add rules to build and run bug-strstr1.
75583
75584 2010-10-05  Eric Blake  <eblake@redhat.com>
75585
75586         [BZ #12092]
75587         * string/str-two-way.h (two_way_long_needle): Always clear memory
75588         when skipping input due to the shift table.
75589
75590 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
75591
75592         [BZ #12005]
75593         * malloc/mcheck.c: Handle large requests.
75594
75595         [BZ #12077]
75596         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
75597         for strncmp and strncasecmp.
75598         * string/stratcliff.c: Add tests for strcmp and strncmp.
75599         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
75600
75601 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
75602
75603         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
75604         __set_fpscr.
75605
75606 2010-09-30  Andreas Jaeger  <aj@suse.de>
75607
75608         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
75609         (CGROUP_SUPER_MAGIC): Define.
75610         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
75611         Handle btrfs and cgroup file systems.
75612         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
75613         Likewise.
75614
75615 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
75616
75617         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
75618         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
75619
75620 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75621
75622         [BZ #12067]
75623         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
75624         trying to locate the ELF header.
75625
75626 2010-09-27  Andreas Schwab  <schwab@redhat.com>
75627
75628         [BZ #11611]
75629         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
75630         Mask out sign-bit copies when constructing f_fsid.
75631
75632 2010-09-24  Petr Baudis <pasky@suse.cz>
75633
75634         * debug/stack_chk_fail_local.c: Add missing licence exception.
75635         * debug/warning-nop.c: Likewise.
75636
75637 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
75638
75639         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
75640         implementing getdents64 using getdents syscall, set d_type if
75641         __ASSUME_GETDENTS32_D_TYPE.
75642
75643 2010-09-16  Andreas Schwab  <schwab@redhat.com>
75644
75645         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
75646         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
75647
75648 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
75649
75650         [BZ #12037]
75651         * posix/unistd.h: Undo change of feature selection for ftruncate from
75652         2010-01-11.
75653
75654 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
75655
75656         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
75657         detection.
75658
75659 2010-09-20  Andreas Schwab  <schwab@redhat.com>
75660
75661         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
75662         fanotify_mark.
75663         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
75664
75665 2010-09-14  Andreas Schwab  <schwab@redhat.com>
75666
75667         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
75668         variables after CHECK_SP call.
75669         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
75670
75671 2010-09-13  Andreas Schwab  <schwab@redhat.com>
75672             Ulrich Drepper  <drepper@redhat.com>
75673
75674         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
75675         re-relocationg ld.so.
75676         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
75677         _dl_init_paths call.
75678         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
75679         here anymore.
75680
75681 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
75682
75683         * resolv/res_init.c (__res_vinit): Count the default server we added.
75684
75685 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
75686             Ulrich Drepper  <drepper@redhat.com>
75687
75688         [BZ #11968]
75689         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
75690         (____longjmp_chk): Use %ebx for saving value across system call.
75691         Add unwind info.
75692
75693 2010-09-06  Andreas Schwab  <schwab@redhat.com>
75694
75695         * manual/Makefile: Don't mix pattern rules with normal rules.
75696
75697 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
75698
75699         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
75700         operation.
75701         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
75702         * libio/iofopncook.c (_IO_cookie_init): Likewise.
75703         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
75704         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
75705         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75706         Likewise.
75707
75708 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
75709
75710         [BZ #11979]
75711         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
75712         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
75713
75714 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
75715
75716         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
75717         * sysdeps/x86_64/addmul_1.S: Likewise.
75718         * sysdeps/x86_64/lshift.S: Likewise.
75719         * sysdeps/x86_64/mul_1.S: Likewise.
75720         * sysdeps/x86_64/rshift.S: Likewise.
75721         * sysdeps/x86_64/sub_n.S: Likewise.
75722         * sysdeps/x86_64/submul_1.S: Likewise.
75723
75724 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75725
75726         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
75727         Define __sched_param instead of SCHED_* and sched_param when
75728         <bits/sched.h> is included with __need_schedparam defined.
75729         * bits/sched.h [__need_schedparam]
75730         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
75731         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
75732         (__defined_schedparam): Define to 1.
75733         (__sched_param): New structure, identical to sched_param.
75734         (__need_schedparam): Undefine.
75735
75736 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
75737
75738         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
75739         (epoll_create1): Declare.
75740
75741         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
75742
75743 2010-08-31  Andreas Schwab  <schwab@redhat.com>
75744
75745         [BZ #7066]
75746         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
75747         shifting retval into place.
75748
75749 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
75750
75751         * nis/rpcsvc/nis.h: Update copyright notice.
75752         * nis/rpcsvc/nis.x: Likewise.
75753         * nis/rpcsvc/nis_callback.h: Likewise.
75754         * nis/rpcsvc/nis_callback.x: Likewise.
75755         * nis/rpcsvc/nis_object.x: Likewise.
75756         * nis/rpcsvc/nis_tags.h: Likewise.
75757         * nis/rpcsvc/yp.h: Likewise.
75758         * nis/rpcsvc/yp.x: Likewise.
75759         * nis/rpcsvc/ypupd.h: Likewise.
75760         * nis/yp_xdr.c: Likewise.
75761         * nis/ypupdate_xdr.c: Likewise.
75762
75763         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
75764         mainly the body of pmap_getport.  Add parameters to specify timeouts.
75765         (pmap_getport): Use __libc_rpc_getport.
75766         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
75767         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
75768         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
75769
75770 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
75771
75772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
75773         fanotify_mark.
75774
75775 2010-08-27  Roland McGrath  <roland@redhat.com>
75776
75777         * sysdeps/i386/i686/multiarch/Makefile
75778         (CFLAGS-varshift.c): New variable.
75779
75780 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
75781
75782         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
75783         * sysdeps/i386/i686/multiarch/varshift.c: New file.
75784
75785         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
75786
75787         * sysdeps/x86_64/strlen.S: Minimal code improvement.
75788
75789 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
75790
75791         * sysdeps/x86_64/strlen.S: Unroll the loop.
75792         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75793         strlen-sse2 strlen-sse2-bsf.
75794         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
75795         __strlen_no_bsf if bit_Slow_BSF is set.
75796         (__strlen_sse42): Removed.
75797         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
75798         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
75799
75800 2010-08-25  Roland McGrath  <roland@redhat.com>
75801
75802         * sysdeps/x86_64/multiarch/varshift.S: File removed.
75803         * sysdeps/x86_64/multiarch/varshift.c: New file.
75804         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
75805         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
75806         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
75807         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
75808
75809 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
75810
75811         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
75812         strlen-sse2 strlen-sse2-bsf.
75813         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
75814         __strlen_sse2_bsf if bit_Slow_BSF is unset.
75815         (__strlen_sse2): Removed.
75816         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
75817         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
75818         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
75819         bit_Slow_BSF for Atom.
75820         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
75821         (index_Slow_BSF): Define.
75822         (HAS_SLOW_BSF): Define.
75823
75824 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
75825
75826         [BZ #10851]
75827         * resolv/res_init.c (__res_vinit): When no server address at all
75828         is given default to loopback.
75829
75830 2010-08-24  Roland McGrath  <roland@redhat.com>
75831
75832         * configure.in: Remove config-name.h generation.
75833         * configure: Regenerated.
75834         * config-name.in: File removed.
75835         * scripts/config-uname.sh: New file.
75836         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
75837         ($(objdir)config-name.h): New target.
75838
75839         * sunrpc/rpc_parse.h: Avoid nested comment.
75840
75841 2010-08-24  Richard Henderson  <rth@redhat.com>
75842             Ulrich Drepper  <drepper@redhat.com>
75843             H.J. Lu  <hongjiu.lu@intel.com>
75844
75845         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
75846         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
75847         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
75848         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
75849         _mm_alignr_epi8 with _mm_loadu_si128.
75850         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
75851         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
75852         (__m128i_shift_right): Removed.
75853         * sysdeps/i386/i686/multiarch/varshift.h: New file.
75854         * sysdeps/i386/i686/multiarch/varshift.S: New file.
75855         * sysdeps/x86_64/multiarch/varshift.h: New file.
75856         * sysdeps/x86_64/multiarch/varshift.S: New file.
75857
75858 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
75859
75860         * configure.in: Move assembler checks to before sysdep dir checking.
75861
75862 2010-08-20  Petr Baudis  <pasky@suse.cz>
75863
75864         * LICENSES: Sync the sunrpc license.
75865
75866 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
75867
75868         * sunrpc/auth_des.c: Update copyright notice once again.
75869         * sunrpc/auth_none.c: Likewise.
75870         * sunrpc/auth_unix.c: Likewise.
75871         * sunrpc/authdes_prot.c: Likewise.
75872         * sunrpc/authuxprot.c: Likewise.
75873         * sunrpc/bindrsvprt.c: Likewise.
75874         * sunrpc/clnt_gen.c: Likewise.
75875         * sunrpc/clnt_perr.c: Likewise.
75876         * sunrpc/clnt_raw.c: Likewise.
75877         * sunrpc/clnt_simp.c: Likewise.
75878         * sunrpc/clnt_tcp.c: Likewise.
75879         * sunrpc/clnt_udp.c: Likewise.
75880         * sunrpc/clnt_unix.c: Likewise.
75881         * sunrpc/des_crypt.c: Likewise.
75882         * sunrpc/des_soft.c: Likewise.
75883         * sunrpc/get_myaddr.c: Likewise.
75884         * sunrpc/getrpcport.c: Likewise.
75885         * sunrpc/key_call.c: Likewise.
75886         * sunrpc/key_prot.c: Likewise.
75887         * sunrpc/openchild.c: Likewise.
75888         * sunrpc/pm_getmaps.c: Likewise.
75889         * sunrpc/pm_getport.c: Likewise.
75890         * sunrpc/pmap_clnt.c: Likewise.
75891         * sunrpc/pmap_prot.c: Likewise.
75892         * sunrpc/pmap_prot2.c: Likewise.
75893         * sunrpc/pmap_rmt.c: Likewise.
75894         * sunrpc/rpc/auth.h: Likewise.
75895         * sunrpc/rpc/auth_unix.h: Likewise.
75896         * sunrpc/rpc/clnt.h: Likewise.
75897         * sunrpc/rpc/des_crypt.h: Likewise.
75898         * sunrpc/rpc/key_prot.h: Likewise.
75899         * sunrpc/rpc/netdb.h: Likewise.
75900         * sunrpc/rpc/pmap_clnt.h: Likewise.
75901         * sunrpc/rpc/pmap_prot.h: Likewise.
75902         * sunrpc/rpc/pmap_rmt.h: Likewise.
75903         * sunrpc/rpc/rpc.h: Likewise.
75904         * sunrpc/rpc/rpc_des.h: Likewise.
75905         * sunrpc/rpc/rpc_msg.h: Likewise.
75906         * sunrpc/rpc/svc.h: Likewise.
75907         * sunrpc/rpc/svc_auth.h: Likewise.
75908         * sunrpc/rpc/types.h: Likewise.
75909         * sunrpc/rpc/xdr.h: Likewise.
75910         * sunrpc/rpc_clntout.c: Likewise.
75911         * sunrpc/rpc_cmsg.c: Likewise.
75912         * sunrpc/rpc_common.c: Likewise.
75913         * sunrpc/rpc_cout.c: Likewise.
75914         * sunrpc/rpc_dtable.c: Likewise.
75915         * sunrpc/rpc_hout.c: Likewise.
75916         * sunrpc/rpc_main.c: Likewise.
75917         * sunrpc/rpc_parse.c: Likewise.
75918         * sunrpc/rpc_parse.h: Likewise.
75919         * sunrpc/rpc_prot.c: Likewise.
75920         * sunrpc/rpc_sample.c: Likewise.
75921         * sunrpc/rpc_scan.c: Likewise.
75922         * sunrpc/rpc_scan.h: Likewise.
75923         * sunrpc/rpc_svcout.c: Likewise.
75924         * sunrpc/rpc_tblout.c: Likewise.
75925         * sunrpc/rpc_util.c: Likewise.
75926         * sunrpc/rpc_util.h: Likewise.
75927         * sunrpc/rpcinfo.c: Likewise.
75928         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
75929         * sunrpc/rpcsvc/key_prot.x: Likewise.
75930         * sunrpc/rpcsvc/klm_prot.x: Likewise.
75931         * sunrpc/rpcsvc/mount.x: Likewise.
75932         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
75933         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
75934         * sunrpc/rpcsvc/rex.x: Likewise.
75935         * sunrpc/rpcsvc/rstat.x: Likewise.
75936         * sunrpc/rpcsvc/rusers.x: Likewise.
75937         * sunrpc/rpcsvc/sm_inter.x: Likewise.
75938         * sunrpc/rpcsvc/spray.x: Likewise.
75939         * sunrpc/rpcsvc/yppasswd.x: Likewise.
75940         * sunrpc/rtime.c: Likewise.
75941         * sunrpc/svc.c: Likewise.
75942         * sunrpc/svc_auth.c: Likewise.
75943         * sunrpc/svc_authux.c: Likewise.
75944         * sunrpc/svc_raw.c: Likewise.
75945         * sunrpc/svc_run.c: Likewise.
75946         * sunrpc/svc_simple.c: Likewise.
75947         * sunrpc/svc_tcp.c: Likewise.
75948         * sunrpc/svc_udp.c: Likewise.
75949         * sunrpc/svc_unix.c: Likewise.
75950         * sunrpc/svcauth_des.c: Likewise.
75951         * sunrpc/xcrypt.c: Likewise.
75952         * sunrpc/xdr.c: Likewise.
75953         * sunrpc/xdr_array.c: Likewise.
75954         * sunrpc/xdr_float.c: Likewise.
75955         * sunrpc/xdr_mem.c: Likewise.
75956         * sunrpc/xdr_rec.c: Likewise.
75957         * sunrpc/xdr_ref.c: Likewise.
75958         * sunrpc/xdr_sizeof.c: Likewise.
75959         * sunrpc/xdr_stdio.c: Likewise.
75960
75961         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
75962         handling.
75963
75964 2010-08-19  Andreas Schwab  <schwab@redhat.com>
75965
75966         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
75967
75968 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
75969
75970         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
75971         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
75972         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
75973         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
75974         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
75975         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
75976         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
75977         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
75978         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
75979         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
75980         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
75981         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
75982         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
75983         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
75984
75985 2010-07-26  Anton Blanchard  <anton@samba.org>
75986
75987         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
75988         * malloc/arena.c (heap_trim): Likewise.
75989
75990 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
75991
75992         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
75993         here.  Not...
75994         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
75995         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
75996
75997 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
75998
75999         * sysdeps/i386/elf/Makefile: New file.
76000
76001 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76002
76003         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76004         from fanotify_init.
76005         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76006         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76007
76008 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76009
76010         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76011         of strncasecmp_l.
76012         * sysdeps/multiarch/strcmp.S: Likewise.
76013
76014 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76015
76016         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76017         strncase_l-nonascii.
76018         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76019         Add strncase_l-ssse3.
76020         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76021         * sysdeps/x86_64/strcmp.S: Likewise.
76022         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76023         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76024         * sysdeps/x86_64/strncase.S: New file.
76025         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76026         * sysdeps/x86_64/strncase_l.S: New file.
76027         * string/Makefile (strop-tests): Add strncasecmp.
76028         * string/test-strncasecmp.c: New file.
76029
76030         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76031         warning.
76032
76033         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76034         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76035
76036 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76037
76038         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76039
76040 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76041
76042         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76043         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76044         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76045
76046 2010-05-01  Alan Modra  <amodra@gmail.com>
76047
76048         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76049         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76050         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76051         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76052         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76053         tidying.  Don't tail-call __sigjmp_save for static lib.
76054         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76055         save location.
76056         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76057         (CALL_MCOUNT): Add eh info, and nop after bl.
76058         (TAIL_CALL_SYSCALL_ERROR): New macro.
76059         (PSEUDO_RET): Use it.
76060         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76061         Correct save location of integer regs and cr.
76062         (_dl_profile_resolve): Correct cr save location.  Delete nops
76063         after bl when SHARED.  Reduce cfi size a little by better
76064         placement of cfi directives.
76065         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76066         make a stack frame.  Instead use parm save area as a temp.
76067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76068         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76070         Don't make a stack frame for parent, use parm save area.
76071         Increase child stack frame to 112 bytes.  Don't save unused reg,
76072         and adjust reg usage.  Set up cfi on error recovery and
76073         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76075         (__makecontext): Add dummy nop after jump to exit.
76076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76077         Use correct parm save area and cr save, reduce stack frame.
76078         Correct cfi for possible PSEUDO_RET frame setup.
76079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76080         Branch to local label emitted by PSEUDO_RET rather than
76081         __syscall_error.
76082
76083 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76084
76085         [BZ #11904]
76086         * locale/programs/locale.c (print_assignment): New function.
76087         (show_locale_vars): Use it.
76088
76089 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76090
76091         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76092         field.
76093         (struct statfs64): Likewise.
76094         (_STATFS_F_FLAGS): Define.
76095         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76096         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76097         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76098         (ST_VALID): Define locally.
76099         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76100         __statvfs_getflags, use the provided value.
76101         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76102         __ASSUME_STATFS_F_FLAGS.
76103
76104         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76105
76106         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76107         Add sys/fanotify.h.
76108         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76109         fanotify_mask for GLIBC_2.13.
76110         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76111         fanotify_init and fanotify_mark.
76112         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76113         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76114
76115         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76116         Add prlimit.
76117         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76118         prlimit64 for GLIBC_2.13.
76119         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76120         prlimit64.
76121         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76122         syscall.
76123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76124         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76125         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76126         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76127         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76128         add prlimit alias.
76129         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76130
76131         [BZ #11903]
76132         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76133         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76134
76135         * nss/Makefile: Add rules to build and run tst-nss-test1.
76136         * shlib-versions: Add entry for libnss_test1.
76137         * nss/nss_test1.c: New file.
76138         * nss/tst-nss-test1.c: New file.
76139
76140         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76141         (__nss_configure_lookup): Set appropriate entry in
76142         __nss_configure_lookup to true.
76143         * nss/nsswitch.h: Define enum with indeces of databases in
76144         databases and __nss_database_custom arrays.  Declare
76145         __nss_database_custom.
76146         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76147         to avoid using nscd when custom rules are installed.
76148         * nss/getXXbyYY_r.c: Likewise.
76149         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76150
76151         * nss/nss_files/files-parse.c: Whitespace fixes.
76152
76153 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76154
76155         [BZ #11883]
76156         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76157         * posix/fnmatch_loop.c: Likewise.
76158
76159 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76160
76161         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76162         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76163         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76164         * Versions.def [GLIBC_2.13]: Add.
76165
76166 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76167
76168         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76169         Also fail if tpwd after pwuid call is NULL.
76170
76171 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76172
76173         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76174         when converting to ms.
76175
76176 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76177
76178         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76179         EOPNOTSUPP errors with ENOTTY.
76180         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76181         EOPNOTSUPP errors with ENOTTY.
76182
76183 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76184
76185         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76186         Add strcasecmp_l-ssse3.
76187         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76188         strcasecmp.
76189         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76190         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76191         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76192
76193 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76194
76195         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76196
76197         * string/Makefile (strop-tests): Add strcasecmp.
76198         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76199         strcasecmp_l-nonascii.
76200         (gen-as-const-headers): Add locale-defines.sym.
76201         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76202         * sysdeps/x86_64/strcasecmp.S: New file.
76203         * sysdeps/x86_64/strcasecmp_l.S: New file.
76204         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76205         * sysdeps/x86_64/locale-defines.sym: New file.
76206         * string/test-strcasecmp.c: New file.
76207
76208         * string/test-strcasestr.c: Test both ends of the range of characters.
76209         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76210
76211 2010-07-29  Roland McGrath  <roland@redhat.com>
76212
76213         [BZ #11856]
76214         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76215
76216 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76217
76218         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76219         for ld.so.
76220
76221 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76222
76223         * manual/memory.texi (Malloc Tunable Parameters): Document
76224         M_PERTURB.
76225
76226 2010-07-26  Roland McGrath  <roland@redhat.com>
76227
76228         [BZ #11840]
76229         * configure.in (-fgnu89-inline check): Set and substitute
76230         gnu89_inline, not libc_cv_gnu89_inline.
76231         * configure: Regenerated.
76232         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76233
76234 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76235
76236         * string/test-strnlen.c: New file.
76237         * string/Makefile (strop-tests): Add strnlen.
76238         * string/tester.c (test_strnlen): Add a few more test cases.
76239         * string/tst-strlen.c: Better error reporting.
76240
76241         * sysdeps/x86_64/strnlen.S: New file.
76242
76243 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76244
76245         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76246         lower-latency instructions.
76247
76248 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76249
76250         * string/test-strcasestr.c: New file.
76251         * string/test-strstr.c: New file.
76252         * string/Makefile (strop-tests): Add strstr and strcasestr.
76253         * string/str-two-way.h: Don't undefine MAX.
76254         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76255
76256 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76257
76258         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76259         strcasestr-nonascii.
76260         (CFLAGS-strcasestr-nonascii.c): Define.
76261         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76262         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76263         Remove unused attribute.
76264
76265 2010-07-20  Roland McGrath  <roland@redhat.com>
76266
76267         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76268         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76269         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76270         like LD_HWCAP_MASK can disable hwcaps.
76271
76272 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76273
76274         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76275
76276 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76277
76278         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76279         call in strcasestr.
76280         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76281         __strcasestr_sse42_nonascii.
76282         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76283         strcasestr-nonascii.c.
76284         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76285
76286 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76287
76288         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76289         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76290         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76291         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76292
76293 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76294
76295         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76296         fcntl.
76297
76298 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76299
76300         [BZ #11577]
76301         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76302         dl_signal_cerror.
76303
76304 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76305
76306         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76307         _PC_PIPE_BUF using F_GETPIPE_SZ.
76308
76309 2010-07-05  Roland McGrath  <roland@redhat.com>
76310
76311         * manual/arith.texi (Rounding Functions): Fix rint description
76312         implicit in round description.
76313
76314 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76315
76316         * elf/Makefile: Fix linking for a few tests to make recent linker
76317         happy.
76318
76319 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76320
76321         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76322         $(common-objpfx)libc_nonshared.a.
76323
76324 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76325
76326         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76327         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76328         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76329         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76330         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76331         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76332         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76333         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76348         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76349         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76350         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76351         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76352         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76353         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76354         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76355         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76356         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76357         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76358         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76359         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76374
76375 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76376
76377         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76378         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76379         * string/memmove.c (memmove): Renamed to ...
76380         (MEMMOVE): ...this.  Default to memmove.
76381         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76382         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76383         (END_CHK): Define.
76384         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76385         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76386         mempcpy-ssse3-back memmove-ssse3-back.
76387         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76388         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76389         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76390         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76391         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76392         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76393         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76394         * sysdeps/x86_64/multiarch/memmove.c: New file.
76395         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76396         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76397         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76398         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76399         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76400         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76401         Define.
76402         (index_Fast_Copy_Backward): Define.
76403         (HAS_ARCH_FEATURE): Define.
76404         (HAS_FAST_REP_STRING): Define.
76405         (HAS_FAST_COPY_BACKWARD): Define.
76406
76407 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76408
76409         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76410         Restore proper fallback handling.
76411
76412 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76413
76414         [BZ #11701]
76415         * posix/group_member.c (__group_member): Correct checking loop.
76416
76417         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76418         OOM in getpwuid_r correctly.  Return error number when the caller
76419         should return, otherwise -1.
76420         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76421         call returning > 0 value.
76422         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76423
76424 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76425
76426         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76427         libc_nonshared.a from targets in modules-names.
76428
76429 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76430
76431         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76432         requires it.
76433
76434 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76435
76436         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76437         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76438         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76439         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76440
76441 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76442
76443         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76444
76445 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76446
76447         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76448         and F_GETPIPE_SZ.
76449         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76450         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76451         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76452         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76453         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76454         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76455
76456 2010-06-14  Roland McGrath  <roland@redhat.com>
76457
76458         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76459
76460 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76461
76462         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76463         __REDIRECT followed by __THROW.
76464         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76465         * posix/getopt.h (getopt): Likewise.
76466
76467 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76468
76469         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76470         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76471         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76472         in AT_FLAGS.
76473         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76474         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76475
76476 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76477
76478         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76479
76480 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76481
76482         [BZ #11640]
76483         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76484         Properly check family and model.
76485
76486 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76487
76488         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76489
76490 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76491
76492         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76493
76494 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76495
76496         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76497         symbol reference.
76498
76499 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76500
76501         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76502         symbol reference.
76503
76504 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76505
76506         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76507         and internal_recvmmsg.
76508         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76509         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76510         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76511         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76512
76513         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76514         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76515         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76516
76517 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76518
76519         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76520
76521 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76522
76523         POWER7 optimizations.
76524         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76525         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76526
76527 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76528
76529         * version.h: Update for 2.13 development version.
76530
76531 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76532
76533         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76534         exceptions.  Return 0.
76535
76536 2010-05-07  Roland McGrath  <roland@redhat.com>
76537
76538         * elf/ldconfig.c (main): Add a const.
76539
76540 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76541
76542         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76543         (args_options): Add no-idn option.
76544         (ahosts_keys_int): Add idn_flags to ai_flags.
76545         (parse_option): Handle 'i' option to clear idn_flags.
76546
76547         * malloc/malloc.c (_int_free): Possible race in the most recently
76548         added check.  Only act on the data if no current modification
76549         happened.
76550
76551 See ChangeLog.17 for earlier changes.